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

32 lines
555 B
JavaScript

module.exports = {
threshold: 0.01,
tolerance: 0.0015,
config: {
type: 'line',
data: {
labels: ['2017', '2019', '2020', '2025', '2042'],
datasets: [{data: [0, 1, 2, 3, 4], fill: false}]
},
options: {
scales: {
x: {
type: 'timeseries',
time: {
parser: 'YYYY'
},
reverse: true,
ticks: {
source: 'labels'
}
},
y: {
display: false
}
}
}
},
options: {
spriteText: true
}
};