I'm trying to create a line chart that has data from the last year. I want to make the labels on the xAxis of the chart represent the months from the last year, which seems to be done easily enough in this tutorial: https://www.codebeaulieu.com/96/How-to-create-a-Combined-Bar-and-Line-chart-using-ios-charts. However, this line of code from the tutorial:
let data: LineChartData = LineChartData(xVals: months, dataSets: dataSets)
where "months" represents an array of strings, is not available after the chart's update to Swift 2.3. The only constructors available for LineChartData are these two:
LineChartData(dataSets: <[IChartDataSet]?>)
LineChartData(dataSet: IChartDataSet?)
so it appears that the option for changing the xVals has disappeared after the update. Was this option moved somewhere else? Or has it been completely removed from iOS Charts?