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
This is because the line chart will only draw line segments or endpoints of line segments, so if you have a single value surrounded by null values it will not get rendered.
For a workaround, though, please see David's last post in this thread: http://community.infragistics.com/forums/p/11310/44176.aspx#44176
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.
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