FusionCharts Forum: The chart is not rendered if % is set into dataUrl of chart - FusionCharts Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

The chart is not rendered if % is set into dataUrl of chart

#1 User is offline   csvram 

  • Forum Newbie
  • Group: Members
  • Posts: 2
  • Joined: 14-September 09

Posted 14 September 2009 - 09:29 AM

I am using the below snippet to generate the chart with the xml data coming from the url:



var chart = new FusionCharts("../Charts/FCF_MSLine.swf", "ChartId", "600", "350");

chart.setDataURL("http:///cgi-bin/tmp/simp.cgi?EN=;ERR=esfgen%;SDate=20090908;EDate=20090909;sortorder=D;Action=FusionChartXML" );

chart.render("chartdiv");



As in the above case when there is a % or %25 in the dataurl, then fusion chart changes the url as shown below(by removing %; from the url) and executes it. Since the data in the URL gets changed, the chart does not get XML data to generate it.

http:///cgi-bin/tmp/simp.cgi?EN=;ERR=esfgen%;SDate=20090908;EDate=20090909;sortorder=D;Action=FusionChartXML"

to

http:///cgi-bin/tmp/simp.cgi?EN=;ERR=esfgenSDate=20090908;EDate=20090909;sortorder=D;Action=FusionChartXML"



When % or %25 is not there in the url then the URL is correct and chart gets rendered properly.

Please let me know if there is any way to overcome this issue.



Thanks,

Venkat
0

Other Replies To This Topic

#2 User is offline   csvram 

  • Forum Newbie
  • Group: Members
  • Posts: 2
  • Joined: 14-September 09

Posted 15 September 2009 - 12:36 AM

I found out the solution for the issue. If the url points to %2525 instead of %25 then it works.



Thanks,

Venkat
0

Other Replies To This Topic

#3 User is offline   Madhumita 

  • Supreme Being
  • PipPipPipPipPipPipPipPip
  • Group: Members
  • Posts: 1434
  • Joined: 04-September 09

Posted 15 September 2009 - 12:50 AM

Hello Venkat,

Welcome to the FusionCharts Forum.:)

It's great that you found the solution.

Happy FusionCharting.

Regards,
Madhumita Chakraborty

Follow us on Twitter :)
0

Other Replies To This Topic

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic