How to add legends to a sunburst chart in nvd3?

261 views Asked by At

Is there a way to add legends to a sunburst NVD3 chart? I'm doing this and it's currently not working.

chart = nv.models.sunburstChart()          
      .showTooltipPercent(true)
      .color(d3.scale.category20c())
      .showLabels(false)
      .margin({bottom: 20, top: 10,right:0})
      .showLegend(true)
      .mode("value")
0

There are 0 answers