我正在使用Recharts库渲染条形图。
在我的条形图中,我想为显示工具提示设置一定的延迟。
我尝试添加animationBegin
和animationDuration
,但没有任何效果。
将throttleDelay
添加到父<BarChart>
组件会带来不良的UX,并且图表对悬停和光标移动会产生怪异的反应。
<Tooltip
...
isAnimationActive={true}
animationBegin={500}
animationDuration={500}
/>