krispo / angular-nvd3

AngularJS directive for NVD3 reusable charting library (based on D3). Easily customize your charts via JSON API.
http://krispo.github.io/angular-nvd3
MIT License
1.29k stars 377 forks source link

To Show legends and labels for sunburst chart #244

Open nounla opened 9 years ago

nounla commented 9 years ago

I am new to NVD3 sunburst chart and tried to show labels and legend for sun burst chart. Can we show labels and legend for sun burst chart using nvd3 and if yes, how?

khaled-ansary commented 7 years ago

I tried the following code to show the label, but the label still disappear chart: { type: 'sunburstChart', height: 700, color: d3.scale.category20c(), duration: 250 }, key: function(d){return d.name}, showLabels: true, mode: "size", labelFormat: function (d){if(mode === 'count'){return d.name + '#' + d.value}else{return d+ ' '}}