mirror of
https://github.com/chartjs/Chart.js.git
synced 2024-10-09 05:39:06 +02:00
30 lines
395 B
JavaScript
30 lines
395 B
JavaScript
|
module.exports = {
|
||
|
config: {
|
||
|
type: 'bar',
|
||
|
data: {
|
||
|
labels: [0, 1, 3, 4],
|
||
|
datasets: [
|
||
|
{
|
||
|
data: [5, 20, 10, 11],
|
||
|
base: 10,
|
||
|
backgroundColor: '#00ff00',
|
||
|
borderColor: '#ff0000',
|
||
|
borderWidth: 2,
|
||
|
}
|
||
|
]
|
||
|
},
|
||
|
options: {
|
||
|
scales: {
|
||
|
x: {display: false},
|
||
|
y: {display: false}
|
||
|
}
|
||
|
}
|
||
|
},
|
||
|
options: {
|
||
|
canvas: {
|
||
|
height: 256,
|
||
|
width: 512
|
||
|
}
|
||
|
}
|
||
|
};
|