Nate23VT

Members
  • Content count

    5
  • Joined

  • Last visited

About Nate23VT

  • Rank
    Forum Newbie
  1. Converting PHP Charts to Javascript

    I was able to download and verify that the dropbox file worked on my web instance. I investigated my issue some more and I have narrowed the issue down to the fact that the chart is loaded in an AJAX call. In fact, i found a similar discussion topic that does not appear to be answered: http://forum.fusioncharts.com/topic/13635-php-with-ajax/ If fusionCharts does not work after the content is rendered in AJAX then I will likely have to rework the page to remove the AJAX call. Thanks again for your help.
  2. Converting PHP Charts to Javascript

    Moonmi - thank you for the response. I am using 3.5 of the javascript file and 3.2.2 of the PHP class. The PHP file I am referencing is in a different folder as the latest version did not include it in the code. The dropbox link referenced above does not appear to be working. I removed the SWF reference from the rendercharts function but I was not exactly sure what to use for the chart type. I tried Pie2D but that did not work. The end result is still just a Div with the word 'Chart' in it.
  3. I have some old legacy FusionCharts that use the FusionCharts.php class that I am trying to convert to Javascript. My existing charts were rendered using the renderChartHTML function which appears to have been deprecated. I have converted this to the renderChart function and added the "FC_SetRenderer( "javascript" );" code. Now my charts do not render, and instead just output 'Chart' text. Here is my PHP code: include "FusionCharts.php"; FC_SetRenderer( "javascript" ); $strXML = "<chart caption='Time to Create Brief,{br} minutes' palette='3' animation='1' formatNumberScale='0' pieSliceDepth='30' showLegend='1' showLabels='0'>"; $strXML .= "<set label='0-4m' value='".$LessThan4."' link='javascript:TimetoSub04();'/>"; $strXML .= "<set label='5-15m' value='".$LessThan15."' link='javascript:TimetoSub515();;'/>"; $strXML .= "<set label='16-30m' value='".$LessThan30."' link='javascript:TimetoSub1630();'/>"; $strXML .= "<set label='>30m' value='".$GreaterThan30."' link='javascript:TimetoSub30up();'/>"; $strXML .= "</chart>"; echo renderChart("/Fusion/Charts/Charts/Pie2D.swf", "", $strXML, "TimeChart", 200, 200, false, true); I am not sure if it matters, but this page renders 8 different Pie charts, all with a unique ID. I have also tried using the jQuery code to convert it to Javascript and that also did not work. I am really scratching my head on this one but I feel liek it has to be something simple. Help!