Hello there, I am assigning my axis in the following manner:
ValueSelector = row => (Int32?)row[
This is so that a chart can be created with an axis that could contain null values. However, when those null values are present, I instead receive an exception at the code above, but only at the point when I am setting the chart data source. The exception is an InvalidCastException and says that the 'Specified cast is not valid.'. This only happens if the null values are present. If they are normal ints then it all works as expected.
Is there an extra step I need to take to allow the chart to deal with these null values? Either by displaying them as zeroes or just missing them out entirely, leaving just gaps? The latter would be much more preferable.
Thanks in advance.