Skip to content

The dense interval option on the area mark seems to require the y option #2328

Open
@mbostock

Description

@mbostock
Member

I expect this to work:

Image

Plot.areaY(data, {x: "date", reduce: "count", interval: "day"}).plot()

After all, it works for a line:

Image

Plot.lineY(data, {x: "date", reduce: "count", interval: "day"}).plot()

Instead it seems you have to set the y option to anything:

Image

Plot.areaY(data, {x: "date", y: true, reduce: "count", interval: "day"}).plot()

Activity

changed the title [-]The dense interval option on the area mark seems to require the **y** option[/-] [+]The dense interval option on the area mark seems to require the y option[/+] on May 30, 2025
linked a pull request that will close this issue on Jun 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn’t working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      Participants

      @mbostock

      Issue actions

        The dense interval option on the area mark seems to require the y option · Issue #2328 · observablehq/plot