Could you tell me why after declrar the variables "x " and "y", the tags " svg " and all that follows it along the code no longer appears in the inspector my web browser?
When I remove the variables just mentioned , the " svg " tag and its " id = bar" atributes appear correctly with all that follows in the code.
------------- the code: ------------
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<script src="./scripts/d3/d3.min.js"></script>
<script type="./scripts/d3js.js"></script>
<link rel="stylesheet" type="text/css" href="./styles/d3css.css">
<script type="text/javascript">
var data = [213,20,60,232,150,74,110,39];
var x = d3.scale.linear()
.domain([0, data.length])
var y = d3.scale.linear()
.domain([0, d3.max(data)])
var svg = d3.select("body").append("svg")
.attr("x", function(d,i){
.attr("height", function(d,i){
------------ THAK YOU / Greetings from Mexico City -------