Skip to content

Commit

Permalink
fix(time): bar bandWidth with inversed time axis #20068
Browse files Browse the repository at this point in the history
  • Loading branch information
Ovilia committed Aug 12, 2024
1 parent 7c7a3ed commit 3bd3c7c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/coord/axisHelper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ function adjustScaleForOverflow(

// Get Axis Length
const axisExtent = model.axis.getExtent();
const axisLength = axisExtent[1] - axisExtent[0];
const axisLength = Math.abs(axisExtent[1] - axisExtent[0]);

// Get bars on current base axis and calculate min and max overflow
const barsOnCurrentAxis = retrieveColumnLayout(barWidthAndOffset, model.axis);
Expand Down

0 comments on commit 3bd3c7c

Please sign in to comment.