Example LiveView demo with Timeseries SVG plots

I created an example of real-time plotting for LiveView demo using Plotex. I’ve fixed Plotex to handle multi-plots and cleaned up some internals. You can check out the demo repo on GitHub at PlotexLiveViewExample.

It’s fun watching it, but there are some limitations for doing live SVG rendering on the server. Currently the CPU usage can increase quickly once you get to updates quicker than 50ms or so (about ~20% on my macbook at 10ms timing w/ ~1k points). It’d be great to have feedback if others have delved more into LiveView internals or other efficiency tips!

6 Likes