I have small problem with clearing chart.
I am drawing multiple custom vertical axis on left side programatically. I will draw multiple axis based on sensor connection to hardware.
For example: At first time i have connected 8 sensors and i am creating 8 vertical left axis programatically. i will start and it will updating chart perfectly. then i will remove one sensor connection and i will start once again then it has to clear all previous series and axis's in the chart then draw only 7 axis and plot according series.
I tried to clear chart like this
Code: Select all
tchart1.Refresh();
tchart1.Series.Clear();
tchart1.Series.RemoveAllSeries();
Please help me how to clear chart with including axis. everything working perfect but i want know how to clear those multiple axis.
Thanks.
biji