Sign in to follow this  
Guest Rajroop

chart is empty, why?

Recommended Posts

I see the chart, but its empty. I can't figure out why.... please help.

Here's the relevant info....

 

<div id="chart3div">

FusionCharts

</div>

<BR>

<script language="JavaScript">  

 var chart3 = new FusionCharts("FusionCharts/StackedColumn2D.swf", "chart3Id", "1200", "600", "0", "1");  

 chart3.setDataURL("x.xml");  

 chart3.render("chart3div");

</script>

contents of x.xml:

<chart caption="Breakdown" xAxisName="users" yAxisMaxValue="Jobs" areaBorderColor="FFFFFF" palette="1" labelDisplay='ROTATE'>

<categories>

 <category label="salesv-1000" />

 <category label="salesv-1277" />

 <category label="salesv-1278" />

 <category label="salesv-1331" />

</categories>

<dataset seriesName="l1">

 <set value="0" />

 <set value="2" />

 <set value="1" />

 <set value="1" />

</dataset>

<dataset seriesName="l2">

 <set value="1" />

 <set value="2" />

 <set value="3" />

 <set value="0" />

</dataset>

<dataset seriesName="l3">

 <set value="0" />

 <set value="0" />

 <set value="0" />

 <set value="0" />

</dataset>

<dataset seriesName="l4">

 <set value="0" />

 <set value="0" />

 <set value="0" />

 <set value="1" />

</dataset>

<dataset seriesName="returns">

 <set value="0" />

 <set value="0" />

 <set value="0" />

 <set value="0" />

</dataset>

</chart>

Share this post


Link to post
Share on other sites

After much trial and error, I narrowed it down to this

 yAxisMaxValue="Jobs"

Obviously, it expects an integer value here.... my bad.

But, seriously, there should be better error messages - anything in fact - to point out mistakes like this. I beat my head against the screen for two hours trying to find this problem.

-AC

Share this post


Link to post
Share on other sites
Guest Rajroop

Hi,

 

 

 

I earnestly apologize for the inconvenience caused.

 

 

 

We have made a note of your suggestion and put it on our wishlist. :blink:

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this