Hi All,
I have previously used an ArrayList as the ItemSource for my chart, this worked correctly
Where GetData returned the ArrayList.
I know would like to customise the layout of my RadChart, I have done this in XAML
And now neither RadChart1.ItemSource nor ChartArea1.ItemSource will correctly display any graph data ("No Data Series")
Also I cannot add a dataseries to the dataseries collection using
I get the following error
Can anyone offer help on this please?
Rav
I have previously used an ArrayList as the ItemSource for my chart, this worked correctly
| RadChart1.ItemSource = GetData(); |
I know would like to customise the layout of my RadChart, I have done this in XAML
| <telerik:RadChart x:Name="RadChart1" telerik:StyleManager.Theme="Vista" UseDefaultLayout="False"> |
| <Grid> |
| <Grid.RowDefinitions> |
| <RowDefinition Height="1*" /> |
| <RowDefinition Height="6*" /> |
| </Grid.RowDefinitions> |
| <Grid.ColumnDefinitions> |
| <ColumnDefinition /> |
| </Grid.ColumnDefinitions> |
| <telerik:ChartTitle Content="Sample Report" Grid.Row="0" Grid.Column="0" |
| VerticalAlignment="Center" HorizontalAlignment="Center" |
| TextElement.FontWeight="Bold" TextElement.FontSize="24" /> |
| <telerik:ChartArea x:Name="ChartArea1" Grid.Row="1" Grid.Column="0" /> |
| </Grid> |
| </telerik:RadChart> |
Also I cannot add a dataseries to the dataseries collection using
| ChartArea1.DataSeries.Add( |
| Error 1 'Telerik.Windows.Controls.Charting.DataSeriesCollection' does not contain a definition for 'Add' and no extension method 'Add' accepting a first argument of type 'Telerik.Windows.Controls.Charting.DataSeriesCollection' |
Can anyone offer help on this please?
Rav