您的位置:首页 > 其它

Highcharts error #14: www.highcharts.com/errors/14

2016-05-04 18:02 337 查看
错误原因:数据类型错误,需要的是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
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: