lundi 18 mai 2015

How to center the chart?

I am using mpandroidchart library to generate a chart but when drawn, it always appears more towards the top of the layout leaving a blank area below it. Is there a way to draw it to the center of the layout? (see image)

enter image description here

Also, another question: I have another chart which starts from x=0, y=0 but the values on y-axis usually start from (x= 0, y=15), (1, 16) or so. Is it possible to draw the chart from the minimum available y-index value(i.e 15 in this case) and not showing a blank area below it?

Aucun commentaire:

Enregistrer un commentaire