Store and show data about wather

Hi, I am collecting data from a pulse water meter, 1L=1pulse, I am saving it via mqtt “wather/home/w1=1” to influxdb, and I want to display it in the graph.
I would like to be able to display cumulative consumption data after a certain period of time, e.g., hour, day, week, month, year,
how do I store the data?, currently I can store what inpilz I write a unit , and then how do I display it?