Chart.js/test/fixtures/scale.time/ticks-unit.js
Jukka Kurkela 416062bf68
Update tick positioning (#8657)
* Update tick positioning
* Update tests
2021-03-17 18:22:21 -04:00

28 lines
452 B
JavaScript

module.exports = {
threshold: 0.05,
tolerance: 0.002,
config: {
type: 'line',
data: {
labels: ['2015-01-01T20:00:00', '2015-01-02T21:00:00'],
},
options: {
scales: {
x: {
type: 'time',
time: {
unit: 'hour',
}
},
y: {
display: false
}
}
}
},
options: {
spriteText: true,
canvas: {width: 1200, height: 200}
}
};