Hi,
I’m facing the issue that Pie chart datalabel will be overlap if the text is too long.
Attached is a sample project that shows my issue, the datalabels is overlap.
Btw, the limitations of Pie chart in my project:
1. Pie chart width and height is fixed (width=15cm, height=9cm).
2. Plot width and height is fixed (width=2500, height=2500)
3. Pie chart should be always placed at center (vertical center and horizontal center)
4. The datalabel text is dynamic (long text or short text).
I have tried a lot of ways, including set DataLabels.X or DataLabels.Y manually, which should not be the best way. Any of your advice is much appreciate.
Hi,
I’m sorry that the demo makes you confused.
The issue is that the main body of the Pie chart is not vertical & horizontal centered, therefore I have to set DataLabels.X and DataLabels.Y manually to ensure the Pie chart is placed in the center of the image. But if I do so, the datalabel is overlap.
The main point is how to config Pie chart settings to draw the image that meets the following requirement:
- Pie chart width and height is fixed (width=15cm, height=9cm).
- Plot width and height is fixed (width=2500, height=2500)
- Pie chart should be always placed at center (vertical center and horizontal center)
- The datalabel text length is dynamic, but should not be overlap
Hi,
Hi,
I have updated the sample Application, please see the attachment.
You could find the Pie chart is set at the center of the image, while the datalable is overlap. However, when exporting the Pie chart to Excel, the datalable looks fine.
Please also note the file TPie.vb line 39-47, which maybe help you to understand me better, thanks.
Hi,
Hi,
Any update from there?
Hi,
Thanks for your posting and using Aspose.Cells for .NET.
We are afraid, there is no update for you at this moment. We have however logged your comment in our database. Please spare us some time. Once, there is some update for you, we will let you know asap.
Hi,
We have analyzed your issues in details. The issues for placing data labels of Pie chart to suitable position are too complex to be supported. We can’t fix it now.
Once we have any update on it, we will let you know here.
Thank you.
Hi,
The issues you have found earlier (filed as CELLSNET-41725) have been fixed in this update.
This message was posted using Notification2Forum from Downloads module by Aspose Notifier.