Display one entry per month

Hello,

I have a “previous month KWH” sensor that every day 1 of the month sends the previous month KWH consumptions. How can I create a bar chart where each bar represents the month the value belongs to?