Reputation: 362
I'm displaying a stacked percent column chart. I want the total to be displayed on top. I added following to YAxis:
stackLabels: {
enabled: true, // This is ignored <<<<<<
style: {
fontWeight: 'bold',
color: (Highcharts.theme && Highcharts.theme.textColor) || 'gray'
}
}
But this works only if the stacking is not "percent". How can I achieve what I want (showing total on top of the stacked column?
The code can be checked at : http://jsfiddle.net/Bzs2k/1/
Upvotes: 1
Views: 1863
Reputation: 37578
You can also set y value as positive value.
stackLabels: {
y:10,
enabled: true, // This is ignored <<<<<<
style: {
fontWeight: 'bold',
color: (Highcharts.theme && Highcharts.theme.textColor) || 'gray'
}
}
Upvotes: 0