diff --git a/src/app/panels/org-pie-panel.component.ts b/src/app/panels/org-pie-panel.component.ts
index 24454c0..75ada9b 100644
--- a/src/app/panels/org-pie-panel.component.ts
+++ b/src/app/panels/org-pie-panel.component.ts
@@ -12,7 +12,7 @@ import { ChartData } from '../_interfaces/chart-data';
export class OrgPiePanel implements OnInit {
- public chartType = 'doughnut';
+ public chartType = 'pie';
public chartLegend = true;
public doughnutChartDataLocal: number[] = [];
public doughnutChartColors: any[] = [
diff --git a/src/app/panels/pie-panel.component.html b/src/app/panels/pie-panel.component.html
index da2417e..0a3846d 100644
--- a/src/app/panels/pie-panel.component.html
+++ b/src/app/panels/pie-panel.component.html
@@ -2,7 +2,7 @@
-
All Purchases
+ All Purchases by Category
diff --git a/src/app/panels/pie-panel.component.ts b/src/app/panels/pie-panel.component.ts
index 1c2571a..2e3e4a7 100644
--- a/src/app/panels/pie-panel.component.ts
+++ b/src/app/panels/pie-panel.component.ts
@@ -12,11 +12,12 @@ import { ChartData } from '../_interfaces/chart-data';
export class PiePanel implements OnInit {
- public chartType = 'doughnut';
+ public chartType = 'pie';
public chartLegend = true;
public doughnutChartDataLocal: number[] = [];
public doughnutChartLabelsLocal: string[] = [];
- public doughnutChartColors: any[] = [{ backgroundColor: [
+ public doughnutChartColors: any[] = [
+ { backgroundColor: [
'red',
'green',
'blue',
@@ -28,7 +29,21 @@ export class PiePanel implements OnInit {
'orange',
'pink'
]
- }];
+},
+ { borderColor:[
+ 'red',
+ 'green',
+ 'blue',
+ 'purple',
+ 'yellow',
+ 'brown',
+ 'magenta',
+ 'cyan',
+ 'orange',
+ 'pink'
+ ]
+ }
+];
constructor(
private api: ApiService,