This is a migrated thread and some comments may be shown as answers.

Binding Y axis

3 Answers 84 Views
Chart
This is a migrated thread and some comments may be shown as answers.
Trude
Top achievements
Rank 2
Trude asked on 07 Jul 2010, 11:26 AM
I have the following chart declared in XAML:

<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?

3 Answers, 1 is accepted

Sort by
0
Trude
Top achievements
Rank 2
answered on 07 Jul 2010, 12:00 PM
If I rebind the chart the values update correctly - it's just the dynamic update of YValue that seems to be causing concern.
0
Trude
Top achievements
Rank 2
answered on 07 Jul 2010, 12:07 PM
Additional update:

If I change the seriesdefinition to Line instead of Bubble everything seems to work. Both x and y-axis updates dynamically, so is this an issue with the bubble chart only (or are there some special conciderations)?
0
Giuseppe
Telerik team
answered on 12 Jul 2010, 06:45 PM
Hello Jorn,

Indeed we must confirm that this is a bug that is specific to the Bubble series type. We have logged this issue in our public issue tracking system and it will be addressed for one of the next releases of the control.

We have updated your Telerik points for the report as well.

Sorry for the temporary inconvenience.


Greetings,
Freddie
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
Chart
Asked by
Trude
Top achievements
Rank 2
Answers by
Trude
Top achievements
Rank 2
Giuseppe
Telerik team
Share this question
or