I would like to create a graph with custom data given by the user with a Number field and a Date field.
Each day, I should go to Home Assistant and insert in a form the current day and the number associated with it.
Example :
2 November - 5
3 November - 14
4 November - 52
With these data I would like to create a graph that report the evolution of these numbers.
Does someone have any idea how I should do this ? The graphic would not be an issue I think. But i don’t know the way I could do an entity or something to store data (Date/Number associated).
So, finally I created an HTML page and used chart.js to create a graphic manually. And I integrate it with a Webpage Card in Home Assistant. It’s working too…
Got it sorted if anyone interested for those unfamiliar with Java
this site here has a premade chart that can get you started
just play with the data on the left and hit run to see the changes
couple of notes
if you want to change from numbers to text , add “” around the texts
change “line” to “bar” to make it “bar” style instead
once youre done, just hit “get your own website”, they make it real easy to open an account and publishing the chart so youl get a link that you can put in the Webpage lovelace card