Hello,
You can use the utility meter component to get the consumption values per day, months, …:
Concerning the graph, I use influxdb with grafana. I am on hassio and so I use the add-ons provided for both, which makes set up very easy.
Otherwise there is a post describing how to set it up using docker images here (I have not checked the content in details since I have not used that method)