Description: This article describes how to view the tooltip when segment is underneath the axis line.
Solution When the axis is moved into the chart area by using the Origin and ShowAxisNextToOrigin properties, any segment can be rendered near/underneath this axis, and the tooltip for that segment is not viewed. To view the tooltip, set the IsHitTestVisible property to False for that axis as shown in the following code example.
XAML <chart:SfChart.SecondaryAxis> <chart:NumericalAxis ShowAxisNextToOrigin="True" Origin="2" IsHitTestVisible="False" /> </chart:SfChart.SecondaryAxis> C# this.sampleChart.SecondaryAxis.ShowAxisNextToOrigin =true; this.sampleChart.SecondaryAxis.Origin = 2; this.sampleChart.SecondaryAxis.IsHitTestVisible = false; Output
Figure 1: Tooltip displayed when segment is underneath the axis line. |
This page will automatically be redirected to the sign-in page in 10 seconds.