@rpan93/ron-lib 0.0.5 → 0.0.9
Sign up to get free protection for your applications and to get access to all the features.
package/package.json
CHANGED
@@ -1,29 +1,15 @@
|
|
1
1
|
{
|
2
2
|
"name": "@rpan93/ron-lib",
|
3
|
-
"version": "0.0.
|
3
|
+
"version": "0.0.9",
|
4
4
|
"peerDependencies": {
|
5
5
|
"@angular/common": "^13.1.0",
|
6
6
|
"@angular/core": "^13.1.0",
|
7
|
-
"@angular
|
8
|
-
"@angular/platform-browser": "^13.1.0",
|
9
|
-
"@angular/platform-browser-dynamic": "^13.1.0",
|
10
|
-
"@angular/router": "^13.1.0",
|
11
|
-
"@capacitor/app": "1.0.7",
|
12
|
-
"@capacitor/core": "3.3.4",
|
13
|
-
"@capacitor/haptics": "1.1.3",
|
14
|
-
"@capacitor/keyboard": "1.2.0",
|
15
|
-
"@capacitor/status-bar": "1.0.6",
|
16
|
-
"@ionic/angular": "^6.0.2",
|
17
|
-
"chart.js": "^3.7.0",
|
18
|
-
"rxjs": "~6.6.0",
|
19
|
-
"zone.js": "~0.11.4"
|
7
|
+
"@ionic/angular": "^6.0.2"
|
20
8
|
},
|
21
9
|
"dependencies": {
|
22
10
|
"tslib": "^2.3.0"
|
23
11
|
},
|
24
12
|
"devDependencies": {
|
25
|
-
"@ionic/angular": "^6.0.2"
|
26
|
-
"chart.js": "^3.7.0",
|
27
|
-
"ng2-charts": "^3.0.7"
|
13
|
+
"@ionic/angular": "^6.0.2"
|
28
14
|
}
|
29
15
|
}
|
@@ -14,11 +14,11 @@
|
|
14
14
|
Dashboard
|
15
15
|
<ion-card class="welcome-card">
|
16
16
|
<ion-card-header>
|
17
|
-
<ion-card-subtitle>
|
18
|
-
<ion-card-title>
|
17
|
+
<ion-card-subtitle>Authorizations</ion-card-subtitle>
|
18
|
+
<ion-card-title>Transaction details</ion-card-title>
|
19
19
|
</ion-card-header>
|
20
20
|
<ion-card-content>
|
21
|
-
<canvas #barChart></canvas>
|
21
|
+
<!-- <canvas #barChart></canvas> -->
|
22
22
|
</ion-card-content>
|
23
23
|
</ion-card>
|
24
24
|
</ion-content>
|
@@ -7,41 +7,31 @@ import { HttpClient } from '@angular/common/http';
|
|
7
7
|
styleUrls: ['./dashboard.page.scss'],
|
8
8
|
})
|
9
9
|
export class DashboardPage implements OnInit {
|
10
|
-
@ViewChild('barChart', {static: true}) barChart: ElementRef;
|
11
|
-
bars: any;
|
12
|
-
|
13
|
-
colorArray: any;
|
14
|
-
constructor( private http: HttpClient ){}
|
10
|
+
// @ViewChild('barChart', {static: true}) barChart: ElementRef;
|
11
|
+
// bars: any;
|
12
|
+
// constructor(){}
|
15
13
|
|
16
14
|
ngOnInit() {
|
17
|
-
this.createBarChart();
|
15
|
+
// this.createBarChart();
|
18
16
|
}
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
data: [2.5, 3.8, 5, 6.9, 6.9, 7.5, 10, 17],
|
35
|
-
backgroundColor: 'rgb(38, 194, 129)', // array should have same number of elements as number of dataset
|
36
|
-
borderColor: 'rgb(38, 194, 129)',// array should have same number of elements as number of dataset
|
37
|
-
borderWidth: 1
|
38
|
-
}]
|
39
|
-
},
|
40
|
-
options: {
|
41
|
-
scales: {
|
17
|
+
// createBarChart() {
|
18
|
+
// this.bars = new Chart(this.barChart.nativeElement, {
|
19
|
+
// type: 'bar',
|
20
|
+
// data: {
|
21
|
+
// labels: ['S1', 'S2', 'S3', 'S4', 'S5', 'S6', 'S7', 'S8'],
|
22
|
+
// datasets: [{
|
23
|
+
// label: 'Transactions in millions',
|
24
|
+
// data: [2.5, 3.8, 5, 6.9, 6.9, 7.5, 10, 17],
|
25
|
+
// backgroundColor: 'rgb(38, 194, 129)', // array should have same number of elements as number of dataset
|
26
|
+
// borderColor: 'rgb(38, 194, 129)',// array should have same number of elements as number of dataset
|
27
|
+
// borderWidth: 1
|
28
|
+
// }]
|
29
|
+
// },
|
30
|
+
// options: {
|
31
|
+
// scales: {
|
42
32
|
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
33
|
+
// }
|
34
|
+
// }
|
35
|
+
// });
|
36
|
+
// }
|
47
37
|
}
|