Browse Source

Add toggle for group by year

pull/1568/head
yksolanki9 3 years ago
parent
commit
28091d2852
  1. 3
      apps/client/src/app/pages/portfolio/analysis/analysis-page.component.ts

3
apps/client/src/app/pages/portfolio/analysis/analysis-page.component.ts

@ -51,7 +51,8 @@ export class AnalysisPageComponent implements OnDestroy, OnInit {
public isLoadingInvestmentChart: boolean; public isLoadingInvestmentChart: boolean;
public mode: GroupBy = 'month'; public mode: GroupBy = 'month';
public modeOptions: ToggleOption[] = [ public modeOptions: ToggleOption[] = [
{ label: $localize`Monthly`, value: 'month' } { label: $localize`Monthly`, value: 'month' },
{ label: $localize`Yearly`, value: 'year' }
]; ];
public performanceDataItems: HistoricalDataItem[]; public performanceDataItems: HistoricalDataItem[];
public performanceDataItemsInPercentage: HistoricalDataItem[]; public performanceDataItemsInPercentage: HistoricalDataItem[];

Loading…
Cancel
Save