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

来源:互联网 发布:淘宝商品优惠券不显示 编辑:程序博客网 时间:2024/05/21 19:50

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

0 0
原创粉丝点击