Built with blockbuilder.org
forked from anonymous's block: fresh block
| license: mit |
Built with blockbuilder.org
forked from anonymous's block: fresh block
| <!DOCTYPE html> | |
| <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> | |
| var svg = d3.select("body").append("svg"); | |
| svg.selectAll("circle") | |
| .data([32, 57, 112, 293, 123, 45]) | |
| .enter().append("circle") | |
| .style("stroke", "hotpink") | |
| .style("fill", "pink") | |
| .attr("cy", 60) | |
| .attr("cx", function(d, i) { return i * 100 + 30; }) | |
| .attr("r", function(d) { return Math.sqrt(d); }); | |
| </script> | |
| </body> |