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

Popular posts from this blog

plot - Remove Objects from Legend When You Have Also Used Fit, Matlab -

java - Why does my date parsing return a weird date? -

Need help in packaging app using TideSDK on Windows -