Skip to content

The bin transform should coerce inputs to numbers #789

@mbostock

Description

@mbostock

This currently does not do what I expect:

untitled (14)

Plot.rectY(["9.6", "9.6", "14.8", "14.8", "7.2"], Plot.binX()).plot()

I expect the data to be explicitly coerced to numbers since Plot.binX implies that x is quantitative.

untitled (15)

Plot.rectY([9.6, 9.6, 14.8, 14.8, 7.2], Plot.binX()).plot()

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