npm

Ready to take your JavaScript development to the next level? Meet npm Enterprise - the ultimate in enterprise JavaScript.Learn more »

react-d3-charts

1.0.46 • Public • Published

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:8080

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

install

npm i react-d3-charts

Downloadsweekly downloads

102

version

1.0.46

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability