There are several pieces of data in the echarts legend. Now I want two of the legends to prohibit clicking. How can I achieve this?

clipboard.png

now that there are 5 curves, how do I want the last two legends to disable clicks?
wait online!

Mar.28,2021

add the following two lines of code to the css of the prohibited legend, which is equivalent to the disabled effect. You can also try to see if your tag supports the disabled attribute.

pointer-events:none;
cursor:default
Menu