{"name":"@antv/g2","version":"3.5.17","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://g2.antv.vision","repository":{"type":"git","url":"git+https://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","@antv/gatsby-theme-antv":"^0.10.32","@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","babel-preset-gatsby":"^0.2.20","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","gatsby":"^2.17.7","get-port":"~3.2.0","gh-pages":"^2.1.1","git-contributor":"1","jszip":"~3.1.5","nightmare":"~2.10.0","nunjucks":"~3.0.1","open":"~7.0.0","parseurl":"~1.3.2","pre-commit":"~1.2.2","react-i18next":"^11.0.1","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":{"start":"npm run site:develop","site:develop":"GATSBY=true gatsby develop --open -H 0.0.0.0","site:build":"npm run site:clean &&GATSBY=true gatsby build --prefix-paths","site:clean":"gatsby clean","site:deploy":"npm run site:build && gh-pages -d public","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","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.4.10","@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[![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\n[中文 README](./README.zh-CN.md)\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<p align=\"center\"><a href=\"https://g2.antv.vision/zh/examples/gallery/line\"><img src=\"https://user-images.githubusercontent.com/6628666/68994104-1061b700-08ba-11ea-8017-3534fc85bc2f.jpeg\" /></a></p>\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\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<!-- 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":"fc5c5294fb80ba36426dde4bb3da5d975642a849","_id":"@antv/g2@3.5.17","_nodeVersion":"12.16.3","_npmVersion":"6.14.4","dist":{"integrity":"sha512-gOjfA6pwXYEC5mrLbvg1kA3jZI5J5T2kQeGse+iBBsNc1Vje7zs9G+BleUaI4MLXSnqwhsj/ohfkP7d+h4ArNg==","shasum":"02c8bac610d21d28b4e23600bc76c48e7f59c919","tarball":"http://registry-npm.ywwl.com/@antv/g2/download/@antv/g2-3.5.17.tgz","fileCount":1275,"unpackedSize":18256470,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe1cAgCRA9TVsSAnZWagAAKjQP/2Okie0HBhdcmlWMipx4\nHyGnGfj5l9UccocwfOUCo3tj6LQVy+Sk8+SXw/UjDifIyzXO3EORptUh9C0p\ncUEwETrPdrJbP2e7smeVm1UtnAvxLnA7+NwPK+GECR5nmmxcgC2FTMzXrEEJ\nJwQU9uAYmRBv4lWAb8Aqkir+HOR2Xej9bt2tqsHzI7CTuiCb4+bLmQa2aXmv\nDz+BRoSZVcdAdXjsBv+dBxTfN5Yty1to/Tg508V3z0eWWIjRaZuFTGAPPi5a\nImtDAT3wOWZAVs1X3AJeazSfD3GH78tN6y7W1M1ru348qEHQVDwujdv3f84g\nXnQ5/xi9rxHvP2zkH41J2DSd1GWDmsLCEFYiTbWumzLEmPSgrDI+TlSoYJY/\ntWGcYhHetmxxr/gyQ1ln66zBGaTTkuBULlKmUj6DwEdiHIR4a8+t37pi+osN\nbwijhXOsW/YXZNW8F/pOInGeQHiX7DPwGs6ysNIyKwvfkyzprcFOmByogKP/\nBIVk8lvP86a+ACrokIGRjp8IElngJxkShnteuPvHghKTNVSezSE3LXNx1QTS\nyuBw0PPD8KdcSsAus8mtefy/Xq+T9HnJC7LBMaawKgIDGVnrcHiQi0pjDJwP\nIdL+3c+C7rUnVsbM7iom5PYIqvHFcXtYNafeSsAlyBqCNRc9G1hiB6zKivg2\nS1IU\r\n=HX7X\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBu1ZUexhqKYYFetv7Npr7piSYD1wE1SS9yOEclYnu6RAiAU5PQG4RJ6rRtNxBIFfaAhv6Hg0iT4BZPbs8zgceChWA=="}],"size":3617516,"noattachment":false,"key":"/@antv/g2/-/@antv/g2-3.5.17.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":"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":"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":"zqlu","email":"zqlu.cn@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/g2_3.5.17_1591066656240_0.6567798376973126"},"_hasShrinkwrap":false,"publish_time":1591066656470,"_cnpm_publish_time":1591066656470,"dist-tags":{"alpha":"5.3.4-alpha.0","beta":"5.3.6-beta.4","latest":"5.4.8","v3-latest":"3.5.19"}}