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' },
plugins: <unknown>{
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: {

Loading…
Cancel
Save