Skip to content

Commit 4a8929e

Browse files
committed
Fix issue PhilJay#1506
1 parent 3ddcd24 commit 4a8929e

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,12 +54,12 @@ public void calcMinMax(int start, int end) {
5454

5555
// need chart width to guess this properly
5656

57-
for (int i = start; i < endValue; i++) {
57+
for (int i = start; i <= endValue; i++) {
5858

5959
final BubbleEntry entry = mYVals.get(i);
6060

61-
final float ymin = yMin(entry);
62-
final float ymax = yMax(entry);
61+
float ymin = yMin(entry);
62+
float ymax = yMax(entry);
6363

6464
if (ymin < mYMin) {
6565
mYMin = ymin;

0 commit comments

Comments
 (0)