{"name":"@antv/g2plot","version":"2.0.0-beta.6","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.min.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 build && 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 size","size":"limit-size","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 coverage build","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.1.0-beta.7","dayjs":"^1.8.36","size-sensor":"^1.0.1","tslib":"^1.13.0"},"devDependencies":{"@antv/gatsby-theme-antv":"^1.0.0-beta.4","@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-import":"^2.22.0","eslint-plugin-prettier":"^3.1.0","gatsby":"^2.24.63","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","limit-size":"^0.1.3","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.44.2","webpack-bundle-analyzer":"^3.9.0","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/**","!**/_template/**"],"testRegex":"/__tests__/.*-spec\\.ts?$"},"lint-staged":{"*.ts":["eslint --fix","prettier --write"],"*.md":["lint-md --fix"]},"limit-size":[{"path":"dist/g2plot.min.js","limit":"1.2 Mb"},{"path":"dist/g2plot.min.js","limit":"400 Kb","gzip":true}],"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":"c33b38c21fd9c51973cb839255a3ff2adb4ae070","bugs":{"url":"https://github.com/antvis/g2plot/issues"},"_id":"@antv/g2plot@2.0.0-beta.6","_nodeVersion":"14.8.0","_npmVersion":"6.14.7","dist":{"integrity":"sha512-taqKzINXPtS7tzahfCEGjawuQhXHd3glsXF13r7Qz/in1XInvq9q7ENp8Yi8ra8GydY735tr0xu5s0XC8Rh1CQ==","shasum":"946728557a48fd1b670a9a8d370c8de49bdf2ca8","tarball":"http://registry-npm.ywwl.com/@antv/g2plot/download/@antv/g2plot-2.0.0-beta.6.tgz","fileCount":841,"unpackedSize":6975754,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfbas1CRA9TVsSAnZWagAAy48P/jlvihPl5/5nUBBtTrp6\ns/HC0r2/DDTYUUb/SRBX803ZwLCdXwzlgXrC9NVimkioiZrbrZgfGHaT4845\n6P98Dv1YfDz8d3Wkjlt8oWJiZWfY3MowWqOqWfCaPGUwLR+hK+LTrbwUfeWS\noguiima+OmxH8rq6yXCydyrPVRKQYe0f5g9KduydEOHLOPb0HXbL4AZH17dL\nJZc6PH5/pBhuAuEhn9O5oVbDLUXkjIQKDQh0HIUEztipe7UaCXQFAvzcdMGw\neFpagMR5EbYo+vhIYjzHVW+jbq07zXcxkbtaUS6mH3rg1vIIHkZWZvNWKrUY\ncXCrMDPfnStRbRGyenmj9h2lWubIYCmP1SMQqEP/J8eE452NIu6C9knCmxfm\nKOKum8cPTClSqWqSzNAda8L5Hw+eU3aV3gWwleaHZMrVppDzzoOuRg5jseup\nV3k4N7ESHE3xmVyScl/DsgB12JeSbKu6rbOdsaLbs3UiiRH/EDcGOKNZaUzP\nn/6QfMWcfXb0pARapRP0o/T7c7NVZJEwMECj9/x5Gp0T7IqXlG2TWR/RRDYh\nRZRxnjbg14qb7boyumTqtgWDhGDeovw5SObh7NmsrVuuy1Mf7TtHd1MCjGsV\njH/REITcm2p5UHEv/ytYy/BRzu1Th8gT0RtpN1oBJ8E1dUm4Yi0nl+gYnKk5\nBcaq\r\n=+lod\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHZt6dIc3a2mFbM8CPVg3DUQvjmBB3+wmcg/bsvMHEyNAiEAvhmY3AsULyoRTwfDXotqlfak9jE8qImkXELKw/WzWHQ="}],"size":1688455,"noattachment":false,"key":"/@antv/g2plot/-/@antv/g2plot-2.0.0-beta.6.tgz"},"maintainers":[{"name":"kn9117","email":"1175863618@qq.com"},{"name":"chenluli","email":"chenluuli@gmail.com"},{"name":"winniexing","email":"wanyingxing@gmail.com"},{"name":"newbyvector","email":"vectorse@126.com"},{"name":"l1ud0ngq1","email":"lliudongqi@gmail.com"},{"name":"boyu.zlj","email":"boyu.zlj@antfin.com"},{"name":"wufenfen92","email":"747042796@qq.com"},{"name":"kasmine","email":"xinming002@gmail.com"},{"name":"zengyue","email":"yezengyue@gmail.com"},{"name":"bubkoo","email":"bubkoo.wy@gmail.com"},{"name":"panyuqi","email":"pyqiverson@gmail.com"},{"name":"ccnuzindex","email":"ccnuzindex@gmail.com"},{"name":"kopiluwaky","email":"wyy460342010@gmail.com"},{"name":"pomelo-nwu","email":"czynwu@gmail.com"},{"name":"afc163","email":"afc163@gmail.com"},{"name":"zqlu","email":"zqlu.cn@gmail.com"},{"name":"jeffy2012","email":"yuanjiefeng@gmail.com"},{"name":"neoddish","email":"neoddish@outlook.com"},{"name":"dengfuping","email":"dengfuping_develop@163.com"},{"name":"baizn","email":"576375879@qq.com"},{"name":"atool","email":"i@hust.cc"},{"name":"army8735","email":"army8735@qq.com"},{"name":"lzxue","email":"120635640@qq.com"},{"name":"elaine.q.10","email":"yilin.qyl@antfin.com"},{"name":"sakuya223","email":"360965398@qq.com"},{"name":"leungwensen","email":"leungwensen@gmail.com"},{"name":"dori","email":"418466938@qq.com"},{"name":"simaq","email":"sima.zhang1990@gmail.com"},{"name":"dxq613","email":"dxq613@gmail.com"}],"_npmUser":{"name":"kn9117","email":"1175863618@qq.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/g2plot_2.0.0-beta.6_1601022773256_0.0833949287371556"},"_hasShrinkwrap":false,"publish_time":1601022773598,"_cnpm_publish_time":1601022773598,"dist-tags":{"alpha":"3.0.0-alpha.1","beta":"2.4.32","latest":"2.4.35"}}