Skip to content

Horizontal legend disappears depending on length of series names #4986

Closed
@fredrikw

Description

@fredrikw

I have a graph with a horizontally oriented legend that shows a strange problem. When the total length of the legend is "exactly right" the clip path in the resulting svg gets distorted so that most of the legend is clipped of. See the following CodePen where the first plot is the problematic one. Adding or removing one character in the series names make the legend show correctly as seen in plots two and three.

https://codepen.io/fredrikwa/pen/NWxYXba

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions