Skip to content

Allow style control for "de-emphasized" nodes (or their mask) #13147

@hoshmn

Description

@hoshmn

What problem does this feature solve?

I would like to use focusNodeAdjacency, but the "non-focused" nodes are too transparent. I can currently specify itemStyles for 'emphasis' nodes; it would be great if I could also specify itemStyles for 'deemphasis' (downplay?) nodes (or the mask that goes over them).

What does the proposed API look like?

series: [{
  name: 's1',
  ...
  itemStyle: {
    emphasis: { ... } // exists
    downplay: { // proposed
      maskOpacity: 0.4 // could either allow specifying the opacity of the mask over the non-focused nodes
      color: 'rgba(0, 0, 0, 0.4)' // or setting the node color/styles directly (though this would be less helpful on its own, as node colors may vary across the series)
    }
  }
}]

Metadata

Metadata

Assignees

No one assigned

    Labels

    enThis issue is in Englishnew-featurestaleInactive for a long time. Will be closed in 7 days.

    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