Skip to content

Color scheme with more than 10 colors? #1072

Answered by Fil
knutwannheden asked this question in Q&A
Discussion options

You must be logged in to vote

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"] }

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@knutwannheden
Comment options

@mbostock
Comment options

@knutwannheden
Comment options

Answer selected by knutwannheden
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants