plot
plot copied to clipboard
Should Plot.maxX consume the reverse option?
See https://observablehq.com/@observablehq/surprising-reverse-gets-eaten: if you have
Plot.stackY(
Plot.selectMaxX({
order: "y",
reverse: true
}))
reverse: true is "eaten" by the select transform, and doesn't do anything.
Applying maxX after stackY works as expected:
Plot.selectMaxX(
Plot.stackY({
order: "y",
reverse: true
}))
I'm not sure if this is fixable (we could want all the selection transforms to pass sort and reverse untouched?), but it's at least surprising.
Previously #565.
another instance of this happening in Plot.groupZ : https://observablehq.com/@fil/diverging-stacked-bar-chart-help