Unfortunately, I have to use Google Analytics and Google Ads at work every day, and these UIs have absolutely terrible performance :( A small part of the problem is drawing the trend charts. So I decided to make uPlot [1] to see what was really possible. [1] https://github.com/leeoniya/uPlot
Show HN: Plotting 3 years of hourly data in 150ms
41–50 of 118 posts
Re: Show HN: Plotting 3 years of hourly data in 150ms
#42Re: Show HN: Plotting 3 years of hourly data in 150ms
#43Re: Show HN: Plotting 3 years of hourly data in 150ms
#44Re: Show HN: Plotting 3 years of hourly data in 150ms
#45Great job btw, really instant.
Re: Show HN: Plotting 3 years of hourly data in 150ms
#46The 150ms benchmark in the title is really selling this short, the performance is very impressive. The 150ms seem to refer to the time it takes to initialize the graph, and with a hot cache that is more like 50ms for me here. Redrawing seems much, much faster. I have done some visualization with WebGL because I couldn't get it fast enough with just drawing lines. That was a while ago so I'm not sure about the details…
Re: Show HN: Plotting 3 years of hourly data in 150ms
#47That looks amazing, nice job! I was trying to create a seb dashboard with several graphs each with a few hundred data points recently. None of the libraries felt "snappy" on a mobile device in terms of load time or responsivity. I ended up abandoning the proejct because of that, but if only I knew about this library at the time... The only thing I wish µPlot had is support for tooltips rather than numbers in the lege…
Re: Show HN: Plotting 3 years of hourly data in 150ms
#48The 150ms benchmark in the title is really selling this short, the performance is very impressive. The 150ms seem to refer to the time it takes to initialize the graph, and with a hot cache that is more like 50ms for me here. Redrawing seems much, much faster. I have done some visualization with WebGL because I couldn't get it fast enough with just drawing lines. That was a while ago so I'm not sure about the details…
Re: Show HN: Plotting 3 years of hourly data in 150ms
#49Re: Show HN: Plotting 3 years of hourly data in 150ms
#50The 150ms benchmark in the title is really selling this short, the performance is very impressive. The 150ms seem to refer to the time it takes to initialize the graph, and with a hot cache that is more like 50ms for me here. Redrawing seems much, much faster. I have done some visualization with WebGL because I couldn't get it fast enough with just drawing lines. That was a while ago so I'm not sure about the details…
It looks like the mouse lines and the selection highlight are just partially-transparent divs stacked on top of the canvas that get moved around, so nothing actually gets redrawn unless the date range changes (which is a pretty clever approach!).