I am loading data points from core-data, and using it for x, y values in a line chart using the Charts Cocoapods module. For some reason, the data and lines do not get drawn sometimes, even though I am getting good data from core data every time.
The issue turned out to be the fact that core data does not sort itself when returning the NSSets used to pull data out of, and Charts requires x values to be sequential. The solution, sort my data before putting it into the chart.
Hope this helps someone!