Skip to content

Invalid domain when facets are used with iterator #2430

@mootari

Description

@mootari

The following examples all produce the same (correct) output with a y domain of ["b"]:

Plot.dot(["ab"], {fy: "1"}).plot().scale("y").domain
Plot.dot(new Set(["ab"]), {fy: "1"}).plot().scale("y").domain

However, when an iterator is passed in, no values are rendered and the y domain becomes [undefined, undefined]:

Plot.dot(new Set(["ab"]).values(), {fy: "1"}).plot().scale("y").domain

(edit: simpler repro, but the original use case was Map.values())

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn’t working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions