mirror of
https://github.com/chartjs/Chart.js.git
synced 2024-10-07 20:59:08 +02:00
33 lines
461 B
JavaScript
33 lines
461 B
JavaScript
|
module.exports = {
|
||
|
config: {
|
||
|
type: 'bar',
|
||
|
data: {
|
||
|
labels: ['a', 'b', 'c'],
|
||
|
datasets: [
|
||
|
{
|
||
|
data: {a: 10, b: 2, c: -5},
|
||
|
backgroundColor: '#ff0000'
|
||
|
},
|
||
|
{
|
||
|
data: {a: 8, b: 12, c: 5},
|
||
|
backgroundColor: '#00ff00'
|
||
|
}
|
||
|
]
|
||
|
},
|
||
|
options: {
|
||
|
legend: false,
|
||
|
title: false,
|
||
|
scales: {
|
||
|
xAxes: [{display: false}],
|
||
|
yAxes: [{display: false}]
|
||
|
}
|
||
|
}
|
||
|
},
|
||
|
options: {
|
||
|
canvas: {
|
||
|
height: 256,
|
||
|
width: 512
|
||
|
}
|
||
|
}
|
||
|
};
|