Line Series
Overview
RadCartesianChart visualizes each data item from the LineSeries and connects them with straight line segments. The LineSeries extend CategoricalStrokedSeries, so they are also CategoricalSeries and require one CategoricalAxis and one NumricalAxis.
Features
- Stroke (Color): changes the color used to draw lines.
- StrokeThickness (double): changes the width of the lines.
Example
Here is an example how to create RadCartesianChartChart with Line Series:
First, create the needed business objects, for example:
Then create a ViewModel:
Finally, use the following snippet to declare a RadCartesianChart with Line Series in XAML and in C#:
Where the telerikChart namespace is the following:
And here is the result:
A sample Line Series example can be found in the Chart/Series folder of the SDK Samples Browser application.
Customization Example
Here we make some customizations:
