<html>
<head>
<script src="http://d3js.org/d3.v3.min.js"></script>
</head>
<body>
<script>
var dset=[40,50,60];
var dvar=d3.select("body")
.append("svg")
.attr("width", 500)
.attr("height", 500);
var ba=dset.selectAll("rect")
.data(dset)
.enter()
.append("rect")
.attr("width",function(d){return d;})
.attr("hetight",50);
</script>
</body>
</html>
Kontext: In dieser Codezeile selectAll() Funktion funktioniert nichtKann die Ausgabe von d3.js-Code nicht abgerufen werden?
Statt 'dset.selectAll ("rect")' es hätte sein sollen 'dvar.selectAll ("rect")' – Cyril