Show graph data by hour

is there any way to show graph data by hour ?
i’m only interested in the data for the current day, and i’m using the API to fetch the information.

is there any way to get the data by hour ?