TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
-
petroV
- Newbie
- Posts: 24
- Joined: Tue Mar 02, 2010 12:00 am
Post
by petroV » Wed Apr 28, 2010 1:33 pm
have chart with serieses POINT3D. event CLICK not always work, when chart rotate with some angle. and if event works, ScreenPointToValuePoint return wrong PointDouble, value X, Y deffer from real value of CLICKED POINT on series
Code: Select all
private void points3D_Click(object sender, MouseEventArgs e)
{
Steema.TeeChart.Styles.Points3D points3D = sender as Steema.TeeChart.Styles.Points3D;
Steema.TeeChart.Drawing.PointDouble pd = points3D.ScreenPointToValuePoint(e.X, e.Y);
}
what do i wrong action?
-
Narcís
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
-
Contact:
Post
by Narcís » Thu Apr 29, 2010 10:14 am
Hi petroV,
I'm afraid this is a known problem converting 2D screen coordinates to 3D rotated coordinates. Neither GDI nor GDI+ provide methods for doing this transformation and therefore it's very difficult for series to return correct values in such circumstances.
-
petroV
- Newbie
- Posts: 24
- Joined: Tue Mar 02, 2010 12:00 am
Post
by petroV » Thu Apr 29, 2010 10:36 am
thanks you. willn't use this event on 3d series.