Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/234.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Javascript 如何使用Higcharts插件在饼图中显示百分比和计数值?_Javascript_Php_Charts_Highcharts - Fatal编程技术网

Javascript 如何使用Higcharts插件在饼图中显示百分比和计数值?

Javascript 如何使用Higcharts插件在饼图中显示百分比和计数值?,javascript,php,charts,highcharts,Javascript,Php,Charts,Highcharts,我试着用下面的方法用PHP的Highchart插件绘制饼图 在上面的饼图中,我想在饼图中显示百分比和计数2,如A:67.0%(2)和B:33.0%(1)highcharts饼图有一个选项,用于为数据标签设置您自己的格式化程序。看 在其中,您可以访问: this.percentage Stacked series and pies only. The point's percentage of the total. this.point The point object. Th

我试着用下面的方法用PHP的Highchart插件绘制饼图


在上面的饼图中,我想在饼图中显示百分比和计数2,如A:67.0%(2)和B:33.0%(1)

highcharts饼图有一个选项,用于为数据标签设置您自己的格式化程序。看

在其中,您可以访问:

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.