reload plotter

Jul 3, 2009 at 6:01 AM

Hi,

Am using a ChartPlotter control.

My application does this -

Click a button, select a file (which contains the values to be plotted), display the plotted graph on the chartplotter.

Am doing this using plotter.AddLineGraph(...). and is working the desired manner.

Now when i select another file on clicking the button, i want the chartplotter control to display the new graph only and not overwrite on the previous one.

ie., i dont want to see the previous plot. i need to view only the new plot.

Please let me know at the earliest how i can go about doing this.

Thanks in advance.

Editor
Jul 3, 2009 at 9:04 AM
Hi,

You should firstly store a result of plotter.AddLineGraph - an added
chart - in a variable (e.g., of IPlotterElement type), and when you
don't need this chart anymore, simply call plotter.Children.Remove
(chart_you_want_to_remove). This will remove previously plotter chart.

Best regards,
Mikhail.
Jul 31, 2009 at 5:58 AM

Sorry am late to reply!

Thanks a ton for it! That was perfect. :)