Edit this page

FastLine

FastLineSeries is inheriting the default line series but the performance is considerably improved. This type of series can be used for system performance monitoring or with chart than need to display thousands data points. The cost of the improved performance is that you cannot display labels or plot points.

The following code snipped shows how you can add FastLineSeries to RadChartView.

Initial Setup

Random rnd = new Random();
FastLineSeries series = new FastLineSeries();
FastLineSeries series1 = new FastLineSeries();
for (int i = 0; i < 50; i++)
{
    series.DataPoints.Add(new CategoricalDataPoint(rnd.Next(50, 100), i));
    series1.DataPoints.Add(new CategoricalDataPoint(rnd.Next(50), i));
}
radChartView1.Series.Add(series);
radChartView1.Series.Add(series1);

Dim rnd As New Random()
Dim series As New FastLineSeries()
Dim series1 As New FastLineSeries()
For i As Integer = 0 To 49
    series.DataPoints.Add(New CategoricalDataPoint(rnd.Next(50, 100), i))
    series1.DataPoints.Add(New CategoricalDataPoint(rnd.Next(50), i))
Next i
RadChartView1.Series.Add(series)
RadChartView1.Series.Add(series1)

Figure 1: Initial Setup

chartview-series-types-line 004

See Also