warwickmc

Members
  • Content count

    3
  • Joined

  • Last visited

Everything posted by warwickmc

  1. Hi guys, We're using the fusioncharts paid version and have a requirement to be able to display charts via iphone/ipad. The flash version works perfectly, however when we try and use setrenderer('javascript') the page completely locks up, and periodly bring up 'do you wish to stop this script' messages (In firefox, also doesnt render in other browsers). Firebug displays an error message 'Max Stack Size Exceeded'. Here is the code that is causing this issue. It is running through the FusionCharts.php provided in the .zip that is placed within a drupal page if that helps. The XML is provided via the XMLstr as opposed to a straight up .xml file. <div id="[url=""]SalesDiv[/url]">Chart</div> <script type="[url=""]text/javascript[/url]" ><!-- // Instantiate the Chart if ( FusionCharts("Sales") && FusionCharts("Sales").dispose ) FusionCharts("Sales").dispose(); var chart_Sales = new FusionCharts( { "swfUrl" : "<path to fusioncharts>/Charts/MSColumnLine3D.swf", "width" : "900", "height" : "400", "renderAt" : "SalesDiv", "dataFormat" : "xml", "id" : "Sales", "wMode" : "transparent", "dataSource" : "<chart caption='' xAxisName='' yAxisName='%' yAxisMaxValue='100' ><categories><category label='Jul' /><category label='Aug' /><category label='Sep' /><category label='Oct' /><category label='Nov' /><category label='Dec' /><category label='Jan' /><category label='Feb' /><category label='Mar' /><category label='Apr' /><category label='May' /><category label='Jun' /></categories><dataset seriesName='Actual YTD' showValues='0'><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='40' /><set value='56' /><set value='' /><set value='' /><set value='' /></dataset><dataset seriesName='Bus Plan YTD' ParentYAxis='d' showValues='0'><set value='3.5' /><set value='6.3' /><set value='10.5' /><set value='15.4' /><set value='27' /><set value='39.1' /><set value='50.5' /><set value='59.7' /><set value='64' /><set value='77' /><set value='90' /><set value='100' /></dataset><dataset seriesName='Stretch' ParentYAxis='d' showValues='0'><set value='7' /><set value='13' /><set value='17' /><set value='25' /><set value='35' /><set value='46' /><set value='60' /><set value='68' /><set value='74' /><set value='90' /><set value='100' /><set value='100' /></dataset></chart>" } ).render(); // --></script> <!-- END Script Block for Chart Sales --> </div> Any light you could shed on this would be much appreciated.
  2. Browser Freezes When Rendering In Javascript

    Hi there, I discovered that this issue is caused by 2 versions of jQuery being called at the same time. As i'm using drupal the older version of jQuery is essential (it's 1.3.2). Is there any chance of using an alias for the fusioncharts jQuery? var $fusioncharts = jQuery.noConflict(); $fusioncharts(document).ready(function(){}....blah I had a quick look at the fusioncharts js, but it's optimised which makes it fairly difficult to assess how complex that job would be. Regards
  3. Browser Freezes When Rendering In Javascript

    Hi there, Thanks for the tip, i've adjusted the XML, still with the same result however. I've run the page through chrome to pull out the exact JS error message, which is as follows: Uncaught RangeError: Maximum call stack size exceeded o.extend.o.fn.extend o.extend.o.fn.extend o.extend.o.fn.extend o.extend.o.fn.extend o.extend.o.fn.extend o.extend.o.fn.extend o.extend.o.fn.extend o.extend.o.fn.extend o.extend.o.fn.extend o.extend.o.fn.extend o.extend.o.fn.extend o.extend.o.fn.extend o.extend.o.fn.extend o.extend.o.fn.extend o.extend.o.fn.extend o.extend.o.fn.extend o.extend.o.fn.extend o.extend.o.fn.extend o.extend.o.fn.extend o.extend.o.fn.extend o.extend.o.fn.extend o.extend.o.fn.extend o.extend.o.fn.extend o.extend.o.fn.extend o.extend.o.fn.extend o.extend.o.fn.extend o.extend.o.fn.extend o.extend.o.fn.extend o.extend.o.fn.extend o.extend.o.fn.extend o.extend.o.fn.extend o.extend.o.fn.extend o.extend.o.fn.extend o.extend.o.fn.extend o.extend.o.fn.extend o.extend.o.fn.extend o.extend.o.fn.extend o.extend.o.fn.extend o.extend.o.fn.extend o.extend.o.fn.extend o.extend.o.fn.extend o.extend.o.fn.extend o.extend.o.fn.extend o.extend.o.fn.extend o.extend.o.fn.extend o.extend.o.fn.extend o.extend.o.fn.extend o.extend.o.fn.extend o.extend.o.fn.extend o.extend.o.fn.extend o.extend.o.fn.extend o.extend.o.fn.extend o.extend.o.fn.extend o.extend.o.fn.extend o.extend.o.fn.extend o.extend.o.fn.extend o.extend.o.fn.extend o.extend.o.fn.extend o.extend.o.fn.extend o.extend.o.fn.extend o.extend.o.fn.extend o.extend.o.fn.extend o.extend.o.fn.extend o.extend.o.fn.extend o.extend.o.fn.extend o.extend.o.fn.extend o.extend.o.fn.extend o.extend.o.fn.extend o.extend.o.fn.extend o.extend.o.fn.extend o.extend.o.fn.extend o.extend.o.fn.extend o.extend.o.fn.extend o.extend.o.fn.extend o.extend.o.fn.extend o.extend.o.fn.extend o.extend.o.fn.extend o.extend.o.fn.extend o.extend.o.fn.extend o.extend.o.fn.extend o.extend.o.fn.extend o.extend.o.fn.extend o.extend.o.fn.extend o.extend.o.fn.extend o.extend.o.fn.extend o.extend.o.fn.extend o.extend.o.fn.extend o.extend.o.fn.extend o.extend.o.fn.extend o.extend.o.fn.extend o.extend.o.fn.extend o.extend.o.fn.extend o.extend.o.fn.extend o.extend.o.fn.extend o.extend.o.fn.extend o.extend.o.fn.extend o.extend.o.fn.extend o.extend.o.fn.extend o.extend.o.fn.extend o.extend.o.fn.extend o.extend.o.fn.extend o.extend.o.fn.extend o.extend.o.fn.extend o.extend.o.fn.extend o.extend.o.fn.extend o.extend.o.fn.extend o.extend.o.fn.extend o.extend.o.fn.extend o.extend.o.fn.extend o.extend.o.fn.extend o.extend.o.fn.extend o.extend.o.fn.extend o.extend.o.fn.extend o.extend.o.fn.extend o.extend.o.fn.extend o.extend.o.fn.extend o.extend.o.fn.extend o.extend.o.fn.extend o.extend.o.fn.extend o.extend.o.fn.extend o.extend.o.fn.extend o.extend.o.fn.extend o.extend.o.fn.extend o.extend.o.fn.extend o.extend.o.fn.extend o.extend.o.fn.extend o.extend.o.fn.extend o.extend.o.fn.extend o.extend.o.fn.extend o.extend.o.fn.extend o.extend.o.fn.extend o.extend.o.fn.extend o.extend.o.fn.extend o.extend.o.fn.extend o.extend.o.fn.extend o.extend.o.fn.extend o.extend.o.fn.extend o.extend.o.fn.extend o.extend.o.fn.extend o.extend.o.fn.extend o.extend.o.fn.extend o.extend.o.fn.extend o.extend.o.fn.extend o.extend.o.fn.extend o.extend.o.fn.extend o.extend.o.fn.extend o.extend.o.fn.extend o.extend.o.fn.extend o.extend.o.fn.extend o.extend.o.fn.extend o.extend.o.fn.extend o.extend.o.fn.extend o.extend.o.fn.extend o.extend.o.fn.extend o.extend.o.fn.extend o.extend.o.fn.extend o.extend.o.fn.extend o.extend.o.fn.extend o.extend.o.fn.extend o.extend.o.fn.extend o.extend.o.fn.extend o.extend.o.fn.extend o.extend.o.fn.extend o.extend.o.fn.extend o.extend.o.fn.extend o.extend.o.fn.extend o.extend.o.fn.extend o.extend.o.fn.extend o.extend.o.fn.extend o.extend.o.fn.extend o.extend.o.fn.extend o.extend.o.fn.extend o.extend.o.fn.extend o.extend.o.fn.extend o.extend.o.fn.extend o.extend.o.fn.extend o.extend.o.fn.extend o.extend.o.fn.extend o.extend.o.fn.extend o.extend.o.fn.extend o.extend.o.fn.extend o.extend.o.fn.extend o.extend.o.fn.extend o.extend.o.fn.extend o.extend.o.fn.extend o.extend.o.fn.extend o.extend.o.fn.extend o.extend.o.fn.extend o.extend.o.fn.extend o.extend.o.fn.extend o.extend.o.fn.extend o.extend.o.fn.extend o.extend.o.fn.extend o.extend.o.fn.extend o.extend.o.fn.extend o.extend.o.fn.extend o.extend.o.fn.extend o.extend.o.fn.extend o.extend.o.fn.extend o.extend.o.fn.extend Hopefully this sheds some light on what might be happening with the setup.