Grafana panels for Daily Enegy consumption

Hi,

I am using Grafana for my project on Energy building.
I want to get daily Energy consumptions. For that, I am using 2 different panel (Pie panel and graph panel) to compare the values. The problem that I can’t solve is I don’t get the same values in the 2 cases (example in the attached pictures). For example : I want to show the daily energy consumption for 1 week (01-01-2020 00:00 to 08-01-2020) in a graph panel using the bar display. I get 477 Wh for Econs PAC for the 03-01-2020, while in pie panel I get 865 Wh (the right value) for the same day. I get the same problem for the other values.

Regards

Abbas