Skip to content

Commit 9611421

Browse files
committed
Maximum negative value was confused...
1 parent 5ac58fc commit 9611421

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

MPChartLib/src/com/github/mikephil/charting/data/ChartData.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ public void calcMinMax(int start, int end) {
203203
mLastEnd = end;
204204

205205
mYMin = Float.MAX_VALUE;
206-
mYMax = -Float.MIN_VALUE;
206+
mYMax = -Float.MAX_VALUE;
207207

208208
for (int i = 0; i < mDataSets.size(); i++) {
209209

MPChartLib/src/com/github/mikephil/charting/data/DataSet.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ protected void calcMinMax(int start, int end) {
123123
mLastEnd = endValue;
124124

125125
mYMin = Float.MAX_VALUE;
126-
mYMax = -Float.MIN_VALUE;
126+
mYMax = -Float.MAX_VALUE;
127127

128128
for (int i = start; i <= endValue; i++) {
129129

0 commit comments

Comments
 (0)