| changeset 47 | c0b4a8b5a012 |
| 46:efd9c589177a | 47:c0b4a8b5a012 |
|---|---|
1 <!DOCTYPE html> |
|
2 <html> |
|
3 <head> |
|
4 <title>Test - selectAll > enter > append</title> |
|
5 <script type="text/javascript" src="../../d3.js"></script> |
|
6 </head> |
|
7 <body> |
|
8 <span></span> |
|
9 <script type="text/javascript"> |
|
10 |
|
11 d3.select("body") |
|
12 .selectAll("span") |
|
13 .data(["Test", "passed."]) |
|
14 .text(function(d) { return d; }) |
|
15 .enter().append("span") |
|
16 .text(function(d) { return d; }); |
|
17 |
|
18 </script> |
|
19 </body> |
|
20 </html> |