Drawing on 3D Charts with DrawLineTool

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
lilo
Newbie
Newbie
Posts: 62
Joined: Wed Sep 07, 2011 12:00 am

Drawing on 3D Charts with DrawLineTool

Post by lilo » Wed Nov 16, 2011 3:35 am

If I draw a Line on a 3D Chart with the Drawline Tool, the default position is 3D Coordinates. Is it possible to change the default drawing position to 2D Coordinates, so the line is always drawn at the mouse position, without having to consider 3D rotation of the chart?

lilo
Newbie
Newbie
Posts: 62
Joined: Wed Sep 07, 2011 12:00 am

Re: Drawing on 3D Charts with DrawLineTool

Post by lilo » Thu Nov 17, 2011 5:13 pm

I want to be able to annotate a 3D chart with simple drawing tools using screen coordinates.

lilo
Newbie
Newbie
Posts: 62
Joined: Wed Sep 07, 2011 12:00 am

Re: Drawing on 3D Charts with DrawLineTool

Post by lilo » Thu Nov 17, 2011 6:03 pm

I think I know how to do it...Put the drawline code in the afterdraw event of Teechart and use screen coordinates to draw the lines.. It was in the tutorial.

Sandra
Site Admin
Site Admin
Posts: 3132
Joined: Fri Nov 07, 2008 12:00 am

Re: Drawing on 3D Charts with DrawLineTool

Post by Sandra » Fri Nov 18, 2011 10:22 am

Hello lilo,

The solution as you have found is the correct way to do it. I am glad that you found it :)

Thanks,
Best Regards,
Sandra Pazos / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Post Reply