polyline package

The polyline package is experimental and subject to change at any time.

The polyline package provides methods for polyline simplication, an efficient way of downsampling curves while retaining moments of variation throughout the path. Import the experimental/polyline package:

import "experimental/polyline"

This class of algorithms enable efficient rendering of graphs and visualizations without having to load all data into memory. This is done by reducing the number of vertices that do not contribute significantly to the convexity and concavity of the shape.


Was this page helpful?

Thank you for your feedback!

Introducing InfluxDB 3.0

The new core of InfluxDB built with Rust and Apache Arrow. Available today in InfluxDB Cloud Dedicated.

Learn more

State of the InfluxDB Cloud Serverless documentation

The new documentation for InfluxDB Cloud Serverless is a work in progress. We are adding new information and content almost daily. Thank you for your patience!

If there is specific information you’re looking for, please submit a documentation issue.