Colour fixes

This commit is contained in:
Tom Slater 2019-08-21 11:51:10 +01:00
parent 2e00e87574
commit 2cb17c12dd
5 changed files with 44 additions and 8 deletions

View file

@ -73,6 +73,7 @@
[datasets]="barChartDataCategory"
[labels]="barChartLabelsCategory"
[options]="barChartOptionsCategory"
[colors]="barChartColoursCategory"
[legend]="barChartLegendCategory"
[chartType]="barChartTypeCategory"
(chartHover)="chartHovered($event)"

View file

@ -42,16 +42,17 @@ export class DashboardCustomerComponent implements OnInit {
public doughnutChartColoursCategory: any[] = [
{
backgroundColor:[
'red',
'#ffa1b5',
'green',
'blue',
'#52afed',
'purple',
'yellow',
'brown',
'magenta',
'cyan',
'orange',
'pink'
'red',
'#000000'
]
}];
@ -117,7 +118,22 @@ export class DashboardCustomerComponent implements OnInit {
public barChartLegendCategory:boolean = false;
public barChartDataCategory:any[]=[];
public barChartLabelsCategory:string[] = [];
public barChartColoursCategory: any[] = [
{
backgroundColor:[
'#ffa1b5',
'green',
'#52afed',
'purple',
'yellow',
'brown',
'magenta',
'cyan',
'orange',
'red',
'#000000'
]
}];
weekPurchaseList = {

View file

@ -68,6 +68,7 @@
[datasets]="doughnutChartDataCategory"
[labels]="doughnutChartLabelsCategory"
[options]="doughnutChartOptionsCategory"
[colors]="doughnutChartColoursCategory"
[legend]="chartLegend"
[chartType]="chartType"
(chartHover)="chartHovered($event)"

View file

@ -80,6 +80,23 @@ export class DashboardComponent {
public chartLegend = true;
public doughnutChartDataCategory: any[] = [];
public doughnutChartLabelsCategory: string[] = [];
public doughnutChartColoursCategory: any[] = [
{
backgroundColor:[
'#ffa1b5',
'green',
'#52afed',
'purple',
'yellow',
'brown',
'magenta',
'cyan',
'orange',
'red',
'#000000'
]
}];
public doughnutChartOptionsCategory:any = {
tooltips: {
@ -121,16 +138,17 @@ export class DashboardComponent {
public barChartColoursCategory: any[] = [
{
backgroundColor:[
'red',
'#ffa1b5',
'green',
'blue',
'#52afed',
'purple',
'yellow',
'brown',
'magenta',
'cyan',
'orange',
'pink'
'red',
'#000000'
]
}];

View file

@ -27,7 +27,7 @@ export class PiePanel implements OnInit {
'magenta',
'cyan',
'orange',
'pink'
'pink',
]
},
{ borderColor:[