Skip to main content

LiteLineSeries

LiteLineSeries is a version of PointLineSeries, that is optimized for much faster performance. It works similarly to PointLineSeries but has less configuration options. LiteLineSeries draws only the line between the data points but not the points themselves. Furthermore, it has only Color and Width properties to adjust the series appearance. See more Line-series comparison.

LiteLineSeries expects data points to be in progressive order (values[i+1, 0] ≥ values[i, 0]).

Example of LiteLineSeries
Example of LiteLineSeries.

Adding points

Use AddPoints() method to add data point arrays to the series. These arrays should be of type double[,] where the first value is the data point index while the second value has both X (index 0) and Y (index 1) values. ActualPointCount() can be called to find out the total number of points.

// Adding a LiteLineSeries with some random data points.
LiteLineSeries lls = new LiteLineSeries(_chart.ViewXY,
_chart.ViewXY.XAxes[0], _chart.ViewXY.YAxes[0]);
lls.Width = 2;
lls.Color = Colors.Lime;
double[,] values = new double[21, 2];
for (int i = 0; i < 21; i++)
{
values[i, 0] = i; // x-value
values[i, 1] = rand.NextDouble() * 100; // y-value
}
lls.AddPoints(values, false);
_chart.ViewXY.LiteLineSeries.Add(lls);

SeriesEventMarker

Series support SeriesEventMarker.

ClipAreas

Series support ClipAreas.

LineSeriesCursors

Series can be tracked with LineSeriesCursors.

DataCursor

Series can be tracked with DataCursor.

LimitYToStackSegment

Series support LimitYToStackSegment.

Examples

info

To see feature demonstration as example, check LineSeriesXYFeatures, TemperatureGraph and RaceCarTelemetry2 from our Demo.