Graphing with historic state

I have a gas meter which only gives the total M3 used. I would like to graph the hourly consumption. Is it possible to use something like historic state in graphing?
Something like this (dimension1)

    - component: oh-aggregate-series
        name: Delivery
        item: M3Meter_Delivery
        gridIndex: 0
        xAxisIndex: 0
        yAxisIndex: 0
        type: bar
        dimension1: hour - previous hour

I’m able to do this in grafana, or with a rule which creats a dummy item which I them can graph but I wonder if it can be done directly