diff --git a/src/core/core.layouts.js b/src/core/core.layouts.js index bb5c310b616..d5c1e20b3ae 100644 --- a/src/core/core.layouts.js +++ b/src/core/core.layouts.js @@ -223,7 +223,7 @@ function placeBoxes(boxes, chartArea, params, stacks) { for (const layout of boxes) { const box = layout.box; const stack = stacks[layout.stack] || {count: 1, placed: 0, weight: 1}; - const weight = (stack.weight * layout.stackWeight) || 1 + const weight = (stack.weight * layout.stackWeight) || 1; if (layout.horizontal) { const width = chartArea.w / weight; const height = stack.size || box.height;