Color scheme with more than 10 colors? #1072
-
Like in the example https://observablehq.com/@observablehq/plot-cheatsheets-colors?collection=@observablehq/plot-cheatsheets#colorsExample I have categorical data with more than 10 discrete values. Now I am wondering if there is a color scheme which I can use that would already provide this. Or should I "manually" map the domain to a fixed range of colors? I understand that the colors may end up being hard to discern, but I think in the exploratory phase it would be very useful nonetheless. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
You can specify the color range as an array; for example, to reuse the (deprecated) Category20b from d3@4, you can specify:
|
Beta Was this translation helpful? Give feedback.
You can specify the color range as an array; for example, to reuse the (deprecated) Category20b from d3@4, you can specify:
color: {range: ["#393b79","#5254a3","#6b6ecf","#9c9ede","#637939","#8ca252","#b5cf6b","#cedb9c","#8c6d31","#bd9e39","#e7ba52","#e7cb94","#843c39","#ad494a","#d6616b","#e7969c","#7b4173","#a55194","#ce6dbd","#de9ed6"] }