Skip to content

Commit 42585f7

Browse files
emmacunninghammarkov00
authored andcommitted
fix(dimensions): use chart top padding in computation of chart height
fix #13
1 parent 08d1f83 commit 42585f7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib/utils/dimensions.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,6 @@ export function computeChartDimensions(
121121
top,
122122
left,
123123
width: chartWidth - hMargin - chartPaddings.left - chartPaddings.right,
124-
height: chartHeight - vMargin - chartPaddings.bottom - chartPaddings.bottom,
124+
height: chartHeight - vMargin - chartPaddings.top - chartPaddings.bottom,
125125
};
126126
}

0 commit comments

Comments
 (0)