MPAndroidChart
MPAndroidChart copied to clipboard
MPAndroid BarChart duplicate values displayed
Summary When there is data for more than one values on the x-axis (in this case the date), the output is shown as expected. However, when there is data for only a single date, for some reason that date is displayed twice on the x-axis.
Expected Behavior Date should be displayed once on the x-axis
Possible Solution
Device (please complete the following information):
- Device: Samsung Galaxy S10e
- Android Version 11
- Library Version 3.1
Additional Context I have created an issue on Stack Overflow with images provided -> https://stackoverflow.com/questions/69936294/mpandroid-barchart-duplicate-values-displayed
xAxis.setGranularity(1f);//设置最小间距