Zsailer / nx_altair

Draw interactive NetworkX graphs with Altair
MIT License
224 stars 26 forks source link

nxa.draw_networkx_edges #20

Open ycjing opened 4 years ago

ycjing commented 4 years ago

Thanks for the great work! I would like to use nxa.draw_networkx_edges to draw edges with a clorbar, like the graph at https://stackoverflow.com/questions/22124793/colorbar-for-edges-in-networkx. However, I got the following error:

SchemaValidationError: Invalid specification
altair.vegalite.v4.schema.core.Scale, validating 'additionalProperties'
Additional properties are not allowed ('legend' was unexpected)

I would greatly appreciate it if you could help. Thank you!

Best, Yongcheng

T-Flet commented 5 months ago

This issue is fixed in my fork (which was originally made precisely to have a version with fixes from issues and PRs).

The fork has now been detached and released as its own library, altair-nx, because the original has been inactive since 2020 and because the fork diverged from it considerably after a full code-base rework and the implementation of new features (e.g. curved edges, self loops, and much greater customisability).