Want to display Daily, Weekly and monthly data using tables and bar graph

I want to calculate the difference between my max and min value of each hour and want to visualize that on Grafana, The end result is to display each hour produced bottles or packs, I am reading the counter every 10 seconds (later on currently it is not 10 sec ) and logging it into my table with column name (packer_counter) along with the server time, Timestamp (with column name “time_st”). I want to use that timestamp for calculating the difference on an hourly basis and whenever the user selects the time range from grafana it should display the data of the given range on an hourly basis.

welcome to the :grafana: forum, @malickamranahmed

this is a common question. Two bits of advice: check out our docs on time controls:

and search this forum for similar questions, like this one: