Line series tips
Here is the list of tips to improve performance. Typically, there is trade-off between performance improvement and other features, or some extra requirement for the data is attached. Therefore, user should balance all the needs carefully.
- When using a line series, use SampleDataBlockSeries or SampleDataSeries, if it is suitable for the application (see Line-series comparison). It is the fastest one to draw and doesn’t need as much memory as other line series types.
- If X-values are not in progressively increasing order at fixed interval, prefer 'progressive' series (like LiteLineSeries or PointLineSeries) over assumption free series (like LiteFreeformLineSeries or FreeformPointLineSeries). Use “Lite” versions of these series if minimal visual customization is needed. See Line-series comparison.
- Set PointsVisible property false, if the data points don’t have to be visible.
- Set line width to 1 with LineStyle.Width property (“Lite” are less sensitive to line width).
- Use solid line style by setting LineStyle.Pattern to Solid.
- Disable anti-aliasing by setting line series LineStyle.AntiAliasing to None and set chart’s AntiAliasLevel to 0.
- Disable all mouse interactivity by setting AllowUserInteraction of a series to false. Alternatively, disable whole chart’s mouse interactivity by setting chart.Options.AllowUserInteraction to false.
- Hide the legend box if there is no need for it. series.ShowInLegendBox -property can also be disabled for all the series. These work especially when there are a lot of series in a chart.
chart.ViewXY.LegendBoxes[0].Visible = false;
chart.ViewXY.PointLineSeries[0].ShowInLegendBox = false;