Open feengqi opened 7 years ago
我使用react-chartjs的时候,发现xy轴对应的数据与图表内显示的不一致,
将core.js 147行 chart.addData(values, nextProps.data.labels[setIndex]); 修改为 chart.addData(values, nextProps.data.labels[pointIndex]); 即可
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.
我使用react-chartjs的时候,发现xy轴对应的数据与图表内显示的不一致,
将core.js 147行
chart.addData(values, nextProps.data.labels[setIndex]);
修改为chart.addData(values, nextProps.data.labels[pointIndex]);
即可