Recharts 3.3.0 发布,React 和 D3 构建的图表库
Recharts 3.3.0 现已发布,具体更新内容包括:
Feat
ResponsiveContainer现在已内置于所有图表中 #6388- 将
responsive属性添加到任何图表中,并设置其高度和宽度,就像使用 一样ResponsiveContainer。这样可以少一个组件来包装内容。ResponsiveContainer将在 3.x 的生命周期内继续有效。
- 将
<BarChart data={data} responsive height={300} width="100%">
....
</BarChart>
Fix
YAxis:仅当差异 > 1 像素时才使用 YAxiswidth="auto"oscillation 检测 #6450ResponsiveContainer:只在需要缩小的尺寸上缩小 #6367Treemap:修复 Treemap 中的动画卡顿问题 #6326Sankey:修复 unique key 错误 #6352
网站变更 - https://recharts.github.io/
- Recharts 网站现在内联在 recharts/www 中,而不是 https://github.com/recharts/recharts.org
- 新的 recharts 网站网址为 https://recharts.github.io/
当前贡献者和管理员并不拥有 recharts.org 域名,其续期事宜仍悬而未决。为消除这一不确定性,项目方已将网站部署至 github pages URL。
详情可查看:https://github.com/recharts/recharts/releases/tag/v3.3.0