Looks like you need to Pivot Data. Can you Just post some fake data set similar to what you want to plot?
Is this possible without Pivoting the data? There are about 80k records and I think having to pivot it 3 times would significantly affect the performance.
Record: StartX: StartY: CurX: CurY: EndX: EndY:
Rec1 1 2 2 3 3 4
Rec2 2 3 3 4 4 5