From 97b3c089045be1d0e5cccbaec39d2f037926a4a4 Mon Sep 17 00:00:00 2001 From: Dhoni77 Date: Sun, 29 Oct 2023 09:36:08 +0530 Subject: [PATCH] chore: refactor code --- libs/ui/src/lib/line-chart/line-chart.component.ts | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) 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: {