错误原因:数据类型错误,需要的是Number类型,传入的却是String
以为为官网说明:
Highcharts Error #14
String value sent to series.data, expected Number
This happens if you pass in a string as a data point, for example >in a setup like this:
series: [{
data: [“3”, “5”, “1”, “6”]
}]Highcharts expects the data values to be numbers. The most >common reason for this is that data is parsed from CSV or from a > XML source, and the implementer forgot to run parseFloat on the >parsed value.
For performance reasons internal type casting is not performed, >and only the first value is checked (since 2.3).
作者:itmyhome
再分享一下我老师大神的人工智能教程吧。零基础!通俗易懂!风趣幽默!还带黄段子!希望你也加入到我们人工智能的队伍中来!https://blog.csdn.net/jiangjunshow