2017-01-10 49 views
1

如何設置始終在我的森伯斯特圖表中顯示標籤?我有這個plunker像演示:http://plnkr.co/edit/emCcNv?p=preview無法在角度nvd3森伯斯特圖表中顯示標籤

$scope.options = { 
    chart: { 
    type: "sunburstChart", 
    height: 450, 
    duration: 250, 
    width: 600, 
    mode: "size", 
    groupColorByParent: true, 
    labelThreshold: 0.04, 
    showLabels: true, 
    key: function (d,i){return d.name;}, 
    labelFormat: function (d){if(mode === 'count'){return d.name + '#' + d.value}else{return d+ ' '}}, 
} 

不爲我做的工作,但在這裏http://krispo.github.io/angular-nvd3/#/sunburstChart它在某種程度上,如果你選中「showLables」在這裏工作的複選框

回答

2

同樣的問題,要解決更新你的nvd3 lib到1.8.5。