根据 x 坐标和 y 坐标一一对应进行设置 (x,y)

{
  "type": "line",
  "series":[
    {"values":[[0,20],[1,40],[3,50],[4,15],[6,33],[7,34]]} /* Plot indices 2 and 5 are unavailable */
  ]
}

 

 

直接设置 y 坐标的值

{
  "type": "line",
  "series": [
    {"values":[20,40,25,50,15,45,33,34]},
    {"values":[5,30,21,18,59,50,28,33]},
    {"values":[30,5,18,21,33,41,29,15]}
  ]
}

 

ZingChart line 折线图表数据设置

 

 

官网资料:

https://www.zingchart.com/docs/chart-types/line

相关文章:

  • 2022-12-23
  • 2021-07-26
  • 2022-12-23
  • 2022-12-23
  • 2021-05-04
  • 2021-12-16
  • 2021-12-28
猜你喜欢
  • 2021-12-18
  • 2021-04-01
  • 2022-12-23
  • 2021-06-16
  • 2022-01-23
  • 2021-08-05
  • 2022-12-23
相关资源
相似解决方案