平常随笔:React+G2 使用changeData实时更新数据

React+G2踩坑:使用changeData 实时更新数据 用类组件 在componentDidMount中初始化图表,而后将chart实例进行保存便可 在componentWillUpdate的时候完成对于图标的更新 代码例子 import React from 'react'; import G2 from '@antv/g2'; interface Props { data: any
相关文章
相关标签/搜索