我有一个Highcharts Sankey图表,其中只有一个级别的流程,我想将标签放在图表的外部 . 我已经尝试了dataLabels的'x','align','verticalAlign','inside'等属性,但无法从内部移动它们 . 我得到的最接近的是在图表周围添加间距,并在标签前后添加'_'个字符,旋转'-1'将它们移出,但这看起来非常糟糕 . 我已经将JSFiddle与我的数据放在一起了,但是我无法完全重新创建它,因为我在JSFiddle中似乎没有用 .

Highcharts.chart('container', {

    title: {
        text: 'Highcharts Sankey Diagram'
    },

    series: [{
        keys: ['from', 'to', 'weight'],
        data: [
            ["Commercial RE","Commercial RE ",1252],["Commercial/Ag","Commercial/Ag - REAL ESTATE ",496],["Commercial/Ag","Commercial/Ag - UNSECURED ",182],["Commercial/Ag","Commercial/Ag - VEHICLES ",651],["Consumer","Consumer - SECURED ",2107],["Consumer","Consumer - UNSECURED ",299],["HELOC","HELOC ",2057],["Unknown","Indirect Auto ",17],["! DCF","Indirect Auto ",2],["! Interest Only","Indirect Auto ",2],["! LOC","Indirect Auto ",1],["! RLOC","Indirect Auto ",1],["! SPB Test 1/29","Indirect Auto ",1],["Aggregate 1","Indirect Auto ",2],["Aggregate 2","Indirect Auto ",2],["Aggregate 3","Indirect Auto ",2],["Farm RE","Indirect Auto ",414],["Indirect Auto Pool","Indirect Auto ",3],["PeterTest","Indirect Auto ",1],["Test 1","Indirect Auto ",1],["test 2","Indirect Auto ",2],["UNASSIGNED","Indirect Auto ",5],["RE Construction","RE Construction ",127],["RE Mortgage","RE Mortgage ",2201]
        ],
        type: 'sankey',
        name: 'Sankey demo series'
    }]

});