commit | 95f285b551b98281cdd87faadb956f978105cb3f | [log] [tgz] |
---|---|---|
author | Cristian Cardoso <cristian.car@samsung.com> | Mon Jul 28 16:11:34 2014 -0400 |
committer | Cristian Cardoso <cristian.car@samsung.com> | Mon Jul 28 16:11:34 2014 -0400 |
tree | 8c5267a29054311e2f38edcc94ff097df54658cf | |
parent | 51f295dd34c0228b550f36392335d537e7880a8f [diff] |
All values "Entry.getVal ()" equal
diff --git a/MPChartLib/src/com/github/mikephil/charting/data/ChartData.java b/MPChartLib/src/com/github/mikephil/charting/data/ChartData.java index 9988230..81c7244 100644 --- a/MPChartLib/src/com/github/mikephil/charting/data/ChartData.java +++ b/MPChartLib/src/com/github/mikephil/charting/data/ChartData.java
@@ -183,6 +183,11 @@ if (mYMax < entry.getVal()) { mYMax = entry.getVal(); } + + if (mYMin == mYMax) { + mYMin--; + mYMax++; + } } public int getDataSetCount() {