Browse Source

chore: refactor code

pull/2557/head
Dhoni77 2 years ago
parent
commit
97b3c08904
  1. 7
      libs/ui/src/lib/line-chart/line-chart.component.ts

7
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' }, interaction: { intersect: false, mode: 'index' },
plugins: <unknown>{ plugins: <unknown>{
decimation: {
enabled: this.dataDecimation
},
legend: { legend: {
align: 'start', align: 'start',
display: this.showLegend, display: this.showLegend,
@ -210,10 +213,6 @@ export class LineChartComponent implements AfterViewInit, OnChanges, OnDestroy {
tooltip: this.getTooltipPluginConfiguration(), tooltip: this.getTooltipPluginConfiguration(),
verticalHoverLine: { verticalHoverLine: {
color: `rgba(${getTextColor(this.colorScheme)}, 0.1)` color: `rgba(${getTextColor(this.colorScheme)}, 0.1)`
},
decimation: {
enabled: this.dataDecimation,
algorithm: 'min-max'
} }
}, },
scales: { scales: {

Loading…
Cancel
Save