{"name":"@antv/g2","version":"3.5.9-beta.2","description":"the Grammar of Graphics in Javascript","browser":"build/g2.js","main":"build/g2.js","module":"lib/index.js","types":"lib/index.d.ts","homepage":"https://github.com/antvis/g2","repository":{"type":"git","url":"git+ssh://git@github.com/antvis/g2.git"},"bugs":{"url":"https://github.com/antvis/g2/issues"},"keywords":["g2","chart"],"author":{"name":"https://github.com/orgs/antvis/people"},"license":"MIT","devDependencies":{"@antv/data-set":"~0.9.6","@babel/cli":"~7.0.0","@babel/core":"~7.0.0","@babel/preset-env":"~7.0.0","babel-eslint":"~8.0.3","babel-loader":"~8.0.0","babel-plugin-transform-remove-strict-mode":"~0.0.2","blink-diff":"^1.0.13","body-parser":"~1.18.2","chai":"~4.1.2","commander":"~2.12.2","connect":"~3.6.6","d3-queue":"~3.0.7","debug":"~3.1.0","electron":"~1.8.7","eslint":"~3.19.0","eslint-config-airbnb":"~15.0.1","eslint-config-egg":"~4.2.0","eslint-plugin-html":"~3.1.1","eslint-plugin-jsx-a11y":"~5.1.1","eslint-plugin-react":"~7.1.0","event-simulate":"~1.0.0","get-port":"~3.2.0","git-contributor":"1","jszip":"~3.1.5","nightmare":"~2.10.0","nunjucks":"~3.0.1","open":"~0.0.5","parseurl":"~1.3.2","pre-commit":"~1.2.2","serve-static":"~1.13.2","shelljs":"~0.7.8","torchjs":"~2.1.0","tslint":"~5.10.0","typescript":"~2.9.2","uglify-js":"~3.1.10","webpack":"~3.10.0"},"scripts":{"build":"webpack","build-lib":"babel src --out-dir lib && cp src/index.d.ts lib/","bundler":"electron ./bundler/app.js","ci":"npm run lint && npm run test","compress-g2":"uglifyjs -c -m -o dist/g2.min.js -- build/g2.js","compress-core":"uglifyjs -c -m -o dist/g2-core.min.js -- build/g2-core.js","compress-simple":"uglifyjs -c -m -o dist/g2-simple.min.js -- build/g2-simple.js","compress":"npm run compress-g2 && npm run compress-core && npm run compress-simple","coverage":"npm run coverage-generator && npm run coverage-viewer","coverage-generator":"torch --compile --coverage --renderer --recursive --source-pattern src/*.js,src/**/*.js test/unit","coverage-viewer":"torch-coverage","demos":"electron ./demos/app.js","demos-web":"node ./demos/app.js --web --port 2046","dev":"npm run watch & npm run demos-web","dist":"npm run mkdir-dist && npm run build && npm run compress","lint":"eslint --ext .html,.js ./","lint-fix":"eslint --ext .html,.js --fix ./","mkdir-dist":"node ./bin/mkdir-dist.js","prepublishOnly":"npm run build-lib && npm run dist","pixel-test":"node ./bin/pixel-test.js","screenshot":"node ./bin/screenshot.js","start":"npm run dev","test":"torch --compile --renderer --recursive ./test/unit","test-all":"npm run test && npm run test-bugs","test-bugs":"torch --compile --renderer --recursive ./test/bugs","test-bugs-live":"torch --compile --interactive --watch --recursive ./test/bugs","test-live":"torch --compile --interactive --watch --recursive ./test/unit","tslint":"tslint --project tsconfig.json --config tslint.json src/index.d.ts","watch":"webpack --config webpack-dev.config.js","win-dev":"node ./bin/win-dev.js","contributor":"git-contributor"},"pre-commit":{"run":["lint","test-all"],"silent":false},"dependencies":{"@antv/adjust":"~0.1.0","@antv/attr":"~0.1.2","@antv/component":"~0.3.3","@antv/coord":"~0.1.0","@antv/g":"~3.3.6","@antv/scale":"~0.1.1","@antv/util":"~1.3.1","venn.js":"~0.2.20","wolfy87-eventemitter":"~5.1.0"},"readme":"# G2: The Grammar of Graphics in JavaScript\n\n[![](https://img.shields.io/travis/antvis/g2.svg)](https://travis-ci.org/antvis/g2)\n![](https://img.shields.io/badge/language-javascript-red.svg)\n![](https://img.shields.io/badge/license-MIT-000000.svg)\n\n[![NPM Package](https://img.shields.io/npm/v/@antv/g2.svg)](https://www.npmjs.com/package/@antv/g2)\n[![NPM Downloads](http://img.shields.io/npm/dm/@antv/g2.svg)](https://npmjs.org/package/@antv/g2)\n[![Percentage of issues still open](http://isitmaintained.com/badge/open/antvis/g2.svg)](http://isitmaintained.com/project/antvis/g2 \"Percentage of issues still open\")\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, users can describe the visual appearance of a visualization just by one statement.\n\n**Special thanks to [Leland Wilkinson](https://en.wikipedia.org/wiki/Leland_Wilkinson), the author of [*The Grammar Of Graphics*](https://www.cs.uic.edu/~wilkinson/TheGrammarOfGraphics/GOG.html), whose book served as the foundation for G2.**\n\n[More details about G2](https://antv.alipay.com/zh-cn/g2/3.x/index.html).\n\n<img src=\"https://gw.alipayobjects.com/zos/rmsportal/AOwgKIjknXfggPijmhym.gif\" width=\"200\"><img src=\"https://gw.alipayobjects.com/zos/rmsportal/nfiOREzMIsENrzUeLOGR.gif\" width=\"200\"><img src=\"https://gw.alipayobjects.com/zos/rmsportal/uZZmaudtKRnvUhmUdZSZ.gif\" width=\"180\"><img src=\"https://gw.alipayobjects.com/zos/rmsportal/ifSTXzrGbvtLRpnAvAiZ.gif\" width=\"200\">\n\n\n## Installation\n\n```bash\n$ npm install @antv/g2\n```\n\n### Usage\n\n<img src=\"https://gw.alipayobjects.com/zos/rmsportal/aHvVgFiBnGzzKCEjdVtL.png\" width=\"450\">\n\n```html\n<div id=\"c1\"></div>\n```\n\n```js\nimport G2 from '@antv/g2';\n\nconst data = [\n  { genre: 'Sports', sold: 275 },\n  { genre: 'Strategy', sold: 1150 },\n  { genre: 'Action', sold: 120 },\n  { genre: 'Shooter', sold: 350 },\n  { genre: 'Other', sold: 150 },\n];\n\nconst chart = new G2.Chart({\n  container: 'c1',\n  width: 500,\n  height: 500\n});\n\nchart.source(data);\nchart.interval().position('genre*sold').color('genre');\nchart.render();\n```\n\n[More examples](https://antv.alipay.com/zh-cn/g2/3.x/demo/index.html)\n\n![demos](https://user-images.githubusercontent.com/1655789/34187141-d800fe94-e56a-11e7-878a-4dc0e4f538d9.png)\n\n## Development\n\n```bash\n$ npm install\n\n# run test case\n$ npm run test-live\n\n# build watching file changes and run demos\n$ npm run dev\n\n# run demos\n$ npm run demos\n```\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\n## ~~Experience Improvement Program Description~~\n\n~~In order to serve the users better, G2 will send the URL and version information back to the AntV server:~~\n\n~~https://kcart.alipay.com/web/bi.do~~\n\n~~**Except for URL and G2 version information, no other information will be collected.** You can also turn it off with the following code:~~\n\n```js\n// disable tracking\nG2.track(false)\n```\n\n**update:**\n\n**We decided to terminate the \"Experience Improvement Program\". In verson `@antv/g2@3.4.7` and above, all tracking code is removed, no unexpected remote request will be sent while you are using G2.**\n\n<!-- GITCONTRIBUTOR_START -->\n\n## Contributors\n\n|[<img src=\"https://avatars1.githubusercontent.com/u/1655789?v=4\" width=\"100px;\"/><br/><sub><b>leungwensen</b></sub>](https://github.com/leungwensen)<br/>|[<img src=\"https://avatars3.githubusercontent.com/u/6628666?v=4\" width=\"100px;\"/><br/><sub><b>simaQ</b></sub>](https://github.com/simaQ)<br/>|[<img src=\"https://avatars1.githubusercontent.com/u/1264678?v=4\" width=\"100px;\"/><br/><sub><b>dxq613</b></sub>](https://github.com/dxq613)<br/>|[<img src=\"https://avatars3.githubusercontent.com/u/8325822?v=4\" width=\"100px;\"/><br/><sub><b>elaine1234</b></sub>](https://github.com/elaine1234)<br/>|[<img src=\"https://avatars0.githubusercontent.com/u/7098619?v=4\" width=\"100px;\"/><br/><sub><b>guisturdy</b></sub>](https://github.com/guisturdy)<br/>|[<img src=\"https://avatars3.githubusercontent.com/u/5888974?v=4\" width=\"100px;\"/><br/><sub><b>paleface001</b></sub>](https://github.com/paleface001)<br/>|\n| :---: | :---: | :---: | :---: | :---: | :---: |\n|[<img src=\"https://avatars0.githubusercontent.com/u/8186664?v=4\" width=\"100px;\"/><br/><sub><b>chenshuai2144</b></sub>](https://github.com/chenshuai2144)<br/>|[<img src=\"https://avatars3.githubusercontent.com/u/6111424?v=4\" width=\"100px;\"/><br/><sub><b>xile611</b></sub>](https://github.com/xile611)<br/>|[<img src=\"https://avatars3.githubusercontent.com/u/5591805?v=4\" width=\"100px;\"/><br/><sub><b>maplor</b></sub>](https://github.com/maplor)<br/>|[<img src=\"https://avatars3.githubusercontent.com/u/6560377?v=4\" width=\"100px;\"/><br/><sub><b>zhfanrui</b></sub>](https://github.com/zhfanrui)<br/>|[<img src=\"https://avatars2.githubusercontent.com/u/6942296?v=4\" width=\"100px;\"/><br/><sub><b>Frezc</b></sub>](https://github.com/Frezc)<br/>|[<img src=\"https://avatars1.githubusercontent.com/u/6812138?v=4\" width=\"100px;\"/><br/><sub><b>Leannechn</b></sub>](https://github.com/Leannechn)<br/>|\n|[<img src=\"https://avatars2.githubusercontent.com/u/1451480?v=4\" width=\"100px;\"/><br/><sub><b>janjakubnanista</b></sub>](https://github.com/janjakubnanista)<br/>|[<img src=\"https://avatars1.githubusercontent.com/u/11624840?v=4\" width=\"100px;\"/><br/><sub><b>ParryQiu</b></sub>](https://github.com/ParryQiu)<br/>|[<img src=\"https://avatars3.githubusercontent.com/u/22516098?v=4\" width=\"100px;\"/><br/><sub><b>Sai0514</b></sub>](https://github.com/Sai0514)<br/>|[<img src=\"https://avatars0.githubusercontent.com/u/9816225?v=4\" width=\"100px;\"/><br/><sub><b>liximomo</b></sub>](https://github.com/liximomo)<br/>|[<img src=\"https://avatars1.githubusercontent.com/u/9054130?v=4\" width=\"100px;\"/><br/><sub><b>wensen-lws</b></sub>](https://github.com/wensen-lws)<br/>|[<img src=\"https://avatars1.githubusercontent.com/u/1011681?v=4\" width=\"100px;\"/><br/><sub><b>xudafeng</b></sub>](https://github.com/xudafeng)<br/>|\n|[<img src=\"https://avatars1.githubusercontent.com/u/2370929?v=4\" width=\"100px;\"/><br/><sub><b>wangyu-kelly</b></sub>](https://github.com/wangyu-kelly)<br/>|[<img src=\"https://avatars0.githubusercontent.com/u/9314735?v=4\" width=\"100px;\"/><br/><sub><b>BlackGanglion</b></sub>](https://github.com/BlackGanglion)<br/>|[<img src=\"https://avatars3.githubusercontent.com/u/210810?v=4\" width=\"100px;\"/><br/><sub><b>illumen</b></sub>](https://github.com/illumen)<br/>|[<img src=\"https://avatars1.githubusercontent.com/u/827205?v=4\" width=\"100px;\"/><br/><sub><b>DanielRuf</b></sub>](https://github.com/DanielRuf)<br/>|[<img src=\"https://avatars2.githubusercontent.com/u/5518?v=4\" width=\"100px;\"/><br/><sub><b>huacnlee</b></sub>](https://github.com/huacnlee)<br/>|[<img src=\"https://avatars2.githubusercontent.com/u/13056641?v=4\" width=\"100px;\"/><br/><sub><b>0nza1101</b></sub>](https://github.com/0nza1101)<br/>|\n[<img src=\"https://avatars2.githubusercontent.com/u/566097?v=4\" width=\"100px;\"/><br/><sub><b>RaoHai</b></sub>](https://github.com/RaoHai)<br/>|[<img src=\"https://avatars0.githubusercontent.com/u/8731922?v=4\" width=\"100px;\"/><br/><sub><b>tbroadley</b></sub>](https://github.com/tbroadley)<br/>|[<img src=\"https://avatars2.githubusercontent.com/u/1860329?v=4\" width=\"100px;\"/><br/><sub><b>charleyw</b></sub>](https://github.com/charleyw)<br/>|[<img src=\"https://avatars0.githubusercontent.com/u/21355783?v=4\" width=\"100px;\"/><br/><sub><b>Hazyzh</b></sub>](https://github.com/Hazyzh)<br/>|[<img src=\"https://avatars0.githubusercontent.com/u/6947976?v=4\" width=\"100px;\"/><br/><sub><b>forbreak</b></sub>](https://github.com/forbreak)<br/>|[<img src=\"https://avatars0.githubusercontent.com/u/4783781?v=4\" width=\"100px;\"/><br/><sub><b>nekocode</b></sub>](https://github.com/nekocode)<br/>\n\nThis project follows the git-contributor [spec](https://github.com/xudafeng/git-contributor), auto updated at `Sat Jul 27 2019 14:06:08 GMT+0800`.\n\n<!-- GITCONTRIBUTOR_END -->\n","readmeFilename":"README.md","gitHead":"b365e94f72c25682a2d4509588059b03d77854af","_id":"@antv/g2@3.5.9-beta.2","_nodeVersion":"11.5.0","_npmVersion":"6.7.0","dist":{"integrity":"sha512-w4ie7MHetdTFsunMEs1X6m7ilvsLkDcdqBYpOomwYhfzcnHfcsxVHPZV7ohqBw42TxCbdbrM+qZUP4tpYizELw==","shasum":"66afb1fe20f2c73fb7e708d7ad0b8c639d6636f5","tarball":"http://registry-npm.ywwl.com/@antv/g2/download/@antv/g2-3.5.9-beta.2.tgz","fileCount":221,"unpackedSize":11307592,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdnVtFCRA9TVsSAnZWagAAaKEP/3nf/KHMMx+9d4VvLKsZ\nbllEY0QL1i+Q/YyDTnuqY7lwENyMCx9dXaaYJd4rtrmmjJAZUb2EKACRlSPm\nc71gPM8GlA98a9pNHgmI7SOdHokEcsu8hCqLhKDog6TtfRBm0x+2FoKBEZRA\nf09QCX2X8hwc63VwTIpqgTeReQZaYMgd+i8CEKFJGQ3InZRRTf/wEPJ9yhHE\ndGWDI1XjmX78/toRvt+KcKAxfTeg+6ADn6rFktIBzC0j6+c2IPp9M1gs8jVG\nNjjaOqG838bYhZrmbBtudXSeSL3cR1td+SspRsUENjYKD5gccolFZot9OPYn\n8YVE+baTx9Nn1Soc3X53R+MC27AvONmOEx37R8cTUI59/kw3lImcsVulWzJg\n6f66RcW39W5ZG+wTJwHZ1Ocn4pQPm0jd8Hf6D+Py9FpnEYye0c8ddzrI2BG4\nQ5p+wxc+hKsVI65DzgmBooCWkWV1wVdqPp6MbDTG906aKi6AyWeG6RQJ5+hw\neIjbqBPAc3fjBMZG6mBSg8xkn3YJb67PIuMDutRKFk90nn3MaNZodB30JkmM\nRtiztUIHFUa6J/hSwAvBbCoJScj59Gb49yzF5gWYK3zZXayyC328dPHT6emI\n20N2YAnUEvaUJx1nR/EoQP/huBbmoV1KsLfD5ALo+kK6gTTtRdYLL5hLGEjA\nfdKp\r\n=Oare\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCzfh/Mqee+AgRy+7HCnHMeeQgK4j1cOR8F09YKlJF+7AIgX/31CTA83u3DsUviUSGgezLwI7qVLIS/hVVOzCIDyIU="}],"size":2423672,"noattachment":false,"key":"/@antv/g2/-/@antv/g2-3.5.9-beta.2.tgz"},"maintainers":[{"email":"army8735@qq.com","name":"army8735"},{"email":"i@hust.cc","name":"atool"},{"email":"576375879@qq.com","name":"baizn"},{"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":"leungwensen@gmail.com","name":"leungwensen"},{"email":"120635640@qq.com","name":"lzxue"},{"email":"neo.wang@vip.163.com","name":"neoddish"},{"email":"360965398@qq.com","name":"sakuya223"},{"email":"sima.zhang1990@gmail.com","name":"simaq"},{"email":"yanyanwang93@gmail.com","name":"yanyan-wang"},{"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_3.5.9-beta.2_1570593604238_0.8282923285812871"},"_hasShrinkwrap":false,"publish_time":1570593604455,"_cnpm_publish_time":1570593604455,"dist-tags":{"alpha":"5.3.4-alpha.0","beta":"5.3.6-beta.4","latest":"5.4.8","v3-latest":"3.5.19"}}