{"name":"@antv/g2plot","version":"0.1.0-beta.4","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":"b5c42dc0f19149020638f5badd8a600419ee359d","bugs":{"url":"https://github.com/antvis/g2plot/issues"},"_id":"@antv/g2plot@0.1.0-beta.4","_npmVersion":"6.4.1","_nodeVersion":"10.15.3","_npmUser":{"name":"sakuya223","email":"360965398@qq.com"},"dist":{"integrity":"sha512-+Zn/cCH1bxbdIUfCIQqazQsjiiAGbIQTSb0HOyZjN1qbLCPemKxs5PH+nCy7mLYyVft1CdfQqGtnzUU0vYRA/g==","shasum":"ddab3683c49b43b4170664e80bc77db13a8162c9","tarball":"http://registry-npm.ywwl.com/@antv/g2plot/download/@antv/g2plot-0.1.0-beta.4.tgz","fileCount":1157,"unpackedSize":5212541,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdxTA5CRA9TVsSAnZWagAAkQEP/2DQ02NuPjeh8Er7og7b\nmGRPbv0phsgb1OwgAxdW8rnDvvgZ8oGe/6lZOF5q0PQA+X3Nu1ZXeg2c/0f0\nqSTBs+npBdtMpgenHs6DuGxkEpc9kvV8plKCq5pFfctee8/Z5CC5VQS4oc4/\ny792Wnf/kQIbu2kYPZl1F7PDeZO8ZPtD6vOzuEGBX7zvXdsSuKQgAhH6SStj\nkTG79fNXmBZoXsCTcn6Pi/Sdlvxis0Jk02mV2LAEO3zVa0JWpccJIMboQ5xN\nQS3kc5iF3ero7IymITq++/1kPch/FYnGMP17bGmrFciNUUuFVbRvFNeGJj0k\nnomMZ3UceDposAuvCVB6CptadGfpNvGYJkQoybQzwiaYdoXE923X4AhGbd8Z\nlVGbG6QXzgdw61Z7fOgk3UIIo/4Ohl5tw8FefFvSnxYLKS3LsN1+/50OWcDu\n/l1Rwdt562WYZm5zu2FNcaeA1iDCGKgox9RwfAxOTobjLBhS+EBQwM0TguIZ\nkafGvO8/XtKnmyO31ipSU18izOu67j89R8diZtMo3ji8LfPM8UwhWEw1GE1B\nGGlRmtLJIqDiIATjYnbKXfxO425wKrysOb2MdwsSVnUnV4F7O7aow+X0wGsK\n0C8X4zIyXxLg8z3ci9ZCMeFF8f1nAdbgnPWvcGL1pxLQ0gHyF5ug7ire9yxz\nxKJS\r\n=XCs8\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEqynOW0A2kQIxB3rVoTb9rjgX/9nEGnLYykHJeuSeVkAiAhymYtTOXA31Eb9cDugnCJYVa820zxNoLD9ivfvd1rTg=="}],"size":1260102,"noattachment":false,"key":"/@antv/g2plot/-/@antv/g2plot-0.1.0-beta.4.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.4_1573204024915_0.7271614095365107"},"_hasShrinkwrap":false,"publish_time":1573204025128,"_cnpm_publish_time":1573204025128,"dist-tags":{"alpha":"3.0.0-alpha.1","beta":"2.4.32","latest":"2.4.35"}}