Page 1 of 1

Issue when rotate 2D pie chart using GDI+ canvas

Posted: Wed May 09, 2012 12:33 pm
by 10049140
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!

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

Posted: Wed May 09, 2012 2:45 pm
by yeray
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;

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

Posted: Fri May 11, 2012 9:49 am
by 10049140
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?

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

Posted: Fri May 11, 2012 12:19 pm
by yeray
Hi Marder,

I'm afraid I can't think on another workaround at this moment.

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

Posted: Thu Nov 08, 2012 8:46 am
by 10049140
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.

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

Posted: Thu Nov 08, 2012 5:02 pm
by yeray
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).

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

Posted: Fri Nov 09, 2012 12:50 pm
by 10049140
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.

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

Posted: Tue Nov 13, 2012 12:37 pm
by narcis
Hello Marder,

Ok, I have increased the priority of TV52016180 and TV52013798 so they are top-priority issues.

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

Posted: Tue Nov 13, 2012 4:31 pm
by 10049140
Hi Narcis.

Ok, thank you for your help!

Best regards.