简体   繁体   中英

highchart legend lables does not take mouse events

Sorry to not include a fiddle as the highchart chart is tied tight to my application. Earlier the mouse events were getting tracked over the legends as well as the legend labels . For some reason these labels does not take the events anymore, rather it goes to the container holding the charts. 在此处输入图片说明

Any inputs?

Also when i try to inspect the above highlighted legend label, the parent container is highlighted instead of the label itself. The above problem is seen for other labels out of the plot area as well.

You can use custom-events extension which allows to catch this event on legend item.

legend: {
        itemEvents: {
            mouseover:function(){
                console.log(this);
            }
        }
    },

Example: http://jsfiddle.net/Utx8g/413/

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM