lineSeries.xAxis = xAxis
lineSeries.yAxis = yAxis
lineSeries.dataSource = self // Must add data source after assigning axis otherwise SNAFU
lineSeries.dataSource = self // Breaks x-axis
This is with 2015 volume 2.
You're correct. The chart attempts to parse the data whenever the datasource is set and it can't do so without a pair of valid axes. We'll make sure this doesn't break the chart.In the meantime, like you said, setting the axes before the datasource or using a chart's -addSeriesForType method does the trick.