{"name":"@antv/g2","version":"3.5.0-beta.5","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","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"},"pre-commit":{"run":["lint","test-all"],"silent":false},"dependencies":{"@antv/component":"~0.3.1","@antv/adjust":"~0.1.0","@antv/attr":"~0.1.2","@antv/coord":"~0.1.0","@antv/g":"~3.3.5","@antv/scale":"~0.1.0","@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","readmeFilename":"README.md","gitHead":"d04e94517c4b88f6323868452d6f05ab8f76a7fc","_id":"@antv/g2@3.5.0-beta.5","_nodeVersion":"8.11.4","_npmVersion":"6.9.0","dist":{"integrity":"sha512-uhPhjfeiE90pbnR329Np3JmHP5fdqWhYqUJDg6iCiw94YzOcBHXbBiabUwEAMk7G71DknWD8q/qv/SlccBBsrw==","shasum":"0f92382e1776d4f6c0508f89e75386372135d1c7","tarball":"http://registry-npm.ywwl.com/@antv/g2/download/@antv/g2-3.5.0-beta.5.tgz","fileCount":227,"unpackedSize":11076454,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcix5uCRA9TVsSAnZWagAAUzgP/RO8CWsi44CdrrY/SEkq\n7+Ma+nJXFH2tdMaSpb0JZwgdqVVS0e00Fl6WYf7HydeReQcIdbxq4oBjHYrJ\napmwWZ5W3X/hsustgprFERyULke+GEgKmMHzsNX5lqR5TF3osqquHJrYOo2B\nG161U6Xof8djRr8LP2utATuhfG+jxE6TSvzdKXuTIQ7j1be2k4hg0ja+Ygmy\nOefLlXURXZFQGnJlOc3qr6AhNBuckJbwpwgLfJr7fYBOJhdOkTQWPDrVhIvX\nYzXyRzGhWOREWK11M+QIrlOlYTy6bCV9EdO08JabDZD6QnFe1SebnFGSs6Pt\nN+0FPIqO5ye+JPnEIlwUt4jZd/lw89FcpHq/xJa/JG4HjyU41+fh17wZNlau\nQzrF2CJWtFp8/Fq++de6SuyXFfliI3VQceIrRd7DNpun5z+6IYtetevFvaAy\nkRWFc+xI0A6nXp1n4UC9d2q3WbqDJOSLQZGdzcjHGsP+8kuGIGfc27oYfnX/\nsUgNG/rq0qcQS0b9C1Xo3nGUt46CT2/WCr9vLQ+hSkeomGrqYPuWWydtDBaw\nlc7UyLOfK4Nh4Mnj9flPBoLIgtmN/H1YdzP9eqAZYjOdfSaYnnfd7V70qtD5\nyAPoCrVKAjpM5YEc+PIJGFqp4ZT31GA2imyR7isHByr/hcs/ZTjy+HQSDySR\nTq9U\r\n=bZhN\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD2NR6k1MdTsd0R2n0MvRsRZkYUdmSyJnqNVQ6IUrRbrAIgBMZ0eOaros8jfyOfLV79BMZBaXM+TOw2su9qYU+C0iI="}],"size":2365675,"noattachment":false,"key":"/@antv/g2/-/@antv/g2-3.5.0-beta.5.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":"120635640@qq.com","name":"lzxue"},{"email":"360965398@qq.com","name":"sakuya223"},{"email":"sima.zhang1990@gmail.com","name":"simaq"},{"email":"yanyanwang93@gmail.com","name":"yanyan-wang"}],"_npmUser":{"name":"leungwensen","email":"leungwensen@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/g2_3.5.0-beta.5_1552621165787_0.1522408226205627"},"_hasShrinkwrap":false,"publish_time":1552621166085,"_cnpm_publish_time":1552621166085,"dist-tags":{"alpha":"5.3.4-alpha.0","beta":"5.3.6-beta.4","latest":"5.4.8","v3-latest":"3.5.19"}}