!!!###!!!title=Custom Legend Interaction——VisActor/VChart demo!!!###!!!!!!###!!!description=Discrete legends provide data filtering interactions by default. If you need to customize the selection interaction, you can first turn off the `select` configuration of the `legend`. Then implement through events and state update APIs. This example demonstrates how to implement the interaction of hovering over a legend item to highlight the corresponding graphic element.!!!###!!!

Custom Legend Interaction

Name
Bar Chart
Target
Comparison
Distribution
Rank
Shape
Rectangle
Component
Legend

mobile

Discrete legends provide data filtering interactions by default. If you need to customize the selection interaction, you can first turn off the select configuration of the legend. Then implement through events and state update APIs. This example demonstrates how to implement the interaction of hovering over a legend item to highlight the corresponding graphic element.

PX
x
PX
%