Text file to bar graph

I would like to take the plain text values in a text file and display them as a bar graph or bar chart in lovelace.

An example of the values in the text file:

1.4
3.5
4.7
1.4
7.8
etc

What is the easiest way to accomplish this?