RhoInc / aeexplorer

Adverse Event Explorer
https://rhoinc.github.io/aeexplorer/test-page/
MIT License
17 stars 9 forks source link

Reinitialize color scale when changing group. #132

Closed jwildfire closed 6 years ago

jwildfire commented 6 years ago

Currently the colorScale.domain() is not reset, so new colors are used when the group variable is changed. Instead, the original colors should be re-assigned to the new groups.

jwildfire commented 6 years ago

Test Notes

Use test page or CAT to confirm that colors are re-used when changing the group variables. First group column should always be blue, 2nd green, 3rd orange, etc. Total column should always be gray.

rchronowic commented 6 years ago

Tested on Test Page in both Firefox and Chrome, colors are re-used when changing group variables, although order is 1. Blue, 2. Green, 3. Purple, 4. Orange and total remains gray.