Skip to content

For text, allow x and y to be specified as constant numbers #523

@mbostock

Description

@mbostock

For manual labels, it’d be nice if you could specify x and y as constant numbers. Currently they can either be a channel or null; in the latter case the labels are placed in the center of the chart.

Related, it might also be nice to have an anchor option which allows the text to be positioned somewhere else relative to the surrounding frame; this would eliminate the need to hard-code dx and dy (e.g., in the geofacet example). The anchor option could accept values such as top, top-left, top-right, right, etc.

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