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
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
Hi Graham,
Thank you for reply.
With above option, what I see is that interpolated data is plotted. The requirement is not to interpolate data when it is set to null.
Our requirement is to show single non-null datapoint between two null values. The null values cannot be interpolated.
Please suggest us.