Skip to content

[Feature] Draggable Legends #21615

@JJGOD-13

Description

@JJGOD-13

What problem does this feature solve?

Currently there doesn't seem to be any option for the legend items to be 'user-interactive' i.e. The chart user can't move them around, or resize the legend.

Being able to reposition the legend is useful for occasions where the legend has to be included in the Axis and when there is limited space to put the legend.

What does the proposed API look like?

Ideally some sort of draggable or userInteractive toggle on the Legend class. So that you can do something like:

legend: [
  {
    draggable: true, // <--- Like that?
    orient: "vertical",
    top: POS_FROM_TOP_LEGEND,
    left: "2%",
    itemWidth: 10,
  },
]

Metadata

Metadata

Assignees

No one assigned

    Labels

    enThis issue is in Englishnew-featurependingWe are not sure about whether this is a bug/new feature.

    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