wwsalmon / sota.js

d3-based charting library for State of the Academy 2020 and beyond (and before)
https://wwsalmon.github.io/sota.js/
6 stars 0 forks source link

add sorted parameter for pieChart #55

Closed createandbuild closed 4 years ago

createandbuild commented 4 years ago

image

the orders for colors/groups are wrong/inconsistent with the legend

createandbuild commented 4 years ago

Only for some of them though. Hm weird

createandbuild commented 4 years ago

some of them go clock-wise while some of them go counter clock-wise (everything in discipline section). This is not a huge deal image image

createandbuild commented 4 years ago

Also the first group should be at the top (example below) image

wwsalmon commented 4 years ago

This is intentional behavior right now, we talked about it before...what would be a useful feature is a sorted parameter for pieChart

wwsalmon commented 4 years ago

implemented, just pass sorted=false param, i.e. sota.pieChart({selector: "#module-politics-informed-d3", dataFile: "assets/data/politics/informed", sorted: false});