{"name":"@ant-design/plots","version":"2.2.4","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.4","_integrity":"sha512-e9JE51x4QVIA8E/liU+0Tj2bWglE/Ck6iZeWk1eCz8FJQN8KS8x2Pej8oqKdvYmy/YGzwiAulrBnI7NuoZwO3A==","_resolved":"/private/var/folders/b9/xbxdczzx2_52q34vh4tkcml40000gp/T/d15d28d8a7056eb7877760c810fe3633/ant-design-plots-2.2.4.tgz","_from":"file:ant-design-plots-2.2.4.tgz","_nodeVersion":"22.0.0","_npmVersion":"10.5.1","dist":{"integrity":"sha512-e9JE51x4QVIA8E/liU+0Tj2bWglE/Ck6iZeWk1eCz8FJQN8KS8x2Pej8oqKdvYmy/YGzwiAulrBnI7NuoZwO3A==","shasum":"6d88ab965c14fc845d26bc6484572ee69836a8a7","tarball":"http://registry-npm.ywwl.com/@ant-design/plots/download/@ant-design/plots-2.2.4.tgz","fileCount":685,"unpackedSize":4374337,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICGgEvDL0SxF8r3lov6rNrzOpfbF6uMwOKPejpEM0jL+AiEArdKAqxYA6Omrbjp2Zcwe4QAFWAcwH+phSosQjtDYZLs="}],"size":1192487,"noattachment":false,"key":"/@ant-design/plots/-/@ant-design/plots-2.2.4.tgz"},"_npmUser":{"name":"kn9117","email":"1175863618@qq.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/plots_2.2.4_1718877545730_0.8488614605375486"},"_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":1718877546002,"maintainers":[{"name":"pearmini","email":"subairui@icloud.com"},{"name":"kn9117","email":"1175863618@qq.com"},{"name":"afc163","email":"afc163@gmail.com"}],"_cnpm_publish_time":1718877546002,"dist-tags":{"alpha":"2.4.0-alpha.0","beta":"2.6.0-beta.0","latest":"2.6.8"}}