@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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rpan93/ron-lib",
3
- "version": "0.0.6",
3
+ "version": "0.0.7",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^13.1.0",
6
6
  "@angular/core": "^13.1.0",
@@ -18,7 +18,7 @@ Dashboard
18
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,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
- 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: {
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
  }