Why is blues from light to dark while viridis is from dark to light? #3815
Answered
by
mbostock
richardliu-db
asked this question in
Q&A
-
Is this intentional? Is there a reason behind this decision? Thanks! |
Beta Was this translation helpful? Give feedback.
Answered by
mbostock
Jan 19, 2024
Replies: 1 comment
-
They were designed by different people, for one. 😄 Also relevant is whether the data is being displayed against a dark or a light background. For example, blue is good against a light background, but not suitable against a dark one. viridis can probably be used in either (though tends to be used for heatmaps that fill an entire region with a quantitative color encoding). |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
richardliu-db
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
They were designed by different people, for one. 😄 Also relevant is whether the data is being displayed against a dark or a light background. For example, blue is good against a light background, but not suitable against a dark one. viridis can probably be used in either (though tends to be used for heatmaps that fill an entire region with a quantitative color encoding).