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

Sunburst Chart - Size makes no difference #369

Closed psmod2 closed 8 years ago

psmod2 commented 8 years ago

Hi,

I'm using a Sunburst chart however find that size is not making any difference.

To help describe this I've made this plunkr: https://plnkr.co/edit/MdKPwDRr7UWESk46dTzH?p=preview

So if you look at the chart's last ring all are of equal even though I have different values in the size

"name": "Cluster1",
     "children": [
          {"name": "AgglomerativeCluster", "size": 10},
          {"name": "CommunityStructure", "size": 3},
          {"name": "HierarchicalCluster", "size": 1},
          {"name": "MergeEdge", "size": 1}
     ]

I want that size to effect to make a partiucalr segment bigger or smaller.

krispo commented 8 years ago

add mode: 'size' option.

psmod2 commented 8 years ago

Awesome! Thank you.

psmod2 commented 8 years ago

And for my future knowledge where can i see what attributes exists and what each do as i couldnt find this option?

krispo commented 8 years ago

There is nvd3-community docs, and also you can look through an option tree on Live Edit page in extended mode.