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
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
Hi Andrew,
This works, thanks!
Now, There are two more XamDataChart changes which I am trying to revert -
1. The marker stroke thickness which changed from .5 to 2. I have been able to fix this by providing an updated style to the chart (not ideal, would prefer this use the Series thickness rather than yet another arbitrary value).
2. The legend template for a marker with FillScale set to a ValueBrushScale with provided BrushCollection. In 16.1, the legend's brush was a blend of the given brushes. Now it looks blank / white.
Regards, Anu