|
@ -3,14 +3,11 @@ import { |
|
|
getTooltipPositionerMapTop, |
|
|
getTooltipPositionerMapTop, |
|
|
getVerticalHoverLinePlugin |
|
|
getVerticalHoverLinePlugin |
|
|
} from '@ghostfolio/common/chart-helper'; |
|
|
} from '@ghostfolio/common/chart-helper'; |
|
|
import { |
|
|
import { primaryColorRgb, secondaryColorRgb } from '@ghostfolio/common/config'; |
|
|
locale, |
|
|
|
|
|
primaryColorRgb, |
|
|
|
|
|
secondaryColorRgb |
|
|
|
|
|
} from '@ghostfolio/common/config'; |
|
|
|
|
|
import { |
|
|
import { |
|
|
getBackgroundColor, |
|
|
getBackgroundColor, |
|
|
getDateFormatString, |
|
|
getDateFormatString, |
|
|
|
|
|
getLocale, |
|
|
getTextColor |
|
|
getTextColor |
|
|
} from '@ghostfolio/common/helper'; |
|
|
} from '@ghostfolio/common/helper'; |
|
|
import { LineChartItem } from '@ghostfolio/common/interfaces'; |
|
|
import { LineChartItem } from '@ghostfolio/common/interfaces'; |
|
@ -51,7 +48,7 @@ export class LineChartComponent implements AfterViewInit, OnChanges, OnDestroy { |
|
|
@Input() currency: string; |
|
|
@Input() currency: string; |
|
|
@Input() historicalDataItems: LineChartItem[]; |
|
|
@Input() historicalDataItems: LineChartItem[]; |
|
|
@Input() isAnimated = false; |
|
|
@Input() isAnimated = false; |
|
|
@Input() locale: string; |
|
|
@Input() locale = getLocale(); |
|
|
@Input() showGradient = false; |
|
|
@Input() showGradient = false; |
|
|
@Input() showLegend = false; |
|
|
@Input() showLegend = false; |
|
|
@Input() showLoader = true; |
|
|
@Input() showLoader = true; |
|
@ -106,10 +103,6 @@ export class LineChartComponent implements AfterViewInit, OnChanges, OnDestroy { |
|
|
this.changeDetectorRef.markForCheck(); |
|
|
this.changeDetectorRef.markForCheck(); |
|
|
}); |
|
|
}); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
if (!this.locale) { |
|
|
|
|
|
this.locale = locale; |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
public ngOnDestroy() { |
|
|
public ngOnDestroy() { |
|
|