{"name":"@antv/g2plot","version":"0.1.0-beta.5","description":"G2 Plot, a market of plots built with the Grammar of Graphics'","author":{"name":"https://github.com/orgs/antvis/people"},"main":"lib/index.js","module":"esm/index.js","types":"lib/index.d.ts","homepage":"https://antvis.github.io/g2plot","repository":{"type":"git","url":"git+https://github.com/antvis/g2plot.git"},"scripts":{"start":"npm run site:develop","site:develop":"gatsby develop --open -H 0.0.0.0","site:build":"npm run site:clean && gatsby build --prefix-paths","site:clean":"gatsby clean","site:deploy":"npm run site:build && gh-pages -d public","prepublishOnly":"run-s lint-check test build","build":"run-s clean lib dist","clean":"rimraf lib esm dist","lib":"run-p lib:*","lib:cjs":"tsc -p tsconfig.json --target ES5 --module commonjs --outDir lib","lib:esm":"tsc -p tsconfig.json --target ES5 --module ESNext --outDir esm","dist":"webpack --config webpack.config.js --mode production","lint":"lint-staged","lint-check":"tslint -c tslint.json 'src/**/*.ts'","lint-fix":"run-s lint-fix:*","lint-fix:prettier":"prettier --write 'src/**/*.ts'","lint-fix:tslint":"tslint -c tslint.json --fix 'src/**/*.ts'","coverage":"exit 0","test":"torch -t 5000 --compile --renderer --recursive ./__tests__/unit","test-live":"torch --compile --interactive ./__tests__/unit","compare-live":"node scripts/compare.js","ci":"run-s lint-check build test","demos-web":"node ./demos/app.js --web --port 2046","dev":"npm run watch & npm run demos-web","watch":"webpack --config webpack-dev.config.js"},"husky":{"hooks":{"pre-commit":"run-s lint build test"}},"dependencies":{"@antv/component":"~0.4.0-beta.3","@antv/coord":"~0.2.2","@antv/dom-util":"~2.0.1","@antv/event-emitter":"^0.1.1","@antv/g":"~3.5.0-beta.1","@antv/g-gesture":"~0.1.0-beta.2","@antv/g2":"~3.6.0-beta.4","@antv/gui":"~0.1.0-beta.4","@antv/matrix-util":"~2.0.2","@antv/scale":"^0.2.1","@antv/util":"~2.0.4","fecha":"~3.0.3","resize-observer-polyfill":"^1.5.1","tslib":"^1.10.0"},"devDependencies":{"@antv/gatsby-theme-antv":"^0.9.16","@antv/torch":"~1.0.5","@types/mocha":"^5.2.7","chai":"^4.2.0","colors":"^1.4.0","connect":"~3.7.0","event-simulate":"^1.0.0","gatsby":"^2.16.0","get-port":"^5.0.0","gh-pages":"^2.1.1","husky":"^3.0.4","lint-staged":"^9.2.3","npm-run-all":"^4.1.5","nunjucks":"~3.2.0","open":"~7.0.0","prettier":"^1.18.2","puppeteer":"^2.0.0","react-i18next":"^11.0.1","resemblejs":"^3.2.3","rimraf":"^3.0.0","ts-loader":"^6.0.4","tslint":"^5.19.0","tslint-config-prettier":"^1.18.0","typescript":"^3.5.3","webpack":"^4.39.2","webpack-bundle-analyzer":"^3.4.1","webpack-cli":"^3.3.7","webpack-merge":"^4.2.1"},"lint-staged":{"*.{js,css,json,md}":["prettier --write","git add"],"*.{ts}":["tslint -c tslint.json --fix","prettier --write","git add"]},"keywords":["g2","plot"],"license":"MIT","readme":"# g2plot\n\nA charting library based on the Grammar of Graphics.\n\n[![Build Status](https://github.com/antvis/g2plot/workflows/build/badge.svg)](https://github.com/antvis/g2plot/actions)\n[![版本](https://badgen.net/npm/v/@antv/g2plot)](https://www.npmjs.com/@antv/g2plot)\n[![NPM downloads](http://img.shields.io/npm/dm/@antv/g2plot.svg)](http://npmjs.com/@antv/g2plot)\n![最近提交](https://badgen.net/github/last-commit/antvis/g2plot)\n\nG2plot is an interactive and responsive charting library based on [the grammar of graphics](https://github.com/antvis/g2), which enables users to generate high quality statistical charts through a few lines of code easily.\n\nMoreover, combining with AntV design principles, g2plot provides standard and elegant visual styles as well as better user experience.\n\n<img src=\"https://gw.alipayobjects.com/mdn/rms_d314dd/afts/img/A*MjhQQLsbWeQAAAAAAAAAAABkARQnAQ\" width=\"200\"><img src=\"https://gw.alipayobjects.com/mdn/rms_d314dd/afts/img/A*CkSoSpPfWQMAAAAAAAAAAABkARQnAQ\" width=\"200\"><img src=\"https://gw.alipayobjects.com/mdn/rms_d314dd/afts/img/A*ZYmtSqcNDtkAAAAAAAAAAABkARQnAQ\" width=\"200\"><img src=\"https://gw.alipayobjects.com/mdn/rms_d314dd/afts/img/A*gV_JQZVbDWAAAAAAAAAAAABkARQnAQ\" width=\"200\">\n<br/>\n\n<p align=\"center\"><img src=\"https://gw.alipayobjects.com/mdn/rms_d314dd/afts/img/A*mkcRToWJGlIAAAAAAAAAAABkARQnAQ\" width=\"500\"></p>\n<br/>\n\n## Installation\n\n```bash\n$ npm install @antv/g2plot\n```\n\n## Usage\n\n<img src=\"https://gw.alipayobjects.com/mdn/rms_d314dd/afts/img/A*37siRJftYDIAAAAAAAAAAABkARQnAQ\" width=\"450\">\n\n```html\n<div id=\"container\"></div>\n```\n\n```js\nimport { Bar } from '@antv/g2plot';\n\nconst data = [\n  { year: '1951 年', sales: 38 },\n  { year: '1952 年', sales: 52 },\n  { year: '1956 年', sales: 61 },\n  { year: '1957 年', sales: 145 },\n  { year: '1958 年', sales: 48 },\n];\n\nconst bar = new Bar(document.getElementById('container'), {\n  data,\n  xField: 'sales',\n  yField: 'year',\n  colorField: 'year',\n});\n\nbar.render();\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/g2plot/issues) for bug reports or suggestions first.\n\nTo become a contributor, please follow our [contributing guide](https://github.com/antvis/g2plot/blob/master/CONTRIBUTING.md).\n","readmeFilename":"README.md","gitHead":"318a56e4f8d1b2f0d97257fe8d6bc1611e656059","bugs":{"url":"https://github.com/antvis/g2plot/issues"},"_id":"@antv/g2plot@0.1.0-beta.5","_npmVersion":"6.4.1","_nodeVersion":"10.15.3","_npmUser":{"name":"sakuya223","email":"360965398@qq.com"},"dist":{"integrity":"sha512-QfGGXYiA4bzrQz434x706OV0Qp7/k5NTfeZxD5azqSU64GE4ejEB9dnn/0WF2wVJ5lcECNK2cv37Q/Zft7633A==","shasum":"97b73e593251a3ed6c2b658c131753ab98fdf7f0","tarball":"http://registry-npm.ywwl.com/@antv/g2plot/download/@antv/g2plot-0.1.0-beta.5.tgz","fileCount":1157,"unpackedSize":5225392,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdxV1LCRA9TVsSAnZWagAAjSAP/1AjJxdBnn33Vz5QQk+n\nTTR0xRRV81dMmx4nzG4OqkSe+4y3CgWezSeRrPeS0823ELQR9FJy7xJZc3TT\nz0iL6GT5ml42yx78tUJ5TJZXHnAOKRc3JPwMMRbSD28Phoav7E/y4yPTatxJ\nGq4zu/U02OF6Q3nyZSRfbj/ElpNO66rVbiIYS8/DcT7EwyQkbcJMG0fq1Xz4\nE4QqdCHwZgkTvwbFU50hEHu7HMQQt/HIROjVdkkZ2rN+D8suW2zQPicNxI0v\neYDW14UhZvt5l5+y4kpdI0pGsXduIaVjsBjQi93T8CwsqeJiDFq/d5akhMfT\nEnZy+15o4xiDFpCLzD8D876g+JJo7G28ONFz4o/Bk3GgkM3rJ9aOnF47kRlt\nH8YdbS1ZisP4JT9EOEIS65EfnkFp7ZtFVSUfiWRRnuRRUDcAtD6g6GHlZ+1r\nGyfHz0qHSf8WNeHmvvCZRqMe4CDL4v7WbWHQh8Z9yiHKIc4YszGPe8vPYSUb\nXEVPZ+PrypTPhHs8bPF46dbPQpi4HHEcOR3WJ8r111GueAHk88MP13rk/e9Q\nfYvqUegF/Yvf4CAYJ2JnSbYsc6iGDEUUOuisgs7eBFCoaHP9gSWfndT115Zu\nDR8k84VVPPF3QHPatsxXpCosPnirC2N2La5cOjmoRdi9IBMVJfqBLP5D239r\nIi8V\r\n=RBkv\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC1F9PvIkjAoBQZIERvlD1ed18vGmxA2Tof6uHuTV96jgIgNLab7btfVqWl8wMnPsHNoL/irbn5SmsBg3DPLWST+u8="}],"size":1261902,"noattachment":false,"key":"/@antv/g2plot/-/@antv/g2plot-0.1.0-beta.5.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":"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"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/g2plot_0.1.0-beta.5_1573215562697_0.2356542326099076"},"_hasShrinkwrap":false,"publish_time":1573215563010,"_cnpm_publish_time":1573215563010,"dist-tags":{"alpha":"3.0.0-alpha.1","beta":"2.4.32","latest":"2.4.35"}}