• From Simplify.js, a high-performance JS polyline simplification library.

    Polyline simplification dramatically reduces the number of points in a polyline while retaining its shape, giving a huge performance boost when processing it and also reducing visual noise. For example, it's essential when rendering a 70k-points line chart or a map route in the browser using Canvas or SVG.

    Github

    mourner.github.io/simplify-js

    Copyright

    2013, Vladimir Agafonkin

    License

    BSD-2-Clause "Simplified" License

    Parameters

    • points: Serie<IArray>

      Can be either 2D or 3D points defined in a Serie

    • tolerance: number = 1
    • highestQuality: boolean = false

    Returns Serie<IArray>