{"maintainers":[{"name":"dieber","email":"451120068@qq.com"}],"dist-tags":{"latest":"0.0.2"},"author":{"name":"Dieber"},"description":"D3.js based Modular Charting Library by Eventbrite mod by Dieber","readme":"# Britecharts\n\n[![Britecharts Logo][36]][31]\n\n> Britecharts is a client-side **reusable Charting Library** based on [D3.js v4][1] that offers easy and intuitive use of charts and components that can be composed together to create amazing visualizations.\n\n[![Build Status](https://travis-ci.org/eventbrite/britecharts.svg?branch=master)](https://travis-ci.org/eventbrite/britecharts)\n[![npm version](https://badge.fury.io/js/britecharts.svg)](https://badge.fury.io/js/britecharts)\n[![Bower version](https://badge.fury.io/bo/britecharts.svg)](https://badge.fury.io/bo/britecharts)\n[![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://opensource.org/licenses/Apache-2.0)\n\nBritecharts [components][32] have been written in ES2016 with a Test Driven methodology, so they are **fully tested**, and we are committed to keeping them that way.\n\n## Key Features\n\n- Reusability\n- Composability\n- Great design\n\n## Usage\n\nThe typical use of Britecharts involves creating a chart using its simple API, then rendering it on a container which has previously had data applied to it. The code will look like this:\n\n    barChart\n        .width(500)\n        .height(300);\n\n    barContainer.datum(dataset).call(barChart);\n\n## API\n\nAll the components expose some **common API methods** like width, height, and margin. Additionally, each chart or component can expose specific methods you can find in the documentation:\n\n - [API][25], [Demo][5] Line Chart\n - [API][22], [Demo][4] Bar Chart\n - [API][21], [Demo][6] Donut Chart\n - [API][38], [Demo][39] Stacked Bar Chart\n - [API][40], [Demo][41] Grouped Bar Chart\n - [API][23], [Demo][18] Brush Chart\n - [API][29], [Demo][7] Sparkline Chart\n - [API][30], [Demo][8] Stacked Area Chart\n - [API][28], [Demo][11] Step Chart\n - [API][26], [Demo][4] Mini Tooltip \n - [API][27], [Demo][5] Tooltip \n - [API][24], [Demo][6] Legend \n\n## Installation\n\nBritecharts components are distributed in **UMD modules**, each one exposing a D3.js component written with the [Reusable API pattern][3]. To use any of the Britecharts modules, you will need to require the chart in your JS file using AMD/CommonJS modules or adding a script tag with the `src` pointing to the file. You would also need to load the [d3-selection][37] submodule to select the chart container.\n\n```\n   npm install britecharts d3-selection\n```\n\nYou can also load Britecharts from our [CDN][cdnHome] as we do in this [demo][cdnDemo] page or play around in our [JSBin][jsbinSandbox] and [CodePen][codepenDemos] demo projects.\n\nThey also provide some minimal CSS styling, that can be loaded independently or as a bundle. Check our [Getting Started Guide][gettingStarted] to see more options.\n\n## See Also\n- [Documentation Homepage][31]\n- [Getting Started Guide][gettingStarted]\n- [Contributing Guide][35]\n- [Github Repo][33]\n- [Bar Chart Tutorial][screenCast][Video]\n- [Release Notes][13]\n\n## Roadmap\nThis project is in active development. You can check our [plans for the next release][release3Project] to see what's coming, and vote for your favorite [proposals][proposals] on the issues page.\n\nTo give your feedback, you can open a new issue. You can also find us in the [D3.js slack group][d3Slack], in the **#britecharts** channel. If you want to help, you can check the [contributing][35] guide. \n\nIf you work with Angular, check out [ngx-britecharts][angularWrapper] and their [demos][angularWrapperDemos]. We are also preparing a wrapper for React, and we will be talking about it on our [twitter][twitter]. \n\n## Acknowledgments\n\n[Sun Dai][sunsDribble] designs Britecharts, and two books inspired the code, [Developing a D3.js Edge][19] and [Mastering D3.js][20]. It also leveraged a significant number of examples and articles from the [D3.js][1] community overall.\n\n## License\n\nCopyright 2017 Eventbrite\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n[https://www.apache.org/licenses/LICENSE-2.0][14]\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n\nRead more in the [license document][15]\n\n\n[1]: https://d3js.org/\n[2]: https://webpack.github.io/\n[3]: https://bost.ocks.org/mike/chart/\n[4]: https://eventbrite.github.io/britecharts/tutorial-bar.html\n[5]: https://eventbrite.github.io/britecharts/tutorial-line.html\n[6]: https://eventbrite.github.io/britecharts/tutorial-donut.html\n[7]: https://eventbrite.github.io/britecharts/tutorial-sparkline.html\n[8]: https://eventbrite.github.io/britecharts/tutorial-stacked-area.html\n[9]: https://eventbrite.github.io/britecharts/tutorial-stacked-area.html\n[10]: https://eventbrite.github.io/britecharts/tutorial-donut.html\n[11]: https://eventbrite.github.io/britecharts/tutorial-step.html\n[12]: https://nodejs.org/en/download/\n[13]: https://github.com/eventbrite/britecharts/releases\n[14]: https://www.apache.org/licenses/LICENSE-2.0\n[15]: https://github.com/eventbrite/britecharts/blob/master/LICENSE.md\n[16]: https://github.com/eventbrite/britecharts/issues\n[17]: https://github.com/babel/babel\n[18]: https://eventbrite.github.io/britecharts/tutorial-brush.html\n[19]: https://bleedingedgepress.com/our-books/developing-a-d3-js-edge/\n[20]: https://www.packtpub.com/web-development/mastering-d3js\n[21]: https://eventbrite.github.io/britecharts/module-Donut.html\n[22]: https://eventbrite.github.io/britecharts/module-Bar.html\n[23]: https://eventbrite.github.io/britecharts/module-Brush.html\n[24]: https://eventbrite.github.io/britecharts/module-Legend.html\n[25]: https://eventbrite.github.io/britecharts/module-Line.html\n[26]: https://eventbrite.github.io/britecharts/module-Mini-tooltip.html\n[27]: https://eventbrite.github.io/britecharts/module-Tooltip.html\n[28]: https://eventbrite.github.io/britecharts/module-Step.html\n[29]: https://eventbrite.github.io/britecharts/module-Sparkline.html\n[30]: https://eventbrite.github.io/britecharts/module-Stacked-area.html\n[31]: https://eventbrite.github.io/britecharts/\n[32]: https://eventbrite.github.io/britecharts/tutorial-kitchen-sink.html\n[33]: https://github.com/eventbrite/britecharts\n[gettingStarted]: https://eventbrite.github.io/britecharts/getting-started.html\n[35]: https://github.com/eventbrite/britecharts/blob/master/.github/CONTRIBUTING.md\n[36]: https://eventbrite.github.io/britecharts/img/logo-stripes-small.png\n[37]: https://github.com/d3/d3-selection\n[38]: https://eventbrite.github.io/britecharts/module-Stacked-bar.html\n[39]: https://eventbrite.github.io/britecharts/tutorial-stacked-bar.html\n[40]: https://eventbrite.github.io/britecharts/module-Grouped-bar.html\n[41]: https://eventbrite.github.io/britecharts/tutorial-grouped-bar.html\n[42]: https://scrimba.com/casts/cZWm2tb\n\n[cdnDemo]: https://eventbrite.github.io/britecharts/cdn.html\n[cdnHome]: https://cdn.jsdelivr.net/npm/britecharts/dist/\n[jsbinSandbox]: https://jsbin.com/wativun/3/edit?html,js,output\n[codepenSandbox]: https://codepen.io/Golodhros/pen/PprGeP?editors=1010\n[codepenDemos]: https://codepen.io/Britecharts/pens/forked/\n[screenCast]: https://scrimba.com/casts/cZWm2tb\n[angularWrapper]:  https://github.com/colapdev/ngx-britecharts\n[angularWrapperDemos]:  https://colapdev.github.io/ngx-britecharts/\n[twitter]: https://twitter.com/britecharts\n[sunsDribble]: https://dribbble.com/sundai\n[d3Slack]: https://d3js.slack.com/\n[proposals]: https://github.com/eventbrite/britecharts/issues?q=is%3Aissue+is%3Aopen+label%3Aproposal\n[release3Project]: https://github.com/eventbrite/britecharts/projects/2\n\n\n","users":{},"license":"Apache-2.0","versions":{"0.0.1":{"name":"britecharts-modder","version":"0.0.1","description":"D3.js based Modular Charting Library by Eventbrite mod by Dieber","main":"dist/bundled/britecharts.min.js","contributors":[{"name":"Dieber","email":"a451120068@gmail.com"}],"scripts":{"demos:compile":"webpack --progress --colors --env=demos","demos:watch":"webpack --watch --progress --colors --env=demos","demos:serve":"webpack-dev-server --content-base docs/ --inline --hot --port 8001 --open --env=demos","styles":"grunt lint && grunt sass && grunt cssmin","docs":"webpack --env=demos && yarn run styles && grunt docs","build":"yarn run _prod && yarn run _prodUMD && yarn run styles","untrack":"grunt untrack","release":"grunt release:patch","release:minor":"grunt release:minor","release:major":"grunt release:major","test":"karma start --env=test","test:travis":"karma start --single-run --browsers PhantomJS --env=test","_prod":"webpack --env=prod","_prodUMD":"webpack --env=prodUMD","watch":"grunt watch","sandbox:compile":"webpack --env=sandbox","sandbox":"webpack-dev-server --env=sandbox --hot","clean":"yarn cache clean && rm -rf node_modules","doot":"webpack --env=test"},"author":{"name":"Dieber"},"license":"Apache-2.0","dependencies":{"base-64":"^0.1.0","d3":"^4.10.0","lodash.assign":"^4.2.0"},"devDependencies":{"babel-core":"^6.25.0","babel-eslint":"^7.2.3","babel-istanbul":"^0.12.2","babel-loader":"^7.1.0","babel-preset-es2015":"^6.18.0","babel-preset-stage-0":"^6.5.0","brace":"^0.10.0","css-loader":"^0.28.4","grunt":"^1.0.1","grunt-babel":"^6.0.0","grunt-contrib-cssmin":"^2.2.1","grunt-contrib-requirejs":"^1.0.0","grunt-contrib-sass":"^1.0.0","grunt-contrib-watch":"^1.0.0","grunt-jsdoc":"^2.1.0","grunt-karma":"^2.0.0","grunt-release":"git://github.com/beevelop/grunt-release.git","grunt-reload":"^0.2.0","grunt-sass":"^2.0.0","grunt-sass-lint":"^0.2.0","grunt-shell":"^2.1.0","grunt-sync":"^0.6.2","ink-docstrap":"^1.3.0","istanbul-instrumenter-loader":"^3.0.0","jasmine-core":"^2.7.0","jasmine-jquery":"^2.0.6","jquery":"^3.1.1","jsdoc":"^3.5.4","json-loader":"^0.5.7","karma":"^1.7.0","karma-babel-preprocessor":"^6.0.1","karma-chrome-launcher":"^2.2.0","karma-coverage":"^1.1.1","karma-jasmine":"^1.0.2","karma-jasmine-jquery":"^0.1.1","karma-phantomjs-launcher":"^1.0.4","karma-sourcemap-loader":"^0.3.7","karma-webpack":"^2.0.5","load-grunt-tasks":"^3.5.2","moment":"^2.17.0","prismjs":"^1.6.0","pubsub-js":"^1.5.7","requirejs-plugins":"^1.0.2","sanitize-html":"^1.13.0","sass-loader":"^6.0.6","shelljs":"^0.7.8","sinon":"^3.0.0","style-loader":"^0.18.2","text":"github:requirejs/text","underscore":"~1.8.3","webpack":"^3.6.0","webpack-bundle-analyzer":"^2.9.0","webpack-dev-server":"^2.9.1","webpack-livereload-plugin":"^0.9.0","yargs":"^8.0.2"},"_id":"britecharts-modder@0.0.1","_npmVersion":"5.5.1","_nodeVersion":"8.9.2","_npmUser":{"name":"dieber","email":"451120068@qq.com"},"dist":{"shasum":"36dce5f59ab10973523e26c4889f2e2a0234b3aa","size":5310214,"noattachment":false,"tarball":"http://tools.bpmhome.cn:8082/nexus/repository/npm-lc/britecharts-modder/-/britecharts-modder-0.0.1.tgz"},"maintainers":[{"name":"dieber","email":"451120068@qq.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/britecharts-modder-0.0.1.tgz_1514388673437_0.49157856637611985"},"directories":{},"publish_time":1514388673736,"_hasShrinkwrap":false,"_cnpm_publish_time":1514388673736},"0.0.2":{"name":"britecharts-modder","version":"0.0.2","description":"D3.js based Modular Charting Library by Eventbrite mod by Dieber","main":"dist/bundled/britecharts.min.js","contributors":[{"name":"Dieber","email":"a451120068@gmail.com"}],"scripts":{"demos:compile":"webpack --progress --colors --env=demos","demos:watch":"webpack --watch --progress --colors --env=demos","demos:serve":"webpack-dev-server --content-base docs/ --inline --hot --port 8001 --open --env=demos","styles":"grunt lint && grunt sass && grunt cssmin","docs":"webpack --env=demos && yarn run styles && grunt docs","build":"yarn run _prod && yarn run _prodUMD && yarn run styles","untrack":"grunt untrack","release":"grunt release:patch","release:minor":"grunt release:minor","release:major":"grunt release:major","test":"karma start --env=test","test:travis":"karma start --single-run --browsers PhantomJS --env=test","_prod":"webpack --env=prod","_prodUMD":"webpack --env=prodUMD","watch":"grunt watch","sandbox:compile":"webpack --env=sandbox","sandbox":"webpack-dev-server --env=sandbox --hot","clean":"yarn cache clean && rm -rf node_modules","doot":"webpack --env=test"},"author":{"name":"Dieber"},"license":"Apache-2.0","dependencies":{"base-64":"^0.1.0","d3":"^4.10.0","lodash.assign":"^4.2.0"},"devDependencies":{"babel-core":"^6.25.0","babel-eslint":"^7.2.3","babel-istanbul":"^0.12.2","babel-loader":"^7.1.0","babel-preset-es2015":"^6.18.0","babel-preset-stage-0":"^6.5.0","brace":"^0.10.0","css-loader":"^0.28.4","grunt":"^1.0.1","grunt-babel":"^6.0.0","grunt-contrib-cssmin":"^2.2.1","grunt-contrib-requirejs":"^1.0.0","grunt-contrib-sass":"^1.0.0","grunt-contrib-watch":"^1.0.0","grunt-jsdoc":"^2.1.0","grunt-karma":"^2.0.0","grunt-release":"git://github.com/beevelop/grunt-release.git","grunt-reload":"^0.2.0","grunt-sass":"^2.0.0","grunt-sass-lint":"^0.2.0","grunt-shell":"^2.1.0","grunt-sync":"^0.6.2","ink-docstrap":"^1.3.0","istanbul-instrumenter-loader":"^3.0.0","jasmine-core":"^2.7.0","jasmine-jquery":"^2.0.6","jquery":"^3.1.1","jsdoc":"^3.5.4","json-loader":"^0.5.7","karma":"^1.7.0","karma-babel-preprocessor":"^6.0.1","karma-chrome-launcher":"^2.2.0","karma-coverage":"^1.1.1","karma-jasmine":"^1.0.2","karma-jasmine-jquery":"^0.1.1","karma-sourcemap-loader":"^0.3.7","karma-webpack":"^2.0.5","load-grunt-tasks":"^3.5.2","moment":"^2.17.0","prismjs":"^1.6.0","pubsub-js":"^1.5.7","requirejs-plugins":"^1.0.2","sanitize-html":"^1.13.0","sass-loader":"^6.0.6","shelljs":"^0.7.8","sinon":"^3.0.0","style-loader":"^0.18.2","text":"github:requirejs/text","underscore":"~1.8.3","webpack":"^3.6.0","webpack-bundle-analyzer":"^2.9.0","webpack-dev-server":"^2.9.1","webpack-livereload-plugin":"^0.9.0","yargs":"^8.0.2"},"_id":"britecharts-modder@0.0.2","_npmVersion":"5.5.1","_nodeVersion":"8.9.2","_npmUser":{"name":"dieber","email":"451120068@qq.com"},"dist":{"shasum":"3963c31b54b643324710ffc37b3a9f5b2e273173","size":5310218,"noattachment":false,"tarball":"http://tools.bpmhome.cn:8082/nexus/repository/npm-lc/britecharts-modder/-/britecharts-modder-0.0.2.tgz"},"maintainers":[{"name":"dieber","email":"451120068@qq.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/britecharts-modder-0.0.2.tgz_1514389691693_0.017561405897140503"},"directories":{},"publish_time":1514389692013,"_hasShrinkwrap":false,"_cnpm_publish_time":1514389692013}},"name":"britecharts-modder","time":{"modified":"2018-07-04T01:22:18.927Z","created":"2017-12-27T15:31:13.736Z","0.0.1":"2017-12-27T15:31:13.736Z","0.0.2":"2017-12-27T15:48:12.013Z"},"contributors":[{"name":"Dieber","email":"a451120068@gmail.com"}],"readmeFilename":"README.md"}