Quantcast
Channel: VBForums
Viewing all articles
Browse latest Browse all 15908

VS 2019 How to remove traces from a chart

$
0
0
Hello everybody.
In a form I have a chart that will draw one or more tracks after choices have been made and a button has been clicked.
If later new choices are made and the button is clicked again, the traces that are on the chart must be deleted and the new ones must be drawn.
How do I delete the old paths before the new ones are drawn?
I've tried this but it doesn't seem to work.
Code:

Chart1.Series.Clear()
Thanks a lot, bye.

Viewing all articles
Browse latest Browse all 15908

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>