Chart.js/test/fixtures/scale.time/source-data-series-offset-min-max.js
Ben McCann c2cd00ca90
Split time scale into time and timeseries (#7525)
* Split time scale into time and timeseries
* Address comment
2020-06-19 10:21:39 -04:00

34 lines
497 B
JavaScript

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: 'timeseries',
min: '2012',
max: '2051',
offset: true,
time: {
parser: 'YYYY',
},
ticks: {
source: 'data'
}
},
y: {
display: false
}
},
legend: false
}
},
options: {
spriteText: true
}
};