How to create a graphic with custom data?

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).

Thanks in advance for your help.

1 Like

This often asked for and as far as I know there is no way to do it.

So, nobody else has an idea how we could do this ?

It’s like impossible currently ?

Home assistant simply doesn’t work like graphs in a spreadsheet. It takes data in real time and stores it in a database with a timestamp.

You could enter your data into an input number but it is going to be timestamped with the time you enter the data.

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…

1 Like

Writing up a few notes on how you did that in the Share Your Projects section would definitely be appreciated by others if you have the time.

So true, would have helped a lot if users would came back with solutions once they got them
im stuck with the same matter

1 Like

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

1 Like