反应图表2 https://github.com/gor181/react-chartjs-2
在下面引用
Chart JS http://www.chartjs.org/docs/#getting-started
react-chartjs-2中的文档引用了chart.js文档,它们都是错误的。我不知道如何在react中配置图表,特别是选项。有人知道吗?
发布于 2017-05-23 19:02:50
<Bar
data={{
labels: this.props.labels,
datasets: this.props.data
}}
options={{
legend: {
display: false
},
scales: {
yAxes: [{
ticks: {
max: this.props.maxY,
min: 0,
stepSize: 3
}
}]
},
title: {
display: this.props.display,
text: this.props.title
}
}}
/>https://stackoverflow.com/questions/43507799
复制相似问题