abbasikov / react-d3-charts

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

react-d3-charts

A D3 charting library for React

  • Line charts, Bar charts, Sparkline Charts, Donut Charts, Pie Charts, Node Charts, and Area Charts (more are coming soon)
  • ES6 support
  • Grid lines
  • Legends
  • Tooltips
  • Tests!
  • Demo app

installation

$ npm install react-d3-charts

usage

Check out the demo

$ npm run demo
$ open http://localhost:3000

There also tests that you should probably look at.

code layout

The es6 source code is in the /src directory.

The published code is transpiled from /src to the /lib directory by running the build task (see below).

The build task is automatically called when the module is published (see package.json -> scripts -> prepublish).

The root index.js imports code from the /lib directory allowing end-users to seamlessly use the module without requiring babel or some other transpiler.

tasks

run the tests

$ npm test

generate test coverage report

$ npm test --coverage

build the module for distribution

$ npm run build

resources

About

License:MIT License


Languages

Language:JavaScript 99.9%Language:Shell 0.1%