Skip to content

Instantly share code, notes, and snippets.

@rivadeveira
Last active February 12, 2022 02:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rivadeveira/b4af5b06e243899850e0e7f07bc56d08 to your computer and use it in GitHub Desktop.
Save rivadeveira/b4af5b06e243899850e0e7f07bc56d08 to your computer and use it in GitHub Desktop.
<!DOCTYPE html>
<html>
<head>
<script src="http://d3js.org/d3.v2.min.js"></script>
</head>
<body></body>
</html>
<script type="text/javascript">
var svg = d3.select("body").append("svg")
.attr("width", window.innerWidth)
.attr("height", window.innerHeight)
.append('path')
.attr("d", d3.svg.symbol().type("triangle-up").size(500))
.attr("transform", function(d) { return "translate(" + 100 + "," + 100 + ")"; })
.style("fill", "red");
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment