I'm setting a CombinedChartView that have some value on xAxis, lets say (15, 16, 17, 2, 3)
with this line of code
for i in 0..<gameStatsMonth.count {
let dataEntryTeam = ChartDataEntry(x: Double(gameStatsMonth[i].day!), y: Double(gameStatsMonth[i].points!))
lineDataEntryTeam.append(dataEntryTeam)
}
It happens that the values are displayed sorted in xAxis, like this: 2, 3, 15, 16, 17.
There is any way to keep the first order of x values ? (the order on which they were inserted in lineDataEntryTeam)