react-chartjs
react-chartjs copied to clipboard
xy轴对应的数据与图表内显示的不一致
我使用react-chartjs的时候,发现xy轴对应的数据与图表内显示的不一致,
将core.js
147行
chart.addData(values, nextProps.data.labels[setIndex]);
修改为
chart.addData(values, nextProps.data.labels[pointIndex]);
即可
I am a translator 我使用react-chartjs的时候,发现xy轴对应的数据与图表内显示的不一致, When I use react-chartjs, I found out the data and the graph are different.