Skip to content

Allow date strings when using time intervals #1182

@yurivish

Description

@yurivish

I came across the behavior shown in this notebook, where plotting date strings on a utc scale ceases to work if the scale additionally has an interval property.

Plot.dotX(dates).plot({ x: { type: "utc" } }) // dots are rendered

Plot.dotX(dates).plot({ x: { type: "utc", interval: d3.utcDay } }) // dots are not rendered

According to the docs time scales coerce channel values to dates, so I think the first chart is right, and there might be something weird happening when the interval option gets involved.

Metadata

Metadata

Assignees

No one assigned

    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