答案 0 :(得分:1)
highcharts饼图可以选择为数据标签设置自己的格式化程序。见https://api.highcharts.com/highcharts/plotOptions.pie.dataLabels.formatter
在那里你可以访问:
this.percentage Stacked series and pies only. The point's percentage of the total.
this.point The point object. The point name, if defined, is available through this.point.name.
this.series: The series object. The series name is available through this. series.name.
this.total Stacked series only. The total value at this point's x value.
this.x: The x value.
this.y: The y value.