This question is locked. New answers and comments are not allowed.
I have the following chart declared in XAML:
In the code behind I have:
When I attach a collection to the ItemsSource property, everything updates dynamically (the collection implements INotifyPropertyChanged) except the YValue. The bubbles move along the x-axis and changes size when the underlying collection changes, but they won't move along the y-axis when value_1 changes in the collection.
Have I forgotten something obvious or are there any limitations to this?
| <telerik:RadChart x:Name="Bubble" Width="160" Height="160" VerticalAlignment="Center" Margin="20,0,0,0" Visibility="Collapsed"> |
| <telerik:RadChart.SeriesMappings> |
| <telerik:SeriesMapping> |
| <telerik:SeriesMapping.SeriesDefinition> |
| <telerik:BubbleSeriesDefinition BubbleSizeRelative="False"/> |
| </telerik:SeriesMapping.SeriesDefinition> |
| <telerik:SeriesMapping.ItemMappings> |
| <telerik:ItemMapping DataPointMember="XValue" FieldName="value_0"/> |
| <telerik:ItemMapping DataPointMember="YValue" FieldName="value_1"/> |
| <telerik:ItemMapping DataPointMember="BubbleSize" FieldName="value_2"/> |
| </telerik:SeriesMapping.ItemMappings> |
| </telerik:SeriesMapping> |
| </telerik:RadChart.SeriesMappings> |
| </telerik:RadChart> |
In the code behind I have:
| Bubble.DefaultView.ChartArea.AxisX.AutoRange = False |
| Bubble.DefaultView.ChartArea.AxisY.AutoRange = False |
| Bubble.DefaultView.ChartArea.AxisX.MaxValue = 6 |
| Bubble.DefaultView.ChartArea.AxisX.MinValue = 0 |
| Bubble.DefaultView.ChartArea.AxisY.MaxValue = 6 |
| Bubble.DefaultView.ChartArea.AxisY.MinValue = 0 |
| Bubble.DefaultView.ChartArea.AxisY.AddRange(0, 6, 1) |
When I attach a collection to the ItemsSource property, everything updates dynamically (the collection implements INotifyPropertyChanged) except the YValue. The bubbles move along the x-axis and changes size when the underlying collection changes, but they won't move along the y-axis when value_1 changes in the collection.
Have I forgotten something obvious or are there any limitations to this?