How to increase the performance to update a chart at 60Hz?

I trying to build a mqtt data visualization, I receive the data every 1-10 ms, how I can update the chart to get something similar to this:
Webgl line plotting framework - Lines (danchitnis.github.io)

I trying to make an Arduino science journal for web, and the original app update the chart really fast.