NuCivic / react-nvd3

React component for NVD3 re-usable charting library
MIT License
136 stars 44 forks source link

Add responsive width / aspectRatio to dynamically generate height settings #51

Open starsinmypockets opened 8 years ago

starsinmypockets commented 8 years ago

We could use: chart.props.aspectRatio: .75 In render we could calculate: settings.height = componentWidth * props.aspectRation and pass to nvd3 chart for responsive sizing.

Sorry about the psuedocode... I'll try to submit a pull request for this if I have time.