Sign in to follow this  
Longview

Pass Javascript Variable to XML

Recommended Posts

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

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

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this