Sign in to follow this  
mikeytag

Bug With Line 2D And Javascript Rendering

Recommended Posts

FusionCharts is awesome and I just recently upgraded to 3.2 with the hopes that our backend will now show charts to iPads and such. I seem to have a major issue though. Take a look at the attached images. The one that looks right is when the chart is rendered via Flash and the messed up one (the one without the line) is when I set the renderer to javascript. I have verified that all the files are in the directory and with Flash rendering everything works perfectly. Maybe I am doing something impossible for the JS render?

 

Here's the way I invoke the chart currently:

 

 

<script type="text/javascript" src="/charts/fusion_charts/Charts/FusionCharts.js"></script>
<script type="text/javascript">
FusionCharts.setCurrentRenderer('javascript');

var Daily_chart = new FusionCharts('/charts/fusion_charts/Charts/Line.swf','Daily','100%','250','0','1');
Daily_chart.setDataURL('%2Fchart_daily_stats_xml.php%3Fchart_col%3Dclicks');
Daily_chart.setTransparent(true);
Daily_chart.render('Daily_chart');
</script>

 

And here is my XML output:

 

<chart caption="" xAxisName="Day" yAxisName="Clicks" numberPrefix="" numberSuffix="" decimals="2" alternateHGridColor="417FFC" alternateHGridAlpha="20" divLineColor="417FFC" divLineAlpha="50" canvasBorderColor="666666" baseFontColor="000000" lineColor="659E37" showLabels="1" showValues="1" labelDisplay="WRAP" slantLabels="0">
<set label="" value=""/>
<set label="Fri Feb 4 2011" value="6942"/>
<set label="Sat Feb 5 2011" value="5443"/>
<set label="Sun Feb 6 2011" value="5324"/>
<set label="Mon Feb 7 2011" value="6388"/>
<set label="Tue Feb 8 2011" value="5808"/>
<set label="Wed Feb 9 2011" value="5828"/>
<set label="Thu Feb 10 2011" value="3513"/>
<set label="" value=""/>
<trendlines>
<line startValue="5606.5714285714" displayValue='Avg' color="AB0619" dashed="1" valueOnRight="1" toolText="Average: 5,606.57"/>
</trendlines>
</chart>

post-12197-069972500 1297382168_thumb.png

post-12197-040129000 1297382179_thumb.png

Share this post


Link to post
Share on other sites

I copied your code word for word, removed setTransparent(true), and it worked fine (in both SWF and JS).

 

You may have deeper issues with your registry, etc.

 

Good luck!

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