Skip to content

Commit 10f97c1

Browse files
committed
fix: broken axis rendereing
1 parent 519056c commit 10f97c1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/charting/renderer/XAxisRenderer.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ export class XAxisRenderer extends AxisRenderer {
3434
const rect = this.mAxis.isIgnoringOffsets() ? this.mViewPortHandler.getChartRect() : this.mViewPortHandler.getContentRect();
3535
if (rect.width() > 10 && !this.mViewPortHandler.isFullyZoomedOutX()) {
3636
const p1 = this.mTrans.getValuesByTouchPoint(rect.left, rect.top);
37-
const p2 = this.mTrans.getValuesByTouchPoint(rect.top, rect.top);
37+
const p2 = this.mTrans.getValuesByTouchPoint(rect.right, rect.top);
3838

3939
if (inverted) {
4040
min = p2.x;

0 commit comments

Comments
 (0)