So, the premise of my program is to take in information that a user inputs from a textbox and then charting it. Unfortunately, I have to make it so that a user can leave some input blank. As a result, I am left trying to graph null data. The chart will just stop graphing at that point, even if there is data afterwards to be graphed. Is there any way for the chart to ignore null values?
Assuming you have got X axis values and at times the corresponding Y values are null then you should be looking at the EmptyPointStyle
of the Series
. here you can control the appearance and also set a specific label like "No Value" or "Value Needed" which would be seen on the graph.
In case you want to skip the value and join the adjacent points then set the Color
property of the EmptyPointStyle
Chart1.Series[2].EmptyPointStyle.Color = System.Drawing.Color.Green;