{"name":"@antv/g2plot","version":"1.0.5-beta","description":"An interactive and responsive charting library","keywords":["chart","plot","antv"],"author":{"name":"https://github.com/orgs/antvis/people"},"main":"lib/index.js","unpkg":"dist/g2plot.js","umd:main":"dist/g2plot.js","module":"esm/index.js","types":"lib/index.d.ts","homepage":"https://g2plot.antv.vision","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","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 --quiet ./src ./__tests__ ./demos","lint-fix":"run-s lint-fix:*","lint-fix:eslint":"eslint --ext .ts --fix ./src ./__tests__ ./demos","prettier":"prettier --write '**/*.{ts,js,css,json}'","lint-fix:examples":"prettier --write 'examples/**/*.{js,md}'","lint-staged":"lint-staged","test":"jest","test-live":"DEBUG_MODE=1 jest --watch ./__tests__/unit","coverage":"jest --coverage","ci":"run-s lint build coverage","compare-live":"node scripts/compare.js","demos-web":"webpack-dev-server --config webpack-dev.config.js --port 2046 --openPage demos/index.html","changelog":"conventional-changelog -i CHANGELOG.md -a -s","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/component":"~0.5.0","@antv/coord":"~0.2.4","@antv/dom-util":"~2.0.2","@antv/event-emitter":"~0.1.2","@antv/g-base":"~0.4.0","@antv/g-canvas":"~0.4.0","@antv/g-svg":"~0.4.0","@antv/g2":"~4.0.3","@antv/matrix-util":"~2.0.5","@antv/scale":"~0.3.1","@antv/util":"~2.0.7","d3-regression":"~1.3.4","resize-observer-polyfill":"^1.5.1","tslib":"^1.11.1","warning":"^4.0.3"},"devDependencies":{"@antv/gatsby-theme-antv":"^0.10.43","@babel/core":"^7.7.7","@babel/preset-env":"^7.7.7","@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.0.6","colors":"^1.4.0","conventional-changelog-cli":"^2.0.28","eslint":"^6.1.0","eslint-config-prettier":"^6.0.0","eslint-plugin-prettier":"^3.1.0","eslint-plugin-unicorn":"^18.0.1","event-simulate":"^1.0.0","gatsby":"^2.19.15","gh-pages":"^2.1.1","husky":"^4.2.3","jest":"^24.9.0","jest-electron":"^0.1.7","jest-extended":"^0.11.2","lint-staged":"^10.0.7","npm-run-all":"^4.1.5","nunjucks":"~3.2.0","prettier":"^2.0.1","puppeteer":"^3.0.0","react-i18next":"^11.0.1","resemblejs":"^3.2.3","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":{"globals":{"ts-jest":{"diagnostics":{"warnOnly":true}}},"runner":"jest-electron/runner","testEnvironment":"jest-electron/environment","setupFilesAfterEnv":["jest-extended"],"preset":"ts-jest","collectCoverage":false,"collectCoverageFrom":["src/**/*.{ts,js}","!**/node_modules/**","!**/vendor/**"],"testRegex":"/__tests__/.*-spec\\.ts?$"},"lint-staged":{"*.{js,css,json}":["prettier --write"],"*.ts":["eslint --fix","prettier --write"]},"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(document.getElementById('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## License\n\nMIT\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","readmeFilename":"README.md","gitHead":"348799b243522e0174bfceeda652af64abe27596","bugs":{"url":"https://github.com/antvis/g2plot/issues"},"_id":"@antv/g2plot@1.0.5-beta","_npmVersion":"6.4.1","_nodeVersion":"10.15.3","_npmUser":{"name":"sakuya223","email":"360965398@qq.com"},"dist":{"integrity":"sha512-i1y6Ic+5XtCpR6aFBO5YXfeKBOh+o6utRJvxfH9ZBNPaPBdkFf1fnBJMZznnh8ktyYrCTGNWRopUZnk7GswaPQ==","shasum":"7ba3b5aaac36a920f847ff3fb46c1abc84619c13","tarball":"http://registry-npm.ywwl.com/@antv/g2plot/download/@antv/g2plot-1.0.5-beta.tgz","fileCount":2029,"unpackedSize":11104323,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeotaHCRA9TVsSAnZWagAA4GAQAI53h8yUjdw0a6/vGIMp\nAE5W7pKTIwthNVhL4foVqIqdUf288epeVvBrNGYRkVvSlDlyMKSsKmQVuBsA\nqjh+LJUUhapSEkCbB5ZVw2l4LCRWg9sglkkFAiuArcDJmq+aCpUENmvZDdtN\nd3Gzaq9ksyYdokkHFhM2uOCpMw96MaRf9EK1RrIse+lAXXYbomT4vAAp9RB6\nKmtIVlxVJE4NPhaeNmxhhpq6IZhaUS7q7BOLs/u/UH9C3DJpxxLyG6Lt5ccq\n7MefxfKlArbVCULm92t2CiMx/2a2CUa9u0GcArqkh8JKRjKusSFd5hou6NiX\n1hpxoC0dKP2Zfxr4E4tG7f3oRVyS/HjThJ4oEVii/7PMzPjlJH84H1LP7ZWT\naF1fdkEBp91wnrWg7+SI6aLiqwwIIrF6m4KryUwUuoytWGkBVr8tgZDr18Dm\nmtaB3FNNqTl72SRjPBU1oN/syj1x7oGjde2rw1K/LvvyG0BXF64vgiVApSkW\nsk2H4UzSuqcSJDzVVpQhpuXZ/w8b5zdu+YpfI/kCoEvkVIqh/RENR33rQRmL\nSY7dA35V1GMlyG5vhtgrSteKzhCm/VNmAMACVeKK3fs7JnrZQIqxcM3I4Fvw\nK7AzrdRVUyWYp+6QfN/QJcwQQfZFgad8T3iO9a1eLsUGMRLtnkMCVUU/fNLf\nNEsq\r\n=Xe84\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDJnQgwJxpSrsWd+HVMCvttSdJKnqXyzrm4I+P62K2T7wIgfPnd9nUAA9RrnRJPgaOja5+fVF5AmkPlKCFzfoZJSQM="}],"size":2406249,"noattachment":false,"key":"/@antv/g2plot/-/@antv/g2plot-1.0.5-beta.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":"bubkoo.wy@gmail.com","name":"bubkoo"},{"email":"ccnuzindex@gmail.com","name":"ccnuzindex"},{"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":"leungwensen@gmail.com","name":"leungwensen"},{"email":"120635640@qq.com","name":"lzxue"},{"email":"neo.wang@vip.163.com","name":"neoddish"},{"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":"747042796@qq.com","name":"wufenfen92"},{"email":"yanyanwang93@gmail.com","name":"yanyan-wang"},{"email":"yezengyue@gmail.com","name":"zengyue"},{"email":"zqlu.cn@gmail.com","name":"zqlu"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/g2plot_1.0.5-beta_1587730054910_0.026575910725397556"},"_hasShrinkwrap":false,"publish_time":1587730055131,"_cnpm_publish_time":1587730055131,"dist-tags":{"alpha":"3.0.0-alpha.1","beta":"2.4.32","latest":"2.4.35"}}