Hello,
Thanks for your support on my previous issue. A new one has arisen! The render_chart method does not work for me when I try to use percent chart width and height. Ex:
<div id=superTestChart>Super Test Chart will load here!</div>
<% str_xml = render :file=>"overallstats/sampledata" %>
<% render_chart '/Fusioncharts/MSLine.swf', '', str_xml, 'sampleChartSuper', '100%', '50%', 'superTestChart', false, false %>
produces something like:
<!-- START Script Block for Chart sampleChartSuper --> <script type='text/javascript'> var chart_sampleChartSuper=new FusionCharts({"swfUrl":"/Fusioncharts/MSLine.swf","id":"sampleChartSuper","width":"100%","height":"50%","debugMode":"0","registerWithJS":"0","dataSource":"LOTS OF XML HERE, SNIPPED FOR BREVITY","dataFormat":"xml","detectFlashVersion":"0","autoInstallRedirect":"0","renderAt":"superTestChart"}).render(); </script> <!-- END Script Block for Chart sampleChartSuper -->
This will not load any data. Any suggestions?