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

why zero valued point in sunburst chart got selected? #767

Open htimran opened 5 years ago

htimran commented 5 years ago

the issue is, I have four children in my chart and mostly the case one or two children value will be zero. so when I click on that point, the whole chart disappears.

$scope.OeeOptions = { chart: { type: 'sunburstChart', height: 450, width: "90%", mode: "size", duration: 250, showLabels: true, labelThreshold: 0.2, labelFormat: function (d, t) { return d.name; } } var data = [ { "name": "Root", "color": statusColor, "children": [ { "name": "analysis", "chartID": indexchart }, { "name": "Closure", "chartID": indexchart, "children": [] }, { "name": "Quality", "chartID": indexchart, "children": [] }, { "name": "Performance", "chartID": indexchart, "children": [] }] },

            ];