import { Component } from '@angular/core'; @Component({ selector: 'ngx-chartjs-line', styles: [ ` :host { display: block; } `, ], template: ` `, }) export class ChartjsLineComponent { chartData: any[] = [ { data: [65, 59, 80, 81, 56, 55, 40], label: 'Series A' }, { data: [28, 48, 40, 19, 86, 27, 90], label: 'Series B' }, { data: [18, 48, 77, 9, 100, 27, 40], label: 'Series C' }, ]; chartLabels: any[] = ['January', 'February', 'March', 'April', 'May', 'June', 'July']; chartOptions: any = { responsive: true, scales: { xAxes: [ { gridLines: { display: true, color: 'rgba(148,159,177,1)', }, ticks: { fontColor: 'white', }, }, ], yAxes: [ { gridLines: { display: true, color: 'rgba(148,159,177,1)', }, ticks: { fontColor: 'white', }, }, ], }, legend: { labels: { fontColor: 'white', }, }, }; chartLegend: boolean = true; chatyType: string = 'line'; }