Skip to content

Pass the bin extent to reducers? #435

@Fil

Description

@Fil

A typical example would be to have the title of each bar show the date extent in https://observablehq.com/@fil/plot-stargazer-history

    Plot.rectY(
      data,
      Plot.binX(
        {
          y: "count",
          title: (bin) => `${bin.x1}${bin.x2}` // ⇐ something like this.
        },
        {
          x: "date",
          fill: "brown",
          thresholds: 100
        }
      )
    ),

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions