codesuki / react-d3-components

D3 Components for React
http://codesuki.github.io/react-d3-components/example.html
MIT License
1.63k stars 206 forks source link

Grid Support #85

Open nhagen opened 8 years ago

nhagen commented 8 years ago

Is there an existing way to add grids, and if not, an idea of how difficult this would be to add or create a pull request for?

codesuki commented 8 years ago

This would be very cool to have and I think could be easily implemented. A way of doing it would be, make a component that gets scales or axes (not sure which is more useful here) and then output svg line elements. Maybe take parameters like grid size etc. to make it customizable. Then the component just needs to be embedded into the graphs. If the develop branch is ready it will be even easier to use the component.