source: Dev/trunk/d3/examples/hello-world/selectAll-enter-add.html @ 76

Last change on this file since 76 was 76, checked in by fpvanagthoven, 14 years ago

d3

File size: 426 bytes
Line 
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
11d3.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>
Note: See TracBrowser for help on using the repository browser.