mansona / lint-to-the-future

A modern way to progressively update your code to the best practices
54 stars 7 forks source link

Make sure graphs can actually go to zero #10

Closed mansona closed 2 years ago

mansona commented 2 years ago

When I first wrote this I didn't think that any of the graphs would actually go to zero 😂 but seriously, I didn't consider that with the absence of a rule in the data set there was nothing allowing the graphs to go to zero 🙈

This PR tweaks the normalise function a bit so that it is aware of the highest date in the dataset and adjusts accordingly.

I also fixed an off-by-one error caused buy timezones 🙃