mirror of
https://github.com/chartjs/Chart.js.git
synced 2024-10-08 13:19:07 +02:00
31 lines
562 B
JavaScript
31 lines
562 B
JavaScript
module.exports = {
|
|
config: {
|
|
type: 'bar',
|
|
data: {
|
|
labels: ['a', 'b', 'c'],
|
|
datasets: [
|
|
{
|
|
data: [{x: 'b', y: [2, 8]}, {x: 'c', y: [2, 5]}],
|
|
backgroundColor: '#ff0000'
|
|
},
|
|
{
|
|
data: [{x: 'a', y: 10}, {x: 'c', y: [6, 10]}],
|
|
backgroundColor: '#00ff00'
|
|
}
|
|
]
|
|
},
|
|
options: {
|
|
scales: {
|
|
x: {display: false, stacked: true},
|
|
y: {display: false, min: 0}
|
|
}
|
|
}
|
|
},
|
|
options: {
|
|
canvas: {
|
|
height: 256,
|
|
width: 512
|
|
}
|
|
}
|
|
};
|