mirror of
https://github.com/chartjs/Chart.js.git
synced 2024-10-09 05:39:06 +02:00
36 lines
439 B
JavaScript
36 lines
439 B
JavaScript
|
module.exports = {
|
||
|
config: {
|
||
|
type: 'line',
|
||
|
data: {
|
||
|
datasets: [{
|
||
|
data: [
|
||
|
{x: -1000000, y: 1},
|
||
|
{x: 1000000000, y: 2}
|
||
|
]
|
||
|
}]
|
||
|
},
|
||
|
options: {
|
||
|
scales: {
|
||
|
x: {
|
||
|
type: 'time',
|
||
|
time: {
|
||
|
unit: 'day'
|
||
|
},
|
||
|
ticks: {
|
||
|
display: false
|
||
|
}
|
||
|
},
|
||
|
y: {
|
||
|
ticks: {
|
||
|
display: false
|
||
|
}
|
||
|
}
|
||
|
},
|
||
|
legend: false
|
||
|
}
|
||
|
},
|
||
|
options: {
|
||
|
canvas: {width: 1000, height: 200}
|
||
|
}
|
||
|
};
|