ricklupton / ipysankeywidget

IPython / Jupyter Sankey diagram widget
MIT License
174 stars 24 forks source link

Is there a way to increase figure size? #25

Closed mmeendez8 closed 6 years ago

mmeendez8 commented 6 years ago

I am using Chrome together with Jupyter and I am not able to increase the size of the diagram. I have deduced from here #18 that it must exist some way to do this. This is what I have tried and it is not working:

SankeyWidget(links=data.to_dict('records'), width=1000, height=900)

mmeendez8 commented 6 years ago

I am sorry I did not realize about the Layout class :) I will just leave here the solution anyway:

from ipywidgets import Layout

layout = Layout(width="1000", height="900")
SankeyWidget(links=data.to_dict('records'),layout=layout)
ricklupton commented 6 years ago

Glad you figured it out, and thanks for posting the solution here! If you have a minute, and would like to contribute, it would be great to add it to the README too so it's easier to find for others: edit README :book:

(just ask if you have any questions about this)