@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.5",
3
+ "version": "0.0.9",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^13.1.0",
6
6
  "@angular/core": "^13.1.0",
7
- "@angular/forms": "^13.1.0",
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
  }
@@ -10,6 +10,7 @@ export class CustomCardComponent implements OnInit {
10
10
  title!: string;
11
11
  @Input()
12
12
  content!: string;
13
+
13
14
  constructor() { }
14
15
 
15
16
  ngOnInit(): void {
@@ -14,11 +14,11 @@
14
14
  Dashboard
15
15
  <ion-card class="welcome-card">
16
16
  <ion-card-header>
17
- <ion-card-subtitle>Number of Viewers per season for</ion-card-subtitle>
18
- <ion-card-title>Game of Thrones</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
- apiData: any;
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
- fetchData() {
20
- const my_url = 'http://www.mocky.io/v2/5d28754a2c000066003eda63?mocky-delay=3000ms'
21
- this.http.get(my_url).subscribe(data => {
22
- console.log(data);
23
- this.apiData = data;
24
- })
25
- }
26
-
27
- createBarChart() {
28
- this.bars = new Chart(this.barChart.nativeElement, {
29
- type: 'bar',
30
- data: {
31
- labels: ['S1', 'S2', 'S3', 'S4', 'S5', 'S6', 'S7', 'S8'],
32
- datasets: [{
33
- label: 'Viewers in millions',
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
  }