3 ms·
Ah, 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 craz
by ryanmjacobs 6y ago
Ah, 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!