Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
1401
Line chart - Data not appearing for intermittent dataset or dataset containing NaN values
posted

Hi,

I have dataset which has Y Axis data intermittently, say {1, 2, 3, NaN, 5, NaN, 7, 8}. The line chart generated does not have point representing value 5 in above dataset, but it has data points for 7 and 8.

Attached is sample image which depicts the same.  

Please suggest to show all the data points.

Thanks,

Kumar

Parents
  • 30692
    Suggested Answer
    Offline posted

    You have easier options if the missing values are null values rather than Double.NaN. If they are nulls you can do:

    ultraChart1.LineChart.NullHandling = Infragistics.UltraChart.Shared.Styles.NullHandling.InterpolateSimple;

    Is that an option for you? You could prescan your data set and set Double.Nan to DBNull.Value or null depending on your data source. Or do you need a different solution?

    -Graham 

Reply Children