I successfully chart a LineSeries and AreaSeries, providing data by binding to a ReadOnlyObservableCollection of Tuple<double, double>, meaning that I give a list of XY point pairs. And your code dutifully draws a line from the first point to the second, from the second to the third, etc.
But I'd like to be able to draw an unknown number of two-vertex line segments in one LineSeries or some such series. For instance, perhaps I could provide a collection of Tuple<double, double, double, double>, where each element contained the XY values of the "from" vertex and the XY values of the "to" vertex.
A more complex case, which I also need, is to draw a multipart polyline. By "polyline" I mean a line consisting of two or more vertices, where each vertex is a pair of XY values. By "multipart" I mean that it can be discontinuous: If the vertices in the collection are points A, B, C, ..., H, for instance, then I might want a line to be drawn from A to B, then another one from C to D to E to F, and another one from G to H. That means that there would be a gap from B to C, and from F to G. Obviously I would need to provide some indication of where these breaks should be, or provide this collection in the same manner as the collection of two-vertex line segments, which would mean duplicating almost every vertex.
Is this possible? If so, since which version of Charts? If not, what would you suggest as a workaround, and when might it be possible without a workaround?
Thanks for any guidance you can provide.