Binding Y axis

4 posts, 0 answers
  1. Trude
    Trude avatar
    222 posts
    Member since:
    Jun 2009

    Posted 07 Jul 2010 Link to this post

    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?

  2. Trude
    Trude avatar
    222 posts
    Member since:
    Jun 2009

    Posted 07 Jul 2010 Link to this post

    If I rebind the chart the values update correctly - it's just the dynamic update of YValue that seems to be causing concern.
  3. Trude
    Trude avatar
    222 posts
    Member since:
    Jun 2009

    Posted 07 Jul 2010 Link to this post

    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)?
  4. Giuseppe
    Admin
    Giuseppe avatar
    2363 posts

    Posted 12 Jul 2010 Link to this post

    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
Back to Top