Yes, that's I believe so, although I'm new to this. I started with the RealTime example project supplied, then replaced the tick event with a sandbox method as follows:
private void timer1_Tick(object sender, EventArgs e){ cumulativePointCount++; if (pointCount < nTotalPoints) pointCount++; else { if (pointCount == nTotalPoints) { if (radioButton4.Checked) chart1.RealTime.Mode = RealTimeMode.Scroll; pointCount++; } }
//Insert some predictable 'ramp' data chart1.RealTime.BeginAddData(1, RealTimeAction.Append); chart1.Data[0, 0] = (cumulativePointCount % 25) / 100.0 + 2.1; chart1.RealTime.EndAddData(radioButton4.Checked, true); //Attempt to use through X series var points = chart1.Data.Points; // This returns 181 var hasData = chart1.Data.X.HasData; // This always return false var exceptionThrown = chart1.Data.X[0, 0]; // This always throws ArgumentOutOfRangeException}