How to hide labels in the highcharts in the pie

2019-06-15 00:52发布

Can't figure out how to hide the pie labels. enter image description here

I've already tried these settings:

                xAxis: {
                    labels:
                    {
                        enabled: false
                    }
                },
                yAxis: {
                    min: 0,
                    gridLineWidth: 0,
                    title: {
                        text: ''
                    },
                    labels:
                    {
                        enabled: false
                    }
                },

but looks like it doesn't work.

1条回答
劫难
2楼-- · 2019-06-15 01:01

You set that in the plotoptions for the pie chart, not the axis :

plotOptions: {
    pie: {
        allowPointSelect: true,
        cursor: 'pointer',
            dataLabels: {
                enabled: false,
            }
        }
    }

FIDDLE

查看更多
登录 后发表回答