- changed status to resolved
Over-time series aren't always the correct colour
Issue #417
resolved
Example: if a pie chart of radiographic acquisition protocol frequency is requested, as well as a plot of acquisition DAP over time, the series colours between the charts should match for each protocol name. However, this isn't the case if there are certain combinations of capitalisation in use for the names.
Django's database sort puts lower case first: Chest pa Chest PA Chest PA Grid W033 Chest PA
The sort_by_name
JavaScript function puts upper case first:
Chest PA
Chest PA Grid
Chest pa
W033 Chest PA
For the above protocols the colour of the series in the two charts will not match.
The sort_by_name
JavaScript function needs to be updated so that it puts lower case first.
Comments (2)
-
reporter -
- changed milestone to 0.7.3
- Log in to comment
Updated sort_by_name JavaScript function so that it puts lower case before upper case. Tested and works as expected. Code from http://stackoverflow.com/questions/35289232/alphabetical-array-sort-lowercase-first. Fixes issue
#417→ <<cset 90e76f724c28>>