diff --git a/libs/ui/src/lib/line-chart/line-chart.component.ts b/libs/ui/src/lib/line-chart/line-chart.component.ts index 45712dd63..33a04aebc 100644 --- a/libs/ui/src/lib/line-chart/line-chart.component.ts +++ b/libs/ui/src/lib/line-chart/line-chart.component.ts @@ -202,6 +202,9 @@ export class LineChartComponent implements AfterViewInit, OnChanges, OnDestroy { }, interaction: { intersect: false, mode: 'index' }, plugins: { + decimation: { + enabled: this.dataDecimation + }, legend: { align: 'start', display: this.showLegend, @@ -210,10 +213,6 @@ export class LineChartComponent implements AfterViewInit, OnChanges, OnDestroy { tooltip: this.getTooltipPluginConfiguration(), verticalHoverLine: { color: `rgba(${getTextColor(this.colorScheme)}, 0.1)` - }, - decimation: { - enabled: this.dataDecimation, - algorithm: 'min-max' } }, scales: {