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
418 B
JavaScript
30 lines
418 B
JavaScript
module.exports = {
|
|
threshold: 0.01,
|
|
config: {
|
|
type: 'line',
|
|
data: {
|
|
labels: ['2015-01-01T20:00:00', '2015-01-01T21:00:00']
|
|
},
|
|
options: {
|
|
scales: {
|
|
x: {
|
|
type: 'time',
|
|
bounds: 'ticks',
|
|
time: {
|
|
unit: 'hour',
|
|
stepSize: 2
|
|
}
|
|
},
|
|
y: {
|
|
display: false
|
|
}
|
|
},
|
|
legend: false
|
|
}
|
|
},
|
|
options: {
|
|
spriteText: true,
|
|
canvas: {width: 512, height: 128}
|
|
}
|
|
};
|