chore(deps): upgrade Chart.js from v3.x to v4.x
This commit is contained in:
@@ -7,12 +7,15 @@ import { ActivatedRoute } from '@angular/router';
|
||||
import { HomeService } from '../../home.service';
|
||||
|
||||
/** Charting Imports */
|
||||
import Chart from 'chart.js';
|
||||
import { Chart, registerables } from 'chart.js';
|
||||
import { MatCard, MatCardHeader, MatCardContent } from '@angular/material/card';
|
||||
import { FaIconComponent } from '@fortawesome/angular-fontawesome';
|
||||
import { NgFor, NgStyle, NgIf } from '@angular/common';
|
||||
import { STANDALONE_SHARED_IMPORTS } from 'app/standalone-shared.module';
|
||||
|
||||
// Register Chart.js components
|
||||
Chart.register(...registerables);
|
||||
|
||||
/**
|
||||
* Amount Collected Pie Chart Component
|
||||
*/
|
||||
|
||||
@@ -7,12 +7,15 @@ import { ActivatedRoute } from '@angular/router';
|
||||
import { HomeService } from '../../home.service';
|
||||
|
||||
/** Charting Imports */
|
||||
import Chart from 'chart.js';
|
||||
import { Chart, registerables } from 'chart.js';
|
||||
import { MatCard, MatCardHeader, MatCardContent } from '@angular/material/card';
|
||||
import { FaIconComponent } from '@fortawesome/angular-fontawesome';
|
||||
import { NgFor, NgStyle, NgIf } from '@angular/common';
|
||||
import { STANDALONE_SHARED_IMPORTS } from 'app/standalone-shared.module';
|
||||
|
||||
// Register Chart.js components
|
||||
Chart.register(...registerables);
|
||||
|
||||
/**
|
||||
* Amount Disbursed Pie Chart Component
|
||||
*/
|
||||
|
||||
@@ -12,13 +12,16 @@ import { HomeService } from '../../home.service';
|
||||
|
||||
/** Charting Imports */
|
||||
import { Dates } from 'app/core/utils/dates';
|
||||
import Chart from 'chart.js';
|
||||
import { Chart, registerables } from 'chart.js';
|
||||
import { MatCard, MatCardHeader, MatCardContent } from '@angular/material/card';
|
||||
import { FaIconComponent } from '@fortawesome/angular-fontawesome';
|
||||
import { NgFor, NgStyle } from '@angular/common';
|
||||
import { MatButtonToggleGroup, MatButtonToggle } from '@angular/material/button-toggle';
|
||||
import { STANDALONE_SHARED_IMPORTS } from 'app/standalone-shared.module';
|
||||
|
||||
// Register Chart.js components
|
||||
Chart.register(...registerables);
|
||||
|
||||
/**
|
||||
* Client Trends Bar Chart Component.
|
||||
*/
|
||||
@@ -266,11 +269,11 @@ export class ClientTrendsBarComponent implements OnInit {
|
||||
responsive: true,
|
||||
scales: {
|
||||
y: {
|
||||
beginAtZero: true,
|
||||
scaleLabel: {
|
||||
min: 0,
|
||||
title: {
|
||||
display: true,
|
||||
labelString: 'Values',
|
||||
fontColor: '#1074B9'
|
||||
text: 'Values',
|
||||
color: '#1074B9'
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -8,11 +8,14 @@ import { ReportsService } from '../../reports.service';
|
||||
import { ChartData } from '../../common-models/chart-data.model';
|
||||
|
||||
/** Charting Imports */
|
||||
import Chart from 'chart.js';
|
||||
import { Chart, registerables } from 'chart.js';
|
||||
import { MatButtonToggleGroup, MatButtonToggle } from '@angular/material/button-toggle';
|
||||
import { NgStyle } from '@angular/common';
|
||||
import { STANDALONE_SHARED_IMPORTS } from 'app/standalone-shared.module';
|
||||
|
||||
// Register Chart.js components
|
||||
Chart.register(...registerables);
|
||||
|
||||
/**
|
||||
* Chart Component
|
||||
*/
|
||||
@@ -81,9 +84,11 @@ export class ChartComponent implements OnChanges {
|
||||
]
|
||||
},
|
||||
options: {
|
||||
title: {
|
||||
display: true,
|
||||
text: inputData.keysLabel
|
||||
plugins: {
|
||||
title: {
|
||||
display: true,
|
||||
text: inputData.keysLabel
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
@@ -110,19 +115,19 @@ export class ChartComponent implements OnChanges {
|
||||
]
|
||||
},
|
||||
options: {
|
||||
legend: { display: false },
|
||||
plugins: {
|
||||
legend: { display: false }
|
||||
},
|
||||
scales: {
|
||||
xAxes: [
|
||||
{
|
||||
scaleLabel: {
|
||||
display: true,
|
||||
labelString: inputData.keysLabel
|
||||
},
|
||||
ticks: {
|
||||
beginAtZero: true
|
||||
}
|
||||
x: {
|
||||
title: {
|
||||
display: true,
|
||||
text: inputData.keysLabel
|
||||
}
|
||||
]
|
||||
},
|
||||
y: {
|
||||
min: 0
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user