reactjs / react-chartjs

common react charting components using chart.js
MIT License
2.93k stars 301 forks source link

xy轴对应的数据与图表内显示的不一致 #171

Open feengqi opened 7 years ago

feengqi commented 7 years ago

我使用react-chartjs的时候,发现xy轴对应的数据与图表内显示的不一致,

bug-b bug-a

将core.js 147行 chart.addData(values, nextProps.data.labels[setIndex]); 修改为 chart.addData(values, nextProps.data.labels[pointIndex]); 即可

JonathanSum commented 6 years ago

I am a translator 我使用react-chartjs的时候,发现xy轴对应的数据与图表内显示的不一致, When I use react-chartjs, I found out the data and the graph are different.