{"schemaVersion":"1.0","record":{"label":"Recharts","description":"MIT-licensed React charting library built from composable components and SVG elements.","aliases":[],"kind":"software","website":"https://recharts.github.io/","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.","license":"MIT","lifecycle":"active","example":false,"features":[{"name":"React/SVG composition","status":"supported","detail":"Charts use reusable React elements and SVG rendering with configurable or custom components.","useCase":"Building charts within React web interfaces","platforms":["React web applications","JavaScript","TypeScript"],"region":"Version, build and integration requirements apply","evidence":[{"url":"https://recharts.github.io/en-US/","locator":"React component composition, SVG and customization","retrievedAt":"2026-10-07T22:45:10Z","kind":"vendor"}]},{"name":"Responsive resizing","status":"limited","detail":"The chart-level responsive property requires 3.3+; older ResponsiveContainer usage needs a parent with defined dimensions.","useCase":"Building charts within React web interfaces","platforms":["React web applications","JavaScript","TypeScript"],"region":"Version, build and integration requirements apply","evidence":[{"url":"https://recharts.github.io/en-US/guide/sizes/","locator":"Required dimensions, responsive since 3.3 and sized parent for ResponsiveContainer","retrievedAt":"2026-10-07T22:45:44Z","kind":"vendor"}]},{"name":"Keyboard chart navigation","status":"limited","detail":"The v3 accessibility layer is enabled by default, but the maintainer guide documents assistive-technology interaction caveats.","useCase":"Building charts within React web interfaces","platforms":["React web applications","JavaScript","TypeScript"],"region":"Version, build and integration requirements apply","evidence":[{"url":"https://github.com/recharts/recharts/wiki/Recharts-and-accessibility","locator":"Keyboard navigation and documented VoiceOver QuickNav caveat","retrievedAt":"2026-10-07T22:45:44Z","kind":"vendor"},{"url":"https://github.com/recharts/recharts/wiki/3.0-migration-guide","locator":"Removed internal state/props, custom components and accessibility default","retrievedAt":"2026-10-07T22:45:24Z","kind":"vendor"}]},{"name":"Unchanged v2 custom internals","status":"unsupported","detail":"The v3 migration removes previously exposed internal state and some properties used by custom implementations.","useCase":"Building charts within React web interfaces","platforms":["React web applications","JavaScript","TypeScript"],"region":"Version, build and integration requirements apply","evidence":[{"url":"https://github.com/recharts/recharts/wiki/3.0-migration-guide","locator":"Removed internal state/props, custom components and accessibility default","retrievedAt":"2026-10-07T22:45:24Z","kind":"vendor"}]}],"alternatives":[],"slug":"recharts","draftAlternatives":[{"targetSlug":"chart-js","status":"limited","detail":"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.","useCase":"Building charts within React web interfaces","platforms":["React web applications","JavaScript","TypeScript"],"region":"Version, build and integration requirements apply","evidence":[{"url":"https://recharts.github.io/en-US/","locator":"React component composition, SVG and customization","retrievedAt":"2026-10-07T22:45:10Z","kind":"vendor"},{"url":"https://www.chartjs.org/docs/latest/","locator":"Canvas renderer and direct/wrapper integration","retrievedAt":"2026-10-07T22:44:56Z","kind":"vendor"}]}],"evidence":[{"url":"https://recharts.github.io/en-US/","locator":"React component composition, SVG and customization","retrievedAt":"2026-10-07T22:45:10Z","kind":"vendor"},{"url":"https://github.com/recharts/recharts/blob/main/LICENSE","locator":"MIT license","retrievedAt":"2026-10-07T22:45:24Z","kind":"vendor"},{"url":"https://recharts.github.io/en-US/guide/installation/","locator":"NPM and React-based browser integration","retrievedAt":"2026-10-07T22:45:24Z","kind":"vendor"},{"url":"https://recharts.github.io/en-US/guide/sizes/","locator":"Required dimensions, responsive since 3.3 and sized parent for ResponsiveContainer","retrievedAt":"2026-10-07T22:45:44Z","kind":"vendor"},{"url":"https://github.com/recharts/recharts/wiki/3.0-migration-guide","locator":"Removed internal state/props, custom components and accessibility default","retrievedAt":"2026-10-07T22:45:24Z","kind":"vendor"},{"url":"https://github.com/recharts/recharts/wiki/Recharts-and-accessibility","locator":"Keyboard navigation and documented VoiceOver QuickNav caveat","retrievedAt":"2026-10-07T22:45:44Z","kind":"vendor"},{"url":"https://recharts.github.io/en-US/guide/performance/","locator":"Component isolation, stable references, sampling and profiling","retrievedAt":"2026-10-07T22:45:44Z","kind":"vendor"},{"url":"https://www.chartjs.org/docs/latest/","locator":"Canvas renderer and direct/wrapper integration","retrievedAt":"2026-10-07T22:44:56Z","kind":"vendor"}],"document":{"version":1,"references":[{"url":"https://recharts.github.io/en-US/","locator":"React component composition, SVG and customization","retrievedAt":"2026-10-07T22:45:10Z","id":"intro","title":"Recharts homepage","kind":"vendor"},{"url":"https://github.com/recharts/recharts/blob/main/LICENSE","locator":"MIT license","retrievedAt":"2026-10-07T22:45:24Z","id":"license","title":"Recharts license","kind":"vendor"},{"url":"https://recharts.github.io/en-US/guide/installation/","locator":"NPM and React-based browser integration","retrievedAt":"2026-10-07T22:45:24Z","id":"install","title":"Recharts installation","kind":"vendor"},{"url":"https://recharts.github.io/en-US/guide/sizes/","locator":"Required dimensions, responsive since 3.3 and sized parent for ResponsiveContainer","retrievedAt":"2026-10-07T22:45:44Z","id":"sizes","title":"Recharts chart size","kind":"vendor"},{"url":"https://github.com/recharts/recharts/wiki/3.0-migration-guide","locator":"Removed internal state/props, custom components and accessibility default","retrievedAt":"2026-10-07T22:45:24Z","id":"migration","title":"Recharts 3.0 migration guide","kind":"vendor"},{"url":"https://github.com/recharts/recharts/wiki/Recharts-and-accessibility","locator":"Keyboard navigation and documented VoiceOver QuickNav caveat","retrievedAt":"2026-10-07T22:45:44Z","id":"access","title":"Recharts accessibility","kind":"vendor"},{"url":"https://recharts.github.io/en-US/guide/performance/","locator":"Component isolation, stable references, sampling and profiling","retrievedAt":"2026-10-07T22:45:44Z","id":"performance","title":"Recharts performance","kind":"vendor"},{"url":"https://www.chartjs.org/docs/latest/","locator":"Canvas renderer and direct/wrapper integration","retrievedAt":"2026-10-07T22:44:56Z","id":"chart","title":"Chart.js overview","kind":"vendor"}],"overviewCitations":["intro"],"licenseCitations":["license"],"sections":[{"id":"composition","heading":"Composing charts in a React application","paragraphs":[{"id":"composition-detail","content":[{"text":"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."}],"citations":["intro"]}]},{"id":"dimensions","heading":"A frequent integration issue: dimensions","paragraphs":[{"id":"dimensions-detail","content":[{"text":"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."}],"citations":["sizes"]}]},{"id":"versions","heading":"Version-sensitive customizations","paragraphs":[{"id":"versions-detail","content":[{"text":"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."}],"citations":["migration"]}]},{"id":"accessibility","heading":"Accessibility support has boundaries","paragraphs":[{"id":"accessibility-detail","content":[{"text":"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."}],"citations":["access","migration"]}]},{"id":"performance","heading":"Performance follows component and data design","paragraphs":[{"id":"performance-detail","content":[{"text":"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."}],"citations":["performance"]}]},{"id":"license","heading":"License and adoption","paragraphs":[{"id":"license-detail","content":[{"text":"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."}],"citations":["license","install"]}]},{"id":"comparison","heading":"Substitution considerations","paragraphs":[{"id":"comparison-detail","content":[{"text":"Recharts can replace "},{"text":"Chart.js","targetSlug":"chart-js"},{"text":" 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."}],"citations":["intro","chart"]}]}]},"id":"Q579","revision":627,"updatedAt":"2026-10-12T23:16:27Z","sourceUrl":"https://substitutefor.net/entities/Q579?revision=627"}}