import { Component } from '@angular/core';
@Component({
selector: 'app-root',
templateUrl: './app.component.html',
styleUrls: ['./app.component.css']
})
export class AppComponent {
title = 'GFG';
basicData = {
labels: ['Sunday', 'Monday', 'Tuesday', 'Wednesday',
'Thursday', 'Friday', 'Saturday'],
datasets: [
{
label: 'Booked',
backgroundColor: '#42A5F5',
data: [66, 49, 81, 71, 26, 65, 60]
},
{
label: 'Cancelled ',
backgroundColor: '#FFA726',
data: [68, 18, 60, 79, 16, 47, 80]
}
]
};
basicOptions = {
plugins: {
legend: {
labels: {
color: '#black'
}
}
},
scales: {
x: {
ticks: {
color: '#black'
},
grid: {
color: 'rgba(255,255,255,0.2)'
}
},
y: {
ticks: {
color: '#black'
},
grid: {
color: 'rgba(255,255,255,0.2)'
}
}
}
};
}