on the mbostock/reinitialize branch, the symbol reducer crashes at inferSymbolHint (ordinal.js:121:32) with Cannot read properties of undefined (reading 'fill')
import * as Plot from "@observablehq/plot";
import * as d3 from "d3";
export default async function() {
const penguins = await d3.csv("data/penguins.csv", d3.autoType);
return Plot.plot({
grid: true,
marks: [
Plot.dot(penguins, Plot.hexbin({r: "count", symbol: "mode"}, {
radius: 20,
symbol: "sex",
x: "culmen_depth_mm",
y: "culmen_length_mm"
}))
],
symbol: {legend: true}
});
}
I've tried to fix this here #804 (review)
on the mbostock/reinitialize branch, the symbol reducer crashes at inferSymbolHint (ordinal.js:121:32) with
Cannot read properties of undefined (reading 'fill')I've tried to fix this here #804 (review)