Skip to content

Conversation

@AuxiliumCDNG
Copy link
Contributor

@AuxiliumCDNG AuxiliumCDNG commented May 6, 2022

Closes #113
Closes #115
Please have a look.
I also don't know where to merge this. I hope master works. You will have to discard your changes to the delta function when frontend-enhancements gets merged, however.

Also added a reload button and changed call structure a bit for easier data updating
@AuxiliumCDNG AuxiliumCDNG added the new feature The will become a new feature label May 6, 2022
(Hopefully) improved type-checking logic, naming and some comments
for the code.
Copy link
Member

@fabiancdng fabiancdng left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just pushed some minor changes regarding naming conventions and added a few comments, hope that's okay. Besides that, everything seems to work for me. Looks good! Hope the performance will be okay on every device as there are a lot of calculations happening on the front end this way. However, due to the specifiable interval between records (which I quite like) it's probably not possible to calculate them in advance and store in the DB or something... So I think for now it's the best solution.

@AuxiliumCDNG
Copy link
Contributor Author

Chrome's performance analysis reports that all charts take a breathtaking 0.9 ms to draw and the delta chart takes 0.2 ms. I think that is tolerable. And since the dataset already exists in memory and the delta data isn't that big it also isn't a problem of ram.

@AuxiliumCDNG AuxiliumCDNG merged commit 3a8964c into master May 6, 2022
@AuxiliumCDNG AuxiliumCDNG deleted the weight-delta branch May 6, 2022 19:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

new feature The will become a new feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add delta graph Use bigger timespan for delta calculation

3 participants