Closed cuddle-cuddle closed 4 years ago
code:
layout = Layout( width="600", height="600",
#paddings=dict(left=300, right=300, top=50, bottom=50),
flex_flow='row wrap', overflow = 'visible',
border='1px solid black',
grid_auto_flow='row',
display='block'
)
flows = pd.read_csv('simple_fruit_sales.csv') flows['source'] = flows['source'].apply(lambda x: x + "\nblahblah\n100000\n") flows['target'] = flows['target'].apply(lambda x: x + " derpy derp derp") w = SankeyWidget(links=flows.to_dict('records'), layout=layout) w
Try this:
w = SankeyWidget(links=links, margins=dict(top=0, bottom=0, left=50, right=100))
Closing this now assuming that worked.
Long labels gets cut off. Sometimes I need long labels. I've been trying to get it to work all weekend. :'(
Thank you very much for helping!
for example, the image is produced by:
`layout = Layout( width="600", height="600",
margins=dict(left=300, right=300, top=50, bottom=50),
flows = pd.read_csv('simple_fruit_sales.csv') flows['source'] = flows['source'].apply(lambda x: x + "\nblahblah\n100000\n") flows['target'] = flows['target'].apply(lambda x: x + " derpy derp derp") w = SankeyWidget(links=flows.to_dict('records'), layout=layout) w `