Built with blockbuilder.org
xxxxxxxxxx
<head>
<meta charset="utf-8">
<script src="https://d3js.org/d3.v4.min.js"></script>
<style>
body { margin:0;position:fixed;top:0;right:0;bottom:0;left:0; }
</style>
</head>
<body>
<script>
// Feel free to change or delete any of the code you see in this editor!
var svg = d3.select("body").append("svg")
.attr("width", 960)
.attr("height", 500)
svg.append("rect")
.attr("width",960)
.attr("height",500)
.attr("fill", "skyblue")
var data = [{name: "A", perc1:30, perc2:80},
{name: "B", perc1:60, perc2:30},
{name: "C", perc1:10, perc2:26},
{name: "D", perc1:65, perc2:61}]
svg.append("text").attr("y",30).text(data[0].percl)
</script>
</body>
//
/*
svg.append("rect")
.attr("width", 1453)
.attr("width", 612)
.attr("fill", "red")
svg.append("circle")
.attr("cx",30)
.attr("cy",10)
.attr("r",259)
.attr("fill", "skyblue")
svg.append("text")
.attr("fill", "orange")
.attr("front-size", "28px")
.attr("id","ageCircle")
.attr("x",50)
.attr("y",100)
.text("text")
var player = {
firsName: "Enzo",
secondName:" Francescoli",
age:32
}
d3.select("#mytext").text(player.age)
d3.select("#ageCircle").text("r",age)
myarray= ["Enzo Francescoli", "Luis Suarez", "Alvaro Recoba"]
var num="12";
var div=13;
var result=num/div
d3.select("#mytext").text(result)
/*
https://d3js.org/d3.v4.min.js