Data Decimation

    Namespace: , the global options for the plugin are defined in Chart.defaults.plugins.decimation.

    • 'lttb'
    • 'min-max'

    LTTB (opens new window) decimation reduces the number of data points significantly. This is most useful for showing trends in data using only a few data points.

    Min/Max Decimation

    To use the decimation plugin, the following requirements must be met:

    1. The dataset must have an indexAxis of 'x'
    2. The X axis for the dataset must be either a or ‘time’ type axis
    3. Data must not need parsing, i.e. must be false
    4. The dataset object must be mutable. The plugin stores the original data as and then defines a new data property on the dataset.