Zoom on custom Axis

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
Linkam
Newbie
Newbie
Posts: 2
Joined: Wed Dec 07, 2016 12:00 am

Zoom on custom Axis

Post by Linkam » Mon Feb 27, 2017 9:03 am

I have a problem with series data being drawn outside of the boundaries of a custom axis after a zoom.
Your own Steema > Feature Demo > Axis grid zone example shows the same effect when you zoom on the top chart, the blue series data is drawn over the full canvas.
Is there a property that I am missing that stops this?

Linkam
Newbie
Newbie
Posts: 2
Joined: Wed Dec 07, 2016 12:00 am

Re: Zoom on custom Axis

Post by Linkam » Mon Feb 27, 2017 2:01 pm

I seem to be able to cure this by setting a clip rectangle in my various Series.BeforeDrawValues events, and then clearing the clip rectangle in the various Series.AfterDrawValues events. Is this the only way to cure my issue?

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

Re: Zoom on custom Axis

Post by Christopher » Tue Feb 28, 2017 10:33 am

Hello,
Linkam wrote: Is this the only way to cure my issue?
It is the recommended way to work in these circumstances. There is a demo which shows the technique you mention - All Features -> Welcome !\Axes\Opaque zones
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

Post Reply