Skip to content

node_color cannot use altair.Color type #26

@HHammond

Description

@HHammond

👋🏻 I'm running into an issue when trying to draw a NetworkX graph with Altair.

I'm trying to render a DAG with colored nodes, but the color parameter does not accept alt.Color which would be useful for situations where not all categories have data.

The fix would be to update this if statement to accept the altair.Color type.

https://github.com/Zsailer/nx_altair/blob/master/nx_altair/draw_altair.py#L92-L94

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions