3 ms·
I am not sure I follow. It's 3 images, so you manually refresh every 5 minutes (maybe that can be automated with meta-refresh so avoiding JS, although I don't s
by quickthrower2 6y ago
I am not sure I follow. It's 3 images, so you manually refresh every 5 minutes (maybe that can be automated with meta-refresh so avoiding JS, although I don't see that much advantage over setTimeout?)
- sosodev 6y agoYeah, I understand single page app levels of JavaScript but why complicate things to save a few lines?
- ryanmjacobs 6y agoAh, I should have explained better. Page load isn't really my main concern. I used to embed dynamic graphs (Metabase or D3.js) and my laptop would lag like crazy plotting all of those points and allowing for hover tooltips (which were nifty but didn't provide me much utility). I use R in the backend and it plots 10,000 points in a fraction of a second. Web browsers only have to fetch and display an image. tl;dr I have fast bandwidth -- but I have an old CPU.
- fish45 6y agoI wonder how much WASM would help
- th3o6a1d 6y agoDo you need to display 10,000 data points?
- quickthrower2 6y agoThanks for explaining. I quite like it. Given a rarely updating but detailed graph this would perform better. But you do lose the interactivity benefits of JS. A candlestick approach might allow you to reduce the amount of data to send to the client in d3 if you use R to aggregate the data first. Have fun!