2018-03-02发表Tech / FrontEnd几秒读完 (大约51个字) 次访问ChartJS鼠标移到图例上显示手形在Chart options中添加:123456789101112131415161718// 给图例加手势legend: { onHover: function(e) { e.target.style.cursor = 'pointer'; }},// 给图加手势hover: { onHover: function(e) { var point = this.getElementAtEvent(e); if (point.length) { e.target.style.cursor = 'pointer'; } else { e.target.style.cursor = 'default'; } }}ChartJS鼠标移到图例上显示手形https://www.imaegoo.com/2018/chartjs-pointer-cursor/作者iMaeGoo发布于2018-03-02更新于2018-03-02许可协议CC BY 4.0#jschartjs