Stop Chart at certain time

I want to stop the chart node to go on, because at a certain time of the day there are no more data to display. I already searched for a solution, but withou success.

If you stop sending live data to the chart, it should remain static. Unfortunately, if you refresh the page, the x axis catches up with the missed time.
Untitled 1
Untitled 2

To avoid that I would accumulate the data as x,y points (x = timestamp, y = sensor data) in a flow context variable and draw the chart from that. It might be best to redraw the graph less frequently than the sensor data, depending how often it arrives.