I am creating a chart control
chart1.ChartAreas.Add("area");
chart1.series.add("time");
//loop
//get values of a and b from excel sheet
chart1.Series["time"].Points.AddXY(a, b);
//endloop
I have to plot a graph between A and B.Now when second time the application is started it shows that ChartControl already contain a member called area.
So i want to remove area from chart control and time from series.How to remove it?
I assume you mean to say when you refresh the
ChartAreaandSeriesare being added again.Please check if they are added within a
if (! IsPostBack)else you would need to add something like
before adding the
ChartArea,Series.if not please add additional details to your question.