Skip to content

Adjust dx and dy position of Plot.image marks #663

@mkfreeman

Description

@mkfreeman

In the same way that Plot.text supports dx and dy attributes to adjust the positioning of the text, it would be great to afford similar behavior for Plot.image marks.

Looking at the svg image documnetation, it appears as if the only native option is to use a transform property.

We could expose dx and dy options to in the Plot API (to match Plot.text), and use them to assign the translate property where:

const transformX = dx || 0;
const transformY = dy || 0;
const transform = translate(dx, dy)

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