{"name":"@antv/g2","version":"3.2.7-beta.3","description":"the Grammar of Graphics in Javascript","browser":"build/g2.js","main":"build/g2.js","module":"lib/index.js","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.8.6","babel-cli":"~6.26.0","babel-core":"~6.26.0","babel-eslint":"~8.0.3","babel-loader":"~7.1.4","babel-plugin-transform-remove-strict-mode":"~0.0.2","babel-preset-env":"~1.6.1","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","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.0.3","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","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","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"},"pre-commit":{"run":["lint","test-all"],"silent":false},"dependencies":{"@antv/adjust":"~0.0.6","@antv/attr":"~0.0.6","@antv/g":"3.1.0-beta.5","@antv/interaction":"~0.1.4","@antv/scale":"~0.0.5","@antv/util":"~1.0.12","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","readmeFilename":"README.md","gitHead":"3c7dc5a1b93f552b755c134654a9631006ed605a","_id":"@antv/g2@3.2.7-beta.3","_npmVersion":"6.2.0","_nodeVersion":"10.0.0","_npmUser":{"name":"leungwensen","email":"leungwensen@gmail.com"},"dist":{"integrity":"sha512-vTVgNjdPOymrOtq2lcRWGjyroX61PAljzOaGd7GMZ5djAM7CPuWW/jRedTer5aHv9kxBrwDoQoNM9TivHikXbQ==","shasum":"9441b23758d0f0d0ca1bd74f63322122df521295","tarball":"http://registry-npm.ywwl.com/@antv/g2/download/@antv/g2-3.2.7-beta.3.tgz","fileCount":276,"unpackedSize":13166625,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbYtexCRA9TVsSAnZWagAAarIQAJYQ32bJg9xylAwHzgCk\n6YRxY8RDhmFGDpVWIEhBAydZQYLiuAFgar2JZR98LoyOZRd/gGVwSUTsJ46A\nMtNZpt23ydFBKrKg8ae3t4raUOn+i6dlYKPgzdUQllT4mFdk3iJIRQv0SFKr\nJIo9cfJhm5Xx9og4NhCqWIwD8qvTsRCas1Ebezq9nKuBOlmgnnS6+MMK78eK\nYQO+HCqhUHZ9eUE5QDO8icqsBWHugoenCC3fXqb9ny4AjlzuAb/58MkPqea9\n5Grj+Bd8qkpJou7cOeDZbM/PPI8Z12mBz4NXYwtGfHiVnLHtwdezBNQzgXPO\np1K9LqcnM8HHbPexQd8y8MUovpASLBPycRgQC1YGfh4HCvk7MLmrv5AAVTxo\n2tntidal9cJTWZMBlLyNQNN/MlsAG9Yi6G43lvgd1WYj0b5W/nPzxHeUaje8\n3TG7OopPh0598ak1JdkvzvUSEzSdaaeJ7MP6cOAoask5uHHtGj0v5YWQymJ3\n/gz9G79R47eVi6MjnYtynZ43cPW1fyM1Jw87np1g8FcYhQjtudwpRda39Luk\nvRtYZM4uCZsIdRD3rajw/CPuOwDsKkCZM6tPyLDDimJHYLy4xiKI2AcmdOiD\n8Dk/tA5glsd6T249LnosoabXjUYG9syQp5Oe2dXlJNdk6ZzFyHaZ90QokSzx\n4GfO\r\n=Hy5Z\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC8Aysx1BFWIT5kkxe1vIBAdgAiUVHmRRJaIIjUGcMfDgIgBEvnNeKaGu7B3qDm1ZgUM/gP2lfHYxOqgNuKD0NihqY="}],"size":2647904,"noattachment":false,"key":"/@antv/g2/-/@antv/g2-3.2.7-beta.3.tgz"},"maintainers":[{"email":"418466938@qq.com","name":"dori"},{"email":"dxq613@gmail.com","name":"dxq613"},{"email":"yilin.qyl@antfin.com","name":"elaine.q.10"},{"email":"leungwensen@gmail.com","name":"leungwensen"},{"email":"360965398@qq.com","name":"sakuya223"},{"email":"sima.zhang1990@gmail.com","name":"simaq"},{"email":"yanyanwang93@gmail.com","name":"yanyan-wang"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/g2_3.2.7-beta.3_1533204400868_0.09367252311375385"},"_hasShrinkwrap":false,"publish_time":1533204401155,"_cnpm_publish_time":1533204401155,"dist-tags":{"alpha":"5.3.4-alpha.0","beta":"5.3.6-beta.4","latest":"5.4.8","v3-latest":"3.5.19"}}