I drawing line chart using MPAndroidChart library.
I would like the x-axis display the date of September
1/09, 6/09, 11/09,16/09,21/09,26/09
Code
xAxis.valueFormatter = IndexAxisValueFormatter(weekdays)
xAxis.setLabelCount(5, true)
xAxis.axisMinimum = 0f
xAxis.axisMaximum = 30f
xAxis.granularity = 5f
xAxis.position = XAxis.XAxisPosition.BOTTOM
weekdays is
[1 / 09, 2 / 09, 3 / 09, 4 / 09, 5 / 09, 6 / 09, 7 / 09, 8 / 09, 9 / 09, 10 / 09, 11 / 09, 12 / 09, 13 / 09, 14 / 09, 15 / 09, 16 / 09, 17 / 09, 18 / 09, 19 / 09, 20 / 09, 21 / 09, 22 / 09, 23 / 09, 24 / 09, 25 / 09, 26 / 09, 27 / 09, 28 / 09, 29 / 09, 30 / 09, 1 / 09, 2 / 09, 3 / 09, 4 / 09, 5 / 09, 6 / 09, 7 / 09, 8 / 09, 9 / 09, 10 / 09, 11 / 09, 12 / 09, 13 / 09, 14 / 09, 15 / 09, 16 / 09, 17 / 09, 18 / 09, 19 / 09, 20 / 09, 21 / 09, 22 / 09, 23 / 09, 24 / 09, 25 / 09, 26 / 09, 27 / 09, 28 / 09, 29 / 09, 30 / 09]
It looked simple, but the x-axis just not showing all !