Skip to content

Should facets work on a Map? #247

@Fil

Description

@Fil

If the data is a Map (for example obtained with d3.rollup), faceting doesn't work. Documentation or bug?

data = d3.rollup()

Plot.plot({
  facet: {
    data,
    x: "0"
  },
  marks: [Plot.barY(data, { x:"0", y: "1" })]
})

https://observablehq.com/d/a3de0aa6815cab5c

const markFacets = mark.data === this.data ? facetsIndex : undefined;

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