Hi
I am trying to create a dynamic point series chart on DateTimeContinuousAxes but getting "No Series Added" message.
Here is the model classes I use:
01.
public
class
SeriesModel{
02.
public
ObservableCollection<DataPointModel> Items {
get
;
set
; }
03.
}
04.
public
class
DataPointModel {
05.
public
DateTime Date {
get
;
set
; }
06.
public
int
NodeId {
get
;
set
; }
07.
}
08.
09.
// In the MainWindow() constructor I create and populate Data collection
10.
// with SeriesModel collections - one for each series.
11.
ObservableCollection<SeriesModel> Data =
new
ObservableCollection<SeriesModel>();
Here is a fragment of XAML I use for creating a dynamic pointseries chart:
01.
<
telerik:RadCartesianChart.HorizontalAxis
>
02.
<
telerik:DateTimeContinuousAxis
/>
03.
</
telerik:RadCartesianChart.HorizontalAxis
>
04.
05.
<
telerik:RadCartesianChart.SeriesProvider
>
06.
<
telerik:ChartSeriesProvider
Source
=
"{Binding Data}"
>
07.
<
telerik:ChartSeriesProvider.SeriesDescriptors
>
08.
<
telerik:ChartSeriesDescriptor
ItemsSourcePath
=
"Items"
>
09.
<
telerik:ChartSeriesDescriptor.Style
>
10.
<
Style
TargetType
=
"telerik:PointSeries"
>
11.
<
Setter
Property
=
"CategoryBinding"
Value
=
"Date"
/>
12.
<
Setter
Property
=
"ValueBinding"
Value
=
"NodeId"
/>
13.
</
Style
>
14.
</
telerik:ChartSeriesDescriptor.Style
>
15.
</
telerik:ChartSeriesDescriptor
>
16.
</
telerik:ChartSeriesProvider.SeriesDescriptors
>
17.
</
telerik:ChartSeriesProvider
>
18.
</
telerik:RadCartesianChart.SeriesProvider
>
Could you please help to find an error in this code?
Regards,
Vlad