Skip to content

How to attribute a color based on ordinal value? #8273

Answered by dsobral
dsobral asked this question in Q&A
Discussion options

You must be logged in to vote

Sorry, in the meantime I found the answer by myself.
You just have to define a domain in the scale.
Not very obvious but simple enough...

"domain": ["category1", "category2", ...]

Replies: 1 comment 3 replies

Comment options

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

@dsobral
Comment options

@dsobral
Comment options

Answer selected by dsobral
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