Describe the bug
Hi Elastic/Kibana developers,
I’m seeing a bug with rendering in Kibana when I’m using a 2 layered sunburst/pie chart with a single data point for the chart. The label of the outer circle overlaps with the inner circle.
To Reproduce
Steps to reproduce the behavior:
- Change line 29 to
data={[mocks.sunburst[0]]}
- Open local url: http://localhost:9001/?path=/story/sunburst--sunburst-with-two-layers
- You will see label of inner and outer circle overlaps with each other, as show in Screenshot 1
Expected behavior
Labels of 2 layers sunburst/pie chart in case of only 1 data point should be clearly visible.
Screenshots
Screenshot 1:

Screenshot 2:

Version (please complete the following information):
- OS: macOS High Sierra
- Browser: chrome
- Elastic Charts: 18.2.2
Additional context
I tried to avoid this issue to display both labels properly by making change to the linkLabel config as below:
linkLabel: {
// maxCount: 0,
fontSize: 14,
maximumSection: Infinity,
},
And then go to URL in step 2, you will see the label of inner circle is invisible, as shown in Screenshot 2.
Errors in browser console
N/A
Kibana Cross Issues
N/A
How do I display the labels of 2 layers sunburst/pie chart in case of only 1 data point?
Thanks for your help.
Describe the bug
Hi Elastic/Kibana developers,
I’m seeing a bug with rendering in Kibana when I’m using a 2 layered sunburst/pie chart with a single data point for the chart. The label of the outer circle overlaps with the inner circle.
To Reproduce
Steps to reproduce the behavior:
data={[mocks.sunburst[0]]}Expected behavior
Labels of 2 layers sunburst/pie chart in case of only 1 data point should be clearly visible.
Screenshots

Screenshot 1:
Screenshot 2:

Version (please complete the following information):
Additional context
I tried to avoid this issue to display both labels properly by making change to the
linkLabelconfig as below:And then go to URL in step 2, you will see the label of inner circle is invisible, as shown in Screenshot 2.
Errors in browser console
N/A
Kibana Cross Issues
N/A
How do I display the labels of 2 layers sunburst/pie chart in case of only 1 data point?
Thanks for your help.