如何在highcharts点使用total属性

时间:2015-04-08 08:24:53

标签: highcharts pie-chart

请您在饼图中演示此属性的用例: http://api.highcharts.com/highcharts#Point.total 它是如何使用的?

1 个答案:

答案 0 :(得分:1)

你在这里:http://jsfiddle.net/tu67e1ce/

    tooltip: {
        pointFormat: '{series.name}: <b>{point.percentage:.1f}%</b>, Total: {point.total}'
    },

将任何切片悬停,并在工具提示中查看总值。您也可以在数据标签格式化程序等中使用该值。