### Example02 - Getting data
Built with blockbuilder.org
forked from jjelosua's block: d3intro_ex02
forked from jjelosua's block: d3intro_ex02
xxxxxxxxxx
<html>
<head>
<meta charset="utf-8">
<title>Intro D3js examples</title>
<script src="https://cdnjs.cloudflare.com/ajax/libs/d3/3.5.5/d3.min.js"></script>
<style>
body { margin:0;position:fixed;top:0;right:0;bottom:0;left:0; }
.existing {color: blue;}
.new {color: green;}
</style>
</head>
<body>
<h1>Intro D3js - example02</h1>
<!--<p> previous paragraph</p>-->
<script type="text/javascript">
var datos = [1,5,10,20,50];
//If we do this on the outside of the asynchronous function it may fail
//because the data is not loaded yer
d3.select("body").selectAll("p")
.data(datos)
.enter()
.append("p")
.text(function(d,i) {return "el valor es "+d;});
</script>
</body>
</html>
https://cdnjs.cloudflare.com/ajax/libs/d3/3.5.5/d3.min.js