Articles in this section
Category / Section

How to show tooltip when segment is underneath axis line of WPF Chart (SfChart)?

1 min read

When the axis is moved into the chart area by using the Origin and ShowAxisNextToOrigin properties, any segment can be rendered near or underneath this axis, and the tooltip is not displayed for that segment. If you want to display the tooltip, you need to set the IsHitTextVisible property to false for that axis in WPF Chart (SfChart).

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;

 

WPF Chart Tooltip displays underneath axis line

 

Did you find this information helpful?
Yes
No
Help us improve this page
Please provide feedback or comments
Comments (0)
Please sign in to leave a comment
Access denied
Access denied