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
Custom Series with Data Point Tracker
posted

Hello,

is it possible to show a data point tracker using custom series like in the code example below? Do I have to override functions from the base class Series, additionally to the functions shown in the custom series tutorial?

<ig:XamDataChart.Series>

<custom:ContourAreaSeries x:Name="customSeries"
Title="ContourAreaSeries"
ToolTip="{}{Series.Title}: {Item.Value}"
ItemsSource="{StaticResource data}"
XAxis="{Binding ElementName=xAxis}"
YAxis="{Binding ElementName=yAxis}">
</custom:ContourAreaSeries>

<ig:CategoryItemHighlightLayer x:Name="TackingLayer"
Opacity="1" MarkerTemplate="{StaticResource DataTrackerTemplate}"
UseInterpolation="True" TransitionDuration="0:00:00.1" Canvas.ZIndex="11" />

<ig:ItemToolTipLayer x:Name="ToolTipLayer"
Canvas.ZIndex="12" UseInterpolation="True" TransitionDuration="0:00:00.1" />

<ig:CrosshairLayer x:Name="CrosshairLayer"
Opacity="1" Thickness="1" Canvas.ZIndex="15"
UseInterpolation="True" TransitionDuration="0:00:00.1"/>

</ig:XamDataChart.Series>

I use a custom series with a CategoryXAxis and a NumericYAxis.

Thank you

Parents
  • 34510
    Offline posted

    Hello Thomas,

    In your XAML example, you show the ContourAreaSeries which comes from our "Creating a Custom Series" documentation.  This series is based on a scatter series so it doesn't really work with CategoryXAxis.  But you said your custom series uses CategoryXAxis.  Does your data source have items with a single numeric value or two numeric values?  Basically I need to know if your data is treated as a Category Series or a Scatter Series.

Reply Children