Skip to content
This repository has been archived by the owner on Jun 6, 2024. It is now read-only.

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

Open
starsinmypockets opened this issue Sep 1, 2016 · 0 comments

Comments

@starsinmypockets
Copy link

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant