移除系列的移除点仍然可见

时间:2018-07-03 12:26:50

标签: c# winforms livecharts

使用实时图表我在拆分容器的面板内有一个笛卡尔图表。当我尝试删除所有系列及其点时,系列的线条将消失,但这些点仍然可见,尽管不可悬停。

我用于删除系列+点的代码:

foreach(Series s in chart.Series)
    { 
        s.Values.Clear();
        s.Erase();
        chart.Series.Remove(s); 
    }

移除点之前的外观 What it looks like before I remove the points

应该删除点后的外观 What it looks like after the points are supposed to be removed

如何解决此问题,以便在不将PointGeometry设置为null的情况下不会出现这些“鬼点”?

0 个答案:

没有答案
相关问题