mirror of
https://github.com/chartjs/Chart.js.git
synced 2024-10-07 20:59:08 +02:00
37 lines
578 B
JavaScript
37 lines
578 B
JavaScript
|
module.exports = {
|
||
|
config: {
|
||
|
type: 'bar',
|
||
|
data: {
|
||
|
datasets: [{
|
||
|
data: ['10', '100', '10', '100'],
|
||
|
backgroundColor: '#ff0000'
|
||
|
}, {
|
||
|
data: ['100', '10', '0', '100'],
|
||
|
backgroundColor: '#00ff00'
|
||
|
}],
|
||
|
labels: ['label1', 'label2', 'label3', 'label4']
|
||
|
},
|
||
|
options: {
|
||
|
legend: false,
|
||
|
title: false,
|
||
|
datasets: {
|
||
|
bar: {
|
||
|
barPercentage: 1,
|
||
|
}
|
||
|
},
|
||
|
scales: {
|
||
|
x: {
|
||
|
type: 'category',
|
||
|
display: false,
|
||
|
stacked: true,
|
||
|
},
|
||
|
y: {
|
||
|
type: 'logarithmic',
|
||
|
display: false,
|
||
|
stacked: true
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
};
|