Skip to content

text dx and dy cannot accept function #1528

Closed
@winner106

Description

@winner106
 Plot.text(driving, {x: "miles", y: "gas", text: (d) => `${d.year}`, dy: d.year % 5 === 0 ? -6 : 10})

the following code not working

dy: d.year % 5 === 0 ? -6 : 10

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions