User (Legacy) Posted January 11, 2006 Report Share Posted January 11, 2006 Hi, I have a real time chart with one series that works fine. My question is how do i reset the series ? Meaning, when i press a button i want the series to start all over again from zero x point. I tried: chart1.Data.Clear() but then i get null exception when trying to add point to the chart using: chart1.RealTime.BeginAddData(1, RealTimeAction.Append); chart1.Data[0, 0] = data; I there a way to clear/reset the series ? Thanks, Kfir, Finjan.com LTD Link to comment Share on other sites More sharing options...
Software FX Posted January 13, 2006 Report Share Posted January 13, 2006 Data.Clear() resets the number of points AND series to 0. You need to add the following after Data.Clear(): chart1.Data.Series = <number of series>; Otherwise you will be adding data to an inexistent series (hence the exception). -- Francisco Padron www.chartfx.com Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.