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
440
Plot area for ScatterSeries does not refresh
posted

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.

Parents
  • 440
    posted

    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?

Reply Children