Data Decimation Configuration Options
- enables: This option is used to control the data decimation, which enhances the chart performance by reducing the data points automatically.
- algorithm: This option is used to specify the decimation algorithm like (LTTB or min-max) to perform the chart representation either for minimal data points or peak preservation.
- samples: This option is used when the LTTB algorithm is used, this determines the number of samples in the output dataset by controlling the level of data granularity.
- threshold: This option is used to set the trigger point for decimation.
Chart.js Data Decimation Configuration
Chart.js Data Decimation is the feature developed for line charts, allowing us to reduce the data points automatically. By this, the chart’s performance and visuals are optimized in proper clear form.
Syntax:
options: {
plugins: {
decimation: {
algorithm: 'lttb', or 'min-max'
// Other configuration options
}
}
}