Skip to content
This repository has been archived by the owner on Aug 23, 2024. It is now read-only.

Implement Legend with fixed length line on the left side #189

Closed
wants to merge 7 commits into from

Conversation

d-Rickyy-b
Copy link

Hey there,

I had some issues with #185 - the line in the legend was just way too long in my charts. So I implemented a legend type that puts the line on the left hand side. That way the legend looks a lot cleaner than before for legends with (at least) one long and one short label.

Let me know what you think about it.

Cheers,
Rico

Prior to this commit we simply defined a hardcoded padding. This commit respects the passed style and inherits from a default padding defined in legendDefaults.
The stroke length was just way too long, so I first tried to decrease the length by subtracting the padding from it, but it was not a big difference.
I ended up using a hardcoded value because it gave the best visual results on different resolutions.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant