我输入为“数据”的数组未被Chart组件识别。检查了很多次数组结构,发现其中没有错误/错误/差异。
我尝试修改其结构,但是没有用。这是我的DataArray:
0: [{type: "date", label: "Día"},
"Peso","DROGA1","DROGA2","DROGA3","DRUG4","DRUG1"]
1: [Tue Dec 18 2018 00:00:00 GMT+0100, 15, 0, 0, 0, 0, 0]
2: [Wed Dec 19 2018 00:00:00 GMT+0100, 15, 0, 0, 0, 0, 0]
3: [Thu Dec 20 2018 00:00:00 GMT+0100, 15, 0, 0, 0, 0, 0]
4: [Fri Dec 21 2018 00:00:00 GMT+0100, 15, 0, 0, 0, 0, 0]
5: [Sat Dec 22 2018 00:00:00 GMT+0100, 15, 0, 0, 0, 0, 0]
6: [Sun Dec 23 2018 00:00:00 GMT+0100, 15, 0, 0, 0, 0, 0]
7: [Mon Dec 24 2018 00:00:00 GMT+0100, 15, 0, 0, 0, 0, 0]
8: [Tue Dec 25 2018 00:00:00 GMT+0100, 15, 0, 0, 0, 0, 0]
.
.
.
22: [Tue Jan 08 2019 00:00:00 GMT+0100, 18, 0, 1050, 0, 0, 105]
23: [Wed Jan 09 2019 00:00:00 GMT+0100, 18, 0, 1050, 0, 0, 105]
24: [Thu Jan 10 2019 00:00:00 GMT+0100, 18, 0, 1050, 0, 0, 105]
25: [Fri Jan 11 2019 00:00:00 GMT+0100, 18, 0, 1050, 0, 0, 105]
26: [Sat Jan 12 2019 00:00:00 GMT+0100, 18, 0, 1050, 0, 0, 105]
它应该显示每天的读数。