-
Notifications
You must be signed in to change notification settings - Fork 890
Expand file tree
/
Copy pathchart.component.html
More file actions
32 lines (29 loc) · 1.17 KB
/
chart.component.html
File metadata and controls
32 lines (29 loc) · 1.17 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
<!--
Copyright since 2025 Mifos Initiative
This Source Code Form is subject to the terms of the Mozilla Public
License, v. 2.0. If a copy of the MPL was not distributed with this
file, You can obtain one at http://mozilla.org/MPL/2.0/.
-->
<div class="p-20 m-b-20">
<div class="layout-align-end m-b-20">
<mat-button-toggle-group
[value]="selectedChartType"
[disabled]="hideOutput"
aria-label="{{ 'labels.buttons.Select Chart Type' | translate }}"
(change)="selectChart($event.value)"
>
<mat-button-toggle value="Bar" (click)="refreshChartIfSameType('Bar')">{{
'labels.buttons.Bar Chart' | translate
}}</mat-button-toggle>
<mat-button-toggle value="Pie" (click)="refreshChartIfSameType('Pie')">{{
'labels.buttons.Pie Chart' | translate
}}</mat-button-toggle>
<mat-button-toggle value="Polar" (click)="refreshChartIfSameType('Polar')">{{
'labels.buttons.Polar Area Chart' | translate
}}</mat-button-toggle>
</mat-button-toggle-group>
</div>
<div [ngStyle]="{ display: hideOutput ? 'none' : 'block' }" class="chart-output-container">
<canvas id="output"></canvas>
</div>
</div>