UI-Research / college-affordability.urban.org

0 stars 0 forks source link

Ordering of categories on hover tooltip #160

Closed vivhou closed 7 years ago

vivhou commented 7 years ago

The order of the tooltip does not match the order of the bars (see 04_0260- a grouped bar chart): screen shot 2016-12-02 at 2 43 24 pm

bchartoff commented 7 years ago

Default order of tooltip is largest to smallest value for the group. Should be able to override this, but currently cannot. Open but unmerged PR

https://github.com/c3js/c3/pull/1813

Not fixable unless c3 is updated

vivhou commented 7 years ago

also i didn't see an issue opened regarding the ordering of the bars (note that in the screenshot, it should be in the order of 2, 3, and 4 years instead of 2, 4, and 3 years), since this does not follow the R code, but this can easily be fixed in the json. Unless there is no other way to work around this but manually through the json, I won't open a ticket. screen shot 2016-12-22 at 2 17 04 pm

bchartoff commented 7 years ago

This order is defined in the JSON, there's no way to sort the categories since it's a human sort, not a computer sort (it takes a human to look at those categories and figure out the logical order). So no, don't open a new ticket, just figure out how to get the order correct in the json (by script or by hand)