substitutefor

software · Q579

Recharts

MIT-licensed React charting library built from composable components and SVG elements.

Suggest a correction

Overview

Recharts is an open-source charting library that composes React components into SVG-based visualizations. Developers select chart containers, axes, series and supporting elements and customize them through properties or their own components. This makes it a reusable interface resource for React applications, including those built with coding assistants, rather than a standalone analytics service.[1]

Composing charts in a React application

A chart is assembled from React pieces rather than described only through one large renderer configuration. The homepage's example combines a chart container, axes, grid, series and legend, and the library supports customization through properties and custom components. That is useful for an application already organized around React. It still requires appropriate data and intentional component choices; rendering an attractive series does not establish that its underlying aggregation is correct.[1]

A frequent integration issue: dimensions

Recharts needs explicit sizing information to render. Its guide distinguishes fixed dimensions, CSS sizing and automatic resize behavior. The chart-level responsive property was introduced in version 3.3; older versions can use ResponsiveContainer, whose parent must have a defined size. This is relevant to generated dashboards where the chart is placed inside a grid or initially hidden area: a blank chart may result from its available dimensions, not from a failed data request.[4]

Version-sensitive customizations

Version 3 rewrote internal state handling and removed the previously exposed CategoricalChartState and several internal properties. Code depending on those details needs more than a dependency-version change. The migration guide also moves active-item control away from the old activeIndex property and changes custom-tooltip typing. Conversely, v3 supports custom React components containing chart parts. Old snippets and new documentation should be matched to the installed release rather than combined indiscriminately.[5]

Accessibility support has boundaries

The accessibility layer adds roles, labels and keyboard handling and is on by default in v3 rather than the v2 default of off. The maintainer accessibility guide describes tabbing to the chart and using arrow keys between points. It also notes that VoiceOver users may need QuickNav disabled for this navigation. That is documented guidance, not an independent validation of every current screen-reader/browser combination or a complete accessibility assessment of the application's charts.[5][6]

Performance follows component and data design

The performance guide recommends isolating frequently changing elements so that unrelated parts of a chart do not rerender unnecessarily. Stable object and function references can matter, particularly for functional data keys. It also recommends reducing plotted detail through aggregation or sampling when that better fits the display, and measuring behavior with profiling tools. These practices identify work for the developer; they do not establish a universal advantage over a canvas library or a verified maximum dataset size.[7]

License and adoption

The source is MIT-licensed, including its copyright and permission-notice requirements. The documented installation is a package added to a React application, not a hosted dashboard account. Additional templates, data sources or application assets should be assessed under their own terms rather than assuming the chart library licenses the complete project.[2][3]

Substitution considerations

Recharts can replace Chart.js for overlapping chart displays when the project benefits from React/SVG composition. The rendering and API models differ, so a move requires adapting data bindings, styling and event behavior. Chart.js's canvas-oriented integration is not directly consumable as Recharts component code. Existing plugin-specific functions and accessibility requirements should be checked separately. No hands-on migration or comparative performance test was performed.[1][8]

Capabilities & limitations

React/SVG composition

supported

Charts use reusable React elements and SVG rendering with configurable or custom components.[1]

Building charts within React web interfaces · React web applications, JavaScript, TypeScript · Version, build and integration requirements apply

1 source · check evidence
https://recharts.github.io/en-US/

React component composition, SVG and customization

vendor · checked 2026-10-07

Responsive resizing

limited

The chart-level responsive property requires 3.3+; older ResponsiveContainer usage needs a parent with defined dimensions.[4]

Building charts within React web interfaces · React web applications, JavaScript, TypeScript · Version, build and integration requirements apply

1 source · check evidence
https://recharts.github.io/en-US/guide/sizes/

Required dimensions, responsive since 3.3 and sized parent for ResponsiveContainer

vendor · checked 2026-10-07

Keyboard chart navigation

limited

The v3 accessibility layer is enabled by default, but the maintainer guide documents assistive-technology interaction caveats.[5][6]

Building charts within React web interfaces · React web applications, JavaScript, TypeScript · Version, build and integration requirements apply

2 sources · check evidence
https://github.com/recharts/recharts/wiki/Recharts-and-accessibility

Keyboard navigation and documented VoiceOver QuickNav caveat

vendor · checked 2026-10-07
https://github.com/recharts/recharts/wiki/3.0-migration-guide

Removed internal state/props, custom components and accessibility default

vendor · checked 2026-10-07

Unchanged v2 custom internals

unsupported

The v3 migration removes previously exposed internal state and some properties used by custom implementations.[5]

Building charts within React web interfaces · React web applications, JavaScript, TypeScript · Version, build and integration requirements apply

1 source · check evidence
https://github.com/recharts/recharts/wiki/3.0-migration-guide

Removed internal state/props, custom components and accessibility default

vendor · checked 2026-10-07

Can substitute for

These are products or services this entry can replace. Check the task and limitations for each comparison.

Chart.js for Building charts within React web interfaces

limited

Candidate for common web charts inside a React application when SVG/component composition is desired. Canvas-oriented options, plugins and interactions do not migrate unchanged.[1][8]

React web applications, JavaScript, TypeScript · Version, build and integration requirements apply

References

  1. Recharts homepage

    React component composition, SVG and customization

    vendor · retrieved 2026-10-07
  2. Recharts license

    MIT license

    vendor · retrieved 2026-10-07
  3. Recharts installation

    NPM and React-based browser integration

    vendor · retrieved 2026-10-07
  4. Recharts chart size

    Required dimensions, responsive since 3.3 and sized parent for ResponsiveContainer

    vendor · retrieved 2026-10-07
  5. Recharts 3.0 migration guide

    Removed internal state/props, custom components and accessibility default

    vendor · retrieved 2026-10-07
  6. Recharts accessibility

    Keyboard navigation and documented VoiceOver QuickNav caveat

    vendor · retrieved 2026-10-07
  7. Recharts performance

    Component isolation, stable references, sampling and profiling

    vendor · retrieved 2026-10-07
  8. Chart.js overview

    Canvas renderer and direct/wrapper integration

    vendor · retrieved 2026-10-07

Discussion & disputes

Ask about unclear claims or explain a concern with supporting sources. If you have a specific fix, suggest a correction.

No discussion yet.

Sign in with an active account to join the discussion.

Revision history

Open a revision to read an earlier version of this article.

RevisionTimestampEdit summary
6272026-10-12 23:16:27/* wbeditentity-create-item:0| */ sf:cda31316-2bc4-4a10-a1d4-618ab5200723:v1 | Add Recharts with version-sensitive responsive sizing, v3 migration changes, accessibility-layer caveats and Chart.js comparison. | attribution: /proposals/cda31316-2bc4-4a10-a1d4-618ab5200723