Simplify.js – a high-performance JavaScript 2D/3D polyline simplification library
Polyline simplification allows you to deal with polylines consisting of tens of thousands of points in situations where precision can be lowered for a huge performance boost, such as, for example, rendering a 50k-points line chart or a map route in the browser using Canvas or SVG.