HighCharts Pie Chart - Add text inside each slice

后端 未结 2 1212
佛祖请我去吃肉
佛祖请我去吃肉 2020-12-17 00:08

I am creating a financial pie chart using HighCharts that represents asset allocation. My goal is to create a chart that represents the actual allocation values in each sli

2条回答
  •  情话喂你
    2020-12-17 00:54

    We can set negative value to distance attribute within dataLabels, which will show text inside the slice

    plotOptions: {
            pie: {
                dataLabels: {
                    distance: -30
                }
            }
    }
    

    DEMO

    Output :

提交回复
热议问题