Longview Report post Posted January 14, 2010 Is it possible to pass a Javascript variable into the setDataXML specifically the set value? For example is it possible to pass in a Javascript variable instead of the 100 below? Thanks Hoang Share this post Link to post Share on other sites
Guest Madhumita Report post Posted January 14, 2010 Hello, I'm afraid, no javascript variable can be passed in the value attribute in the xml. However, the link attribute can be used to call javascript functions. ref. - http://www.fusioncharts.com/docs/Contents/DrillDown/JavaScript.html Share this post Link to post Share on other sites
Longview Report post Posted January 18, 2010 Thanks for the reply Madhumita. Is there any way to make the set value more dynamic? I would like to do some simple math and set the chart value to the result of the simple math. Is that possible? Share this post Link to post Share on other sites
Guest Madhumita Report post Posted January 18, 2010 Hello, You can do that using javascript. In that case you have to use the dataXML method and build the XML using JavaScript functions. Then use the setDataXMl every time the data is changed However, FusionCharts are not real-time charts. FusionWidgets are real-time charts where you can dynamically update data without using the setDataXML method everytime. Share this post Link to post Share on other sites