如何在饼图中的HighChart标签上显示相同的图例框

时间:2013-05-03 09:10:27

标签: highcharts

如何在饼图的HighChart中的Label上显示相同的图例框 我的代码在这里用于标签是

      dataLabels: {
            enabled: true,
            color: '#000000',
            style: {
                fontSize: '9px'
            },
            distance:3,
            connectorWidth:0,
            formatter: function() {
                return Math.round(this.percentage) +' %';
            }


        },

1 个答案:

答案 0 :(得分:0)

尝试以下操作:

    legend: {
        align: 'right',  //you can change it
        verticalAlign: 'top', // also change it
        x: 100, //set as you want
        y: 0 // set as you want
    },