Horizontal legend height #5921

PaulDalek opened this Issue Nov 2, 2016 · 1 comment


None yet

2 participants

PaulDalek commented Nov 2, 2016 edited


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


@oysteinmoseng oysteinmoseng self-assigned this Nov 2, 2016

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

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