0
我必须使用react-chartjs-2创建堆积条形图。如何使用react-chartjs-2创建堆叠条形图?
options : {
maintainAspectRatio: false,
tooltips: {
mode: 'x-axis'
},
scales: {
yAxes: [{
ticks: {
beginAtZero: true
}
}],
xAxes: [{
stacked: true
}]
}
}
堆叠在酒吧似乎并没有工作。