This is Recharts repository. Recharts is a React-based charting library.
The goal is to provide a simple, declarative, and composable way to build charts.
We value consistency, usability, and performance. Accessibility is important.

We do not solve internationalization. Do not hardcode any strings or formatting choices in the library code,
we expect the users of Recharts to provide localized strings as desired.

Read ./DEVELOPING.md for instructions how to develop this project.

Read ./CONTRIBUTING.md for guidelines on contributing to this project.

Install dependencies with `npm ci` from the repository root only. Never run `npm ci` or `npm install`
inside `www`: it is an npm workspace, and installing from there prunes the root `node_modules`.

The website in `www` consumes the built library. On a fresh checkout or worktree, run `npm run build`
once before running website tests or type checks (`npm run test-website`, `npm run check-types-website`),
otherwise they fail with unrelated errors.

When running unit tests, prefer to run a single test file:

```shell
npm run test -- path/to/TestFile.spec.tsx
```

If you run all tests at once using `npm test`, it may take a long time to complete.
Only do that when you want to verify that everything is working correctly.

This project has a thorough pre-push git hook (build, test, check-types, lint) that can take around
5 minutes to complete. When running `git push`, allow a timeout of up to 10 minutes.

This project has a long history. You may observe some inconsistencies in coding style.
When making changes, prefer current best practices as described in CONTRIBUTING.md,
and try to improve the code style where possible and where relevant to the current task.
Do not attempt to fix too much at once, or when it is not related to the current changes.

Do not focus too much on fitting the existing style, if it is not ideal.

## Visual regression tests

Read `test-vr/README.md` and `.agents/skills/vr-test/SKILL.md` before adding or
changing Playwright visual-regression tests. Specs use `testWithThemes`
from `test-vr/tests/fixtures`, which automatically renders legacy, light, and
dark Recharts theme variants. Do not expose theme selection through story
props, theme-specific test titles, or custom screenshot names.

Keep `prefers-color-scheme` (`colorScheme`) separate from Recharts theme
selection, and use the documented fixture options or `@recharts-theme-*` tags
for intentional exceptions; do not create a central exclusion list.

Run visual-regression tests and update screenshots through Docker only. Do not
commit generated `test-results` or `playwright-report` output.
