Temperature graph on the surface

If you prepare the line in advance so that there is a geometry edge, you can prepare the History output on the edge. If you enable coordinate output for the selected nodes, you can use coordinates in Excel to sort the nodes by one of the coordinates and compute distances between them. Then, you can create the required diagrams.