Storing result in TinyDB and using its data for bar chart

You would need to roll your own html/chart: