{"name":"@antv/g2","version":"4.1.0-beta.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 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":"run-p lint:*","lint:tslint":"tslint -c tslint.json 'src/**/*.ts'","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/component":"^0.7.0","@antv/coord":"^0.3.0","@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","@antv/color-util":"^2.0.2"},"devDependencies":{"@antv/data-set":"^0.11.2","@antv/gatsby-theme-antv":"^0.11.1","@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-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"]},"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","readme":"<img src=\"https://gw.alipayobjects.com/zos/antfincdn/R8sN%24GNdh6/language.svg\" width=\"18\"> English | [简体中文](./README.zh-CN.md)\n\n<h1 align=\"center\">\n<b>G2</b>\n</h1>\n\n<div align=\"center\">\n\nA highly interactive data-driven visualization grammar for statistical charts.\n\n[![](https://img.shields.io/travis/antvis/g2.svg)](https://travis-ci.org/antvis/g2) ![CI](https://github.com/antvis/G2/workflows/CI/badge.svg) [![Coverage Status](https://coveralls.io/repos/github/antvis/G2/badge.svg?branch=master)](https://coveralls.io/github/antvis/G2?branch=master) [![NPM Package](https://img.shields.io/npm/v/@antv/g2.svg)](https://www.npmjs.com/package/@antv/g2) [![NPM Downloads](http://img.shields.io/npm/dm/@antv/g2.svg)](https://npmjs.org/package/@antv/g2) ![Dependencies](https://img.shields.io/badge/dependencies-up%20to%20date-brightgreen.svg) [![Percentage of issues still open](http://isitmaintained.com/badge/open/antvis/g2.svg)](http://isitmaintained.com/project/antvis/g2 'Percentage of issues still open') [![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=shields)](https://github.com/antvis/g2/pulls)\n\n![](https://img.shields.io/badge/language-TypeScript-red.svg) ![](https://img.shields.io/badge/license-MIT-000000.svg)\n\n[![](https://img.shields.io/twitter/follow/AntV_Alipay.svg?label=AntV&style=social)](https://twitter.com/AntV_Alipay)\n\n</div>\n\n<p align=\"center\">\n  <a href=\"https://g2.antv.vision/en\">Website</a> •\n  <a href=\"https://g2.antv.vision/en/docs/manual/about-g2\">Tutorial Docs</a> •\n  <a href=\"https://www.yuque.com/antv\">Blog</a>\n\n</p>\n\nG2 is a visualization grammar, a data-driven visual language with a high level of usability and scalability. It provides a set of grammars, takes users beyond a limited set of charts to an almost unlimited world of graphical forms. With G2, you can describe the visual appearance and interactive behavior of a visualization just by one statement, and generate web-based views using Canvas or SVG.\n\n## 📺 Live Demos\n\n<a href=\"https://g2.antv.vision/en/examples/gallery\"><img src=\"https://user-images.githubusercontent.com/6628666/75466330-fe1d0c00-59c4-11ea-91ba-506f60ef8af4.png\" /></a>\n\n## ✨ Features\n\n- 💯Stable grammar of graphics: enable to draw all kinds of charts by mapping data to graphics.\n- 🤩New grammar of interaction: interaction behaviors combined with Trigger and Action mechanisms are used to exploring data.\n- 🦍Advanced View module: with the ability to develop customized multi-dimension data analysis graphics.\n- 👬Dual-engine rendering: with the ability to switch Canvas and SVG freely.\n- 💄Visual components: interaction-oriented, elegant experience.\n- 🛡Fully embrace Typescript: Complete type definition files are provided.\n\n## 📦 Installation\n\n```bash\n$ npm install @antv/g2\n```\n\n## 🔨 Getting Started\n\n<img src=\"https://gw.alipayobjects.com/mdn/rms_2274c3/afts/img/A*8qbLQb7A0loAAAAAAAAAAABkARQnAQ\" style=\"width: 600px\">\n\nBefore drawing we need to prepare a DOM container for G2:\n\n```html\n<div id=\"c1\"></div>\n```\n\n```ts\nimport { Chart } from '@antv/g2';\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// Step 1: Create a Chart instance.\nconst chart = new Chart({\n  container: 'c1', // Specify chart container ID\n  width: 600, // Specify chart width\n  height: 300, // Specify chart height\n});\n\n// Step 2: Load the data.\nchart.data(data);\n\n// Step 3: Declare the grammar of graphics, draw column chart.\nchart.interval().position('genre*sold');\n\n// Step 4: Render chart.\nchart.render();\n```\n\n## ⌨️ Development\n\n```bash\n# Install dependencies\n$ npm install\n\n# Run test cases\n$ npm run test\n\n# Open electron to run test cases and listen to file changes\n$ npm run test-live\n\n# Run CI\n$ npm run ci\n\n# Run website\n$ npm start\n```\n\n## 🏷️ Releases\n\n- v3.5.x: https://github.com/antvis/G2/tree/v3.5.x\n- v3.6.x: https://github.com/antvis/G2/tree/v3.6.x\n- v4.0.x: https://github.com/antvis/G2/tree/v4.0.x\n\n## 🤝 How to Contribute\n\nPlease let us know how can we help. Do check out [issues](https://github.com/antvis/g2/issues) for bug reports or suggestions first.\n\nTo become a contributor, please follow our [contributing guide](https://github.com/antvis/g2/blob/master/CONTRIBUTING.md).\n","readmeFilename":"README.md","gitHead":"08abc949e3094b582de85b8f0b56e1dcf8ff1db1","_id":"@antv/g2@4.1.0-beta.2","_nodeVersion":"14.3.0","_npmVersion":"6.14.5","dist":{"integrity":"sha512-+H+1rrGzo+Trh2Nt6ukqsoO/XoR/PKN4yJ+wXn+E+SZl28EN22oFN3u0fUqe4Ju37MsUyLER6fzWzrCz2g6sMg==","shasum":"f2f6163ebe3e049d501fe454ba77731750018f75","tarball":"http://registry-npm.ywwl.com/@antv/g2/download/@antv/g2-4.1.0-beta.2.tgz","fileCount":1159,"unpackedSize":8687300,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfT8mvCRA9TVsSAnZWagAAWFAP/0YR5Ycf5/AWUJf927rX\nXnsegYv/Ifi3wFPg4n1Zm81A2zFgmW5KgAKwnZR19yA88pH6AnCpqnNHlDFW\nmdduYVDxH7Kup1zZUbQET5u+kXX6UejzNa/XFKhKbYXOw+0zBTOGvRg7FfyU\nulDau6bdZHLZRzQqe5dy9WGDjj3ad9WrtWu+A9OOQOkRRrr5UWJSkWYCVXTn\nYMzllJw8zlt/bEvHzHWx/W+JKqAuhp0bENKNYsOMy+KpBLH3517frYR1716c\nHprbO4biGmqlpfOPR3QEpSGiJoydRWZrbRdl6Krnhv0BJqM4qkaTBprXlntq\n/jBR0a0vLTBen8K8dUCOAwG+USMoQjGByk8mJI/dgDgdNSKy+tMgO3TRxxAH\nJfeV6hKb9/1iqk3iCUzJl2wFGEF0J02+EYO6/nMPL378Yal1qkGwhagQ8SFl\n/q8A5sT61p/j69tBx47BChMYHk0w1lPYB+lWI8BTsth4omg0zBY0z1jMcn/J\nz+QhDtL8KJgR0a2dj0wkxRTjlaAF3Hs/Ih+/5K5Z7osx7Bjm/eP2zBpdFWXo\nHGE+v4oLwXdO7aQg+cP8p3pNAt5JIECItTgORCrLMSTGfs/LcyPnKqy/sfFn\n9wCRiI0Kq1q++A7SCAaa1y3P20Z9D1L266UZ85CDYOWXFHgqym5Io+Nj94A9\nblkI\r\n=fbFh\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCHGtV8wWOWu6TSUMM5ee0WRMXEqkxdrMECU5IsZyRLtQIgevlhu/saDtZKskH/sQafMcKmZikK7ZNf5/TjpaBi/TM="}],"size":1806228,"noattachment":false,"key":"/@antv/g2/-/@antv/g2-4.1.0-beta.2.tgz"},"maintainers":[{"email":"afc163@gmail.com","name":"afc163"},{"email":"army8735@qq.com","name":"army8735"},{"email":"i@hust.cc","name":"atool"},{"email":"576375879@qq.com","name":"baizn"},{"email":"boyu.zlj@antfin.com","name":"boyu.zlj"},{"email":"bubkoo.wy@gmail.com","name":"bubkoo"},{"email":"ccnuzindex@gmail.com","name":"ccnuzindex"},{"email":"chenluuli@gmail.com","name":"chenluli"},{"email":"dengfuping_develop@163.com","name":"dengfuping"},{"email":"418466938@qq.com","name":"dori"},{"email":"dxq613@gmail.com","name":"dxq613"},{"email":"yilin.qyl@antfin.com","name":"elaine.q.10"},{"email":"yuanjiefeng@gmail.com","name":"jeffy2012"},{"email":"xinming002@gmail.com","name":"kasmine"},{"email":"wyy460342010@gmail.com","name":"kopiluwaky"},{"email":"lliudongqi@gmail.com","name":"l1ud0ngq1"},{"email":"leungwensen@gmail.com","name":"leungwensen"},{"email":"120635640@qq.com","name":"lzxue"},{"email":"neoddish@outlook.com","name":"neoddish"},{"email":"vectorse@126.com","name":"newbyvector"},{"email":"pyqiverson@gmail.com","name":"panyuqi"},{"email":"czynwu@gmail.com","name":"pomelo-nwu"},{"email":"360965398@qq.com","name":"sakuya223"},{"email":"sima.zhang1990@gmail.com","name":"simaq"},{"email":"wanyingxing@gmail.com","name":"winniexing"},{"email":"747042796@qq.com","name":"wufenfen92"},{"email":"yezengyue@gmail.com","name":"zengyue"},{"email":"zqlu.cn@gmail.com","name":"zqlu"}],"_npmUser":{"name":"simaq","email":"sima.zhang1990@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/g2_4.1.0-beta.2_1599064494652_0.8495522748454238"},"_hasShrinkwrap":false,"publish_time":1599064494914,"_cnpm_publish_time":1599064494914,"dist-tags":{"alpha":"5.3.4-alpha.0","beta":"5.3.6-beta.4","latest":"5.4.8","v3-latest":"3.5.19"}}