Sign in to follow this  
dshah

ching realtime chart datasets and values in xml dynamically

Recommended Posts

Hello,

I have a real-time line chart rendered. I need to change add/remove datasets or change the name for datasets etc.

So for eg if a user selects a different name for dataset from a drop down list, from c# code behind I try to edit the XML file which my real-time chart is using like this.

XElement

channelfile = XElement.Load(@"C:Data.xml") ;

XElement channel = channelfile.Element("dataset");

channel.SetAttributeValue(

"seriesName", ddchannel.SelectedItem.Text);

channelfile.Save(

@"C:Data1.xml");

after this what i see is, XMl does get changed but the realtime chart doesnt reflect any changes. How can i force the chart to read this edited XML?

Disha

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