{"name":"@ant-design/plots","version":"2.2.0","description":"G2Plot Statistical chart","bugs":{"url":"https://github.com/ant-design/ant-design-charts/issues"},"repository":{"type":"git","url":"git+https://github.com/ant-design/ant-design-charts.git"},"main":"lib/index.js","unpkg":"dist/plots.min.js","module":"es/index.js","types":"es/index.d.ts","dependencies":{"@antv/event-emitter":"^0.1.3","@antv/g":"^6.0.0","@antv/g2":"^5.1.18","@antv/g2-extension-plot":"^0.2.0","@ant-design/charts-util":"0.0.1-alpha.5"},"peerDependencies":{"lodash-es":"^4.17.21","react":">=16.8.4","react-dom":">=16.8.4"},"sideEffects":false,"license":"MIT","devDependencies":{"@types/jest":"^26.0.0","@types/react":"^18.0.0","@types/react-dom":"^18.0.6","npm-run-all":"^4.1.5","react-test-renderer":"^18.0.0","rimraf":"^3.0.2"},"scripts":{"start":"pnpm lib:es --w","build":"run-s clean lib dist","build:lib":"run-s clean lib","ci":"pnpm run build && pnpm run test:coverage","clean":"rimraf lib es dist","dist":"webpack --config webpack.config.js --mode production","profile":"webpack --config webpack.config.js --mode production --profile --json > stats.json","lib":"run-p lib:*","lib:cjs":"tsc -p tsconfig.prod.json --target ES5 --module commonjs --outDir lib","lib:es":"tsc -p tsconfig.prod.json --target ES5 --module ESNext --outDir es","lint":"eslint --cache --ext .js,.jsx,.ts,.tsx  --fix --format=pretty ./src && pnpm run lint:prettier","lint:prettier":"pnpm run prettier &&  git diff && prettier --version && prettier --check \"src/**/**.{js,jsx,tsx,ts,less,md,json}\" --end-of-line auto","prettier":"prettier --write \"**/**.{js,jsx,tsx,ts,less,md,json}\"","test":"jest","test:live":"DEBUG_MODE=1 jest --watch ./tests/plots/column-proxy-spec.tsx --no-cache"},"homepage":"https://github.com/ant-design/ant-design-charts#readme","_id":"@ant-design/plots@2.2.0","_integrity":"sha512-tCsOyPwxQ8xr5wMOWrFO3CEgdboXxMzMPrydZ7szXULi8LzztO9HHrg5WClwjAr9Zgfit0fHjmPd1FkIBP4k7A==","_resolved":"/private/var/folders/b9/xbxdczzx2_52q34vh4tkcml40000gp/T/8f9fd314b5857c5ab094a39d7c8d8666/ant-design-plots-2.2.0.tgz","_from":"file:ant-design-plots-2.2.0.tgz","_nodeVersion":"18.17.1","_npmVersion":"9.6.7","dist":{"integrity":"sha512-tCsOyPwxQ8xr5wMOWrFO3CEgdboXxMzMPrydZ7szXULi8LzztO9HHrg5WClwjAr9Zgfit0fHjmPd1FkIBP4k7A==","shasum":"9606de1dfd5ca0297c38a77ea483815d7417c2f5","tarball":"http://registry-npm.ywwl.com/@ant-design/plots/download/@ant-design/plots-2.2.0.tgz","fileCount":685,"unpackedSize":4383292,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFUPSd4ufNnILMmGJtO/ZLQLd63szVuMni9JKYRx66B/AiBkguiAfqfs0i7tei6hr5z28xy1DA/i4HAs1P7EmN67mQ=="}],"size":1198917,"noattachment":false,"key":"/@ant-design/plots/-/@ant-design/plots-2.2.0.tgz"},"_npmUser":{"name":"kn9117","email":"1175863618@qq.com"},"directories":{},"maintainers":[{"name":"pearmini","email":"subairui@icloud.com"},{"name":"kn9117","email":"1175863618@qq.com"},{"name":"afc163","email":"afc163@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/plots_2.2.0_1713513648907_0.8443608412817103"},"_hasShrinkwrap":false,"readme":"# @ant-design/plots\n\n<div align=\"center\">\n\nA React chart library, based on [G2](https://github.com/antvis/G2).\n\n![npm](https://img.shields.io/npm/v/@ant-design/plots) ![npm](https://img.shields.io/npm/dm/@ant-design/plots) [![GitHub stars](https://img.shields.io/github/stars/ant-design/ant-design-charts)](https://github.com/ant-design/ant-design-charts/stargazers) [![npm License](https://img.shields.io/npm/l/@ant-design/charts.svg)](https://www.npmjs.com/package/@ant-design/charts)\n\n<p align=\"center\">\n  <a href=\"https://charts.ant.design/\">Website</a> •\n  <a href=\"https://charts.ant.design/en/docs/manual/getting-started\">Quick Start</a> •\n  <a href=\"https://charts.ant.design/en/examples/gallery\">Gallery</a> •\n  <a href=\"https://charts.ant.design/en/docs/manual/faq\">FAQ</a> •\n</p>\n\n<img src=\"https://gw.alipayobjects.com/mdn/rms_d314dd/afts/img/A*sXqrRrEwFRQAAAAAAAAAAABkARQnAQ\" width=\"800\"/>\n\n</div>\n\n## ✨ Features\n\n- Easy to use\n- TypeScript\n- Pretty & Lightweight\n- Responsive\n- Storytelling\n\n## 📦 Installation\n\n```bash | pure\n$ npm install @ant-design/plots\n```\n\n## 🔨 Usage\n\n```tsx | pure\niimport React from 'react';\nimport { Line } from '@ant-design/plots';\n\nconst Page: React.FC = () => {\n  const data = [\n    { year: '1991', value: 3 },\n    { year: '1992', value: 4 },\n    { year: '1993', value: 3.5 },\n    { year: '1994', value: 5 },\n    { year: '1995', value: 4.9 },\n    { year: '1996', value: 6 },\n    { year: '1997', value: 7 },\n    { year: '1998', value: 9 },\n    { year: '1999', value: 13 },\n  ];\n\n  const config = {\n    data,\n    xField: 'year',\n    yField: 'value',\n  };\n\n  return <Line {...config} />;\n};\nexport default Page;\n```\n\nPreview\n\n<img src=\"https://gw.alipayobjects.com/mdn/rms_d314dd/afts/img/A*xTY6QIQsWcwAAAAAAAAAAAAAARQnAQ\" width=\"600\">\n\n## 🤝 How to Contribute\n\nYour contributions are always welcome! Please Do have a look at the [issues](https://github.com/ant-design/ant-design-charts/issues) first.\n\n## 📧 Contact us\n\nDingTalk group number: `44788198 `.\n\n<img src=\"https://gw.alipayobjects.com/zos/antfincdn/bi1LxWeIEj/32f85bbf-a06e-4046-96e5-417126bffeaf.png\" width=\"200\" height=\"266\" />\n\n## License\n\nMIT\n","publish_time":1713513649148,"_cnpm_publish_time":1713513649148,"dist-tags":{"alpha":"2.4.0-alpha.0","beta":"2.6.0-beta.0","latest":"2.6.8"}}