plainheart commented on issue #21025: URL: https://github.com/apache/echarts/issues/21025#issuecomment-2964628055
> _legendSelect_, _legendUnSelect_, _legendToggleSelect_ do **not** seem to work for legend components I just noticed these actions are commonly for a single item but not the whole legend component, and the same legend item name will be shared among multiple series, it doesn't make sense to use `legendName`/`legendId`/`legendIndex` when dispatching such actions. Maybe they should be removed from the legend action document. > _legendAllSelect_ and _legendInverseSelect_ work for legend components Yes. This is why I opened #20129. > BTW, _legendName_ assumes a legend name, but name is missing in [legend API](https://echarts.apache.org/en/option.html#legend) You are right. It has been missing from the documentation for a long time. But `legendId` and `legendIndex` should be enough for most scenarios. I will consider removing it from the documentation to avoid potential confusion. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
