buzzcola / squeakernet

Squeakernet FLP: The Ultimate Feline Lifestyle Platform
7 stars 0 forks source link

Line chart lines are inaccurate #8

Closed buzzcola closed 5 years ago

buzzcola commented 5 years ago

Currently the line chart connects lines from all weight measurements, but the logs only get written when the weight changes. This sloping line makes it look like (for example) George Valentine ate six grams of kibbles gradually between 4:00 AM and 5:30 AM, when the feeding activity actually took place between 5:29 AM and 5:30 AM.

I don't think there's a highcharts setting for this, so process the data to add extra points just before the readings, making things flat.

Bonus: add a data point for the current moment with the last weight reading, so the chart is always up to date.

buzzcola commented 5 years ago

Fixed!