{"name":"@antv/g2","version":"4.0.8-beta.1","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 doc && npm run site:build && gh-pages -d public","clean":"rimraf lib esm dist","lint":"lint-staged","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 clean lib dist","doc":"rimraf -rf docs/api && typedoc && sh bin/doc.sh docs/api","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.5.0","@antv/coord":"^0.2.6","@antv/event-emitter":"~0.1.0","@antv/g-base":"^0.4.3","@antv/g-canvas":"^0.4.0","@antv/g-svg":"^0.4.0","@antv/matrix-util":"^2.0.4","@antv/path-util":"^2.0.3","@antv/scale":"^0.3.1","@antv/util":"~2.0.5","tslib":"^1.10.0","@antv/color-util":"^2.0.2"},"devDependencies":{"@antv/data-set":"^0.11.2","@antv/gatsby-theme-antv":"^0.10.37","@commitlint/cli":"^8.2.0","@commitlint/config-angular":"^8.2.0","@types/jest":"^24.0.18","conventional-changelog-cli":"^2.0.28","gatsby":"^2.20.23","generate-changelog":"^1.8.0","gh-pages":"^2.1.1","husky":"^3.0.4","jest":"^24.9.0","jest-electron":"^0.1.7","jest-extended":"^0.11.2","lint-staged":"^9.2.3","lodash":"^4.17.15","npm-run-all":"^4.1.5","prettier":"^1.18.2","react-i18next":"^11.1.0","rimraf":"^3.0.0","ts-jest":"^24.1.0","ts-loader":"^6.2.1","tslint":"^5.18.0","tslint-config-prettier":"^1.18.0","typedoc":"^0.15.0","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":"run-s lint build 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</a> •\n  <a href=\"https://g2.antv.vision/en/docs/api/g2\">API 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\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":"8aeec2c28e09beaefbb7839fb50517a2916de5ec","_id":"@antv/g2@4.0.8-beta.1","_nodeVersion":"13.2.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-8liDCbOWFdj2HsVF97JdXY8rYeqPG4xpu2yPbMXZFGBCpqzt0n/KsU0JbE+2/Ku66MILOt7PDZ9+rrUh7a1kTw==","shasum":"7a7a0110cbb2e8a9be02e7187260eefb4ec0fb97","tarball":"http://registry-npm.ywwl.com/@antv/g2/download/@antv/g2-4.0.8-beta.1.tgz","fileCount":1081,"unpackedSize":8148612,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJepnhkCRA9TVsSAnZWagAAchsQAKOEXSM5dC2nV2zHMUW/\n71eeCl3L3lOy/EEQniPV7q9jZ3bvdVX493wtL87GFPe41/+lwWOvY5XNyyLd\nelHAF0gk83uXC32PD3pXM2ZOgkau1pZM667Ro5JOLEbVsfeJOEsUppDu5YNC\nkmO6AEBwWuuBj2e0WnEbkhz/mKuFC1A6z1DL1YfymygUBf6iIAb5hQy0ppcb\nXXkewvkXFz5Dcx8BOnyrnqgT3T+4NsbBRqoeZ84v4JNcmy/UDsxjLoA9tmpX\nOyREDibO4O/xpLxMP9mYrpO0NEqDEjJiN419lP4iHtVQsVK8hTPh0NWeYWfu\nVxOtPWGdsc+jfDdEv0I+/Sv+PoSbAtMtGTjkQp62Yzzg93xqc1ZTmguHb2hS\n6SbcXtfiMsAI7V2tj228d6kfOhYODMmdb8GhaHjMNZCZ9OcruS25sbikLMtJ\n4vZSSNjhPPWggpMrfLDSBiiWNhDriVuS68JkddlBf5v3NkPUjcrcDetIkkmH\n10E61VkbeU3NrEfghu35VraOO07DP77/VHbRU49/cJ3/qIttFyVNV5xj/bUr\n/80Pvpro12+GfcTiy3dpUOtUeq0NQmfOq50YjvySu975mCaNOmJfV7t4tCrL\nE7YDue3TX6uv2XNFi0CN+v2eWtXJ0uKklC14OPDxkvLdQHaGDqz1JLrweIAJ\nLcQf\r\n=qWyA\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDldlsSpFywF2KnNgOWp2x8T3+gZBRBCJFQEfIsoYk7dgIhANmNLNutHehBwnsgFybQKZk+0JESzROv/KDpPV9YNXLm"}],"size":1691465,"noattachment":false,"key":"/@antv/g2/-/@antv/g2-4.0.8-beta.1.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":"bubkoo.wy@gmail.com","name":"bubkoo"},{"email":"ccnuzindex@gmail.com","name":"ccnuzindex"},{"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":"leungwensen@gmail.com","name":"leungwensen"},{"email":"120635640@qq.com","name":"lzxue"},{"email":"neo.wang@vip.163.com","name":"neoddish"},{"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":"747042796@qq.com","name":"wufenfen92"},{"email":"yanyanwang93@gmail.com","name":"yanyan-wang"},{"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.0.8-beta.1_1587968099508_0.993881299846316"},"_hasShrinkwrap":false,"publish_time":1587968099901,"_cnpm_publish_time":1587968099901,"dist-tags":{"alpha":"5.3.4-alpha.0","beta":"5.3.6-beta.4","latest":"5.4.8","v3-latest":"3.5.19"}}