Custom scale in Plot?

I’ve seen that in d3 you can do something like this to create a custom scale.
var scale = d3.scale.ordinal().domain(['senior','mid','junior']).range([0,1,2]);

The goal is basically to specify a custom order on an axis.

How would I do this within a Plot bar chart?

You can specify the domain of an ordinal scale like so:
x: { domain: ['senior','mid','junior'] }

and the domain order will be preserved

1 Like

I hate it when I miss the documentation on small things like this. But yeah this is exactly what I needed so thanks again @Fil