Skip to content

liamondrop/d3-react-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

d3-react-demo

Quick and dirty exercise, filling in some of the implementation details omitted from this article.

Also demonstrates interesting bits and pieces, like bucketing messy time series data into even chunks (e.g. hours), and how to generate bar widths on time scales, which D3 forgot(?) to include. Uses AmpersandJS's "Rest Collection" as a data store.

npm install gets all your dependencies.

npm start fires up browserify, parses the JSX and ES6, bundles up the modules, watches for changes.

Note that you'll need some kind of basic http server for this to work, as the chart data is called via XMLHTTPRequest. That has been left as an exercise for the reader, atm.

*TODO: Add tooltips. Flux?

About

Reusable, configurable D3 chart component in ReactJS demo

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published