android - How to ensure space between labels MPAndroidChart -


i creating line chart using mpandroidchart, working great, i've noticed @ labels become bunched up. know there way prevent (i've seen other apps don't have issue,) don't know setting enable.

a line chart crowded labels

there couple of ways make labels fit better.

  1. decrease text size of x axis labels mchart.getxaxis().settextsize(float)
  2. set label count limit x axis using mchart.getxaxis().setlabelcount(int). should work fine, not showing 1 label per data point.
  3. change date format of label.

some, or none of these might you, depending on requirements. luck!


Comments