ipysankeywidget icon indicating copy to clipboard operation
ipysankeywidget copied to clipboard

Cannot change height in Internet Explorer

Open ricklupton opened this issue 7 years ago • 0 comments

Reported by Mike E: changes in height do not affect size of widget in Internet Explorer.

links = [
    {'source':'a_','target':'a','value':0},
    {'source':'a_','target':'b','value':4811.5},
    {'source':'a_','target':'c','value':6809},
    {'source':'b_','target':'a','value':3528.5},
    {'source':'b_','target':'b','value':0},
    {'source':'b_','target':'c','value':1307},
    {'source':'b_','target':'d','value':1342},
]

layout = Layout(width="300", height="100")
def sankey(margin_top=10, **value):
    """Show SankeyWidget with default values for size and margins"""
    return SankeyWidget(layout=layout, scale=0.001,
                        margins=dict(top=margin_top, bottom=0, left=100, right=100),
                        **value)
sankey(links=links)

ricklupton avatar Jan 23 '18 16:01 ricklupton