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
1735
Rendering issue when upgrading XamDataChart from 14.2 to 15.2
posted

Hi

I am using the XamDataChart to add a series of markers on top of a custom axis control. When upgrading from version 14.2 to version 15.2, the rendering of my markers stopped working correctly. Attached is a zip-file with two images showing the axis/markers when running 14.2 and 15.2 respectively. The markers (a ScatterSeries) is the blue triangles and the light gray background shows the extent of the XamDataChart control.

The Capture14_2.png image shows the correct behavior when running version 14.2. With respect to the axis valus, the markers should be positioned at the following values: 75, 252, 478, 521, 574 and 653. We see that the markers are positioned correctly in this image.

The Capture15_2.png image shows the incorrect behavior when running version 15.2. The markers are rendered at the wrong horizontal position. It looks like the error is biggest at the left and then decreases towards right. The vertical positions of the markers are also changed/wrong.

For reference, the associated XAML is:

<ig:XamDataChart Background="LightGray"
                
Opacity="0.5"
                
Visibility="{Binding DisplayMarkers, Converter={StaticResource BoolToVisibilityConverterCollapsed}}"
                 Height="64"
                
Margin="-4,0,-4,0">
  <ig:XamDataChart.Series>
    <ig:ScatterSeries ItemsSource="{Binding RegionExplorerViewModel.Markers.ViewportMarkerSeries, Mode=OneWay}"
                      YAxis="{Binding ElementName=yAxis}"
                      XAxis="{Binding ElementName=xAxis}"
                      XMemberPath="Location.X"
                      YMemberPath="Location.Y"
                      MarkerBrush="Blue"
                      MarkerType="Triangle">
    </ig:ScatterSeries>
  </ig:XamDataChart.Series>
  <ig:XamDataChart.Axes>
    <ig:NumericXAxis x:Name="xAxis"
                     Visibility="Collapsed"
                     MinimumValue="{Binding RegionExplorerViewModel.Markers.ViewportMinimum}"
                     MaximumValue="{Binding RegionExplorerViewModel.Markers.ViewportMaximum}">
      <ig:NumericXAxis.LabelPanelStyle>
        <Style>
          <Setter Property="Control.Height"
                  Value="0" />
        </Style>
      </ig:NumericXAxis.LabelPanelStyle>
    </ig:NumericXAxis>
    <ig:NumericYAxis x:Name="yAxis"
                     Visibility="Collapsed"
                     MinimumValue="0"
                     MaximumValue="1">
      <ig:NumericYAxis.LabelPanelStyle>
        <Style>
          <Setter Property="Control.Width"
                  Value="0" />
        </Style>
      </ig:NumericYAxis.LabelPanelStyle>
    </ig:NumericYAxis>
  </ig:XamDataChart.Axes>
</ig:XamDataChart>

As mentioned, the only difference in the executable code that generated the two images is the new Infragistics DLLs for version 15.2. Is there a known change from 14.2 to 15.2 (or 15.x in general) that may explain this behavior, or is this rendering change related to something else?

Regards,
Leif

Captures.zip
Parents Reply Children
No Data