これは私のコードで、月の名前を含む xaxis1 があります: January..December. 私は毎月の値を選択可能にしたいので、この関数を追加します:
d3.select(".xAxis1") //selecting xAxis1 division
.selectAll(".major") //select all the tiket defined on it
.on("click",clickMe) //applay the function on clik to each value
function clickMe(){alert("I've been clicked!")}
しかし、それは機能していませんか?何か案は?