toolkit/javascript/d3/examples/hello-world/selectAll-enter-add.html
changeset 47 c0b4a8b5a012
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/toolkit/javascript/d3/examples/hello-world/selectAll-enter-add.html	Thu Apr 10 14:20:23 2014 +0200
@@ -0,0 +1,20 @@
+<!DOCTYPE html>
+<html>
+  <head>
+    <title>Test - selectAll > enter > append</title>
+    <script type="text/javascript" src="../../d3.js"></script>
+  </head>
+  <body>
+    <span></span>
+    <script type="text/javascript">
+
+d3.select("body")
+  .selectAll("span")
+    .data(["Test", "passed."])
+    .text(function(d) { return d; })
+  .enter().append("span")
+    .text(function(d) { return d; });
+
+    </script>
+  </body>
+</html>