{"name":"@antv/g2","version":"4.1.2","description":"the Grammar of Graphics in Javascript","main":"lib/index.js","module":"esm/index.js","types":"lib/index.d.ts","unpkg":"dist/g2.min.js","scripts":{"start":"npm run site:develop","site:develop":"gatsby develop --open -H 0.0.0.0","site:build":"npm run site:clean && gatsby build --prefix-paths","site:clean":"gatsby clean","site:deploy":"npm run build && npm run site:build && npm run site:copy-mirror-action && gh-pages -d public","site:copy-mirror-action":"mkdir -p public/.github/workflows && cp .github/workflows/mirror.yml public/.github/workflows","clean":"rimraf lib esm dist","fix":"tslint -c tslint.json ./src/**/*.ts ./tests/**/*.ts --fix && prettier --write ./src ./tests && lint-md ./docs --fix","lint":"run-p lint:*","lint:tslint":"tslint -c tslint.json 'src/**/*.ts'","lint:md":"lint-md ./docs","test":"jest","test-live":"DEBUG_MODE=1 jest --watch tests/unit","coverage":"jest --coverage","lib:cjs":"tsc -p tsconfig.json --target ES5 --module commonjs --outDir lib","lib:esm":"tsc -p tsconfig.json --target ES5 --module ESNext --outDir esm","lib":"run-p lib:*","build":"run-s clean lib","dist":"webpack --config webpack.config.js --mode production","ci":"run-s build coverage","prepublishOnly":"npm-run-all --parallel lint test build dist","changelog":"generate-changelog","analyz":"webpack --profile --json > stats.json && webpack-bundle-analyzer ./stats.json"},"dependencies":{"@antv/adjust":"^0.2.1","@antv/attr":"^0.3.1","@antv/color-util":"^2.0.2","@antv/component":"^0.8.0","@antv/coord":"^0.3.0","@antv/dom-util":"^2.0.2","@antv/event-emitter":"~0.1.0","@antv/g-base":"^0.5.0","@antv/g-canvas":"^0.5.0","@antv/g-svg":"^0.5.0","@antv/matrix-util":"^3.1.0-beta.1","@antv/path-util":"^2.0.3","@antv/scale":"^0.3.1","@antv/util":"~2.0.5","tslib":"^2.0.0"},"devDependencies":{"@antv/data-set":"^0.11.2","@antv/gatsby-theme-antv":"^1.0.0-beta.19","@commitlint/cli":"^8.2.0","@commitlint/config-angular":"^8.2.0","@types/jest":"^25.2.1","conventional-changelog-cli":"^2.0.28","gatsby":"^2.20.23","generate-changelog":"^1.8.0","gh-pages":"^2.1.1","husky":"^4.2.5","jest":"^26.0.1","jest-electron":"^0.1.7","jest-extended":"^0.11.2","lint-md-cli":"^0.1.2","lint-staged":"^10.2.2","lodash":"^4.17.15","npm-run-all":"^4.1.5","prettier":"^2.0.5","react-i18next":"^11.1.0","rimraf":"^3.0.0","ts-jest":"^26.0.0","ts-loader":"^7.0.2","tslint":"^6.1.2","tslint-config-prettier":"^1.18.0","typedoc":"^0.17.6","typedoc-plugin-markdown":"^2.2.11","typescript":"^3.5.3","webpack":"^4.41.5","webpack-bundle-analyzer":"^3.6.0","webpack-cli":"^3.3.10"},"husky":{"hooks":{"pre-commit":"lint-staged && run-s lint test","commit-msg":"commitlint -E HUSKY_GIT_PARAMS"}},"lint-staged":{"*.{js,css,json,md}":["prettier --write","git add"],"*.{ts}":["tslint -c tslint.json --fix","prettier --write","git add"],"*.md":["lint-md ./docs --fix"]},"jest":{"runner":"jest-electron/runner","testEnvironment":"jest-electron/environment","preset":"ts-jest","collectCoverage":false,"collectCoverageFrom":["src/**/*.{ts,js}","!**/node_modules/**","!**/vendor/**"],"testRegex":"/tests/.*-spec\\.ts?$","moduleFileExtensions":["ts","js","json"]},"homepage":"https://g2.antv.vision","repository":{"type":"git","url":"git+https://github.com/antvis/g2.git"},"bugs":{"url":"https://github.com/antvis/g2/issues"},"keywords":["antv","g2","visualization","chart","grammar","graphics","interaction"],"author":{"name":"https://github.com/orgs/antvis/people"},"license":"MIT","gitHead":"82a206f2e21555c9d469b15ac11ccaa1f20560ee","_id":"@antv/g2@4.1.2","_nodeVersion":"12.10.0","_npmVersion":"6.10.3","dist":{"integrity":"sha512-Z56l31/whYjd3T/Cik8w7wZBGGu4c5uNwZE8raSbmB9wW3TOKawXo/djNK9eHeZGiyF86PQln7UBN37RWejb8w==","shasum":"10aed2f664e34ae77c7322965349835ee5dd684d","tarball":"http://registry-npm.ywwl.com/@antv/g2/download/@antv/g2-4.1.2.tgz","fileCount":1442,"unpackedSize":10169526,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf0uQHCRA9TVsSAnZWagAAmeoP/RefOcKbELo36CtXSsgn\nz00sqTXDqDXiOASBO+53VTxWpcoM6MTPdGOUc2y9y7i3adV6Glfep8n3k3rA\na/jrVXoYPXR3I09pBDR1eOap2yCjC6lkaqJnLvqhZdYhO2T+RzqfAGBeTr+h\n+OFrZ5gmO7tyy+Lxp1iao2fNLL3Qz+wjjXO8qJ26wNzhoBQDRHUghkxW2r0e\n4Sn3FBBBVOuc0v+c8Flp0Ep/ZCX3dEaOLjFc4EyYxKeG6QAGCzZZ6Hh5mBHn\nbVwC3zeWIzFWdL/6yJRKXukwZ04tTGRO+WMz9nLfIq17lhQlwpShmA86nZPc\nVjgjWhovKg5p31iT97UnZjjd5ycW/sX+OVaYQA4SprFqpBlszxyDDDPHji07\nVjG2yyg37Rih7v8b8JeTBApvTcXZSTUrCUKhDUDHsq5jRgz/oEKHgOt/vbZW\n9kIjj5+id+1lrhvnNZykfHeuT5C0aNWF/9XKnQFLlSUPM8bVCgYSy5mDoooG\n23f0DvFd8594S+xpscvtFFhi3KGjuvMs+CvqlypnR0wC8zcvWRjb+qkZjro4\n8T5JAoOksVtrlIQnEeUQMv2bxEIlaD+0pSbPWhzOmimnRyEwYjl2ZwPI7jlq\np+gOKYKejU4Hsqi0ScvB+YuydSVheQH6MndM0CLJWAgimdUEOmxOzl4GP4XQ\nW1uT\r\n=PGIp\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAh0sBfGYwotDkXLYcOUolJ1Eov8LYHFwnBASNgVxqPDAiARTrKGEkTiDrNiA9iDrZYQwKBGQTSHdACw81PAIxQiQw=="}],"size":2112614,"noattachment":false,"key":"/@antv/g2/-/@antv/g2-4.1.2.tgz"},"_npmUser":{"name":"atool","email":"i@hust.cc"},"directories":{},"maintainers":[{"name":"nadia_liu","email":"1803275951@qq.com"},{"name":"esora","email":"tygyh2012@gmail.com"},{"name":"semious2020","email":"semious@163.com"},{"name":"xdddst","email":"deng25st@163.com"},{"name":"kn9117","email":"1175863618@qq.com"},{"name":"chenluli","email":"chenluuli@gmail.com"},{"name":"winniexing","email":"wanyingxing@gmail.com"},{"name":"newbyvector","email":"vectorse@126.com"},{"name":"l1ud0ngq1","email":"lliudongqi@gmail.com"},{"name":"boyu.zlj","email":"boyu.zlj@antfin.com"},{"name":"wufenfen92","email":"747042796@qq.com"},{"name":"kasmine","email":"xinming002@gmail.com"},{"name":"zengyue","email":"yezengyue@gmail.com"},{"name":"bubkoo","email":"bubkoo.wy@gmail.com"},{"name":"panyuqi","email":"pyqiverson@gmail.com"},{"name":"ccnuzindex","email":"ccnuzindex@gmail.com"},{"name":"kopiluwaky","email":"yanyanwang93@gmail.com"},{"name":"pomelo-nwu","email":"czynwu@gmail.com"},{"name":"afc163","email":"afc163@gmail.com"},{"name":"zqlu","email":"zqlu.cn@gmail.com"},{"name":"jeffy2012","email":"yuanjiefeng@gmail.com"},{"name":"neoddish","email":"neoddish@outlook.com"},{"name":"dengfuping","email":"dengfuping_develop@163.com"},{"name":"baizn","email":"576375879@qq.com"},{"name":"atool","email":"i@hust.cc"},{"name":"army8735","email":"army8735@qq.com"},{"name":"lzxue","email":"120635640@qq.com"},{"name":"elaine.q.10","email":"yilin.qyl@antfin.com"},{"name":"sakuya223","email":"360965398@qq.com"},{"name":"leungwensen","email":"leungwensen@gmail.com"},{"name":"dori","email":"418466938@qq.com"},{"name":"simaq","email":"sima.zhang1990@gmail.com"},{"name":"dxq613","email":"dxq613@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/g2_4.1.2_1607656454691_0.8504740994747899"},"_hasShrinkwrap":false,"readme":"<img src=\"https://gw.alipayobjects.com/zos/antfincdn/R8sN%24GNdh6/language.svg\" width=\"18\"> [English](./README.md) | 简体中文\n\n<h1 align=\"center\">\n<b>G2 5.0</b>\n</h1>\n\n<div align=\"center\">\n\n简洁的渐进式可视化语法，用于构建仪表盘、数据探索以及数据讲故事。\n\n<p align=\"center\">\n  <a href=\"https://g2.antv.antgroup.com/manual/introduction/what-is-g2\">介绍</a> •\n  <a href=\"https://g2.antv.antgroup.com/examples\">案例</a> •\n  <a href=\"https://g2.antv.antgroup.com/manual/introduction/getting-started\">教程</a> •\n  <a href=\"https://g2.antv.antgroup.com/api/overview\">API</a>\n</p>\n\n[![Build Status](https://github.com/antvis/g2/workflows/build/badge.svg?branch=v5)](https://github.com/antvis//actions)\n[![Coverage Status](https://img.shields.io/coveralls/github/antvis/g2/v5.svg)](https://coveralls.io/github/antvis/g2?branch=v5)\n[![npm Version](https://img.shields.io/npm/v/@antv/g2.svg)](https://www.npmjs.com/package/@antv/g2)\n[![npm Download](https://img.shields.io/npm/dm/@antv/g2.svg)](https://www.npmjs.com/package/@antv/g2)\n[![npm License](https://img.shields.io/npm/l/@antv/g2.svg)](https://www.npmjs.com/package/@antv/g2)\n\n![examples](https://mdn.alipayobjects.com/huamei_qa8qxu/afts/img/A*_GfqQoRCqQkAAAAAAAAAAAAADmJ7AQ/fmt.webp)\n\n</div>\n\nG2 起源于 Leland Wilkinson 的图形语法：《The Grammar of Graphics》，但又不止于图形语法。\n\n## ✨ 特色\n\n- **渐进式语法**：结合工业和学术实践，实现图形语法、动画语法和交互语法。\n- **丰富的标记**：内置 10+ 基础标记，8+ 高阶标记。\n- **高可扩展性**：提供统一机制扩展所有可视化组件。\n- **个性化风格**：支持手绘、圆角、纹理等风格。\n- **多环境渲染**：支持 Canvas、SVG 以及 WebGL，和 Node.js 服务端渲染。\n\n## 🔨 开始使用\n\n可以通过 NPM 或 Yarn 等包管理器来安装。\n\n```bash\n$ npm install @antv/g2\n```\n\n```bash\n$ yarn add @antv/g2\n```\n\n成功安装之后，可以通过 import 导入 Chart 对象。\n\n```html\n<div id=\"container\"></div>\n```\n\n```js\nimport { Chart } from '@antv/g2';\n\n// 准备数据\nconst data = [\n  { genre: 'Sports', sold: 275 },\n  { genre: 'Strategy', sold: 115 },\n  { genre: 'Action', sold: 120 },\n  { genre: 'Shooter', sold: 350 },\n  { genre: 'Other', sold: 150 },\n];\n\n// 初始化图表实例\nconst chart = new Chart({\n  container: 'container',\n});\n\n// 声明可视化\nchart\n  .interval()                 // 创建一个 Interval 标记\n  .data(data)                 // 绑定数据\n  .encode('x', 'genre')       // 编码 x 通道\n  .encode('y', 'sold')        // 编码 y 通道\n  .encode('color', 'genre');  // 编码 color 通道\n\n// 渲染可视化\nchart.render();\n```\n\n如果一切顺利，你可以得到下面的柱状图!\n\n<img src=\"https://mdn.alipayobjects.com/huamei_qa8qxu/afts/img/A*XqCnTbkpAkQAAAAAAAAAAAAADmJ7AQ/fmt.webp\" width=\"640\" alt=\"example\">\n\n## 🌍 生态\n\n- [g2-react](https://github.com/pearmini/g2-react) - G2 的轻量级 React 组件，没有额外特性。\n- [g2-extensions](https://github.com/antvis/g2-extensions) - G2 的一系列插件库，包含 3D 和智能可视化等。\n- [ant-design-charts](https://github.com/ant-design/ant-design-charts) - React 图表库，基于 [G2](https://github.com/antvis/G2), [G6](https://github.com/antvis/G6), [X6](https://github.com/antvis/X6), [L7Plot](https://github.com/antvis/L7Plot).\n- [更多...](https://github.com/antvis/G2/discussions/5772)\n\n## 📮 参与贡献\n\n- [问题](https://github.com/antvis/g2/issues)： 报告 bug 或者提出需求\n- [贡献指南](https://github.com/antvis/g2/blob/v5/CONTRIBUTING.zh-CN.md)：参与建设 G2\n- [讨论](https://github.com/antvis/G2/discussions)：在 GitHub 上或者钉钉群里面讨论（30233731, 35686967, 44788198）\n\n<img src=\"https://gw.alipayobjects.com/zos/antfincdn/hTzzaqgHgQ/Antv%252520G2%252520%26%252520G2Plot.png\" width=\"200\" height=\"266\" alt=\"code\"/>\n\n## 📄 许可证\n\nMIT@[AntV](https://github.com/antvis).\n","publish_time":1607656455140,"_cnpm_publish_time":1607656455140,"dist-tags":{"alpha":"5.3.4-alpha.0","beta":"5.3.6-beta.4","latest":"5.4.8","v3-latest":"3.5.19"}}