{"name":"@antv/g2plot","version":"2.0.0-beta.2","description":"An interactive and responsive charting library","keywords":["chart","plot","antv"],"author":{"name":"https://github.com/orgs/antvis/people"},"main":"lib/index.js","module":"esm/index.js","types":"lib/index.d.ts","unpkg":"dist/g2plot.js","homepage":"https://g2plot.antv.vision","repository":{"type":"git","url":"git+https://github.com/antvis/g2plot.git"},"scripts":{"start":"npm run site:develop","site:develop":"cross-env PORT=8080 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","fix":"eslint --ext .ts ./src ./__tests__ --fix && prettier --write ./src ./__tests__ && lint-md --fix ./examples","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":"eslint --ext .ts ./src ./__tests__ && prettier --check ./src ./__tests__ && lint-md ./examples","lint-staged":"lint-staged","test":"jest","test-live":"cross-env DEBUG_MODE=1 jest --watch ./__tests__","coverage":"jest --coverage","ci":"run-s lint build coverage","changelog":"generate-changelog","prepublishOnly":"run-s lint test build","analyze":"webpack --profile --json > dist/stats.json && webpack-bundle-analyzer ./dist/stats.json"},"husky":{"hooks":{"pre-commit":"lint-staged","commit-msg":"commitlint -E HUSKY_GIT_PARAMS"}},"dependencies":{"@antv/data-set":"^0.11.5","@antv/event-emitter":"^0.1.2","@antv/g2":"^4.0.15","size-sensor":"^1.0.1","tslib":"^1.13.0"},"devDependencies":{"@antv/gatsby-theme-antv":"^1.0.0-beta.0","@babel/core":"^7.10.4","@babel/preset-env":"^7.10.4","@commitlint/cli":"^8.2.0","@commitlint/config-angular":"^8.2.0","@types/jest":"^25.2.1","@typescript-eslint/eslint-plugin":"^2.0.0","@typescript-eslint/parser":"^2.0.0","babel-loader":"^8.1.0","conventional-changelog-cli":"^2.0.34","cross-env":"^7.0.2","eslint":"^6.1.0","eslint-config-prettier":"^6.0.0","eslint-plugin-prettier":"^3.1.0","gatsby":"^2.20.22","generate-changelog":"^1.8.0","gh-pages":"^3.1.0","husky":"^4.2.3","jest":"^26.0.1","jest-electron":"^0.1.7","jest-extended":"^0.11.2","lint-md-cli":"^0.1.2","lint-staged":"^10.0.7","npm-run-all":"^4.1.5","prettier":"^2.0.1","react-i18next":"^11.7.0","rimraf":"^3.0.0","ts-jest":"^25.4.0","ts-loader":"^7.0.0","typescript":"^3.5.3","webpack":"^4.39.2","webpack-bundle-analyzer":"^3.4.1","webpack-cli":"^3.3.7","webpack-dev-server":"^3.9.0"},"jest":{"runner":"jest-electron/runner","testEnvironment":"jest-electron/environment","setupFilesAfterEnv":["jest-extended"],"preset":"ts-jest","collectCoverage":false,"collectCoverageFrom":["src/**/*.ts","!**/node_modules/**","!**/vendor/**"],"testRegex":"/__tests__/.*-spec\\.ts?$"},"lint-staged":{"*.ts":["eslint --fix","prettier --write"],"*.md":["lint-md --fix"]},"license":"MIT","readme":"<img src=\"https://gw.alipayobjects.com/zos/antfincdn/R8sN%24GNdh6/language.svg\" width=\"18\"> English | [简体中文](./README.zh-CN.md)\n\n<h1 align=\"center\">G2Plot</h1>\n\n<div align=\"center\">\n\nA charting library based on the Grammar of Graphics.\n\n[![Version](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![Latest commit](https://badgen.net/github/last-commit/antvis/G2Plot)\n[![CI Status](https://github.com/antvis/G2Plot/workflows/CI/badge.svg?branch=master)](https://github.com/antvis/G2Plot/actions?query=workflow%3ACI)\n[![coverage](https://img.shields.io/coveralls/antvis/G2Plot/master.svg)](https://coveralls.io/github/antvis/G2Plot)\n\n</div>\n\nG2Plot is an interactive and responsive charting library.\nBased on [the grammar of graphics](https://github.com/antvis/g2), you can easily make superior statistical charts through a few lines of code.\n\n<div align=\"center\">\n<img src=\"https://gw.alipayobjects.com/mdn/rms_d314dd/afts/img/A*sXqrRrEwFRQAAAAAAAAAAABkARQnAQ\" width=\"800\">\n</div>\n<br/>\n\n## Features\n\n### Pretty & Lightweight\n\nWith [AntV](https://antv.vision/en) design principles of data visualization, G2Plot provides standard and elegant visual styles as well as neat config options.\n\n<img src=\"https://gw.alipayobjects.com/mdn/rms_d314dd/afts/img/A*rqI2Qqt0pTwAAAAAAAAAAABkARQnAQ\" />\n\n### Responsive\n\nG2Plot guarantees the readability of the charts in different sizes and data.\n\n<img src=\"https://gw.alipayobjects.com/mdn/rms_d314dd/afts/img/A*ifK1TLi_4WoAAAAAAAAAAABkARQnAQ\" />\n\n### Storytelling\n\nWith the feature of _layers_, charts can be grouped, nested or linked to do exploratory analysis and expressive storytelling.\n\n<img src=\"https://gw.alipayobjects.com/mdn/rms_d314dd/afts/img/A*gd00QaD9110AAAAAAAAAAABkARQnAQ\" />\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\" />\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('container', {\n  data,\n  xField: 'sales',\n  yField: 'year',\n  colorField: 'year',\n});\n\nbar.render();\n```\n\n## Contributing\n\nYour contributions are always welcome! Please Do have a look at the [issues](https://github.com/antvis/g2plot/issues) first.\n\nTo become a contributor, please follow our [contributing guide](https://github.com/antvis/g2plot/blob/master/CONTRIBUTING.md).\n\n## Links\n\n<img src=\"https://gw.alipayobjects.com/zos/antfincdn/1yMwFkBvyV/chartcube-logo-cube.svg\" width=\"18\"> [ChartCube](https://chartcube.alipay.com/) - Online chart making tool based on G2Plot.\n\n## License\n\nMIT","readmeFilename":"README.md","gitHead":"841d73101c78b26c6e567053d847ca58d8104fa0","bugs":{"url":"https://github.com/antvis/g2plot/issues"},"_id":"@antv/g2plot@2.0.0-beta.2","_nodeVersion":"11.12.0","_npmVersion":"6.13.2","dist":{"integrity":"sha512-h0HedxTuiXQSgOfV2iMnAoThbQ9DmsTw3JsdLdDojE/EakPQMGUyK6S9PkPinsNga+CnqbEJ+0Oti0mxxbsgdQ==","shasum":"95e9444af81f92c59eb1f30d99ef875ca563d79a","tarball":"http://registry-npm.ywwl.com/@antv/g2plot/download/@antv/g2plot-2.0.0-beta.2.tgz","fileCount":541,"unpackedSize":6145703,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfQ0wfCRA9TVsSAnZWagAAnfwQAJ4epE28WExKughIHG88\ncuBrVKXd2hm2pXnTBkqA9TVoNTjFaEFfxIPlio6IB/Khs7btqODMFXmStYHH\nu4kv2it4b5ULvJYluDblpLwdysw2eoz6z2Wep3k0j1buLqze03buCFuMk4RR\n0QJrSL1vnK4dP6BEkP4DtPOW23aNMF7rQu5mqNHrGCQEp7++0gAJCHS+WdkH\nzyysT3CMCqZw5KWBGKenTicTXfSfgpU5cGA3xXTGSuql/jF774M6JD+gQygV\njChvlxuH+LFIiH7L8i1z2z/A5/efYm2ck6y/BoQiggQWo00Lbmyzu+mK5Dfy\nm2LdlimNOf4EzMEv58gXCCoVpiBdWQD4b6Sf8CRntjH/cOycUALdTWI3dTmj\nUyCsq3ct4jAN4Yn9e3NzFYVm18PuT56WBISRKcyh1fQU46tyyJGLKomZ4Hfh\nZLRjFXwOPgxCHzanNy5wULWNPJNRr5llkoR8GFxPXQkEIFLkaHrmd4Dris2K\nztxMhmkMvfwRnJrrVWPZs24f9+CBbbul41NByn91+qkh6R+VKDiEpNSGmZv7\nY96phF55SFNXjqxYgfr/y+3ILZC06ZPJakIjTuL+cqu6GamU678gBIT38F8g\nBDowguLFc1z04lmz+gmQXkan5fRDt54o2x+5xA8zQskYd3ls188DuElQFXta\nDdAj\r\n=ab5l\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDlydJ2KmY730bMeCTPt65wceq7Kil4mihlQCR1CkvFIwIgKyxp/BiP/sxjky+JrBsSfJSblUZVwQWd3DFJsxlvArk="}],"size":1497363,"noattachment":false,"key":"/@antv/g2plot/-/@antv/g2plot-2.0.0-beta.2.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":"chenluuli@gmail.com","name":"chenluli"},{"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":"vectorse@126.com","name":"newbyvector"},{"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":"wanyingxing@gmail.com","name":"winniexing"},{"email":"747042796@qq.com","name":"wufenfen92"},{"email":"yezengyue@gmail.com","name":"zengyue"},{"email":"zqlu.cn@gmail.com","name":"zqlu"}],"_npmUser":{"name":"atool","email":"i@hust.cc"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/g2plot_2.0.0-beta.2_1598245918393_0.6101924311730658"},"_hasShrinkwrap":false,"publish_time":1598245918717,"_cnpm_publish_time":1598245918717,"dist-tags":{"alpha":"3.0.0-alpha.1","beta":"2.4.32","latest":"2.4.35"}}