I take daily medication and want to use a graph such (preferably Plotly, mini graph card, or something built into Home Assistant) to track this better. When I take the pills, I scan an NFC tag, which updates a datetime helper with the current time.
I want each change of this entity (meaning pills were taken) to add a new column/bar on the X axis, with the Y axis showing the hours elapsed since the last time the pills were taken. The goal being to consistently take the pills every 24 hours and keep each bar the same height.
I think I figured it out. The part I am stuck with now is how to basically add another entry (bar) to the graph each time the state changes and the template sensor goes back to zero, while retaining the old value on the previous bar.