Under review
Discontinuous LineSeries
This discussion was imported from CodePlex
torbonde wrote at 2014-06-11 09:21:
Hi
At the moment I'm using a LineSeries, to view my data. But sometimes there might be missing datapoints, which I would like to be made aware of. I was thinking that what I want is something like LineSeries, but allowing discontinuities. For instance, such that I can specify a number (or a timespan in my case), and when two consecutive datapoints are further apart than that, no line would be drawn between them. I assume that this is not already a part of OxyPlot, but is it possible for me to implement? I have no idea where to start.
At the moment I'm using a LineSeries, to view my data. But sometimes there might be missing datapoints, which I would like to be made aware of. I was thinking that what I want is something like LineSeries, but allowing discontinuities. For instance, such that I can specify a number (or a timespan in my case), and when two consecutive datapoints are further apart than that, no line would be drawn between them. I assume that this is not already a part of OxyPlot, but is it possible for me to implement? I have no idea where to start.
objo wrote at 2014-06-11 12:10:
Try to add a
DataPoint.Undefined
or set one of the coordinates to
NaN
. This should create a break in the line. Also see the BrokenLineStyle
and
BrokenLineColor
properties if you want to show a line where the break is.torbonde wrote at 2014-06-11 12:22:
Yeah, I thought of that. But there is no way to achieve this without adding a lot of NaNs? Like writing a new Series-class?
Customer support service by UserEcho
I'm trying to achieve something like this: http://i.imgur.com/yRBXzSn.png
Thanks!
Best Regards,
Bruno