Skip to content

symbol reducer and scale hint #806

@Fil

Description

@Fil

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn’t working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions