Created
May 10, 2012 19:11
-
-
Save francois2metz/2655202 to your computer and use it in GitHub Desktop.
created by water, a live-coding editor (http://water.gabrielflor.it)
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
var chart = d3.select('svg'); | |
//chart.append("circle") | |
// .attr('r', 100) | |
// .attr('cx', 100) | |
// .attr('cy', 100); | |
chart.append("line") | |
.attr('x1', 200) | |
.attr('y1', 50) | |
.attr('x2', 200) | |
.attr('y2', 200) | |
.attr('stroke-width', 2) | |
.attr('stroke', 'black'); | |
chart.append("line") | |
.attr('x1', 200) | |
.attr('y1', 50) | |
.attr('x2', 200) | |
.attr('y2', 200) | |
.attr('stroke-width', 2) | |
.attr('stroke', 'black') | |
.attr('transform', 'rotate(250, 200, 200)'); | |
chart.append("line") | |
.attr('x1', 200) | |
.attr('y1', 50) | |
.attr('x2', 200) | |
.attr('y2', 200) | |
.attr('stroke-width', 2) | |
.attr('stroke', 'black') | |
.attr('transform', 'rotate(130, 200, 200)'); | |
chart.append("line") | |
.attr('x1', 200) | |
.attr('y1', 70) | |
.attr('x2', 70) | |
.attr('y2', 250) | |
.attr('stroke-width', 2) | |
.attr('stroke', 'gray') | |
chart.append("line") | |
.attr('x1', 200) | |
.attr('y1', 70) | |
.attr('x2', 257) | |
.attr('y2', 249) | |
.attr('stroke-width', 2) | |
.attr('stroke', 'gray') | |
chart.append("line") | |
.attr('x1', 70) | |
.attr('y1', 2) | |
.attr('x2', 257) | |
.attr('y2', 249) | |
.attr('stroke-width', 2) | |
.attr('stroke', 'gray') | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment