New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Horizontal legend height #5921

PaulDalek opened this Issue Nov 2, 2016 · 1 comment


None yet
2 participants
Copy link

PaulDalek commented Nov 2, 2016


It seems that there is a limitation of a legend height inside of Legend.prototype.handleOverflow() function:

if (options.layout === 'horizontal') { spaceHeight /= 2; }

that does not allow maxHeight property to be a higher value than half of the spaceHeight

spaceHeight = chart.spacingBox.height + (alignTop ? -optionsY : optionsY) - this.padding

when layout is set to horizontal.

Live demo with steps to reproduce


This comment has been minimized.

Copy link

oysteinmoseng commented Nov 2, 2016

Added a suggested fix, hopefully this does not break something else.

TorsteinHonsi added a commit that referenced this issue Nov 3, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment