Skip to content

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
Discussion options

You must be logged in to vote

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).

Replies: 1 comment

Comment options

You must be logged in to vote
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
Category
Q&A
Labels
None yet
2 participants