Ok, I am starting to get frustrated here. Not sure what I am doing wrong. I have a UltraChart set to LineChart. I create a NumericSeries and call UltraChart.Series.Add(mySeries). Every time a certain event is fired I add a NumericDataPoint to mySeries. For some reason, it never graphs anything. What am I missing? The code is below:
mySeries = new NumericSeries();mySeries.Visible = true; mySeries.Label = _watch[0].CarNumber; watchRunChart.Series.Add(mySeries);
mySeries.Label = _watch[0].CarNumber;
watchRunChart.Series.Add(mySeries);
In the event:
mySeries.Points.Add( new NumericDataPoint(Math.Round(lap.LapTime.TotalSeconds), tod.ToString(), false));
I am sure I am missing something simple! Any help would be much appreciated. By the way this is v7.3 and ultimately I will need to add 6 seperate series to this chart. Is that possible? Thanks!
In what event are you adding the new points?
I tried the following in button click and had no issues. You may run into issues if you are trying to do the same not on the UI thread. Also, I did this in 8.2 but it should be the same in 7.3.
{
}
ns = new NumericSeries();
It's a custom event being raised from another part of the code. It is off-thread but I am calling .Invoke(). At one point I was attempting to use a DataTable, which worked fine, but the performance was terrible once there was a bit of data. Maybe 40 or so points and it just bogs down. Would using a Series help that at all or is that typical? My application would go from 1-2% CPU to 50% when the Chart control was in view. Thanks for any guidance on that.