Skip to content

idan/d3light

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

D3light

A framework for building D3 components with ReactJS

Both D3 and React want to have their hands on the steering wheel when it comes to the DOM. This leads to one of two approaches:

  1. Generate the SVG DOM nodes using D3 in a React "leaf" component. React is effectively blind to the D3-generated DOM nodes.

  2. Generate the SVG DOM nodes using React, and use D3 as a math library for computing the properties of those elements.

D3light takes the latter approach, supplying a base React component with conventions for passing in data, as well as components for common SVG elements (g, line, rect, etc…) D3light codifies the ways in which new data affects the rendering of components, and sets up common listeners for things that trigger re-renders, like component dimension changes.

D3light is not a charting library for React, in the same sense that D3 is not a charting library but a visualization toolkit.

About

A framework for building D3 components with ReactJS

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published