Displaying grouped data in bargraph

Hello everyone,

I want to make a panel with hourly energy consumption presented on trend panel by hour by hour bars. I have stored data in MsSql databese. There is two variables named pmtime and L1sum. pmtime contain data and time and L1sum contain sum of energy consumption since start measurements. I will be glad if anyone could be able to look into my above issue. Thank you!
Szymon