d3.js - How to display top 10 pie chart slice in nvd3? -
i have pie chart generated nvd3, has many slices.
by clicking legend, can control slice display or not, want top 10 (by count) of chart slices show default, , others hide (by clicking legend, can added pie chart).
can in nvd3?
finally, complete transforming data:
[{ 'x': 10, 'y': 1, 'disabled': true, }]
set disabled attribute true
.
Comments
Post a Comment