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>