Skip to content

[FEATURE] Apply box width when using point style in legend labels #5665

Open
@Lenophie

Description

@Lenophie

Expected Behavior

BoxWidth of legend labels should be applied when point styles are being used, particularly 'line'.

Current Behavior

BoxWidth is ignored when using point styles in legend labels.
This is understandable for standard point styles since it would only distort them, but it would be pretty useful for point styles 'line' and 'dash' since their purpose is to style the legend in the first place.
Currently if you use point style 'line' with a dashed line which pattern is rather long, the dashing won't appear in the legend.
And whether you use a dashed line or not, having control over the length of lines (via boxWidth) in the legend would be great.

Here is the legend I get for this dashed line :
1
2
While it works fine for a dashed line with a shorter pattern :
3

Hope a simple fix can be made !

Edit : I know the size can be changed by setting the legend font size to a higher number, but I would rather be able to set the font size independently from the line length.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions