I have a WPF data series chart which I need to clear based on a user request. The plot has time on the X axis, in the format MM:SS. The only problem is that when I set the XAxes range to SetRange(0, plotXrange) - to reset the axis lables (to start at 0:00), that if the plot has been running for more than a (approx) minute it will reset to 1:00 (or 2:00 if longer than two minutes of run time).
Is there a different function call required? I've checked through your PDF, however couldn't find anything that was more appropriate.
Reset code included below:
//This is only called on reset event.
Code: Select all
m_chart.BeginUpdate();
{
foreach (SampleDataSeries sds in m_chart.ViewXY.SampleDataSeries)
{
sds.Clear();
}
m_chart.ViewXY.XAxes[0].SetRange(0, plotXrange);
}
m_chart.EndUpdate();