import { Component } from "@angular/core";
@Component({
selector: "app-root",
templateUrl: "./app.component.html",
styleUrls: ["./app.component.scss"]
})
export class AppComponent {
title = "GFG";
data = {
labels: ["Alpha", "Beta", "Gamma", "Delta", "Pie", "Phi", "Rho"],
datasets: [
{
label: "Dataset 1",
borderColor: "violet",
yAxisID: "y",
tension: 0.4,
fill: true,
data: [45, 69, 40, 61, 76, 35, 20]
},
{
label: "Dataset 2",
borderColor: "orange",
yAxisID: "y1",
borderDash: [5, 5],
tension: 0.4,
data: [48, 28, 60, 39, 65, 47, 50]
}
]
};
chartOptions = {
stacked: false,
plugins: {
legend: {
labels: {
color: "black"
}
}
},
scales: {
x: {
ticks: {
color: "black"
},
grid: {
color: "#ebedef"
}
},
y: {
type: "linear",
display: true,
position: "left",
ticks: {
color: "black"
},
grid: {
color: "#ebedef"
}
},
y1: {
type: "linear",
display: true,
position: "right",
ticks: {
color: "black"
},
grid: {
drawOnChartArea: false,
color: "#ebedef"
}
}
}
};
}