BizGoblin icon indicating copy to clipboard operation
BizGoblin copied to clipboard

Chart data变化不触发图表刷新

Open Deathsteps opened this issue 5 years ago • 3 comments

我看代码中,Chart 组件的 componentWillReceiveProps 实现是空的

https://github.com/alibaba/BizGoblin/blob/6f0d680c6b30bd97846ce208ef309a41f9bedb60/packages/goblin-react/src/components/Chart.tsx#L180

Deathsteps avatar Apr 16 '19 07:04 Deathsteps

data变化是在 componentDidUpdate 中实现图表刷新的

RaulZuo avatar May 08 '19 02:05 RaulZuo

data变化刷新图表的确有点问题?多次chart.repaint()?

adam1985 avatar May 09 '19 11:05 adam1985

图表re-render的时候会多次chart.repaint()? 把具体实例代码贴出来看下

RaulZuo avatar May 14 '19 17:05 RaulZuo