Skip to content

Decimator class

Bases: ABC

Base class for decimating chart data.

Decimating is the term used to name the process of reducing the number of data points displayed in charts while retaining the overall shape of the traces. Decimator is a base class that does decimation on data sets.

Taipy GUI comes out-of-the-box with several implementation of this class for different use cases.

Methods

__init__()

__init__(
    threshold: t.Optional[int], zoom: t.Optional[bool]
) -> None

Initialize a new Decimator.

Parameters:

Name Type Description Default
threshold Optional[int]

The minimum amount of data points before the decimator class is applied.

required
zoom Optional[bool]

set to True to reapply the decimation when zoom or re-layout events are triggered.

required