【问题标题】:Can't show labels in angular nvd3 sunburst chart无法在角度 nvd3 旭日形图中显示标签
【发布时间】: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


    【解决方案1】:

    同样的问题,通过将你的 nvd3 库更新到 1.8.5 来解决。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2016-05-09
      • 2012-10-30
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多