mirror of
https://github.com/chartjs/Chart.js.git
synced 2024-10-07 20:59:08 +02:00
35 lines
433 B
JavaScript
35 lines
433 B
JavaScript
|
module.exports = {
|
||
|
config: {
|
||
|
type: 'line',
|
||
|
data: {
|
||
|
datasets: [{
|
||
|
data: [1, 2, 3],
|
||
|
}],
|
||
|
labels: ['Label1', 'Label2', 'Label3']
|
||
|
},
|
||
|
options: {
|
||
|
legend: false,
|
||
|
title: false,
|
||
|
scales: {
|
||
|
x: {
|
||
|
ticks: {
|
||
|
alignment: 'center',
|
||
|
},
|
||
|
},
|
||
|
y: {
|
||
|
ticks: {
|
||
|
alignment: 'center',
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
},
|
||
|
options: {
|
||
|
spriteText: true,
|
||
|
canvas: {
|
||
|
height: 256,
|
||
|
width: 512
|
||
|
}
|
||
|
}
|
||
|
};
|