- Home
- Forum
- JavaScript - EJ 2
- Pie Chart UI
Pie Chart UI
Can we add 2 labels pie chart the actual value is inside and the percent value is outside just like in this mockup iamge?
Can we add a point(circle) at the end of the connector/line?
Attached in this thread is the mockup image.
Thanks.
Attachment: Pie_Chart.PNG_31a1f156.zip
Hi Trisha,
Greetings from Syncfusion.
We have analyzed your query. We do not have support to place labels both as inside and outside at the same time. However , we can achieve placing of label using annotation.
We have created sample based on your requirement.
Sample: https://stackblitz.com/edit/nxzgyu?file=index.ts
Unfortunately we do not have support to show point (circle) at end of connector line.
Kindly revert us if you have any concerns.
Regards,
Nishanthi
Hi!
Thanks for the solution, another question is,In the Pie Charist, is it possible to align the Legend and it's data on the left side? I've been trying the textAlign:'left' but it''s not working.
See attached image for the expected result. Thanks.
Attachment: Pie_Chart_Legend_abc2b4b2.rar
Trisha,
We have analyzed your reported query, we suggest you to set legend position as ‘Left’ to meet your requirement.
We have attached sample for your reference.
Code-Snippet:
|
legendSettings: { visible: true, position: 'Left' } |
Screen-shot:
Sample: https://stackblitz.com/edit/qbkjep?file=index.ts
Kindly revert us if you have any concerns.
Regards,
Nishanthi
Hi!
Thanks for the solution, But I think it does not work on my code, here's my JS code for Reference.
Another question, I'm having a problem on the data label, the data label on the top ot bottom does not show or the top ot bottom is cut out , see the previous reply for my code, I also attached the image of the current output:
Attachment: Pie_Chart__No_label_c78f83f1.zip
Hi Trisha,
Query1: DataLabel is not proper
We have ensured your reported scenario with your attached image. When there is insufficient space to accommodate the data label in chart, it may not be rendered. However, we can address this issue by adjusting the connector line length to ensure the labels are displayed in enough space. We have attached the tested sample and screenshot for your reference.
Sample: https://stackblitz.com/edit/3xbqsn?file=index.js,index.html
Query2: Legend position is not getting resolved
We have ensured your reported scenario with your attached code-snippet. Legend rendered properly as per behavior. We have attached the tested sample and screenshot for your reference. Please check with below sample.
Sample: https://stackblitz.com/edit/jpr8hf?file=index.js,index.html
- Since we are unable to replicate an issue from our end, we request you to share the following information which will be helpful for further analysis and provide you the solution sooner.
- Try to reproduce the reported scenario in above sample.
Regards,
Nishanthi
- 6 Replies
- 2 Participants
-
TA Trisha Ann Dela Torre
- May 31, 2023 09:12 PM UTC
- Jun 27, 2023 12:39 PM UTC