Hi Vincent,
To enable crosshair
functionality in your chart, you can utilize the ChartCrossHairBehavior. This
feature allows you to inspect or focus on individual data points within the
chart. By setting ShowTrackBallInfo to
true, you can display Textbox for axes labels with their corresponding values.
Below is a simple
code example to initialize the Crosshair.
|
<syncfusion:SfChart.PrimaryAxis>
<syncfusion:CategoryAxis ShowTrackBallInfo="True"/>
</syncfusion:SfChart.PrimaryAxis>
<syncfusion:SfChart.SecondaryAxis>
<syncfusion:NumericalAxis ShowTrackBallInfo="True" />
</syncfusion:SfChart.SecondaryAxis>
<syncfusion:SfChart.Behaviors>
<syncfusion:ChartCrossHairBehavior
/>
</syncfusion:SfChart.Behaviors>
|
For more details,
you can refer to the Crosshair
in WPF Charts control | Syncfusion.
Let us know if you
need further assistance.
Regards,
Arul Jenith B.