TDBChart View3D and CalcClickedPart

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
spietari
Newbie
Newbie
Posts: 3
Joined: Wed Mar 12, 2014 12:00 am

TDBChart View3D and CalcClickedPart

Post by spietari » Wed Mar 12, 2014 11:08 pm

Hi,

I'm trying to get the Series underneath the cursor but if View3D is enabled then I seem to be getting random results, the code seems to be working fine if I set View3D to False.

My Series style is Rectangle.

I'm using the newest TeeChart Pro for VCL on XE5.

Thanks!
Seppo

Yeray
Site Admin
Site Admin
Posts: 9602
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: TDBChart View3D and CalcClickedPart

Post by Yeray » Thu Mar 13, 2014 4:02 pm

Hello,

There are some tickets at our bug/wish tracking system that could be related to this. Could you please check them?

If you think they are not explaining the very same case you have noticed, please try to arrange a simple example project we can run as-is to reproduce the problem here.

Also please take a look at the "How to post in this forum" instructions below in my signature
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

spietari
Newbie
Newbie
Posts: 3
Joined: Wed Mar 12, 2014 12:00 am

Re: TDBChart View3D and CalcClickedPart

Post by spietari » Thu Mar 13, 2014 6:20 pm

CalcClickedPart_Sample.zip
(59.29 KiB) Downloaded 401 times
I created a small sample. Please check.

It uses two different methods, CalcClickedPart and Clicked on a series. They seem to give the same (incorrect) results. There's also a checkbox to toggle 2D mode and in that mode the methods work correctly.

Thanks!
Seppo

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Re: TDBChart View3D and CalcClickedPart

Post by Narcís » Fri Mar 14, 2014 12:35 pm

Hi Seppo,

Thanks for the example project. The Clicked function works with 2D charts and 3D orthogonal charts but not with 3D non-orthogonal rotated charts. Having that in mind, It works fine with Chart1.Aspect.Orthogonal set to true, for example:

Code: Select all

  Chart1.Aspect.Orthogonal:=True;
As Yeray already suggested, this is ID305 and it comes from the difficulty from converting screen 2D coordinates to real 3D coordinates. I have increased the importance of the bug and attached your project to it.
Best Regards,
Narcís Calvet / 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

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Re: TDBChart View3D and CalcClickedPart

Post by Narcís » Thu Mar 20, 2014 8:33 am

Hi Seppo,

This issue has been fixed now as you can see at David Berneda's comments: http://bugs.teechart.net/show_bug.cgi?id=305#c3
Best Regards,
Narcís Calvet / 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