Skip to content

[Bug] In dark mode, the graph-circular's nodes do not use option.color for rendering colors. #18910

@thep0y

Description

@thep0y

Version

5.4.2

Link to Minimal Reproduction

https://echarts.apache.org/examples/zh/editor.html?c=graph-circular-layout

Steps to Reproduce

  1. Add a color array:

    var color = [
      "#E91E63", 
      "#03A9F4",
      "#4CAF50",
      "#9C27B0",
      "#FFC107",
      "#673AB7",
      "#009688",
      "#FF5722",
      "#795548",
      "#607D8B",
      "#FFEB3B",
      "#2196F3",
      "#8BC34A",
      "#CDDC39",  
      "#FF9800",
      "#9E9E9E",
      "#de7a74",
      "#00BCD4",
      "#3F51B5"
    ]
  2. Set option.color to color:

    option.color = color
  3. Switch to dark mode

Current Behavior

In dark mode, the node colors does not use the custom option.color.

Expected Behavior

In both dark mode and light mode, the nodes should use the colors from option.color.

Environment

- OS: macOS Ventura
- Browser: Safari 16.5.2, Firefox 102.13.0esr, and Edge 114.0.1823.82
- Framework: React@18

Any additional comments?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugenThis issue is in EnglishpendingWe are not sure about whether this is a bug/new feature.

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions