JezLisle
Members-
Content count
16 -
Joined
-
Last visited
About JezLisle
-
Rank
Junior Member
-
I have found the problem, it was down to the naming conventions of the Arrays in both charts, as they were named the same the second chart was always picking data from the first chart. Jez
-
Have you been able to replicate the problem? I can't understand why a second, third chart would pick up the data set from chart1 and not include the apropriate data set even though they are split out as 2 data sets Jez
-
Thanks for the response, my problem isnt with displaying multiple graphs, the problem is displaying correct data on the second chart. If you run the code and display the charts, look at the second chart and you will see that for some reason it populates some of the data from Chart1 into chart2 and I dont understand why? Jez
-
Can anyone help with this issue? Thanks, Jez
-
From this generated code I have posted, how can I fix the issue of showing multiple charts?
-
Have you had a chance to look over the generated XML. How can I fix the problem?
-
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-type" content="text/html; charset=utf-8" /> <title>InformationTeam</title> <link rel="stylesheet" href="css/style.css" type="text/css" media="all" /> <script LANGUAGE="Javascript" SRC="js/FusionCharts.js"></script> <script LANGUAGE="Javascript" SRC="js/FusionChartsExportComponent.js"></script> </head> <body> <!-- Page --> <div id="page"> <!-- Header --> <div id="header"> <!-- Navigation --> <div id="navigation"> <ul> <li class="active"><a href="#">Home</a></li> <li><a href="#">Page2</a></li> <li><a href="#">Page3</a></li> <li><a href="#">Page4</a></li> <li class="last"><a href="#">Page5</a></li> </ul> </div> <!-- / Navigation --> <h1><a href="#">InformationTeam</a></h1> </div> <!-- / Header --> <div id="reporting"> <div class="bg"> <div class="cnt"> <!-- START Code Block for Chart ReferralsByMonthByConsortia --> <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="900" height="230" id="ReferralsByMonthByConsortia"> <param name="allowScriptAccess" value="always" /> <param name="movie" value="charts/MSColumn3D.swf"/> <param name="FlashVars" value="&chartWidth=900&chartHeight=230&debugMode=0&dataXML=<chart caption='Referrals By Month' xAxisName='Months' yAxisName='Counts' bgAlpha='0,0' canvasBgAlpha='0' numberPrefix='' formatNumberScale='1' rotateValues='1' placeValuesInside='1' decimals='0' ><categories><category name='Jan' /><category name='' /><category name='' /><category name='' /><category name='' /><category name='' /><category name='' /><category name='' /><category name='Feb' /><category name='' /><category name='' /><category name='' /><category name='' /><category name='' /><category name='' /><category name='' /><category name='Mar' /><category name='' /><category name='' /><category name='' /><category name='' /><category name='' /><category name='' /><category name='' /><category name='Apr' /><category name='' /><category name='' /><category name='' /><category name='' /><category name='' /><category name='' /><category name='' /><category name='May' /><category name='' /><category name='' /><category name='' /><category name='' /><category name='' /><category name='' /><category name='' /><category name='Jun' /><category name='' /><category name='' /><category name='' /><category name='' /><category name='' /><category name='' /><category name='' /><category name='Jul' /><category name='' /><category name='' /><category name='' /><category name='' /><category name='' /><category name='' /><category name='' /><category name='Aug' /><category name='' /><category name='' /><category name='' /><category name='' /><category name='' /><category name='' /><category name='' /><category name='Sep' /><category name='' /><category name='' /><category name='' /><category name='' /><category name='' /><category name='' /><category name='' /></categories><dataset seriesName='Boston'><set value='' /><set value='36' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='38' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='62' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='49' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='45' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='58' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='68' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='45' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='55' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /></dataset><dataset seriesName='East'><set value='' /><set value='' /><set value='46' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='50' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='72' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='47' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='71' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='84' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='93' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='93' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='84' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /></dataset><dataset seriesName='SouthWest'><set value='' /><set value='' /><set value='' /><set value='67' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='65' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='105' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='68' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='74' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='94' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='101' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='94' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='117' /><set value='' /><set value='' /><set value='' /><set value='' /></dataset><dataset seriesName='West'><set value='' /><set value='' /><set value='' /><set value='' /><set value='300' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='269' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='274' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='255' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='221' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='400' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='441' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='408' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='412' /><set value='' /><set value='' /><set value='' /></dataset><dataset seriesName='Coast'><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='50' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='79' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='90' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='66' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='81' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='137' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='176' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='190' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='209' /><set value='' /><set value='' /></dataset><dataset seriesName='Holland'><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='45' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='37' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='63' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='41' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='43' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='75' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='50' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='59' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='60' /><set value='' /></dataset><dataset seriesName='Wellcomm'><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='12' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='23' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='25' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='20' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='28' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='19' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='17' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='17' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='29' /></dataset></chart>" /> <param name="quality" value="high" /> <embed src="charts/MSColumn3D.swf" FlashVars="&chartWidth=900&chartHeight=230&debugMode=0&dataXML=<chart caption='Referrals By Month' xAxisName='Months' yAxisName='Counts' bgAlpha='0,0' canvasBgAlpha='0' numberPrefix='' formatNumberScale='1' rotateValues='1' placeValuesInside='1' decimals='0' ><categories><category name='Jan' /><category name='' /><category name='' /><category name='' /><category name='' /><category name='' /><category name='' /><category name='' /><category name='Feb' /><category name='' /><category name='' /><category name='' /><category name='' /><category name='' /><category name='' /><category name='' /><category name='Mar' /><category name='' /><category name='' /><category name='' /><category name='' /><category name='' /><category name='' /><category name='' /><category name='Apr' /><category name='' /><category name='' /><category name='' /><category name='' /><category name='' /><category name='' /><category name='' /><category name='May' /><category name='' /><category name='' /><category name='' /><category name='' /><category name='' /><category name='' /><category name='' /><category name='Jun' /><category name='' /><category name='' /><category name='' /><category name='' /><category name='' /><category name='' /><category name='' /><category name='Jul' /><category name='' /><category name='' /><category name='' /><category name='' /><category name='' /><category name='' /><category name='' /><category name='Aug' /><category name='' /><category name='' /><category name='' /><category name='' /><category name='' /><category name='' /><category name='' /><category name='Sep' /><category name='' /><category name='' /><category name='' /><category name='' /><category name='' /><category name='' /><category name='' /></categories><dataset seriesName='Boston'><set value='' /><set value='36' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='38' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='62' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='49' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='45' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='58' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='68' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='45' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='55' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /></dataset><dataset seriesName='East'><set value='' /><set value='' /><set value='46' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='50' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='72' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='47' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='71' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='84' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='93' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='93' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='84' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /></dataset><dataset seriesName='SouthWest'><set value='' /><set value='' /><set value='' /><set value='67' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='65' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='105' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='68' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='74' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='94' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='101' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='94' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='117' /><set value='' /><set value='' /><set value='' /><set value='' /></dataset><dataset seriesName='West'><set value='' /><set value='' /><set value='' /><set value='' /><set value='300' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='269' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='274' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='255' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='221' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='400' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='441' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='408' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='412' /><set value='' /><set value='' /><set value='' /></dataset><dataset seriesName='Coast'><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='50' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='79' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='90' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='66' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='81' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='137' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='176' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='190' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='209' /><set value='' /><set value='' /></dataset><dataset seriesName='Holland'><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='45' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='37' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='63' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='41' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='43' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='75' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='50' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='59' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='60' /><set value='' /></dataset><dataset seriesName='Wellcomm'><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='12' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='23' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='25' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='20' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='28' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='19' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='17' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='17' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='29' /></dataset></chart>" quality="high" width="900" height="230" name="ReferralsByMonthByConsortia" allowScriptAccess="always" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /> </object> <!-- END Code Block for Chart ReferralsByMonthByConsortia --> </div> <div class="cnt2"> <!-- START Code Block for Chart ReferralsAgainstDischarges --> <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="430" height="230" id="ReferralsAgainstDischarges"> <param name="allowScriptAccess" value="always" /> <param name="movie" value="charts/MSColumn3D.swf"/> <param name="FlashVars" value="&chartWidth=430&chartHeight=230&debugMode=0&dataXML=<chart caption='Referrals Against Discharges' xAxisName='Months' yAxisName='Counts' bgAlpha='0,0' canvasBgAlpha='0' showExportDataMenuItem='1' exportEnabled='1' exportHandler='class/exporter' exportAtClient='0' exportAction='download' exportTargetWindow='_blank' exportFileName='MyFileName' numberPrefix='' formatNumberScale='1' rotateValues='1' placeValuesInside='1' decimals='0' ><categories><category name='Jan' /><category name='' /><category name='' /><category name='Feb' /><category name='' /><category name='' /><category name='Mar' /><category name='' /><category name='Feb' /><category name='Apr' /><category name='' /><category name='' /><category name='May' /><category name='' /><category name='' /><category name='Jun' /><category name='Mar' /><category name='' /><category name='Jul' /><category name='' /><category name='' /><category name='Aug' /><category name='' /><category name='' /><category name='Sep' /><category name='' /><category name='' /><category name='' /><category name='' /><category name='' /><category name='' /><category name='' /><category name='May' /><category name='' /><category name='' /><category name='' /><category name='' /><category name='' /><category name='' /><category name='' /><category name='Jun' /><category name='' /><category name='' /><category name='' /><category name='' /><category name='' /><category name='' /><category name='' /><category name='Jul' /><category name='' /><category name='' /><category name='' /><category name='' /><category name='' /><category name='' /><category name='' /><category name='Aug' /><category name='' /><category name='' /><category name='' /><category name='' /><category name='' /><category name='' /><category name='' /><category name='Sep' /><category name='' /><category name='' /><category name='' /><category name='' /><category name='' /><category name='' /><category name='' /></categories><dataset seriesName='Referrals'><set value='' /><set value='557' /><set value='' /><set value='' /><set value='561' /><set value='' /><set value='' /><set value='694' /><set value='' /><set value='38' /><set value='549' /><set value='' /><set value='' /><set value='569' /><set value='' /><set value='' /><set value='878' /><set value='62' /><set value='' /><set value='955' /><set value='' /><set value='' /><set value='918' /><set value='' /><set value='' /><set value='970' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='45' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='58' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='68' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='45' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='55' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /></dataset><dataset seriesName='Discharges'><set value='' /><set value='' /><set value='394' /><set value='' /><set value='' /><set value='450' /><set value='' /><set value='' /><set value='627' /><set value='' /><set value='50' /><set value='424' /><set value='' /><set value='' /><set value='499' /><set value='' /><set value='' /><set value='657' /><set value='72' /><set value='' /><set value='843' /><set value='' /><set value='' /><set value='766' /><set value='' /><set value='' /><set value='836' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='71' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='84' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='93' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='93' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='84' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /></dataset></chart>" /> <param name="quality" value="high" /> <embed src="charts/MSColumn3D.swf" FlashVars="&chartWidth=430&chartHeight=230&debugMode=0&dataXML=<chart caption='Referrals Against Discharges' xAxisName='Months' yAxisName='Counts' bgAlpha='0,0' canvasBgAlpha='0' showExportDataMenuItem='1' exportEnabled='1' exportHandler='class/exporter' exportAtClient='0' exportAction='download' exportTargetWindow='_blank' exportFileName='MyFileName' numberPrefix='' formatNumberScale='1' rotateValues='1' placeValuesInside='1' decimals='0' ><categories><category name='Jan' /><category name='' /><category name='' /><category name='Feb' /><category name='' /><category name='' /><category name='Mar' /><category name='' /><category name='Feb' /><category name='Apr' /><category name='' /><category name='' /><category name='May' /><category name='' /><category name='' /><category name='Jun' /><category name='Mar' /><category name='' /><category name='Jul' /><category name='' /><category name='' /><category name='Aug' /><category name='' /><category name='' /><category name='Sep' /><category name='' /><category name='' /><category name='' /><category name='' /><category name='' /><category name='' /><category name='' /><category name='May' /><category name='' /><category name='' /><category name='' /><category name='' /><category name='' /><category name='' /><category name='' /><category name='Jun' /><category name='' /><category name='' /><category name='' /><category name='' /><category name='' /><category name='' /><category name='' /><category name='Jul' /><category name='' /><category name='' /><category name='' /><category name='' /><category name='' /><category name='' /><category name='' /><category name='Aug' /><category name='' /><category name='' /><category name='' /><category name='' /><category name='' /><category name='' /><category name='' /><category name='Sep' /><category name='' /><category name='' /><category name='' /><category name='' /><category name='' /><category name='' /><category name='' /></categories><dataset seriesName='Referrals'><set value='' /><set value='557' /><set value='' /><set value='' /><set value='561' /><set value='' /><set value='' /><set value='694' /><set value='' /><set value='38' /><set value='549' /><set value='' /><set value='' /><set value='569' /><set value='' /><set value='' /><set value='878' /><set value='62' /><set value='' /><set value='955' /><set value='' /><set value='' /><set value='918' /><set value='' /><set value='' /><set value='970' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='45' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='58' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='68' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='45' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='55' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /></dataset><dataset seriesName='Discharges'><set value='' /><set value='' /><set value='394' /><set value='' /><set value='' /><set value='450' /><set value='' /><set value='' /><set value='627' /><set value='' /><set value='50' /><set value='424' /><set value='' /><set value='' /><set value='499' /><set value='' /><set value='' /><set value='657' /><set value='72' /><set value='' /><set value='843' /><set value='' /><set value='' /><set value='766' /><set value='' /><set value='' /><set value='836' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='71' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='84' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='93' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='93' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='84' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /></dataset></chart>" quality="high" width="430" height="230" name="ReferralsAgainstDischarges" allowScriptAccess="always" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /> </object> <!-- END Code Block for Chart ReferralsAgainstDischarges --> </div> </div> </div> <!-- Footer --> <div id="footer"> </div> <!-- / Footer --> </div> <!-- / Page --> </body> </html>
-
I am still struggling with this, has anyone any ideas how I can resolve it? Thanks
-
Can anyone help with this? It's difficult trying to understand the online documentation and think how it's fits to your own individual need and this being the only forum for advice
-
I had already tried that, and was experiencing the same issue. 2 charts render ok, but the second chart displays data from the first data set and other data that doesn't match what it should. If I was to take the first chart off the page then the second chart renders the correct data set. It's only when I put them both together it doesnt render correctly Jez
-
I am putting multiple charts on a single file. I have created 2 graphs so far that render fine. The problem is that for some reason the second graph doesnt plot correctly. It seems to pick up some of the data set from the 1st chart and I dont know why. Below is my code Where have I gone wrong? BuildGraph1.php <?php include("connection.php"); include("sql.php"); $sql = $strsql; $rs=odbc_exec($cnn,$sql); if (!$rs) {exit("Error in SQL");} $i = 0; while (odbc_fetch_row($rs)) { $monthname =odbc_result($rs,"MonthName"); $referral =odbc_result($rs,"Referrals"); $discharge =odbc_result($rs,"Discharges"); $arrData[$i++]['1'] = $monthname; $arrData[$i++]['2'] = $referral; $arrData[$i++]['3'] = $discharge; } //Initialize <chart> element $strbuildgraph1xml = "<chart caption='Referrals Against Discharges' xAxisName='Months' yAxisName='Counts' bgAlpha='0,0' canvasBgAlpha='0' showExportDataMenuItem='1' exportEnabled='1' exportHandler='class/exporter' exportAtClient='0' exportAction='download' exportTargetWindow='_blank' exportFileName='MyFileName' numberPrefix='' formatNumberScale='1' rotateValues='1' placeValuesInside='1' decimals='0' >"; //Initialize <categories> element - necessary to generate a multi-series chart $strCategories = "<categories>"; //Initiate <dataset> elements $strDataCurr = "<dataset seriesName='Referrals'>"; $strDataPrev = "<dataset seriesName='Discharges'>"; //Iterate through the data foreach ($arrData as $arSubData) { //Append <category name='...' /> to strCategories $strCategories .= "<category name='" . $arSubData['1'] . "' />"; //Add <set value='...' /> to both the datasets $strDataCurr .= "<set value='" . $arSubData['2'] . "' />"; $strDataPrev .= "<set value='" . $arSubData['3'] . "' />"; } //Close <categories> element $strCategories .= "</categories>"; //Close <dataset> elements $strDataCurr .= "</dataset>"; $strDataPrev .= "</dataset>"; //Assemble the entire XML now $strbuildgraph1xml .= $strCategories . $strDataCurr . $strDataPrev . "</chart>"; odbc_close($cnn); ?> BuildGraph2.php <?php include("connection.php"); include("sql2.php"); $sql = $strsqlconsortia; $rs=odbc_exec($cnn,$sql); if (!$rs) {exit("Error in SQL");} $i = 0; while (odbc_fetch_row($rs)) { $monthname =odbc_result($rs,"MonthName"); $boston =odbc_result($rs,"Boston"); $eastlindsey =odbc_result($rs,"EastLindsey"); $lincolnshiresouthwest =odbc_result($rs,"LincolnshireSouthWest"); $lincolnshirewest =odbc_result($rs,"LincolnshireWest"); $skegnesscoast =odbc_result($rs,"SkegnessCoast"); $southholland =odbc_result($rs,"SouthHolland"); $wellcomm =odbc_result($rs,"Wellcomm"); $arrData[$i++][1] = $monthname; $arrData[$i++][2] = $boston; $arrData[$i++][3] = $eastlindsey; $arrData[$i++][4] = $lincolnshiresouthwest; $arrData[$i++][5] = $lincolnshirewest; $arrData[$i++][6] = $skegnesscoast; $arrData[$i++][7] = $southholland; $arrData[$i++][8] = $wellcomm; } //Initialize <chart> element $strbuildgraph2xml = "<chart caption='Referrals By Month' xAxisName='Months' yAxisName='Counts' bgAlpha='0,0' canvasBgAlpha='0' numberPrefix='' formatNumberScale='1' rotateValues='1' placeValuesInside='1' decimals='0' >"; //Initialize <categories> element - necessary to generate a multi-series chart $strCategories = "<categories>"; //Initiate <dataset> elements $strDataRow1 = "<dataset seriesName='Boston'>"; $strDataRow2 = "<dataset seriesName='EastLindsey'>"; $strDataRow3 = "<dataset seriesName='LincolnshireSouthWest'>"; $strDataRow4 = "<dataset seriesName='LincolnshireWest'>"; $strDataRow5 = "<dataset seriesName='SkegnessCoast'>"; $strDataRow6 = "<dataset seriesName='SouthHolland'>"; $strDataRow7 = "<dataset seriesName='Wellcomm'>"; //Iterate through the data // as $arSubData //while ($arrData as $arSubData) { foreach ($arrData as $arSubData) { //Append <category name='...' /> to strCategories $strCategories .= "<category name='" . $arSubData[1] . "' />"; //Add <set value='...' /> to both the datasets $strDataRow1 .= "<set value='" . $arSubData[2] . "' />"; $strDataRow2 .= "<set value='" . $arSubData[3] . "' />"; $strDataRow3 .= "<set value='" . $arSubData[4] . "' />"; $strDataRow4 .= "<set value='" . $arSubData[5] . "' />"; $strDataRow5 .= "<set value='" . $arSubData[6] . "' />"; $strDataRow6 .= "<set value='" . $arSubData[7] . "' />"; $strDataRow7 .= "<set value='" . $arSubData[8] . "' />"; } //Close <categories> element $strCategories .= "</categories>"; //Close <dataset> elements $strDataRow1 .= "</dataset>"; $strDataRow2 .= "</dataset>"; $strDataRow3 .= "</dataset>"; $strDataRow4 .= "</dataset>"; $strDataRow5 .= "</dataset>"; $strDataRow6 .= "</dataset>"; $strDataRow7 .= "</dataset>"; //Assemble the entire XML now $strbuildgraph2xml .= $strCategories . $strDataRow1 . $strDataRow2 . $strDataRow3 . $strDataRow4 . $strDataRow5 . $strDataRow6 . $strDataRow7 . "</chart>"; odbc_close($cnn); ?> This is my render file pulling both php files above together <?php // Turn off all error reporting error_reporting(0); include("class/FusionCharts.php"); include("buildgraph1.php"); include("buildgraph2.php"); ?> <!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8" /> <title></title> <link rel="stylesheet" href="css/style.css" type="text/css" media="all" /> </head> <body> <div class="cnt"> <?php $strXML = $strbuildgraph1xml; //Create the chart - MS Column 3D Chart with data contained in strXML echo renderChartHTML("charts/MSColumn3D.swf", "", $strXML, "ReferralsAgainstDischarges", 430, 230, false, true); ?> </div> <div class="cnt2"> <?php $strXML1 = $strbuildgraph2xml; //Create the chart - MS Column 3D Chart with data contained in strXML echo renderChartHTML("charts/MSColumn3D.swf", "", $strXML1, "ReferralsByMonthByConsortia", 900, 230, false, false); ?> </div> </body> </html>
-
I am using the Free version from the website
-
I have tried it with the different handlers within the folder. Still I am having trouble. What else could the issue be?
-
That is where I got all the code from to do the Export as image, after reading the Online docs. My problem as mentioned before is that I have followed what has been done in the sample code and the online docs and still I dont get my own code to do what the sample does. This is why I have posted to see where I have gone wrong?
-
I have used these online docs, and still having issues being able to save. <?php $sql = $strsql; $rs=odbc_exec($cnn,$sql); if (!$rs) {exit("Error in SQL");} $i = 0; while (odbc_fetch_row($rs)) { $monthname =odbc_result($rs,"MonthName"); $referral =odbc_result($rs,"Referrals"); $discharge =odbc_result($rs,"Discharges"); $arrData[$i++][1] = $monthname; $arrData[$i++][2] = $referral; $arrData[$i++][3] = $discharge; } //Initialize <chart> element $strXML = "<chart caption='Referrals Against Discharges' showExportDataMenuItem='1' exportEnabled='1' exportHandler='class/exporter' exportAtClient='0' exportAction='download' exportTargetWindow='_blank' exportFileName='MyFileName' xAxisName='Months' yAxisName='Counts' numberPrefix='' formatNumberScale='1' rotateValues='1' placeValuesInside='1' decimals='0' >"; //Initialize <categories> element - necessary to generate a multi-series chart $strCategories = "<categories>"; //Initiate <dataset> elements $strDataCurr = "<dataset seriesName='Referrals'>"; $strDataPrev = "<dataset seriesName='Discharges'>"; //Iterate through the data foreach ($arrData as $arSubData) { //Append <category name='...' /> to strCategories $strCategories .= "<category name='" . $arSubData[1] . "' />"; //Add <set value='...' /> to both the datasets $strDataCurr .= "<set value='" . $arSubData[2] . "' />"; $strDataPrev .= "<set value='" . $arSubData[3] . "' />"; } //Close <categories> element $strCategories .= "</categories>"; //Close <dataset> elements $strDataCurr .= "</dataset>"; $strDataPrev .= "</dataset>"; //Assemble the entire XML now $strXML .= $strCategories . $strDataCurr . $strDataPrev . "</chart>"; ?> <?php //Create the chart - MS Column 3D Chart with data contained in strXML echo renderChart("charts/MSColumn3D.swf", "", $strXML, "ReferralsAgainstDischarges", 600, 300, false, false); ?>