Skip to content

Commit a7fa8a3

Browse files
committed
fix: scales.[x/y]Axes.barPercentage is deprecated
1 parent a309983 commit a7fa8a3

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

resources/js/coreui/main.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -193,9 +193,10 @@ const cardChart4 = new Chart(document.getElementById('card-chart4'), {
193193
label: 'My First dataset',
194194
backgroundColor: 'rgba(255,255,255,.2)',
195195
borderColor: 'rgba(255,255,255,.55)',
196-
data: [78, 81, 80, 45, 34, 12, 40, 85, 65, 23, 12, 98, 34, 84, 67, 82]
196+
data: [78, 81, 80, 45, 34, 12, 40, 85, 65, 23, 12, 98, 34, 84, 67, 82],
197+
barPercentage: 0.7
197198
}
198-
]
199+
],
199200
},
200201
options: {
201202
maintainAspectRatio: false,
@@ -204,8 +205,7 @@ const cardChart4 = new Chart(document.getElementById('card-chart4'), {
204205
},
205206
scales: {
206207
xAxes: [{
207-
display: false,
208-
barPercentage: 0.6
208+
display: false
209209
}],
210210
yAxes: [{
211211
display: false

resources/js/coreui/widgets.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,8 @@ const cardChart4 = new Chart(document.getElementById('card-chart4'), {
187187
label: 'My First dataset',
188188
backgroundColor: 'rgba(255,255,255,.2)',
189189
borderColor: 'rgba(255,255,255,.55)',
190-
data: [78, 81, 80, 45, 34, 12, 40, 85, 65, 23, 12, 98, 34, 84, 67, 82]
190+
data: [78, 81, 80, 45, 34, 12, 40, 85, 65, 23, 12, 98, 34, 84, 67, 82],
191+
barPercentage: 0.7
191192
}
192193
]
193194
},
@@ -198,8 +199,7 @@ const cardChart4 = new Chart(document.getElementById('card-chart4'), {
198199
},
199200
scales: {
200201
xAxes: [{
201-
display: false,
202-
barPercentage: 0.6
202+
display: false
203203
}],
204204
yAxes: [{
205205
display: false

0 commit comments

Comments
 (0)