HighCharts remove stack totals

2019-06-19 08:13发布

I'm creating a stacked bar chart just like this one. Notice that the total of each stack is displayed at the top, how can I disable/hide this?

1条回答
我命由我不由天
2楼-- · 2019-06-19 09:06
yAxis: {
    min: 0,
    title: {
        text: 'Total fruit consumption'
    },
    stackLabels: {
        enabled: false,
        style: {
            fontWeight: 'bold',
            color: (Highcharts.theme && Highcharts.theme.textColor) || 'gray'
        }
    }
},

you need to turn the stackLabels to false like in the example above

stackLabels: {
            enabled: true,
查看更多
登录 后发表回答