
使用eCharts动态更新数据功能的时候,更新时动画会不自然,原因不知道,不过通过设置series值的方式就可以解决
chartRow.data.forEach((item) => {
// childList.push([item.ts, item.num]) // 原来的方式
childList.push({name: item.ts, value: [item.ts, item.num]}) // 新的方式设值
})
使用eCharts动态更新数据功能的时候,更新时动画会不自然,原因不知道,不过通过设置series值的方式就可以解决
chartRow.data.forEach((item) => {
// childList.push([item.ts, item.num]) // 原来的方式
childList.push({name: item.ts, value: [item.ts, item.num]}) // 新的方式设值
})