react-d3 / react-d3-basic

Basic d3 charts in React.js, only include: line, bar, pie, scatter, area charts.
http://reactd3.org/docs/basic
221 stars 117 forks source link

Allow passing down of react-d3-core props from parent charts #26

Closed lord-xeon closed 8 years ago

lord-xeon commented 8 years ago

I'd like to format the x & y axis of my LineChart, but the built in LineChart module doesn't pass anything into those components. This makes setting up my own custom charts more difficult as I have to piece together what I want to display.

chilijung commented 8 years ago

@lord-xeon, all the props you set to x, y axis will be passed to xaxis and yaxis.

I'll clone the props and send to it's children

https://github.com/react-d3/react-d3-shape/blob/master/src/chart.jsx#L87-L114