【发布时间】:2017-01-10 06:49:41
【问题描述】:
如何设置始终在我的旭日形图中显示标签?我在演示中有这个 plunker:http://plnkr.co/edit/emCcNv?p=preview
$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”复选框,它会以某种方式工作
【问题讨论】:
标签: nvd3.js angular-nvd3