I am charting multiple PointSeries. I am creating each PointSeries in code. How do you control the color of each PointSeries?
Code:
XAML:
Thanks in advance!
Code:
var chartViewModel = Grid.DataContext as ChartViewModel;
var pointSeries = new PointSeries
{
ItemsSource = chartViewModel.DataPoints,
CategoryBinding = new PropertyNameDataPointBinding("DateTime"),
ValueBinding = new PropertyNameDataPointBinding("Point"),
PointSize = new Size(3, 3)
};
Chart.Series.Add(pointSeries);
XAML:
<
telerik:RadCartesianChart
x:Name
=
"Chart"
>
<
telerik:RadCartesianChart.VerticalAxis
>
<
telerik:LinearAxis
LineThickness
=
"1"
MajorTickLength
=
"5"
TickThickness
=
"1"
/>
</
telerik:RadCartesianChart.VerticalAxis
>
<
telerik:RadCartesianChart.HorizontalAxis
>
<
telerik:DateTimeCategoricalAxis
DateTimeComponent
=
"Minute"
LabelFormat
=
"M/d H:mm"
LineThickness
=
"1"
MajorTickInterval
=
"60"
MajorTickLength
=
"5"
TickThickness
=
"1"
/>
</
telerik:RadCartesianChart.HorizontalAxis
>
<
telerik:RadCartesianChart.Grid
>
<
telerik:CartesianChartGrid
MajorLinesVisibility
=
"XY"
/>
</
telerik:RadCartesianChart.Grid
>
</
telerik:RadCartesianChart
>
Thanks in advance!