Skip to content

the setting "groups" in vis_options seems not working #14

@timcypresswong

Description

@timcypresswong

Dear nx-vis-visualizer developer:

Thanks for offering such an convenient and useful visualization tool!
I have encountered a problem when customizing the vis_options using the groups option. Any customized changes in the groups option, e.g. shape, color do not change the apperance of the nodes, which keep the default setting (yellow, blue, red). The same problem also appears in your basic example 1, where the custom option is

{
    "nodes": {"font": {"size": 14}},
    "edges": {"smooth": {"enabled": True, "type": "dynamic"}},
    "groups": {
        "0": {"shape": "dot", "color": {"background": "lightcoral", "border": "red"}},
        "1": {"shape": "square", "color": {"background": "lightgreen", "border": "green"}}
    },
    "interaction": {"hover": True, "navigationButtons": True},
    "physics": {"enabled": True, "solver": "barnesHut"},
    "layout": {
        "randomSeed": 12345
    }
}

but the colors of the nodes remain yellow and blue.

Image

The version is 0.2.0 installed via pip

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