Sign in to follow this  
Guest Basundhara Ghosal

User-defined custom charting

Recommended Posts

Hi,

I'm trying to give the user the ability to type in a number and then once they submit, it'll alter the chart based on their input. For example, if the user types in 5 and presses a submit button, the chart would render a line with a slope of 5. On top of that, I'd want the existing other data plots to stay there.

I have an idea on how I plan to come up with the user-defined XML plot data with setDataXML, but it's taking the already charted data that's giving me issues.

Thanks,

clee33

Share this post


Link to post
Share on other sites

Thank you.

This helps but it doesn't allow me to use part of the existing chart. I'm plotting 3 data sets and want to use 2 existing and 1 custom defined. Can I read into the XML into a string and use that to create the full XML file?

Share this post


Link to post
Share on other sites
Guest Basundhara Ghosal

Hi,

In that case you just need to pass values to the 'value' attribute of that particular <set> element(here the third column) which you wish to take up values dynamically before re-rendering the chart.

Hope this helps. :)

Share this post


Link to post
Share on other sites
Guest Basundhara Ghosal

Hi,

In case you wish to customize the third column and keep the other two settings same, you need to re-render the chart after the customization.

Hope this helps. :)

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