Highcharts error 15

后端 未结 3 1197
深忆病人
深忆病人 2020-12-19 04:09

i\'m trying to represent these data using highcharts:

[
  {
    \"name\": \"c1\",
    \"data\": [
      [
        -52587360000000,
        2
      ],
      [         


        
3条回答
  •  陌清茗
    陌清茗 (楼主)
    2020-12-19 04:29

    in my case, the first element of the "data array" , is datetime-descend. this is incorrect for HiChart. e.g.

    # this sort cause error 15 of highchart
    [   5,        'content...' ],
    [   4,        'content...' ],
    [   3,        'content...' ]
    

    solution: re-order the array with the 'asend order' for the first element, e.g.

    # this is working good
    [   3,        'content...' ],
    [   4,        'content...' ],
    [   5,        'content...' ]
    

提交回复
热议问题