I am using LiveCharts.WinForms.CartesianChart
to render a large amount of points:
myChart.Zoom = ZoomingOptions.X;
myChart.Pan = PanningOptions.X;
myChart.Series.Add(new LineSeries
{
Values = chartValuesScores,
Fill = System.Windows.Media.Brushes.Transparent,
PointGeometrySize = 5
});
myChart.AxisX.Add(new Axis
{
Labels = labels
});
What I want to do is to display some kind of a progressbar and stop the time LiveCharts
needs to render this points. But it seems that LiveCharts
renders the points asynchronously. That means that after running the code above, it continues running other code lines and exits the function.
Thus, my question is: Is there a way to detect that LiveCharts.WinForms.CartesianChart
is finished with rendering? I could not find an event or something else.