Energy Data Visualization Problem

I am using the graphana to plot energy consumption data and I wanted to show only values from a certain period of time and hide others at the same time (eg: see the 2am-4pm consumption of a week). I tried to use a filter tag, but I couldn’t see a way to fiiter the hour of the data, so I would like to know if there’s a way to do it?