Big right spacing causes part of legend to be clipped. #6497
Comments
@TorsteinHonsi - how should we resolve that issue? I see two possible solutions:
|
I think the first solution - it should be something like: if (horizontal && legend.itemX - initialItemX + itemWidth >
(widthOption || (chart.spacingBox.width - 2 * padding - initialItemX - options.x))) { But then I don't understand why it wraps in the test you picture above. The alignment to |
I agree, the alignment to |
Yes I saw the same - but it shouldn't happen because it is well within the spacing box even with one row. I'll check some more. |
Expected behaviour
Legend fits in chart.
Actual behaviour
Legend is clipped on left side.
Live demo with steps to reproduce
https://jsfiddle.net/4be6gddy/

(in Win/Chrome clipping is bigger and first items for each legend rows are not visible
)
The text was updated successfully, but these errors were encountered: