Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to make the sankey responsive, to adjust to div height? #27

Open
jeri-ina opened this issue Feb 12, 2018 · 2 comments
Open

How to make the sankey responsive, to adjust to div height? #27

jeri-ina opened this issue Feb 12, 2018 · 2 comments

Comments

@jeri-ina
Copy link

Hi, thank you for your tool it is awsome!

Is there a way to make the sankey responsive? to make it adjust to div height?

Thank you for your help.

@tamc
Copy link
Owner

tamc commented Feb 12, 2018

Only with javascript.

You will need to watch for changes in window size using javascript and then call

sankey.r.setSize(width, height) 

where sankey is the variable containing your Sankey() javascript.

@jeri-ina
Copy link
Author

Thank you!

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

No branches or pull requests

2 participants