---
title: polyline package
description: The polyline package provides methods for polyline simplication, an efficient way of downsampling curves while retaining moments of variation throughout the path.
url: https://docs.influxdata.com/flux/v0/stdlib/experimental/polyline/
estimated_tokens: 335
product: Flux
version: v0
---

# polyline package

-   Flux 0.181.0+
-   View InfluxDB support

The `polyline` package is experimental and [subject to change at any time](/flux/v0/stdlib/experimental/#experimental-packages-are-subject-to-change).

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:

```js
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.

## Functions

-   [polyline.rdp()](/flux/v0/stdlib/experimental/polyline/rdp/)
