Issue when rotate 2D pie chart using GDI+ canvas

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
marder
Advanced
Posts: 115
Joined: Thu May 29, 2008 12:00 am

Issue when rotate 2D pie chart using GDI+ canvas

Post by marder » Wed May 09, 2012 12:33 pm

Hi.

I am using TeeChart Pro 2011 for RAD XE2.

As a workaround for a bug with the anti-alias tool I am using TGDIPlusCanvas for canvas of my chart.
This was the suggested workaround (See http://www.teechart.net/support/viewtop ... f=3&t=9180).

I do now encounter an issue when rotating a 2D pie chart.
While rotating one slice disappears and the color of the other slice change.

Please find a sample project attached ("Test2DPieRotate.zip").
just build and run the project and use the mouse wheel to rotate the pie chart.

Please let me know how I can fix this issue.

Thanks for your help!
Attachments
Test2DPieRotate.zip
(81.84 KiB) Downloaded 649 times

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

Re: Issue when rotate 2D pie chart using GDI+ canvas

Post by Yeray » Wed May 09, 2012 2:45 pm

Hi Marder,

You are right, I could reproduce it so I've added it to the defect list to be revised (TV52016180).
At the same time, I've seen the following gives a chart that looks almost if not exactly equal to the original and doesn't produce the wrong behaviour:

Code: Select all

  Chart1.View3D:=true;
  Chart1.Chart3DPercent:=1;
  Chart1.Aspect.Elevation:=360;
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

marder
Advanced
Posts: 115
Joined: Thu May 29, 2008 12:00 am

Re: Issue when rotate 2D pie chart using GDI+ canvas

Post by marder » Fri May 11, 2012 9:49 am

Hi Yeray,

We recently tried to remove this workaround, as you can see in here: http://www.teechart.net/support/viewtop ... =3&t=9180)

Using a "Chart3DPercent" of "1" leads to a very small 3D effect, which is getting worse when increasing the size of the chart (See attachment "Pie2DIssue.png")

In former version of TeeChart Pro you could at lease use a "Chart3DPercent" value of "0", which prevented this effect.

Do you have any idea/workaround for us to prevent this?
Attachments
Pie2DIssue.png
Pie chart 2D issue
Pie2DIssue.png (13.75 KiB) Viewed 11611 times

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

Re: Issue when rotate 2D pie chart using GDI+ canvas

Post by Yeray » Fri May 11, 2012 12:19 pm

Hi Marder,

I'm afraid I can't think on another workaround at this moment.
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

marder
Advanced
Posts: 115
Joined: Thu May 29, 2008 12:00 am

Re: Issue when rotate 2D pie chart using GDI+ canvas

Post by marder » Thu Nov 08, 2012 8:46 am

Hi.

I wonder if there might be a fix for this issue in the official release of the upcoming V2012.07?
I would really need to present our customers a good looking 2D pie chart. The provided workaround is not really pretty.

I not, could you think of any other workaround to get a well looking antialias 2D pie chart, without this rotating issue?

Best regards.

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

Re: Issue when rotate 2D pie chart using GDI+ canvas

Post by Yeray » Thu Nov 08, 2012 5:02 pm

Hi Marder,
marder wrote:I wonder if there might be a fix for this issue in the official release of the upcoming V2012.07?
I would really need to present our customers a good looking 2D pie chart. The provided workaround is not really pretty.

I not, could you think of any other workaround to get a well looking antialias 2D pie chart, without this rotating issue?
I'm afraid TeeChart v2012.07 has already been published with no news update relating to this. I see this has been like this since GDI+ was initially supported in TeeChart VCL (v8).
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

marder
Advanced
Posts: 115
Joined: Thu May 29, 2008 12:00 am

Re: Issue when rotate 2D pie chart using GDI+ canvas

Post by marder » Fri Nov 09, 2012 12:50 pm

Hi Yeray,

Ok, thanks for the feedback!

It it likely, that this will be fixed in the next official release?

Another solution for use would be, that the Antialias tool will be fixed for 2D pie charts (see: http://www.teechart.net/support/viewtop ... f=3&t=9135), since we could then swithc back to the "normal" canvas.

Best regards.

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

Re: Issue when rotate 2D pie chart using GDI+ canvas

Post by Narcís » Tue Nov 13, 2012 12:37 pm

Hello Marder,

Ok, I have increased the priority of TV52016180 and TV52013798 so they are top-priority issues.
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

marder
Advanced
Posts: 115
Joined: Thu May 29, 2008 12:00 am

Re: Issue when rotate 2D pie chart using GDI+ canvas

Post by marder » Tue Nov 13, 2012 4:31 pm

Hi Narcis.

Ok, thank you for your help!

Best regards.

Post Reply