diff --git a/CHANGELOG.md b/CHANGELOG.md index c4887507d..b27d03ae8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## Unreleased +### Added + +- Added the year labels to the investment chart on the x-axis + ### Changed - Respected the data source attribute of the transactions model in the data management for historical data 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 0ecd3a7ff..38b787147 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 @@ -36,10 +36,10 @@ export class InvestmentChartComponent implements OnChanges, OnDestroy, OnInit { public constructor() { Chart.register( + LinearScale, LineController, LineElement, PointElement, - LinearScale, TimeScale ); } @@ -95,7 +95,7 @@ export class InvestmentChartComponent implements OnChanges, OnDestroy, OnInit { responsive: true, scales: { x: { - display: false, + display: true, grid: { display: false }, diff --git a/apps/client/src/app/pages/analysis/analysis-page.html b/apps/client/src/app/pages/analysis/analysis-page.html index e282c522c..fe219b28b 100644 --- a/apps/client/src/app/pages/analysis/analysis-page.html +++ b/apps/client/src/app/pages/analysis/analysis-page.html @@ -167,7 +167,7 @@ -
+