Skip to content

Commit ade2a8f

Browse files
author
Robert Schmid
committed
remove reliance on xLabelModulus.
1 parent 553acb0 commit ade2a8f

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎MPChartLib/src/com/github/mikephil/charting/charts/HorizontalBarChart.java‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ protected void drawXLabels(float yPos)
7676

7777
int step = mData.getDataSetCount();
7878

79-
for (int i = 0; i < mData.getXValCount(); i += mXLabels.mXAxisLabelModulus) {
79+
for (int i = 0; i < mData.getXValCount(); i ++) {
8080

8181
position[1] = i * step + i * mData.getGroupSpace()
8282
+ mData.getGroupSpace() / 2f;
@@ -138,7 +138,7 @@ public String getLongestLabel()
138138
{
139139
String longest = "";
140140

141-
for (int i = 0; i < mData.getXValCount(); i += mXLabels.mXAxisLabelModulus)
141+
for (int i = 0; i < mData.getXValCount(); i ++)
142142
{
143143
String text = mData.getXVals().get(i);
144144

0 commit comments

Comments
 (0)