Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Plot data values inside pie charts slice

How to add a data values inside the slice in pie chart. Can any one help me in this? whether this is possible?

like image 254
arun Avatar asked Mar 28 '13 13:03

arun


1 Answers

You can use datalalabels - distance parameter : http://api.highcharts.com/highcharts#plotOptions.pie.dataLabels.distance

http://jsfiddle.net/gh/get/jquery/1.7.2/highslide-software/highcharts.com/tree/master/samples/highcharts/plotoptions/pie-datalabels-distance/

  plotOptions: {
        pie: {
            dataLabels: {
                distance: -30,
                color: 'white'
            }
        }
    },
like image 121
Sebastian Bochan Avatar answered Oct 08 '22 05:10

Sebastian Bochan