mirror of
https://github.com/chartjs/Chart.js.git
synced 2024-10-09 05:39:06 +02:00
9bd2af9e9b
* Move location of dataset options * Fix misplaced period
37 lines
562 B
JavaScript
37 lines
562 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,
|
|
bar: {
|
|
datasets: {
|
|
barPercentage: 1,
|
|
}
|
|
},
|
|
scales: {
|
|
x: {
|
|
type: 'category',
|
|
display: false,
|
|
stacked: true,
|
|
},
|
|
y: {
|
|
type: 'logarithmic',
|
|
display: false,
|
|
stacked: true
|
|
}
|
|
}
|
|
}
|
|
}
|
|
};
|