flot-downsample
simplify-js
flot-downsample | simplify-js | |
---|---|---|
2 | 2 | |
269 | 2,222 | |
- | - | |
0.0 | 0.0 | |
12 months ago | over 1 year ago | |
JavaScript | JavaScript | |
- | BSD 2-clause "Simplified" License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
flot-downsample
-
Advanced downsampling with the LTTB algorithm
Sveinn Steinarsson at the University of Iceland looked at this problem and came out with an algorithm called Largest-Triangle-Three-Buckets, or LTTB for short, and this is published under the MIT license in sveinn-steinarsson/flot-downsample: Downsample plugin for Flot charts. (github.com).
- Downsampling Time Series for Visual Representation [pdf]
simplify-js
- Too many vectors, file doesn't print - any way to optimise?
-
Downsampling Time Series for Visual Representation [pdf]
This looks cool, I especially like the "intuitive" longest line algorithm.
~7 years ago I was trying to build a dashboard that displayed real-time measurements from a beehive. The sensors would take temperature, weight, humidity, etc. Back then I used simplify.js [0] which uses two simplification algorithms in two passes. The more compute intensive one is the Ramer Douglas Peucker algorithm [1]. One issue I had with streaming data is that new data points could change the past line, at least with my naive implementation. I'd love to see a real-time / streaming time series simplification algorithm where the past points don't appear to change wildly despite continuing to downsample.
[0] https://github.com/mourner/simplify-js
[1] https://en.wikipedia.org/wiki/Ramer%E2%80%93Douglas%E2%80%93...
What are some alternatives?
uPlot - 📈 A small, fast chart for time series, lines, areas, ohlc & bars
masterscrat
abstreet - Transportation planning and traffic simulation software for creating cities friendlier to walking, biking, and public transit
turf - A modular geospatial engine written in JavaScript and TypeScript
svgo - ⚙️ Node.js tool for optimizing SVG files