Home
<!doctype html> <html> <head> <script src="https://d3js.org/d3.v4.min.js"></script> </head> <body> <p> </p> <script> var myData = 100; var p = d3.select("body") .selectAll("p") .data(myData) .text(function (d, i) { return d; }); </script> </body> </html>
Result: