I want to create a line chart. Currently my graph look like this

The data is live so the chart should start at 9 AM and increase toward x-axis upto 4 PM
when a user generate chart at 12 PM.
My expected result is (Note: Data is only available upto 12 PM.)

I could not find a way to generate above partial chart. Any idea?
I hope I have understood this correctly. The code in comments is the remainder of the data (from 12pm to 4pm). Without this data the graph will show a partial graph as you require.
I hope this helps.