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.
there couple of ways make labels fit better.
- decrease text size of x axis labels
mchart.getxaxis().settextsize(float)
- set label count limit x axis using
mchart.getxaxis().setlabelcount(int)
. should work fine, not showing 1 label per data point. - change date format of label.
some, or none of these might you, depending on requirements. luck!
Comments
Post a Comment