Articles in this section
Category / Section

How to display trackball label or tooltip over chart annotation?

1 min read

Description

This article describes how to display the trackball label (or) tooltip over an annotation.

 

Solution

To display trackball or tooltip label over an annotation, change the rendering panels order by accessing the chart template as demonstrated in the following code snippet.

 

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

 

       <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

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