Optional resolver so the swatch for each type matches the color
the graph encoding actually assigns it. Without this the filter
falls back to an independent Okabe-Ito index, which can disagree
with the canvas (the categorical scale assigns colors in data
insertion order, not sorted order).
Optional resolver so the swatch for each type matches the color the graph encoding actually assigns it. Without this the filter falls back to an independent Okabe-Ito index, which can disagree with the canvas (the categorical scale assigns colors in data insertion order, not sorted order).