Last active
August 29, 2015 14:16
-
-
Save ariellindo/0ab48a4222379dde9595 to your computer and use it in GitHub Desktop.
This file contains 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
var vis = d3.select("body").append("svg") | |
var pi = Math.PI; | |
var arc = d3.svg.arc() | |
.innerRadius(50) | |
.outerRadius(70) | |
.startAngle(-90 * (pi/180)) //converting from degs to radians | |
.endAngle(90 * (pi/180)) //just radians | |
vis.attr("width", "400").attr("height", "400") // Added height and width so arc is visible | |
.append("path") | |
.attr("d", arc) | |
.attr("fill", "red") | |
.attr("transform", "translate(200,200)"); | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment