From 303f5414be7d86fc849335d47a007420ed066059 Mon Sep 17 00:00:00 2001 From: Mohammad Rezaei Date: Wed, 7 Dec 2022 13:57:12 +0330 Subject: [PATCH] Fix chart start padding in minimum scale --- .../com/github/fujianlian/klinechart/BaseKLineChartView.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/KLineChartLib/src/main/java/com/github/fujianlian/klinechart/BaseKLineChartView.java b/KLineChartLib/src/main/java/com/github/fujianlian/klinechart/BaseKLineChartView.java index fc784a8..42f6142 100755 --- a/KLineChartLib/src/main/java/com/github/fujianlian/klinechart/BaseKLineChartView.java +++ b/KLineChartLib/src/main/java/com/github/fujianlian/klinechart/BaseKLineChartView.java @@ -831,7 +831,7 @@ private void calculateValue() { * @return */ private float getMinTranslateX() { - return -mDataLen + mWidth / mScaleX - mPointWidth / 2; + return -mDataLen + mWidth / mScaleX - mPointWidth / 2 - startPadding; } /**