Skip to content

3.2.0 Broken Treemap Rendering #6310

@pckilgore

Description

@pckilgore

What is the current behavior?

Screen.Recording.2025-09-12.at.2.52.01.PM.mov

What is the expected behavior?

Stable treemap render

Please provide a demo of the problem in a sandbox

[I will do this if I get some time, here's our elided code:

          <ResponsiveContainer>
            <Treemap
              data={treeData}
              animationDuration={0}
              dataKey="size"
              aspectRatio={1.5}
              content={
                <CustomizedContent formatLink={formatLink} />
              }
            >
              <Tooltip
                formatter={(_v, _n, { payload }) => [
                  fmtFn(payload.size),
                  payload.name,
                ]}
              />
            </Treemap>
          </ResponsiveContainer>

Which versions of Recharts, and which browser / OS are affected by this issue? Did this work in previous versions of Recharts?

This worked until we upgraded recharts 3.1.0 -> 3.2.0 today and was fixed by reverting.

Metadata

Metadata

Assignees

Labels

animationIssues regarding animationbugGeneral bug label

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions