Package Exports
- @recharts/devtools
- @recharts/devtools/dist/src/index.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@recharts/devtools) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
@recharts/devtools
Shared helper functions and devtools for Recharts projects.
Intended for development and debugging purpose only. We won't stop you from using this in prod but also we won't support it. Expect breaking changes in every release.
Installation
npm install @recharts/devtoolsUsage
import { random, generateMockData } from '@recharts/devtools';
const gen = random(123); // seeded random generator
const data = generateMockData(10, 123); // generates 10 mock data pointsDevelopment
npm run build: Build the packagenpm run test: Run tests with Vitestnpm run lint: Lint code
Publishing
To publish a new version:
- Update the version in
package.json(e.g.,1.0.1). - Commit the change.
- Create a git tag matching the version:
git tag v1.0.1 git push origin v1.0.1
- The GitHub Action
Publish Packagewill automatically publish to NPM.