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检测#6450 ResponsiveContainer:只在需要缩小的尺寸上缩小#6367 Treemap:修复 Treemap 中的动画卡顿问题#6326 Sankey:修复 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