I'm trying to change the cursor to an hourglass while doing some processing with d3.js.
I have tried this source:
var chart = d3.select("body")
.append("svg:svg")
.attr("width", w)
.attr("height", h)
.attr("id","chart")
.attr("class","chart");
chart.style('cursor','wait');
The code below supplied by Anko changes the cursor but raised another problem: The change is not done until my function is done. But that is another question.
d3.select("body").style("cursor", "wait");