Столбцы на гистограмме занимают большую ширину на устройствах iOS, таких как iPad и iPhone, по сравнению с другими устройствами.
Она должна иметь такую же ширину, как и на других устройствах.Вот код
scales: {
x:
{
grid: {
display: true,
color: 'transparent',
borderColor: '#b0b0b0'
},
stacked: true,
display: true,
ticks: {
font: {
weight: "bold",
},
color: '#666666',
}
},
y:
{
position:'left'
stacked: true,
type: 'linear',
reverse: false,
min: this.properties.Y_min,
max: this.properties.Y_max,
grid: {
display: true,
color: '#d9d9d9',
lineWidth(ctx) {
return ctx.index == 0 ? 0:1
},
tickColor: function (data) {
return data.index == 0 ? '#b0b0b0' : '#d9d9d9'
}
},
}
},
Подробнее здесь: https://stackoverflow.com/questions/793 ... ios-device