Render chart twice on the same page is giving error
FusionCharts Forum
Home       Members    Calendar    Who's On
Welcome Guest ( Login | Register )
        



Render chart twice on the same page is giving... Expand / Collapse
Author
Message
Posted 4/16/2008 7:25:58 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: Forum Members
Last Login: 4/17/2008 1:29:29 AM
Posts: 2, Visits: 9
Hi,

I am trying to execute renderchart twice in my code and except the chartid all the parameter are same. But only first chart is getting displayed and for the second one I am seeing "Error in displaying data".


echo renderChart("Code/FusionCharts/FCF_MSLine.swf", "", $strXML1, "sales1", 600, 350,false,false);
echo renderChart("Code/FusionCharts/FCF_MSLine.swf", "", $strXML1, "sales2", 600, 350,false,false);

but if I create one more copy of the same swf file in the same folder(say FCF_MSLine1.swf) and specify that for the second chart, then it is working fine.


echo renderChart("Code/FusionCharts/FCF_MSLine.swf", "", $strXML1, "sales1", 600, 350,false,false);
echo renderChart("Code/FusionCharts/FCF_MSLine1.swf", "", $strXML1, "sales2", 600, 350,false,false);


Please help me .


Regards,
Gurmeet

Post #5682
Posted 4/16/2008 7:54:18 AM
Supreme Being

Supreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme Being

Group: Forum Members
Last Login: 10/3/2008 11:59:51 PM
Posts: 328, Visits: 1,356
Hi Gurmeet,
   Due to swf Cache your problem was occurring. So please clear your swf cache. Please use this way, I thing this will help you for solve this problem.
  
echo renderChart("Code/FusionCharts/FCF_MSLine.swf?noCache=1", "", $strXML1, "sales1", 600, 350,false,false);
echo renderChart("Code/FusionCharts/FCF_MSLine.swf?noCache=2", "", $strXML1, "sales2", 600, 350,false,false);


Thanks,
Arindam

FusionCharts Team
www.fusioncharts.com

Post #5684
Posted 4/16/2008 8:59:05 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: Forum Members
Last Login: 4/17/2008 1:29:29 AM
Posts: 2, Visits: 9
Thanks Arindam, Its working fine now


Regards,
Gurmeet
Post #5698
« Prev Topic | Next Topic »


Permissions Expand / Collapse

All times are GMT -7:00, Time now is 2:41am


Execution: 0.141.