{"name":"@ant-design/plots","version":"1.2.6","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/g2plot":"^2.2.11","@antv/util":"^2.0.9","react-content-loader":"^5.0.4"},"peerDependencies":{"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/issues/1772-spec.tsx --no-cache"},"homepage":"https://github.com/ant-design/ant-design-charts#readme","_id":"@ant-design/plots@1.2.6","_integrity":"sha512-fFzB9DxRSPQa47S3WypRk4Rh+P8vBUuY/DT+IXgUrlKJtvVZUFnuYfjypX3Q/Pie2PEbI6gmskzXLxVF+3Ztvw==","_resolved":"/private/var/folders/b9/xbxdczzx2_52q34vh4tkcml40000gp/T/dc58b3984af6d049a67a3a51df7b260b/ant-design-plots-1.2.6.tgz","_from":"file:ant-design-plots-1.2.6.tgz","_nodeVersion":"18.17.1","_npmVersion":"9.6.7","dist":{"integrity":"sha512-fFzB9DxRSPQa47S3WypRk4Rh+P8vBUuY/DT+IXgUrlKJtvVZUFnuYfjypX3Q/Pie2PEbI6gmskzXLxVF+3Ztvw==","shasum":"35e541484069249989f92b7d9cdc835ea87191c5","tarball":"http://registry-npm.ywwl.com/@ant-design/plots/download/@ant-design/plots-1.2.6.tgz","fileCount":189,"unpackedSize":4487439,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGMlkWTe4IACkznJtlvHRdo+kwzKL5/onmot2JwUoKY4AiAgsVWueeeZCyS/HYN1lZLk18lFiKdyjymaJAMqyvP78Q=="}],"size":1159846,"noattachment":false,"key":"/@ant-design/plots/-/@ant-design/plots-1.2.6.tgz"},"_npmUser":{"name":"kn9117","email":"1175863618@qq.com"},"directories":{},"maintainers":[{"name":"flash1","email":"2523863783@qq.com"},{"name":"kn9117","email":"1175863618@qq.com"},{"name":"afc163","email":"afc163@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/plots_1.2.6_1701090188232_0.9399160172339285"},"_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":1701090188482,"_cnpm_publish_time":1701090188482,"dist-tags":{"alpha":"2.4.0-alpha.0","beta":"2.6.0-beta.0","latest":"2.6.8"}}