Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to hide labels in the highcharts in the pie

Tags:

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.

like image 723
Sergey Avatar asked May 16 '13 16:05

Sergey


People also ask

How do I hide labels on a pie chart?

Plot a pie chart using pie() method. To hide the label on the left side in matplotlib, we can use plt. ylabel("") with ablank string.

How do I show no data available in Highcharts?

Just don't create the highchart and insert text saying "No Data Available". Without any code, this is the most help you're likely to get.


1 Answers

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

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

FIDDLE

like image 111
adeneo Avatar answered Oct 19 '22 04:10

adeneo