Custom Drawing "On Top" of Series Lines...how to change...

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
jzarech
Newbie
Newbie
Posts: 58
Joined: Mon Jul 07, 2008 12:00 am

Custom Drawing "On Top" of Series Lines...how to change...

Post by jzarech » Thu Jan 04, 2018 8:37 pm

I do custom drawing on the "afterdraw" event and the custom lines are drawing on top of the fastline series in my chart.
The series data is more important than the custom drawing lines so I want those on top.
Is there any way to have the custom drawn lines not overwrite the series data???
Thanks in advance...
Attachments
drawontop.gif
Custom Lines overshadow series data. Want to make series overshadow custom drawn lines.
drawontop.gif (8.45 KiB) Viewed 10521 times

Christopher
Guru
Posts: 1603
Joined: Fri Nov 15, 2002 12:00 am

Re: Custom Drawing "On Top" of Series Lines...how to change...

Post by Christopher » Mon Jan 08, 2018 8:46 am

Hello,

Yes, there's a good example of how to do this in the Feature Demo shipped with TeeChart:
2018-01-08_09-44-39.gif
2018-01-08_09-44-39.gif (3.04 MiB) Viewed 10500 times
Best Regards,
Christopher Ireland / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Instructions - How to post in this forum

jzarech
Newbie
Newbie
Posts: 58
Joined: Mon Jul 07, 2008 12:00 am

Re: Custom Drawing "On Top" of Series Lines...how to change...

Post by jzarech » Sun Jan 14, 2018 10:35 am

BeforeDrawSeries event handle's it perfectly. So the way the events are named means this - "DrawCustomStuffBeforeDrawSeries"
Thanks so much!
joseph
Attachments
beforedrawseries.jpg
Custom Lines no longer overwrite my line series.
beforedrawseries.jpg (16.79 KiB) Viewed 10476 times

Post Reply