作者:键盘上的泪g_752 | 来源:互联网 | 2023-05-17 05:02
IamtryingtoplotalinechartfromaJavascriptarray.Whileparsingthedateigetanerrorwhic
I am trying to plot a line chart from a Javascript array. While parsing the date i get an error which says
我试图从Javascript数组绘制折线图。解析日期时,我得到一个错误
d3.v3.min.js:1 Error: attribute d: Expected number, "MNaN,0LNaN,450".o @ d3.v3.min.js:1
d3.v3.min.js:1错误:属性d:预期数字,“MNaN,0LNaN,450”.o @ d3.v3.min.js:1
I tried have tried the suggestions mentioned in this stack overflow question : d3.js parsing date error with csv file. But I am still facing the same issue. Any idea what I am doing wrong here. The same works perfectly when I try running with tsv input.
我试过尝试过这个堆栈溢出问题中提到的建议:d3.js用csv文件解析日期错误。但我仍然面临同样的问题。知道我在这里做错了什么。当我尝试使用tsv输入运行时,它完全相同。
Here is my code :
这是我的代码:
1 个解决方案