This is my chart view:
<telerik:RadCartesianChart x:Name="bpsChart"Margin="20,92,31,474"> <telerik:RadCartesianChart.Grid> <telerik:CartesianChartGrid MajorXLineDashArray="5, 5"MajorYLineDashArray="5, 5"MajorLinesVisibility="None"> <telerik:CartesianChartGrid.MajorYLineStyle> <Style TargetType="{x:Type Line}"> <Setter Property="Stroke"Value="Gray"/> </Style> </telerik:CartesianChartGrid.MajorYLineStyle> <telerik:CartesianChartGrid.MajorXLineStyle> <Style TargetType="{x:Type Line}"> <Setter Property="Stroke"Value="Gray"/> </Style> </telerik:CartesianChartGrid.MajorXLineStyle> </telerik:CartesianChartGrid> </telerik:RadCartesianChart.Grid> <telerik:RadCartesianChart.HorizontalAxis> <telerik:CategoricalAxis ShowLabels="False"IsEnabled="False"TickThickness="0"LineThickness="0"> </telerik:CategoricalAxis> </telerik:RadCartesianChart.HorizontalAxis> <telerik:RadCartesianChart.VerticalAxis > <telerik:LinearAxis ShowLabels="False"IsEnabled="False"TickThickness="0"LineThickness="0"/> </telerik:RadCartesianChart.VerticalAxis> <telerik:RadCartesianChart.Series> <telerik:LineSeries CategoryBinding="Date"ValueBinding="Value"Stroke="LightSeaGreen" ItemsSource="{Binding MyData, RelativeSource={RelativeSource AncestorType=Window}}"/> </telerik:RadCartesianChart.Series></telerik:RadCartesianChart>
As you can see i am populate this with MyData which is my object the contains only only variable: double.
Now i have a list of several MyData objects and i want to create from each on them a stroke line on my ChartView.
What is the best option to do that ? (XAML or code behind)
I will glad for code example.