In one of my charts I have defined one ScatterSeries bound to an observable collection of data points in my view model
<ig:XamDataChart x:Name="scatterChart" Visibility="Visible" Margin="10" Title="{Binding ChartLabel}" MinHeight="400" MinWidth="400" Grid.Row="1" Grid.ColumnSpan="2" Grid.RowSpan="3" HorizontalZoomable="False" VerticalZoomable="False"> <ig:XamDataChart.Axes> <ig:NumericXAxis x:Name="scatterXAxis" Title="{Binding Captions[LENGTHCAPTION]}" MinimumValue="0" MaximumValue="{Binding MaxXValue}"> <ig:NumericXAxis.LabelSettings> <ig:AxisLabelSettings Location="OutsideBottom" Extent="50" FontSize="10" Visibility="Visible" /> </ig:NumericXAxis.LabelSettings> </ig:NumericXAxis> <ig:NumericYAxis x:Name="scatterYAxis" Title="{Binding Captions[DURATIONCAPTION]}" MinimumValue="0" MaximumValue="{Binding MaxYValue}"> <ig:NumericYAxis.LabelSettings> <ig:AxisLabelSettings Location="OutsideLeft" Extent="50" FontSize="10" Visibility="Visible" /> </ig:NumericYAxis.LabelSettings> </ig:NumericYAxis> </ig:XamDataChart.Axes> <ig:XamDataChart.Series> <ig:ScatterSeries Name="scatter" ItemsSource="{Binding ScatterChartValues}" Visibility="Visible" MarkerType="Automatic" MarkerBrush="Green" XMemberPath="X" YMemberPath="Y" YAxis="{Binding ElementName=scatterYAxis}" XAxis="{Binding ElementName=scatterXAxis}" ShowDefaultTooltip="True"></ig:ScatterSeries> </ig:XamDataChart.Series> </ig:XamDataChart>
The collection of data points is refreshed after user interaction. Change notifications are submitted.
Chart title and axis labels are refreshed as well as axis labels but data points are not positioned where I expect them to be in the plot area. I only see one data point in zero zero position, but tooltip tell me that it actually should have been positioned elsewhere.
Please tell me how I can force plot area refresh.
The chart is placed inside a tab item. If I move to another tab and return then data points are positioned where they are supposed to be. I can also force it to refresh if I set series ItemSource to null before source collection is updated and then set ItemSource once more after source collection is updated.
Do anyone know any better trics?
Hi,
I tried to reproduce your issue; however I was unable to. I've attached a simple solution that changes the series item source on the click of a button. I am running this in 13.2 and was hoping you could confirm the version you are using. If you could isolate your issue in a sample I'd be more than glad to take a deeper look in to it. Lastly, you can call RenderSeries on the series to force it to refresh. I hope this helps.
Sincerely,
Richard
Senior Software Developer
Infragistics, Inc