My Series data is decided in run-time.
Below my xaml code.
<telerik:RadCartesianChart.SeriesProvider>
<telerik:ChartSeriesProvider Source="{Binding Series}">
<telerik:ChartSeriesProvider.SeriesDescriptors>
<telerik:CategoricalSeriesDescriptor ItemsSourcePath="Data" ValuePath="Value" CategoryPath="Time" >
<telerik:CategoricalSeriesDescriptor.Style>
<Style TargetType="telerik:LineSeries">
<Setter Property="StrokeThickness" Value="1"/>
<Setter Property="Visibility" Value="{Binding Name , Converter={StaticResource pointFocusConverter}}"/>
<Setter Property="LegendSettings">
<Setter.Value>
<telerik:SeriesLegendSettings Title="{Binding Name}"/>
</Setter.Value>
</Setter>
<Setter Property="VerticalAxis">
<Setter.Value>
<telerik:LinearAxis/>
</Setter.Value>
</Setter>
</Style>
</telerik:CategoricalSeriesDescriptor.Style>
</telerik:CategoricalSeriesDescriptor>
</telerik:ChartSeriesProvider.SeriesDescriptors>
</telerik:ChartSeriesProvider>
</telerik:RadCartesianChart.SeriesProvider>
In this code, 'StrokeThickness', 'Visibility' and 'LegendSettings' is confirmed binding
According to other code, 'VerticalAxis' property is dynamically making Yaxis.
But does not working.
Please help me.
Below my xaml code.
<telerik:RadCartesianChart.SeriesProvider>
<telerik:ChartSeriesProvider Source="{Binding Series}">
<telerik:ChartSeriesProvider.SeriesDescriptors>
<telerik:CategoricalSeriesDescriptor ItemsSourcePath="Data" ValuePath="Value" CategoryPath="Time" >
<telerik:CategoricalSeriesDescriptor.Style>
<Style TargetType="telerik:LineSeries">
<Setter Property="StrokeThickness" Value="1"/>
<Setter Property="Visibility" Value="{Binding Name , Converter={StaticResource pointFocusConverter}}"/>
<Setter Property="LegendSettings">
<Setter.Value>
<telerik:SeriesLegendSettings Title="{Binding Name}"/>
</Setter.Value>
</Setter>
<Setter Property="VerticalAxis">
<Setter.Value>
<telerik:LinearAxis/>
</Setter.Value>
</Setter>
</Style>
</telerik:CategoricalSeriesDescriptor.Style>
</telerik:CategoricalSeriesDescriptor>
</telerik:ChartSeriesProvider.SeriesDescriptors>
</telerik:ChartSeriesProvider>
</telerik:RadCartesianChart.SeriesProvider>
In this code, 'StrokeThickness', 'Visibility' and 'LegendSettings' is confirmed binding
According to other code, 'VerticalAxis' property is dynamically making Yaxis.
But does not working.
Please help me.