FusionCharts Forum: Chart not updating fully when calling updateChartXML - FusionCharts Forum

Jump to content

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

Chart not updating fully when calling updateChartXML Chart not updating fully when calling updateChartXML

#1 User is offline   AhmedH 

  • Forum Newbie
  • Group: Members
  • Posts: 5
  • Joined: 24-July 09

Posted 26 October 2009 - 11:31 AM

Hi Fusion Charts team,



I'm using the updateChartXML method to update the chart data retrieved from the database.



Initially I'm setting up all my chart objects on the page and setting the data XML to an empty chart.



Then when I call my update method to get the chart XML data and set it using the updateChartXML method, the chart fails to animate and teh tooltip values all come out to 0.



When I refresh the page and submit my data again (so updateChartXML gets called again), this time the chart displays fine.



If i replace the chart with a new fusion charts object and use the setDataXML method instead on running my update method it works ok??!!



Is this a Cacheing issue with the browser? If so, how do I get around it? In FC Pro I was using the DataURL method and I could set the noCache setting, but using the XML method how can I acheive this?
0

Other Replies To This Topic

#2 User is offline   AhmedH 

  • Forum Newbie
  • Group: Members
  • Posts: 5
  • Joined: 24-July 09

Posted 28 October 2009 - 04:56 AM

Its OK I've discovered where the issue was, I was intially setting the charts to just an empty graph
myChart.setDataXML('');




When I removed this line, it works fine and updates correctly the first time round.
0

Other Replies To This Topic

#3 User is offline   Basundhara Ghosal 

  • Supreme Being
  • PipPipPipPipPipPipPipPip
  • Group: Members
  • Posts: 2459
  • Joined: 15-September 09

Posted 28 October 2009 - 05:14 AM

Hi Ahmed,

Thank you for sharing your idea.

Happy FusionCharting. :)

Regards,

Basundhara Ghosal

Follow us on Twitter :D
0

Other Replies To This Topic

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