2D Pie Charts not working with GDI+

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
tsiipola
Newbie
Newbie
Posts: 21
Joined: Tue Oct 02, 2007 12:00 am

2D Pie Charts not working with GDI+

Post by tsiipola » Wed Jul 30, 2008 1:58 pm

Hello,

When using GDI+ canvas, the last slice of 2D pie charts is always drawn as transparent and all other slices are drawn with the color of the last slice.
This results in undoubtedly amusing, but not entirely production-ready 'pacman' image being drawn.

I could recreate this with TeeChart 8.02 by simply adding some values for a TPieSeries in a chart that uses a TGDIPlusCanvas. 3D pies did not have this problem.

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

Post by Narcís » Wed Jul 30, 2008 2:14 pm

Hi tsiipola,

I'm not able to reproduce this using the TeeChartGDIPlus.exe demo shipped with TeeChart. Could you please send us a simple example project we can run "as-is" to reproduce the problem here?

You can either post your files at news://www.steema.net/steema.public.attachments newsgroup or at or upload page.

Thanks in advance.

BTW: v8.03 VCL is in release candidate stage. I'm going to send you the URL to download it so that you can check if it works fine at your end using v8.03.
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:

Post by Narcís » Wed Jul 30, 2008 2:19 pm

Hi tsiipola,

As an update, GDI+ canvas demo can be now find in the new features demo shipped with the binary installers at All Features\Welcome!\3D Canvas\GDI+ Canvas.
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:

Post by Narcís » Wed Jul 30, 2008 2:22 pm

Hi tsiipola,

Sorry, I missed the part that this only happened with 2D pies. I have been able to reproduce the issue here now and added it (TV52013293) to the bug list to be fixed for next releases.
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

tsiipola
Newbie
Newbie
Posts: 21
Joined: Tue Oct 02, 2007 12:00 am

Post by tsiipola » Thu Jul 31, 2008 7:20 am

Hi, glad to hear you reproduced the problem. This is a fairly big issue for us as the GDI+ support and pie charts are supposed to feature prominently in the next version of our software.
The GDI+ canvas demo seems useful, as I have some GDI+ issues left to report, and I might be able to find recreation steps for some of those using the demo.
Thank you for your efforts.

tsiipola
Newbie
Newbie
Posts: 21
Joined: Tue Oct 02, 2007 12:00 am

Post by tsiipola » Mon Sep 08, 2008 12:34 pm

Hello again,

I'm wondering what the status of this issue is currently. Now that the radar chart is fixed, this is the largest remaining obstacle for us in taking the GDI+ functionality into use.

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

Post by Narcís » Mon Sep 08, 2008 12:38 pm

Hi tsiipola,

Just checked that TV52013293 hasn't been fixed yet.
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:

Post by Narcís » Mon Feb 23, 2009 2:50 pm

Hi tsiipola,

This has been fixed now for next v8 maintenance release.

If you are a sourcecode customer you can fix the issue adding the line below as the last instruction in CalcArcAngles in TeeGDIPlus.pas

Code: Select all

  if EndAngle=0 then EndAngle:=361;
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