错误原因:数据类型错误,需要的是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