diff --git a/apps/client/src/app/components/investment-chart/investment-chart.component.ts b/apps/client/src/app/components/investment-chart/investment-chart.component.ts index 469d29f7c..a6925f8ff 100644 --- a/apps/client/src/app/components/investment-chart/investment-chart.component.ts +++ b/apps/client/src/app/components/investment-chart/investment-chart.component.ts @@ -246,6 +246,10 @@ export class GfInvestmentChartComponent implements OnChanges, OnDestroy { max: this.xMax?.getTime(), min: this.xMin?.getTime(), type: 'time', + bounds: 'data', + ticks: { + source: 'data' + }, time: { tooltipFormat: getDateFormatString(this.locale), unit: 'year' 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 bad9975fc..d42875c88 100644 --- a/libs/ui/src/lib/line-chart/line-chart.component.ts +++ b/libs/ui/src/lib/line-chart/line-chart.component.ts @@ -222,6 +222,10 @@ export class GfLineChartComponent }, max: this.xMax?.getTime(), min: this.xMin?.getTime(), + bounds: 'data', + ticks: { + source: 'data' + }, time: { tooltipFormat: getDateFormatString(this.locale), unit: 'year'