Pie charts cut off legends when they space is higher than wider
Sorry I do not have the answer for your question, but can you please say how you start a thread? Yeah it sounds banal and simple but I do not see the button where to make a thread, and I like to make a thread on this forum as I have a question.
Thanks for answering
Legends are not shown as you have set showInLegend to false.
sorry – not the legend on the bottom of the chart, but the data labels. You’ll see they do not display, but when you you make the chart wider they appear.
This always seems to be an issue when height > width. Here is a side by side example, sama data set, but wide and tall
We tried but couldn’t reproduce the issue at our end. Can you please create a jsFiddle so that we can look into the issue and help you out?
We posted the html for it above, but here you go, also in a fiddle: http://jsfiddle.net/dgct8r0n/
This is intended behavior. Some of the indexlabels are skipped to avoid overlapping. You can place indexLabels inside each section of pie using indexLabelPlacement.
Your documentation says:
When set to “auto”, the chart automatically decides whether to place labels inside or outside based on the available space.
This does not work.
Looks like we’re going to have to add some custom code to ensure the render space is square, as inside does not work for small segments. Example: http://jsfiddle.net/qcncv0qn/3/
I urge you to consider this as a bug, and provide improved rendering of labels. I would suggest that when h > w or w > h that the labels are moved upwards or sideways so they can be accommodated properly.
Pie and Doughnut chart doesn’t support auto placement of indexLabels. Thank you for pointing the mistake in our documentation. We have updated it now.
You must be logged in to reply to this topic.