Page 1 of 1

drawing layers

Posted: Thu Mar 20, 2025 12:36 pm
by 21099317
Hey

im using the 'AfterDraw' event to manually draw a grid on the chart (with the Graphic3D instance of the chart).
at the same time im adding some Annotations in the grid.
my problem is that the grid lines is draw on top of the annotation, you can see it in the file i have attached:
onTop.png
onTop.png (2.35 KiB) Viewed 2103 times
how can i fix that?
my app is in WPF but im using the Steema.TeeChart.TChart (the winForms version) inside WindowsFormsHost.

Re: drawing layers

Posted: Thu Mar 20, 2025 1:04 pm
by Marc
Hello,

You can use the alternative events in the paint cycle to (z) position your plot:
this order:
  • BeforeDrawAxes
  • BeforeDrawSeries
or (last as you are using now)
  • AfterDraw
Regards,
Marc Meumann