d3 を使用すると、次のことができます。
var labels = d3.select("div#labels").insert("svg:svg")
//....
次に、以下のコードで実行できます。
labels.selectAll("text")
//... act upon the selection...
しかし、firebug コンソールでは:
>>> labels.selectAll("text")
// produces: TypeError: labels.select is not a function
と:
>>> d3.labels.selectAll("text")
//produces: TypeError: d3.labels is undefined
なんで?