9

我正在创建一个像这样的堆积条形图。请注意,每个堆栈的总数显示在顶部,我该如何禁用/隐藏它?

4

1 回答 1

15
yAxis: {
    min: 0,
    title: {
        text: 'Total fruit consumption'
    },
    stackLabels: {
        enabled: false,
        style: {
            fontWeight: 'bold',
            color: (Highcharts.theme && Highcharts.theme.textColor) || 'gray'
        }
    }
},

您需要像上面的示例一样将 stackLabels 设置为 false

stackLabels: {
            enabled: true,
于 2012-04-05T15:04:50.147 回答