{"name":"@antv/g2","version":"3.2.7-beta.1","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","string-replace-loader":"^2.1.1","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-svg":"webpack --config webpack-svg.config.js","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-svg":"uglifyjs -c -m -o dist/g2-svg.min.js -- build/g2-svg.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 && npm run compress-svg","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 build-svg && 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.0.0-beta.11","@antv/interaction":"~0.0.8","@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":"d50fce5cd22410a76c8b0d801b6e876384650cf2","_id":"@antv/g2@3.2.7-beta.1","_npmVersion":"6.2.0","_nodeVersion":"10.0.0","_npmUser":{"name":"leungwensen","email":"leungwensen@gmail.com"},"dist":{"integrity":"sha512-BI+nvWARnwk5DNZXfHtt+P59/Ykcv54s7mKmET7ZTYBOgDeKRtbUkuagMQDS5IqlEFg/rioRyF8NmRu5CjllRA==","shasum":"ffdbfdae2b30578e5e7edfe103c7273406e04ac9","tarball":"http://registry-npm.ywwl.com/@antv/g2/download/@antv/g2-3.2.7-beta.1.tgz","fileCount":278,"unpackedSize":14126008,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbYU8PCRA9TVsSAnZWagAAU+MP/3KyLkSGrN8nV+pPfX98\nJY1Vc2DCR+H3BNGVvYqcofCgridua9o3jprs5MbPP57lDToPlGIzZAq/zq8K\nno9cgJucrhGKTApkjDuHGT9Clrep/Ith7URq3zoKjv4her9YUsJahbyoxp2b\nD6N87HMbXLQ3tbHvzTFGDmBABqLe9/+71oknWNVOBzeTZII5mo5kLFdkBJZ3\n74VHkHkfoF2ZVm9SAyXsMIHwmETLVXUd2xa1GnB8jjq/M3V5ypUWdY2/6j65\nikJErAEqx4bZGFmTMSLz+KRBLqw2pD5uj7/0CRdtGB3PIhSNHN8cz3hFoK1h\n0AcTSCDGSUa1j1BNDg3axHMO7NF2jxjJ1sRhGAGNpCOmoLPEhfw1rKdR9Qlb\nZ1ATEqWmR4Q+Fc4u4kFJ7vxG00pmEmqi4cAfW66uz4QCVnpj/eBsUkMEzbg5\nYZPrC79gflCI7aJliyD5qcFcE7P8WntKhMrjnGrnloRavp3aXP6Q/RTXh2H/\naIu9l197cTRrgWjbxdMDLuH763/ApqyuNZalOfHPp3NmebH28Dx0bALh0+nO\ny3p+/cGi4HQoBlHDVg+8TIO5gA6/rHJQHJZDRejpThTOmInrhq1ozsMUOJgt\nBBtLzHu2usmi25yTQj8oCJp+lDp19Eym0UT3SbqilQOEiVMyuaBGsbKF7qZ9\n5CM8\r\n=aRpk\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIA8KZ7Fl3efqoFqqRGStI/3t1zd+0du0MXvJb9poghuUAiEA50Cd4bUynRmGJtbj7PlAGSEk7u56H8x4AVXLC7zzm9g="}],"size":2864577,"noattachment":false,"key":"/@antv/g2/-/@antv/g2-3.2.7-beta.1.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.1_1533103886563_0.7018495372622364"},"_hasShrinkwrap":false,"publish_time":1533103886780,"_cnpm_publish_time":1533103886780,"dist-tags":{"alpha":"5.3.4-alpha.0","beta":"5.3.6-beta.4","latest":"5.4.8","v3-latest":"3.5.19"}}