Skip to content

Commit

Permalink
fix: offset computation fix
Browse files Browse the repository at this point in the history
  • Loading branch information
farfromrefug committed Oct 22, 2020
1 parent e1f8c62 commit 1c440c2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/charting/charts/BarLineChartBase.ts
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,7 @@ export abstract class BarLineChartBase<U extends Entry, D extends IBarLineScatte
if (this.mAxisRight.isEnabled()) {
this.mRightAxisTransformer.prepareMatrixValuePx(this.mXAxis.mAxisMinimum, this.mXAxis.mAxisRange, this.mAxisRight.mAxisRange, this.mAxisRight.mAxisMinimum);
}
if (this.mAxisLeft.isEnabled()) {
if (this.mAxisLeft.isEnabled() || this.mXAxis.isEnabled()) {
this.mLeftAxisTransformer.prepareMatrixValuePx(this.mXAxis.mAxisMinimum, this.mXAxis.mAxisRange, this.mAxisLeft.mAxisRange, this.mAxisLeft.mAxisMinimum);
}
}
Expand All @@ -298,7 +298,7 @@ export abstract class BarLineChartBase<U extends Entry, D extends IBarLineScatte
if (this.mAxisRight.isEnabled()) {
this.mRightAxisTransformer.prepareMatrixOffset(this.mAxisRight.isInverted());
}
if (this.mAxisLeft.isEnabled()) {
if (this.mAxisLeft.isEnabled() || this.mXAxis.isEnabled()) {
this.mLeftAxisTransformer.prepareMatrixOffset(this.mAxisLeft.isInverted());
}
}
Expand Down

0 comments on commit 1c440c2

Please sign in to comment.