<
telerik:RadCatresianChart
x:Name
=
"cartesianChart"
>
<
radchartview:RadCartesianChart.Behaviors
>
<
chartview:ChartTrackBallBehavior
ShowIntersectionPoints
=
"True"
/>
</
radchartview:RadCartesianChart.Behaviors
>
<
radchartview:RadCartesianChart.Annotations
>
<
chartview:CartesianGridLineAnnotation
Value
=
"{Binding CurrentDate}"
Axis
=
"{Binding ElementName=horizontalAxis}"
Stroke
=
"Black"
StrokeThickness
=
"2"
>
</
chartview:CartesianGridLineAnnotation
>
</
radchartview:RadCartesianChart.Annotations
>
<
telerik:RadCartesianChart.SeriesProvider
>
<
telerik:ChartSeriesProvider
Source
=
"{Binding SuppChart}"
>
<
telerik:ChartSeriesProvider.SeriesDescriptors
>
<
telerik:CategoricalSeriesDescriptor
ItemsSourcePath
=
"Data"
ValuePath
=
"CurrentValue"
CategoryPath
=
"Date"
>
<
telerik:CategoricalSeriesDescriptor.Style
>
<
Style
TargetType
=
"chartview:LineSeries"
>
<
Setter
Property
=
"StrokeThickness"
Value
=
"2"
/>
<
Setter
Property
=
"ShowLabels"
Value
=
"{Binding ShowLabels}"
/>
<
Setter
Property
=
"Visibility"
Value
=
"{Binding IsVisible, Converter={StaticResource BoolToVis}}"
/>
<
Setter
Property
=
"LegendSettings"
>
<
Setter.Value
>
<
telerik:SeriesLegendSettings
Title
=
"{Binding Label}"
/>
</
Setter.Value
>
</
Setter
>
<
Setter
Property
=
"Stroke"
Value
=
"{Binding Color}"
/>
<
Setter
Property
=
"VerticalAxis"
Value
=
"{Binding VerticalAxis}"
/>
</
Style
>
</
telerik:CategoricalSeriesDescriptor.Style
>
</
telerik:CategoricalSeriesDescriptor
>
</
telerik:ChartSeriesProvider.SeriesDescriptors
>
</
telerik:ChartSeriesProvider
>
</
telerik:RadCartesianChart.SeriesProvider
>
<
radchartview:RadCartesianChart.HorizontalAxis
>
<
chartview:DateTimeContinuousAxis
x:Name
=
"horizontalAxis"
PlotMode
=
"BetweenTicks"
ShowLabels
=
"True"
LabelFormat
=
"{Binding AxisLabel}"
MajorTickStyle
=
"{StaticResource tickStyle}"
LabelFitMode
=
"Rotate"
Minimum
=
"{Binding StartDate}"
Maximum
=
"{Binding EndDate}"
/>
</
radchartview:RadCartesianChart.HorizontalAxis
>
</
telerik:RadCatresianChart
>
This is my XAML code. When I change the SuppChart collection (ObservableCollection) the chart isn't render the horizontal axis and annotation. I implement INotifyPropertyChanged and INotifyCollectionChanged. Data are render properly after collection change.
I attached picutures of plot before and after refresh the data.
What can be wrong? I missing something?