Skip to content

Bug Report: viz:color attribute is ignored when providing rgba values #307

@LucaRhaus

Description

@LucaRhaus

Info

  • Gephi Lite version : 1.0.2
  • Operating system: macos Tahoe 26.3
  • Web browser: 147.0.4 (aarch64)

Steps to reproduce

  1. create a network graph with the viz:color attribute
  2. export the graph via write_gexf() in python
  3. import in gephi

Expected behavior:
Nodes should be colored as specified in the viz:color attribute. This works in the Gephi desktop version.

Actual behavior
All nodes are grey. viz:color attribute is ignored.

Workaround:
I noticed that when exporting from gephi lite to gexf, the viz:color attribute only has r, g, b values and not r, g, b, a.

gephi lite exports:
<viz:color r="242" g="92" b="5" />

networkx exports:
<viz:color r="242" g="92" b="5" a="1.0"/>

After deleting the alpha channel for each viz:color attribute, gephi lite correctly displays the color.

<nodes>
      <node id="INTERNATIONAL FREEDOM EDUCATIONAL FOUNDATION" label="INTERNATIONAL FREEDOM EDUCATIONAL FOUNDATION">
        <attvalues>
          <attvalue for="0" value="0"/>
          <attvalue for="1" value="thinktank"/>
          <attvalue for="2" value="USA"/>
          <attvalue for="3" value="north_america"/>
          <attvalue for="4" value="false"/>
          <attvalue for="5" value="false"/>
          <attvalue for="6" value="0.0"/>
          <attvalue for="7" value="0.0"/>
          <attvalue for="8" value="0.0"/>
          <attvalue for="9" value="0.0"/>
        </attvalues>
        <viz:size value="2.0"/>
        <viz:position x="-224.68001" y="106.58466"/>
        <viz:color r="10" g="157" b="0"/>
      </node>
...... 

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions