Fix graph data range.

This fix ensures that the last valid result is included in the graph.