I'm working on a WPF application that displays range (distance) measurements in real time. I use the chart plotter to display a line graph and refresh this at around 10Hz. The Y-axis (distance) is fixed and the x-axis (data sample) is 'rolling'.
My question is this. When there is suddenly no target I'd like to simply break the plot until a valid range measurement is received again.
Currently when there is no target I add a value that exceeds the maximum, however this causes the graph to shoot off the scale and then when a target is within range it shoots down again. I'd like to simply have gaps in the plot to represent no target.
Is this possible?
Thanks in advance.