@rpan93/ron-lib 0.0.6 → 0.0.7
Sign up to get free protection for your applications and to get access to all the features.
package/package.json
CHANGED
@@ -7,31 +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
|
-
constructor(){}
|
10
|
+
// @ViewChild('barChart', {static: true}) barChart: ElementRef;
|
11
|
+
// bars: any;
|
12
|
+
// constructor(){}
|
13
13
|
|
14
14
|
ngOnInit() {
|
15
|
-
this.createBarChart();
|
15
|
+
// this.createBarChart();
|
16
16
|
}
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
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: {
|
32
32
|
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
33
|
+
// }
|
34
|
+
// }
|
35
|
+
// });
|
36
|
+
// }
|
37
37
|
}
|