Chart.js/test/fixtures/scale.time/source-data-series-offset-min-max.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

35 lines
520 B
JavaScript

module.exports = {
threshold: 0.01,
config: {
type: 'line',
data: {
labels: ['2017', '2019', '2020', '2025', '2042'],
datasets: [{data: [0, 1, 2, 3, 4, 5], fill: false}]
},
options: {
scales: {
x: {
type: 'time',
min: '2012',
max: '2051',
offset: true,
time: {
parser: 'YYYY',
},
ticks: {
source: 'data'
},
distribution: 'series'
},
y: {
display: false
}
},
legend: false
}
},
options: {
spriteText: true
}
};