mirror of
https://github.com/chartjs/Chart.js.git
synced 2024-10-09 05:39:06 +02:00
3b915cbdd3
* Convert some of time scale tick tests to fixtures * A little more threshold
30 lines
419 B
JavaScript
30 lines
419 B
JavaScript
module.exports = {
|
|
threshold: 0.01,
|
|
config: {
|
|
type: 'line',
|
|
data: {
|
|
labels: [
|
|
'2012-01-01', '2013-01-01', '2014-01-01', '2015-01-01',
|
|
'2016-01-01', '2017-01-01', '2018-01-01', '2019-01-01'
|
|
]
|
|
},
|
|
options: {
|
|
scales: {
|
|
x: {
|
|
type: 'time',
|
|
time: {
|
|
unit: 'year'
|
|
}
|
|
},
|
|
y: {
|
|
display: false
|
|
}
|
|
},
|
|
legend: false
|
|
}
|
|
},
|
|
options: {
|
|
spriteText: true
|
|
}
|
|
};
|