D3 supports mouse events just the same as it supports everything else! Clicking on a data point works like this: rectangles.on('click' ...
確定! 回上一頁