-
btree-typescript
A reasonably fast in-memory B+ tree with a powerful API based on the standard Map. Small minified. Well documented.
-
SurveyJS
Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App. With SurveyJS form UI libraries, you can build and style forms in a fully-integrated drag & drop form builder, render them in your JS app, and store form submission data in any backend, inc. PHP, ASP.NET Core, and Node.js.
An easy way to cache data in the short term would be to insert the timeseries data into a BTree (I'd recommend this implementation). When you mount the component, first request the window of your chart from the BTree, inserting the events, and simultaneously request the data from the server. Once the data from the server comes in, wipe everything then redraw with the data from the server.