We should support chart data that includes nans. For example, the following line chart has a nan in it midway through the dataset and this is the result:

I think the sensible thing to do is to skip the nan data point and move on to the next valid entry in the data set.