-
Hello all, I am generating a stacked barplot, and changing it depending on a filter. The problem is that, depending on the filter, some categories no longer appear on some of the graphs (which is fine and expected), but the colors of the same categories/values start changing between graphs. Isn't it possible to define a scale where I colors are associated to specific category values? I'm going around in circles in the documentation and I don't seem to be able to find this... Thanks, |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Sorry, in the meantime I found the answer by myself. "domain": ["category1", "category2", ...] |
Beta Was this translation helpful? Give feedback.
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", ...]