Chart.js/test/fixtures/scale.time/ticks-stepsize.js
Jukka Kurkela 3b915cbdd3
Convert some of the time scale tests to fixtures (#7154)
* Convert some of time scale tick tests to fixtures
* A little more threshold
2020-02-28 18:56:22 -05:00

30 lines
418 B
JavaScript

module.exports = {
threshold: 0.01,
config: {
type: 'line',
data: {
labels: ['2015-01-01T20:00:00', '2015-01-01T21:00:00']
},
options: {
scales: {
x: {
type: 'time',
bounds: 'ticks',
time: {
unit: 'hour',
stepSize: 2
}
},
y: {
display: false
}
},
legend: false
}
},
options: {
spriteText: true,
canvas: {width: 512, height: 128}
}
};