Custom Legend Interaction
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.