highcharts-editor icon indicating copy to clipboard operation
highcharts-editor copied to clipboard

Starnge limitation on pie charts : can't activate both legend and data labels

Open berdeter opened this issue 8 years ago • 2 comments

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 :

capture

but switching to a graph with legend from the template tab hides my labels :

capture2

berdeter avatar Dec 12 '16 13:12 berdeter

@cvasseng This probably comes from the template, which enables or disables the legend.

TorsteinHonsi avatar Dec 12 '16 14:12 TorsteinHonsi

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).

cvasseng avatar Dec 12 '16 15:12 cvasseng