Articles in this section
Category / Section

How to display trackball label or tooltip over chart annotation?

4 mins read

Description


This article explains how to display the trackball label or tooltip over an annotation in a chart.

 

Solution


To display the trackball label or tooltip over an annotation, modify the rendering panel's order by accessing the chart template as shown in the code snippet below.


C#

public class SfChartExt : SfChart 
{ 
     public override void OnApplyTemplate() 
     { 
         base.OnApplyTemplate(); 
         Canvas.SetZIndex(GetTemplateChild("adorningCanvas") as Canvas, 1); 
     } 
} 
 

  XAML

<local:SfChartExt>
 
     <chart:SfChart.PrimaryAxis>
         <chart:NumericalAxis/>
     </chart:SfChart.PrimaryAxis>
 
     <chart:SfChart.SecondaryAxis>
         <chart:NumericalAxis/>
     </chart:SfChart.SecondaryAxis>
 
     ..
</local:SfChartExt>

 

Output

http://www.syncfusion.com/downloads/support/directtrac/198707/2053139323_be85d06b.PNG


Conclusion

I hope you enjoyed learning how to display trackball label or tooltip over chart annotation.

You can refer to our WPF Chart feature tour page know about its other groundbreaking feature representations and documentation, and how to quickly get started for configuration specifications. You can also explore our WPF Chart Examples to understand how to create and manipulate data.

For current customers, you can check out our components from the License and Downloads page. If you are new to Syncfusion®, you can try our 30-day free trial to check out our other controls.

If you have any queries or require clarifications, please let us know in the comments section below. You can also contact us through our support forums, Direct-Trac, or feedback portal. We are always happy to assist you!

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