Annotations are broken. Can't draw on the canvas.

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Pep
Site Admin
Site Admin
Posts: 3303
Joined: Fri Nov 14, 2003 5:00 am
Contact:

Re: Annotations are broken. Can't draw on the canvas.

Post by Pep » Fri Nov 22, 2024 10:23 am

Hello,
the AfterDraw event is called every time something is drawn over the Chart.
In any case, let me prepare an example where creates an annotation on top of each point when user clicks over, and that removes the rest of annotations.

TLC
Newbie
Newbie
Posts: 73
Joined: Mon Apr 08, 2019 12:00 am

Re: Annotations are broken. Can't draw on the canvas.

Post by TLC » Fri Nov 22, 2024 3:37 pm

Found the problem-- I added the following and it fixed it as i'm initiating the draw from another place.

Code: Select all

    protected override void ChartEvent( EventArgs e ) { } // => base.ChartEvent( e );

Pep
Site Admin
Site Admin
Posts: 3303
Joined: Fri Nov 14, 2003 5:00 am
Contact:

Re: Annotations are broken. Can't draw on the canvas.

Post by Pep » Mon Nov 25, 2024 12:15 pm

Great!
Thanks for the advise.

Post Reply