Click here to Skip to main content
15,936,119 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I designed one real time graph application using zed graph RollingPointPairList() API. In that user should hide specific curve on checked check box but whenever it unchecked then it should show curve with all points which were hide . I tried multiple options in one that curve is hiding the points but whenever unchecked it draws straight line & drop specific points from list; how to do that?
Below i copy some code snippest which i've tried
if (chkXScale.Checked == true) {

It has been a long time since I have used ZedGraph, but I think that the code sample you have shown just clears the points list of the curve at Index=0.

Try using something like shown below. I have not tested this as I would have to download a copy of ZedGraph and frustrate myself trying to remember the all the parts needed to create a graph . :)
// define a Zedgraph.CurveItem to store a reference to the curve you want to toggle on/of with the checkbac
ZedGraph.CurveItem toggledcurve = your curve definition;  

if (chkXScale.Checked)

On another note, I thought they stopped development of ZedGraph when MS released the Chart control. Is it active again somewhere? SourceForge still shows 2008 as the last update.
Share this answer
Venkat Raghvan 2-Dec-13 3:55am    
thanks!it solved.
Member 12820629 28-Oct-16 2:25am    
I have tried this solution but it not solved, could you give me some more details explanation on line "ZedGraph.CurveItem toggledcurve = your curve definition;"
Share this answer

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900