Description
@recharts/devtools is an optional add-on package for Recharts, the React charting library. The README says Recharts works perfectly fine without it. The package offers quality-of-life tools for building and debugging charts. You render the RechartsDevtools component inside a chart and give it a div with a specific ID, where it creates a portal for its interface. If a page has several charts or devtools instances, as in a documentation site with live editors, the README recommends wrapping each chart and its editor in RechartsDevtoolsContext and placing RechartsDevtoolsPortal where the devtools should appear. A separate theme module, @recharts/devtools/theme, checks how readable a Recharts theme's colours are. It takes the theme object as plain data and runs contrast checks on the page background and on series colours, including simulated protanopia, deuteranopia and tritanopia, against WCAG 2.2 thresholds such as 3:1 for series on the background. The colour maths uses culori. The full theme type needs Recharts 3.11.0-canary.6 or newer. The source is public on GitHub.…
Highlights
- Optional devtools for Recharts
- Several devtools instances via context
- Theme colour accessibility checks
- Simulated colour-blindness checks
- Works with Recharts 3.11.0-canary.6 or newer
Ratings & Reviews
No ratings yet
Be the first to rate @recharts/devtools.
People also visit
@zuilib/charts
ZUI — enterprise analytics charts on Recharts: a serializable chart spec
@recharts/devtools FAQ
What is @recharts/devtools?
An optional package of development and debugging tools for Recharts charts, according to its README.
Do I need it to use Recharts?
No. The README says Recharts works perfectly fine without it.
What does the theme check do?
It measures how readable a Recharts theme's colours are against WCAG 2.2 thresholds, for typical vision and for simulated colour blindness.
Which Recharts version does it need?
For the full RechartsTheme type, Recharts 3.11.0-canary.6 or newer.
Is it open source?
The source is public on GitHub under the recharts organisation. The scanned text does not show a license.
What are the best @recharts/devtools alternatives?
Popular alternatives to @recharts/devtools include recharts, react-chartist and @lobehub/charts. See all @recharts/devtools alternatives















