{"name":"@antv/g2","version":"4.1.0-beta.12","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":"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/color-util":"^2.0.2","@antv/component":"^0.7.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.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\" style='width: 100%'/></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":"86b4b0658dd14c10247a3e9ebdd489fe986a8a2c","_id":"@antv/g2@4.1.0-beta.12","_nodeVersion":"14.3.0","_npmVersion":"6.14.5","dist":{"integrity":"sha512-IcE8DUQ41CUMJ9KvyNXEoyrt3lxXEKHlOhSv08BsEBrNBT7DEfCgKiPveGWPmBT+15wn3O4YgCMWcuDppF6ihg==","shasum":"cc274a453f37f10e0cb05ba9a01882a0ce263bdf","tarball":"http://registry-npm.ywwl.com/@antv/g2/download/@antv/g2-4.1.0-beta.12.tgz","fileCount":1171,"unpackedSize":8880217,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfhGDfCRA9TVsSAnZWagAAtooP/iKn1PITkJ/BpT8HLSnp\nkvOkvKadmvTJ72Fh7Vg02Te1UpWtRp5QJekwquDqhhPvaUVIk+kauGxYMQlY\nGgizTsJ6oEnySbFQNfRQpKbYtqRL9pGG76Q1a+gAmRfjTL4U/h4ijBindPdg\nrViyJO5uicqfi983gbr0P1l954TWxCXy9nhfZes8xwlrokIMTb0uw+5Vtv1H\nkALZutxygRnFc44sgqh579IL77yJdEp65hApaUcY8UzRaee1t9w01DaEGYzN\nI60NC2SYPlb93z/7FX8eDjrqRa2Ha5Jqcmhr8fA+o6CiUDpzUZNrn8QL15N2\n44iIXRIxBLViO4sFSMe8krYn57TebZfGpc300kqkiJt4VXNNsbHn2cJv2d2F\nkSVK2P0kSMn6J7qil0GuY5YY9hwLdjhcGe0kJq5GsjJPqZ4rtIyTpzARGbQL\nwtXyu3Fn9R92gDggeroDZrzM7uZ918cW5vpUbpKLz6/NYxguh8MHIxjqjrBs\nHCf8AtlVu1qDW4XC3xzpXEJfzbtX22yPrNU+gRLZPRWquORomrzoxT/vEdPK\nwjyKr0kVAiJ9QvbQiot5fX88YpzIXpMMgLwOcAWqL2m//Nsxm/d0E0GEeUa+\nNltxCImJX40LcVMUPIAHJHtUs0R6emSmxgm0u+fcvl+6bS0f40MTo7FUjSgE\nt+hS\r\n=yX+/\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGY4aOoupzxyjKMdTVqsGrxpeb9OAzUANjxAJcDpATwTAiAV1Ho7xAnIduTK7kZQgzejOkt6VMphGHSwatfxDjWRTA=="}],"size":1844943,"noattachment":false,"key":"/@antv/g2/-/@antv/g2-4.1.0-beta.12.tgz"},"maintainers":[{"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":"wyy460342010@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"}],"_npmUser":{"name":"simaq","email":"sima.zhang1990@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/g2_4.1.0-beta.12_1602511071335_0.44225068497941145"},"_hasShrinkwrap":false,"publish_time":1602511071576,"_cnpm_publish_time":1602511071576,"dist-tags":{"alpha":"5.3.4-alpha.0","beta":"5.3.6-beta.4","latest":"5.4.8","v3-latest":"3.5.19"}}