This is a migrated thread and some comments may be shown as answers.

[Solved] Z-Index of CustomGridLine

2 Answers 111 Views
Chart
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Bradley
Top achievements
Rank 1
Bradley asked on 18 Aug 2011, 02:43 PM
I'm trying to add a custom grid line, but I want it to appear on top of my horizontal bars in my chart.  I found this post http://www.telerik.com/community/forums/silverlight/chart/custom-gridline.aspx where it says you guys were working on it, but I don't see a solution anywhere.  I also tried this, but no such luck

Canvas.SetZIndex((Chart.DefaultView.ChartArea.Annotations[0] as CustomGridLine), 1000);

2 Answers, 1 is accepted

Sort by
0
Bradley
Top achievements
Rank 1
answered on 18 Aug 2011, 08:20 PM
Got it working, followed the solution here in the MarkedZoneTooltip.rar file http://www.telerik.com/community/forums/silverlight/chart/annotation-text.aspx of re-templating the chartarea, just moved the annotationzone to the very top layer and it worked fine.
0
Sia
Telerik team
answered on 19 Aug 2011, 03:28 PM
Hello Bradley,

We are happy to hear that you managed to achieve the needed. If more questions arise do not hesitate to contact us again.

Regards,
Sia
the Telerik team

Thank you for being the most amazing .NET community! Your unfailing support is what helps us charge forward! We'd appreciate your vote for Telerik in this year's DevProConnections Awards. We are competing in mind-blowing 20 categories and every vote counts! VOTE for Telerik NOW >>

Tags
Chart
Asked by
Bradley
Top achievements
Rank 1
Answers by
Bradley
Top achievements
Rank 1
Sia
Telerik team
Share this question
or