当前位置:首页>开发>正文

echarts雷达图动态获取的数据怎么加载

2024-01-03 13:42:33 互联网 未知 开发

echarts雷达图动态获取的数据怎么加载?

echarts雷达图动态获取的数据怎么加载

/ 动态数据接口 addData

myChart.addData([

[

0, // 系列索引

{ // 新增数据

name: data lastIndex,

value: [

Math.round(Math.random()*100),

Math.round(Math.random()*100),

Math.round(Math.random()*100),

Math.round(Math.random()*100),

Math.round(Math.random()*100)

]

},

false, // 新增数据是否从队列头部插入

false // 是否增加队列长度,false则自定删除原有数据,队头插入删队尾,队尾插入删队头

]

])

}, 2000)

最新文章