Skip to content

Commit 92597cf

Browse files
committed
fix: scales.[x/y]Axes.barPercentage is deprecated
1 parent ac237c4 commit 92597cf

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/app/views/dashboard/dashboard.component.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,8 @@ export class DashboardComponent implements OnInit {
177177
public barChart1Data: Array<any> = [
178178
{
179179
data: [78, 81, 80, 45, 34, 12, 40, 78, 81, 80, 45, 34, 12, 40, 12, 40],
180-
label: 'Series A'
180+
label: 'Series A',
181+
barPercentage: 0.6,
181182
}
182183
];
183184
public barChart1Labels: Array<any> = ['1', '2', '3', '4', '5', '6', '7', '8', '9', '10', '11', '12', '13', '14', '15', '16'];
@@ -190,7 +191,6 @@ export class DashboardComponent implements OnInit {
190191
scales: {
191192
xAxes: [{
192193
display: false,
193-
barPercentage: 0.6,
194194
}],
195195
yAxes: [{
196196
display: false

src/app/views/widgets/widgets.component.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,8 @@ export class WidgetsComponent {
175175
public barChart1Data: Array<any> = [
176176
{
177177
data: [78, 81, 80, 45, 34, 12, 40, 78, 81, 80, 45, 34, 12, 40, 12, 40],
178-
label: 'Series A'
178+
label: 'Series A',
179+
barPercentage: 0.6
179180
}
180181
];
181182
public barChart1Labels: Array<any> = ['1', '2', '3', '4', '5', '6', '7', '8', '9', '10', '11', '12', '13', '14', '15', '16'];
@@ -188,7 +189,6 @@ export class WidgetsComponent {
188189
scales: {
189190
xAxes: [{
190191
display: false,
191-
barPercentage: 0.6,
192192
}],
193193
yAxes: [{
194194
display: false
@@ -250,7 +250,8 @@ export class WidgetsComponent {
250250
public barChart2Data: Array<any> = [
251251
{
252252
data: [4, 18, 9, 17, 34, 22, 11, 3, 15, 12, 18, 9],
253-
label: 'Series A'
253+
label: 'Series A',
254+
barPercentage: 0.6
254255
}
255256
];
256257
public barChart2Labels: Array<any> = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'];
@@ -263,7 +264,6 @@ export class WidgetsComponent {
263264
scales: {
264265
xAxes: [{
265266
display: false,
266-
barPercentage: 0.6,
267267
}],
268268
yAxes: [{
269269
display: false,

0 commit comments

Comments
 (0)