bitraf / p2k16

Bitraf's self-server system for doors, memberships and tools.
https://bitraf.no
MIT License
10 stars 11 forks source link

Replace server-side plots with client-side plots #117

Open trygvis opened 2 years ago

trygvis commented 2 years ago

For the single plot we have the dependencies went from 70M to 247 M, and we can get a vector-image which looks at least as good.

https://www.amcharts.com/ has been recommended as a rendering tool

omega commented 2 years ago

where is the image used? is it included in other pages? If we want to generate on client-side, we will need javascript I guess, if the image is "hot linked" from other pages, not sure we can do that in an easy way, or if we need to inject a javascript on those pages instead, and somehow target an element or something, so wondering how its used

trygvis commented 2 years ago

It's been used by the board as a report. I don't know if if really is sensitive information or not, but we could make a "stats" page and show it there. Could show other stats like unlocks per day etc