|
@ -26,6 +26,7 @@ import { |
|
|
} from '@angular/core'; |
|
|
} from '@angular/core'; |
|
|
import { |
|
|
import { |
|
|
Chart, |
|
|
Chart, |
|
|
|
|
|
Decimation, |
|
|
Filler, |
|
|
Filler, |
|
|
LineController, |
|
|
LineController, |
|
|
LineElement, |
|
|
LineElement, |
|
@ -52,6 +53,7 @@ export class GfLineChartComponent |
|
|
@Input() benchmarkLabel = ''; |
|
|
@Input() benchmarkLabel = ''; |
|
|
@Input() colorScheme: ColorScheme; |
|
|
@Input() colorScheme: ColorScheme; |
|
|
@Input() currency: string; |
|
|
@Input() currency: string; |
|
|
|
|
|
@Input() dataDecimation = false; |
|
|
@Input() historicalDataItems: LineChartItem[]; |
|
|
@Input() historicalDataItems: LineChartItem[]; |
|
|
@Input() isAnimated = false; |
|
|
@Input() isAnimated = false; |
|
|
@Input() locale = getLocale(); |
|
|
@Input() locale = getLocale(); |
|
@ -76,6 +78,7 @@ export class GfLineChartComponent |
|
|
|
|
|
|
|
|
public constructor(private changeDetectorRef: ChangeDetectorRef) { |
|
|
public constructor(private changeDetectorRef: ChangeDetectorRef) { |
|
|
Chart.register( |
|
|
Chart.register( |
|
|
|
|
|
Decimation, |
|
|
Filler, |
|
|
Filler, |
|
|
LineController, |
|
|
LineController, |
|
|
LineElement, |
|
|
LineElement, |
|
@ -200,6 +203,9 @@ export class GfLineChartComponent |
|
|
}, |
|
|
}, |
|
|
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, |
|
|