Skip to content

[Feature] - Separate legend text align from the icon position #20004

Description

@lbpaisDev

What problem does this feature solve?

This is in anyway urgent, however it would be nice to have the possibility to align the legent text to a side without also changing the icon position.

In my case, it was a design choice to have the icon shown in the left of the text and have the text align to the right. However, in the current implementation this is not possible because when the text align changes the icon goes to the side where the text is aligned to.

What does the proposed API look like?

Instead of having options.legend.align for both icon and text alignment i would suggest have something like options.legend.iconPosition (either 'left' or 'right') and options.legend.align would just affect the text alignment.

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