Page 1 of 1

Overlapping Labels in Pie Charts

Posted: Thu Jul 22, 2010 7:58 am
by 9092401
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

Re: Overlapping Labels in Pie Charts

Posted: Thu Jul 22, 2010 8:02 am
by narcis
Hi Elad,

Yes, you can do something similar as in the example Pep posted here.

Re: Overlapping Labels in Pie Charts

Posted: Sun Jul 25, 2010 2:23 pm
by 9092401
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

Re: Overlapping Labels in Pie Charts

Posted: Tue Jul 27, 2010 3:05 pm
by narcis
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.

Re: Overlapping Labels in Pie Charts

Posted: Wed Aug 04, 2010 1:20 pm
by 9092401
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

Re: Overlapping Labels in Pie Charts

Posted: Thu Aug 05, 2010 4:35 pm
by yeray
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.

Re: Overlapping Labels in Pie Charts

Posted: Sun Aug 08, 2010 1:49 pm
by 9092401
Hi Yerai,
We'll wait for the new release

Thanks
Elad