Chart.js/test/fixtures/scale.time/ticks-reverse-linear-min-max.js

34 lines
504 B
JavaScript
Raw Normal View History

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: '2050',
time: {
parser: 'YYYY'
},
distribution: 'linear',
reverse: true,
ticks: {
source: 'labels'
}
},
y: {
display: false
}
}
}
},
options: {
spriteText: true
}
};