Today graph stod at current time?

I have a graph plotting energy over time in an old grafana 4 environment, now when I have moved to grafana 6 it looks different. In old when looking at “today” graph ends at current time, but in new it shows 0 after current time, se images. How can I get it to stop drawing after current time?