highcharts-editor
highcharts-editor copied to clipboard
Starnge limitation on pie charts : can't activate both legend and data labels
I need a simple pie chart showing slice names in the legend and percentages in data labels. I could describe my data label like this :
but switching to a graph with legend from the template tab hides my labels :
@cvasseng This probably comes from the template, which enables or disables the legend.
As @TorsteinHonsi said, It looks like the data labels is not enabled in the first screenshot - so it looks like an issue with having loaded a template that enables them, then another which indirectly disables them. Template state is sort of "limbo" state in that state introduced by a template will be overwritten when loading another template. This is intended behaviour to avoid getting sticky template states and to avoid conflicts.
Explicitly enabling the labels manually should fix it, as manually changed properties have precedence over template properties.
That said, the tick should probably be enabled in the first screenshot, with a visible indication that the property is set from a template (and thus will vanish when selecting a different template).