Mpandroidchart: How to show always first and last x axis label

Created on 12 Oct 2016  路  4Comments  路  Source: PhilJay/MPAndroidChart

I want to show always first and last label of x axis.What method I suppose to use?

All 4 comments

How ?

How?

Set this.
xAxis.setLabelCount(12, true); // e.g, 12 is 12 full months.

Guess we would need something like YAxis.setDrawTopYLabelEntry() for the x axis as well. Btw, there also isn't a YAxis.setDrawBottomYLabelEntry() although there is internal field for that (which is never set). Any particular reason that the bottom setter is missing for YAxis and that there is no such functionality for XAxis at all @PhilJay ?

There is an open PR ready to be merged which adds the missing method for the YAxis.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

AndroidJiang picture AndroidJiang  路  3Comments

DarkHelmet67 picture DarkHelmet67  路  3Comments

chathudan picture chathudan  路  3Comments

rohitkumarbhagat picture rohitkumarbhagat  路  3Comments

tsengvn picture tsengvn  路  3Comments