Bar Chart Data Manipulation

I have a tag that I am getting from an ewon which shows the current GPM of a flow meter. I need to totalize it and add that data to a bar chart. The Y-axis needs to be able to change to show hourly, daily, monthly, or yearly totals. I am not sure of the best way to go around this. Any help would be appreciated.