Chart.js/test/fixtures/scale.time/source-data-linear.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

33 lines
481 B
JavaScript

module.exports = {
threshold: 0.01,
config: {
type: 'line',
data: {
labels: ['2017', '2018', '2019', '2020', '2025'],
datasets: [{data: [0, 1, 2, 3, 4], fill: false}]
},
options: {
scales: {
x: {
type: 'time',
time: {
parser: 'YYYY',
unit: 'year'
},
ticks: {
source: 'data'
},
distribution: 'linear'
},
y: {
display: false
}
},
legend: false
}
},
options: {
spriteText: true
}
};