File tree Expand file tree Collapse file tree 1 file changed +6
-7
lines changed
MPChartLib/src/main/java/com/github/mikephil/charting/data Expand file tree Collapse file tree 1 file changed +6
-7
lines changed Original file line number Diff line number Diff line change @@ -61,27 +61,26 @@ public DataSet(List<T> values, String label) {
6161 @ Override
6262 public void calcMinMax () {
6363
64- if (mValues == null || mValues .isEmpty ())
65- return ;
66-
6764 mYMax = -Float .MAX_VALUE ;
6865 mYMin = Float .MAX_VALUE ;
6966 mXMax = -Float .MAX_VALUE ;
7067 mXMin = Float .MAX_VALUE ;
7168
69+ if (mValues == null || mValues .isEmpty ())
70+ return ;
71+
7272 for (T e : mValues ) {
7373 calcMinMax (e );
7474 }
7575 }
7676
7777 @ Override
7878 public void calcMinMaxY (float fromX , float toX ) {
79-
80- if (mValues == null || mValues .isEmpty ())
81- return ;
82-
8379 mYMax = -Float .MAX_VALUE ;
8480 mYMin = Float .MAX_VALUE ;
81+
82+ if (mValues == null || mValues .isEmpty ())
83+ return ;
8584
8685 int indexFrom = getEntryIndex (fromX , Float .NaN , Rounding .DOWN );
8786 int indexTo = getEntryIndex (toX , Float .NaN , Rounding .UP );
You can’t perform that action at this time.
0 commit comments