Skip to content

[Feature] Store position of labels after dragging #18665

Description

@snibbo

What problem does this feature solve?

We are using dragable labels, so that a user can fine-tune his visualisation (esp. overlapping labels).

    labelLayout: (params: any) => {
      return {
        align: 'left',
        x: params.labelRect.x,
        y: params.labelRect.y,
        draggable: true
      }

When we toggle between hide and show labels, the position of the labels is reset - and a user needs to drag the labels again.

Also, all labels are resetted when a new data point is added. This makes sense when the overall scale of the chart changes, but with fixed x-/y-axis there should be no harm keeping the label positions as well.

Thank you very much!

What does the proposed API look like?

?

Metadata

Metadata

Assignees

No one assigned

    Labels

    enThis issue is in Englishnew-featurependingWe are not sure about whether this is a bug/new feature.staleInactive for a long time. Will be closed in 7 days.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions