Browse Source

Add chart types

pull/1567/head
Thomas 3 years ago
parent
commit
bbd8c93c3e
  1. 2
      apps/client/src/app/components/benchmark-comparator/benchmark-comparator.component.ts
  2. 2
      apps/client/src/app/components/investment-chart/investment-chart.component.ts
  3. 2
      libs/ui/src/lib/fire-calculator/fire-calculator.component.ts
  4. 2
      libs/ui/src/lib/line-chart/line-chart.component.ts
  5. 2
      libs/ui/src/lib/portfolio-proportion-chart/portfolio-proportion-chart.component.ts

2
apps/client/src/app/components/benchmark-comparator/benchmark-comparator.component.ts

@ -57,7 +57,7 @@ export class BenchmarkComparatorComponent implements OnChanges, OnDestroy {
@ViewChild('chartCanvas') chartCanvas; @ViewChild('chartCanvas') chartCanvas;
public chart: Chart<any>; public chart: Chart<'line'>;
public constructor() { public constructor() {
Chart.register( Chart.register(

2
apps/client/src/app/components/investment-chart/investment-chart.component.ts

@ -62,7 +62,7 @@ export class InvestmentChartComponent implements OnChanges, OnDestroy {
@ViewChild('chartCanvas') chartCanvas; @ViewChild('chartCanvas') chartCanvas;
public chart: Chart<any>; public chart: Chart<'bar' | 'line'>;
private investments: InvestmentItem[]; private investments: InvestmentItem[];
private values: LineChartItem[]; private values: LineChartItem[];

2
libs/ui/src/lib/fire-calculator/fire-calculator.component.ts

@ -61,7 +61,7 @@ export class FireCalculatorComponent
principalInvestmentAmount: new FormControl<number>(undefined), principalInvestmentAmount: new FormControl<number>(undefined),
time: new FormControl<number>(undefined) time: new FormControl<number>(undefined)
}); });
public chart: Chart; public chart: Chart<'bar'>;
public isLoading = true; public isLoading = true;
public projectedTotalAmount: number; public projectedTotalAmount: number;

2
libs/ui/src/lib/line-chart/line-chart.component.ts

@ -66,7 +66,7 @@ export class LineChartComponent implements AfterViewInit, OnChanges, OnDestroy {
@ViewChild('chartCanvas') chartCanvas; @ViewChild('chartCanvas') chartCanvas;
public chart: Chart; public chart: Chart<'line'>;
public isLoading = true; public isLoading = true;
private readonly ANIMATION_DURATION = 1200; private readonly ANIMATION_DURATION = 1200;

2
libs/ui/src/lib/portfolio-proportion-chart/portfolio-proportion-chart.component.ts

@ -55,7 +55,7 @@ export class PortfolioProportionChartComponent
@ViewChild('chartCanvas') chartCanvas: ElementRef<HTMLCanvasElement>; @ViewChild('chartCanvas') chartCanvas: ElementRef<HTMLCanvasElement>;
public chart: Chart; public chart: Chart<'pie'>;
public isLoading = true; public isLoading = true;
private readonly OTHER_KEY = 'OTHER'; private readonly OTHER_KEY = 'OTHER';

Loading…
Cancel
Save