mirror of
https://github.com/chartjs/Chart.js.git
synced 2024-10-09 05:39:06 +02:00
021561072b
Disabling all plugins when options.plugins = false
33 lines
477 B
JavaScript
33 lines
477 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,
|
|
offset: true,
|
|
time: {
|
|
parser: 'YYYY',
|
|
unit: 'year'
|
|
},
|
|
ticks: {
|
|
source: 'labels',
|
|
},
|
|
},
|
|
y: {
|
|
display: false
|
|
}
|
|
}
|
|
}
|
|
},
|
|
options: {
|
|
spriteText: true
|
|
}
|
|
};
|