Chart.js/test/fixtures/scale.time/ticks-reverse.js
Jukka Kurkela 021561072b
Disable all plugins when options.plugins = false (#8098)
Disabling all plugins when options.plugins = false
2020-11-23 17:58:03 -05:00

32 lines
458 B
JavaScript

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