To select the parent of an on click event: .on('click', (data) => { d3.select(d3.event.target.parentNode).attr('class', 'new-class') } or ...
確定! 回上一頁