.net chart clear and re-add

后端 未结 5 859
情话喂你
情话喂你 2021-01-04 00:35

I have a chart and I need to clear it in order to populate it with different values. The chart has 3 series, all defined in the .aspx page.

The problem is when I ca

5条回答
  •  日久生厌
    2021-01-04 01:15

    This should work:

    foreach(var series in chart.Series) {
        series.Points.Clear();
    }
    

提交回复
热议问题