Skip to content

Commit

Permalink
Merge pull request #20246 from apache/time-inverse
Browse files Browse the repository at this point in the history
fix(time): fix bar bandWidth with inversed time axis
  • Loading branch information
plainheart authored Aug 12, 2024
2 parents 7c7a3ed + 3bd3c7c commit 7955a46
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 7955a46

Please sign in to comment.