{"_id":"@alisher1119/echarts-for-react","name":"@alisher1119/echarts-for-react","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"name":"@alisher1119/echarts-for-react","version":"1.0.0","description":" Apache Echarts components for React.","main":"lib/index.js","module":"esm/index.js","types":"lib/index.d.ts","scripts":{"docs:dev":"NODE_ENV=development dumi dev","docs:build":"NODE_ENV=production dumi build","docs:deploy":"rimraf dist && npm run docs:build && gh-pages -d dist","start":"npm run docs:dev","lint":"eslint src __tests__ && prettier src __tests__ --check","fix":"eslint src __tests__ --fix && prettier src __tests__ --write","clean":"rimraf lib esm dist","test":"jest","lib":"run-p lib:*","lib:cjs":"tsc -p tsconfig.json --target ES5 --module commonjs --outDir lib","lib:esm":"tsc -p tsconfig.json --target ES5 --module ESNext --outDir esm","build":"npm run clean && npm run lib"},"repository":{"type":"git","url":"git+https://github.com/alisher1119/echarts-for-react.git"},"keywords":["react","component","echarts-react","echarts","react-echarts","chart","charts","graph","react-component"],"author":{"name":"Alisher1119","url":"http://github.com/alisher1119"},"license":"MIT","bugs":{"url":"https://github.com/alisher1119/echarts-for-react/issues"},"homepage":"https://github.com/alisher1119/echarts-for-react","devDependencies":{"@alisher1119/echarts":"^1.0.0","@commitlint/cli":"^12.0.0","@commitlint/config-angular":"^12.0.0","@types/jest":"^24.0.0","@types/node":"^14.14.31","@types/react":"^17.0.2","@typescript-eslint/eslint-plugin":"^4.15.2","@typescript-eslint/parser":"^4.15.2","cross-env":"^7.0.3","dumi":"^1.1.6","dumi-theme-default":"^1.0.6","echarts-gl":"^2.0.2","eslint":"^7.20.0","eslint-config-prettier":"^8.1.0","eslint-plugin-import":"^2.22.1","eslint-plugin-prettier":"^3.3.1","gh-pages":"^3.1.0","husky":"^5.1.1","jest":"^24.0.0","jest-canvas-mock":"^2.3.1","jest-electron":"^0.1.11","lint-md-cli":"^0.1.2","lint-staged":"^10.5.4","lodash.clonedeep":"^4.5.0","miz":"^1.0.1","npm-run-all":"^4.1.5","prettier":"^2.2.1","rimraf":"^3.0.2","ts-jest":"^24.0.2","ts-loader":"^8.0.17","typescript":"^4.2.2"},"dependencies":{"fast-deep-equal":"^3.1.3","size-sensor":"^1.0.1"},"peerDependencies":{"@alisher1119/echarts":"^1.0.0","react":"^15.0.0 || >=16.0.0"},"jest":{"runner":"jest-electron/runner","testEnvironment":"jest-electron/environment","preset":"ts-jest","collectCoverage":true,"collectCoverageFrom":["src/**/*.ts","!**/node_modules/**","!**/vendor/**"],"testRegex":"/__tests__/.*-spec\\.tsx?$"},"husky":{"hooks":{"pre-commit":"lint-staged","commit-msg":"commitlint -E HUSKY_GIT_PARAMS"}},"lint-staged":{"*.ts":["eslint --fix","prettier --write"],"*.md":["lint-md --fix"]},"_id":"@alisher1119/echarts-for-react@1.0.0","gitHead":"6cc9d3dda0c5ec46fc32cbdf2b5d9522f4db0725","_nodeVersion":"20.20.2","_npmVersion":"10.8.2","dist":{"integrity":"sha512-aPUU8apldgqQxRe5JJvyVN8Bej2jCwhVk9KgZjE/Wuv0H3/CwZTekM7L1x6mrpdnc9cVlFNFSI7nGJfYqScrOA==","shasum":"7341ce14f36c4a59e58f87c302d537e23afd3f36","tarball":"https://registry.npmjs.org/@alisher1119/echarts-for-react/-/echarts-for-react-1.0.0.tgz","fileCount":52,"unpackedSize":84571,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQD/0TCmA7j2oOv4PCyWdqydztc3QjRVLaz0ZPaY4920dQIhAI8mrF+50mECrio75ssU37xlCpdh+8y9o+/B2/vK3op0"}]},"_npmUser":{"name":"alisher1119","email":"ali.xay@mail.ru"},"directories":{},"maintainers":[{"name":"alisher1119","email":"ali.xay@mail.ru"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/echarts-for-react_1.0.0_1777642711206_0.9364872885008786"},"_hasShrinkwrap":false}},"time":{"created":"2026-05-01T13:38:31.141Z","1.0.0":"2026-05-01T13:38:31.418Z","modified":"2026-05-01T13:38:31.592Z"},"maintainers":[{"name":"alisher1119","email":"ali.xay@mail.ru"}],"description":" Apache Echarts components for React.","homepage":"https://github.com/alisher1119/echarts-for-react","keywords":["react","component","echarts-react","echarts","react-echarts","chart","charts","graph","react-component"],"repository":{"type":"git","url":"git+https://github.com/alisher1119/echarts-for-react.git"},"author":{"name":"Alisher1119","url":"http://github.com/alisher1119"},"bugs":{"url":"https://github.com/alisher1119/echarts-for-react/issues"},"license":"MIT","readme":"# @alisher1119/echarts-for-react\n\nThis package is a fork of [echarts-for-react](https://github.com/hustcc/echarts-for-react).\n\n## Original Packages\n\n- [echarts-for-react](https://github.com/hustcc/echarts-for-react)\n- [Apache ECharts](https://github.com/apache/echarts)\n\n## Changes\n\n- Renamed package to `@alisher1119/echarts-for-react`.\n- Replaced `echarts` dependency with `@alisher1119/echarts`.\n- Modified `initEchartsInstance` in `src/core.tsx` to implement a double-initialization pattern. It now initializes a temporary instance, waits for the `finished` event to determine the container's final dimensions, disposes of the temporary instance, and then re-initializes with the correct `width` and `height`. This ensures charts are correctly sized on their first render even when the container size is dynamic.\n","readmeFilename":"README.md","_rev":"1-e3e7afdb4ea295b1978cbf69d7c9630a"}