Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
60
XamDataChart BubbleSeries bubble radius broken after upgrade from 16.1 to 17.2
posted

Hi,

The marker size behavior is broken in 17.2 (as compared to 16.1). In the following sample, 16.1 correctly sets the radius of the circular marker. In 17.2, the bubbles show up in some arbitrary size (not the radius given in RadiusMemberPath), and changes when the chart is resized. Is there anyway the 16.1 behavior can be replicated in 17.2 XamDataChart?

<Window x:Class="DataChartAxisLabels.BubbleSeriesWindow"
xmlns="">schemas.microsoft.com/.../presentation"
xmlns:x="">schemas.microsoft.com/.../xaml"
xmlns:ig="">schemas.infragistics.com/xaml"
xmlns:local="clr-namespace:DataChartAxisLabels"
Title="MainWindow" Height="700" Width="500">
<ig:XamDataChart >
<ig:XamDataChart.Resources>
<local:BubbleDataSample x:Key="BubbleDataSample"/>

</ig:XamDataChart.Resources>
<ig:XamDataChart.Axes>
<ig:NumericXAxis x:Name="numericXAxis" MinimumValue="0" MaximumValue="200" Interval="20" />
<ig:NumericYAxis x:Name="numericYAxis" MinimumValue="0" MaximumValue="200" Interval="20" />
</ig:XamDataChart.Axes>
<ig:XamDataChart.Series>
<!-- ========================================================================== -->
<ig:BubbleSeries ItemsSource="{StaticResource BubbleDataSample}"
XAxis="{Binding ElementName=numericXAxis}"
YAxis="{Binding ElementName=numericYAxis}"
XMemberPath="X"
YMemberPath="Y"
RadiusMemberPath="Radius" >
</ig:BubbleSeries>
<!-- ========================================================================== -->
</ig:XamDataChart.Series>
</ig:XamDataChart>
</Window>

The same code above results 

16.1

17.2

Regards,

Anu

Parents
No Data
Reply
  • 34810
    Verified Answer
    Offline posted

    Hello Anu,

    I have been investigating into your requirement in this case, and between versions 16.1 and 17.2, the behavior of the BubbleSeries in the XamDataChart changed. In 16.1, the BubbleSeries would scale the sizes of your bubbles directly from the radius values, but in version 17.2, it is more of a "relative" scaling to each of the data values, instead.

    In order to change the behavior back to the way it was in 16.1, I would recommend setting the RadiusScale property of the BubbleSeries. This property takes a SizeScale object, which has a MaximumValue and a MinimumValue property. If you set these MaximumValue and MinimumValue properties to your minimum and maximum radius value from your data item, respectively, the BubbleSeries will act as it did in 16.1.

    I am attaching a sample project to demonstrate usage of the SizeScale object with a BubbleSeries. I hope this helps.

    Please let me know if you have any other questions or concerns on this matter.

    XamDataChartBubbleSeriesCase.zip

Children