We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 7c7a3ed + 3bd3c7c commit 7955a46Copy full SHA for 7955a46
src/coord/axisHelper.ts
@@ -115,7 +115,7 @@ function adjustScaleForOverflow(
115
116
// Get Axis Length
117
const axisExtent = model.axis.getExtent();
118
- const axisLength = axisExtent[1] - axisExtent[0];
+ const axisLength = Math.abs(axisExtent[1] - axisExtent[0]);
119
120
// Get bars on current base axis and calculate min and max overflow
121
const barsOnCurrentAxis = retrieveColumnLayout(barWidthAndOffset, model.axis);
0 commit comments