I have plotted scatterplot but i want to replace the tick labels only. It Should not replete again. I used forced directed scatterplot which requires integer for x and y axis, after plotting i want to replace the y-axis label. Here is the plunkerhttps://plnkr.co/edit/ufnBOwQEoTOrP1mUTKhC?p=preview
I want to replace just the names of d.sepalLength to d.name. alert shows correct value but they are not getting appended correctly on the y-axis. Added the below code to replace the tick labels. Please help
var yAxis = d3.svg.axis() .scale(y) .orient("left") .tickFormat(d3.extent(data, function(d) { alert(d.name);retu d.name; }));
