MPAndroidChart
MPAndroidChart copied to clipboard
x-axis out of order causes an exception
Summary
Expected Behavior
Possible Solution
Device (please complete the following information):
- Device: [e.g. Google Pixel]
- Android Version [e.g. 7.0]
- Library Version (e.g. 3.1.0-alpha)
Additional Context
My requirement is that the x-axis labels are not displayed in order, for example (3, 4, 5, 6, 7, 1, 2) but after I pass in the data, although the X-axis realizes the label order, the order of the data is still drawn in order Yes, how can I solve this problem?

This is my data source "Entry, x: 13.0 y: 1.0" "Entry, x: 11.0 y: 34.0" "Entry, x: 20.0 y: 35.0" "Entry, x: 19.0 y: 36.0" "Entry, x: 8.0 y: 0.0" "Entry, x: 5.0 y: 0.0" "Entry, x: 7.0 y: 0.0" "Entry, x: 10.0 y: 0.0" "Entry, x: 14.0 y: 0.0" "Entry, x: 0.0 y: 0.0" "Entry, x: 15.0 y: 1.0" "Entry, x: 21.0 y: 36.0" "Entry, x: 12.0 y: 30.0" "Entry, x: 6.0 y: 0.0" "Entry, x: 22.0 y: 36.0" "Entry, x: 1.0 y: 0.0" "Entry, x: 4.0 y: 0.0" "Entry, x: 17.0 y: 1.0" "Entry, x: 2.0 y: 0.0" "Entry, x: 23.0 y: 0.0" "Entry, x: 3.0 y: 0.0" "Entry, x: 18.0 y: 26.0" "Entry, x: 16.0 y: 0.0"
How can I make the x-axis display in the same order as the data source? My version is 3.1.0
I have the same problem. Have you solved it?