My chart lineDataSet entry maybe has more than seven, but the xAxis Labels only have seven at most. I have setting: xAxis.setLabelCount(7, true)
,force is true.
The X-axis label type is Date
, corresponding to the Y-axis data. Although the labels are evenly divided on the X-axis, they cannot be aligned with the Y-axis data. Unless force is not set, my requirement is that the X-axis only displays up to 7 dates.
Is there a way to ensure that labels can be aligned when multiple data is based on demand (see screenshot). LineDateSet has nine entries. How can I align the X-axis labels?