"Hole Value"

Oystein Bjorke 10 year бұрын 0
This discussion was imported from CodePlex

CMC wrote at 2013-02-26 01:57:

Apologies if this has been asked before, I have searched at length, but is there a concept of "hole value" in OxyPlot? This means there is a row of data that exists, but cannot be plotted, and so a data point is created, but is not to be represented on the screen. An example: A series of numbers with text in one (or more) places in the series:

39.934
44.383
banana
39.383
32.393

Instead of "banana", there might be nothing (null) as well. In industrial applications, it might be "I/O Error" or "Bad Data", etc. I want the row containing the unplotable non-numeric to exist in the series as a gap. I could set it to zero, but it is not a zero. In some charting,, you set the value for the data point to a "Hole Value" and thus exists in the series, but no plot is shown on the screen.

Thank you.

objo wrote at 2013-02-26 11:35:

Try to add a null item, a double.NaN value or a DataPoint.Undefined. Which one depends on how you bind to your data.