Overlapping Labels in Pie Charts

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
qcrnd
Advanced
Posts: 214
Joined: Mon Sep 04, 2006 12:00 am

Overlapping Labels in Pie Charts

Post by qcrnd » Thu Jul 22, 2010 7:58 am

Hey,
Whenever the pie chart is small and the labels are long there are overlapping in the pie chart texts.
Is there a way to know when labels overlap one another so those can be trimmed?
The pie chart area cannot be enlarged.

Image

Thanks in advance
Elad

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

Re: Overlapping Labels in Pie Charts

Post by Narcís » Thu Jul 22, 2010 8:02 am

Hi Elad,

Yes, you can do something similar as in the example Pep posted here.
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

qcrnd
Advanced
Posts: 214
Joined: Mon Sep 04, 2006 12:00 am

Re: Overlapping Labels in Pie Charts

Post by qcrnd » Sun Jul 25, 2010 2:23 pm

Hey Narcís
I have added the method to be called after OnChartAfterDraw and after Resize.
However there are still some problems there, the Chart.Refresh() makes the chart generation take a lot of time, and if I remove it the first draw is not perfect, the resize causes a lot of trouble (in any case).
Does making sure that the pie marks will not overlap each other, something you're planning on solving on later release?

Thanks
Elad

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

Re: Overlapping Labels in Pie Charts

Post by Narcís » Tue Jul 27, 2010 3:05 pm

Hi Elad,
I have added the method to be called after OnChartAfterDraw and after Resize.
However there are still some problems there, the Chart.Refresh() makes the chart generation take a lot of time, and if I remove it the first draw is not perfect, the resize causes a lot of trouble (in any case).
Can you please attach a simple example project we can run "as-is" to reproduce the problem here and let us know the exact version you are using?
Does making sure that the pie marks will not overlap each other, something you're planning on solving on later release?
This is on the wish-list to be enhanced for future 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

qcrnd
Advanced
Posts: 214
Joined: Mon Sep 04, 2006 12:00 am

Re: Overlapping Labels in Pie Charts

Post by qcrnd » Wed Aug 04, 2010 1:20 pm

Hey Narcís
Sorry for the late reply.
I'm using version 3.5.3425.20244
The code I used is the one used in this link: http://www.teechart.net/support/viewtop ... 60&start=0

The problem is the tChart1.Refresh(); found in every loop runs ~(i*j) times

Thanks
Elad

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

Re: Overlapping Labels in Pie Charts

Post by Yeray » Thu Aug 05, 2010 4:35 pm

Hi Elad,

As Narcis said, we'll try to improve it for future releases.
In the meanwhile I can't think on a workaround more efficient than that one. You can try if calling Refresh after the loop works at your end but I'm not sure if it would work on all the cases.
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

qcrnd
Advanced
Posts: 214
Joined: Mon Sep 04, 2006 12:00 am

Re: Overlapping Labels in Pie Charts

Post by qcrnd » Sun Aug 08, 2010 1:49 pm

Hi Yerai,
We'll wait for the new release

Thanks
Elad

Post Reply