We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4aabae1 commit d722da5Copy full SHA for d722da5
MPChartLib/src/com/github/mikephil/charting/charts/BarChart.java
@@ -76,18 +76,8 @@ protected void calcMinMax() {
76
// extend xDelta to make space for multiple datasets (if ther are one)
77
mDeltaX *= mData.getDataSetCount();
78
79
- int maxEntry = 0;
80
-
81
- for (int i = 0; i < mData.getDataSetCount(); i++) {
82
83
- DataSet<? extends Entry> set = mData.getDataSetByIndex(i);
84
85
- if (maxEntry < set.getEntryCount())
86
- maxEntry = set.getEntryCount();
87
- }
88
89
float groupSpace = mData.getGroupSpace();
90
- mDeltaX += maxEntry * groupSpace;
+ mDeltaX += mData.getXValCount() * groupSpace;
91
mXChartMax = mDeltaX - mXChartMin;
92
}
93
0 commit comments