MPAndroidChart icon indicating copy to clipboard operation
MPAndroidChart copied to clipboard

MPAndroid BarChart duplicate values displayed

Open majayjayy opened this issue 4 years ago • 1 comments

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

majayjayy avatar Nov 15 '21 16:11 majayjayy

xAxis.setGranularity(1f);//设置最小间距

liuhuicheng avatar Aug 10 '22 03:08 liuhuicheng