Chart.js/test/fixtures/scale.timeseries/ticks-reverse.js

32 lines
555 B
JavaScript
Raw Normal View History

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
}
};