Android MPAndroidChart xasis values showing more than 1

I am using android java MPAndroidChart Library. As you can see from photo, value of x axis showing more than one. I just want to show tuesday one time. How can I do it image of chart

Answer

I find the solution lets say your name of the list is myArray and answer is

barChart.getXAxis().setLabelCount(myArray.size());

Leave a Reply

Your email address will not be published. Required fields are marked *