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
2085
Sticky Tool Tips on xamDataChart
posted

We are replacing our legacy graphs with xamDataChart and we are trying to replicate a feature where the user can select two points from a set of graphed lines on the same graph and see the difference in values between them.  The attached screen shot first shows the xamDataChart tooltip that pops up when a hovering over the graph, the second shows the display we are typing to replicate, where a user has clicked on two points of two different graph lines to get a third tool tip showing the difference in values.  The user still gets tool tips for other points on the graph, while the initial 3 tool tips (the first and second points clicked on and the difference tooltip) remain "sticky" and do not go away until the user clicks on the graph again.

How can we make a tool tip sticky on the graph while still displaying other dynamic tool tips and how can we draw on the xamDataChart for the 3rd difference tool tip?

The basic XAML we are using for the line series looks like this:

<ig:XamDataChart.Series>

<ig:LineSeries x:Name="projected" Title="Projected" Legend="{Binding ElementName=xmLegendOTC}" XAxis="{Binding ElementName=xAxis2}" YAxis="{Binding ElementName=yAxis}" ValueMemberPath="Forecast" Thickness="2" MarkerType="None" Brush="Red" UnknownValuePlotting="LinearInterpolate">

<ig:LineSeries.ToolTip>

<TextBlock Text="{Binding Item.ProjectedLoadDisplay}"/>

</ig:LineSeries.ToolTip>

</ig:LineSeries>

<ig:ItemToolTipLayer TargetSeries="{Binding ElementName=projecte}" UseInterpolation="True" />

</ig:XamDataChart.Series>

Parents Reply Children