#StrongLoop StrongNode
Created
September 28, 2013 09:45
-
-
Save mschmulen/6740427 to your computer and use it in GitHub Desktop.
StrongLoop StrongNode
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<script type="text/javascript" src="http://mbostock.github.com/d3/d3.js?1.29.6"></script> | |
</head> | |
<body> | |
<script type="text/javascript"> | |
var svg = d3.select("body").append("svg:svg") | |
.attr("width", 960) | |
.attr("height", 500); | |
var text = svg.append("svg:text") | |
.attr("x", 480) | |
.attr("y", 250) | |
.attr("dy", ".35em") | |
.attr("text-anchor", "middle") | |
.style("font", "300 128px Helvetica Neue") | |
.text("StrongLoop Node"); | |
var bbox = text.node().getBBox(); | |
var rect = svg.append("svg:rect") | |
.attr("x", bbox.x) | |
.attr("y", bbox.y) | |
.attr("width", bbox.width) | |
.attr("height", bbox.height) | |
.style("fill", "#ccc") | |
.style("fill-opacity", ".3") | |
.style("stroke", "#666") | |
.style("stroke-width", "1.5px"); | |
</script> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment