Trying to design a visualisation for a linear flow
-
-
Save kouphax/6182326 to your computer and use it in GitHub Desktop.
Workflow Visualisation
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> | |
<meta charset="utf-8"> | |
<style> | |
.link { | |
stroke: #000; | |
stroke-width: 1.5px; | |
} | |
.node { | |
fill: #000; | |
stroke: #fff; | |
stroke-width: 1.5px; | |
} | |
</style> | |
<body> | |
<script src="http://d3js.org/d3.v3.min.js"></script> | |
<script> | |
var area = d3.select("body") | |
.append("svg:svg") | |
.attr("width", 500) | |
.attr("height", 200); | |
area.append("svg:line") | |
.attr("x1", 40) | |
.attr("y1", 50) | |
.attr("x2", 450) | |
.attr("y2", 50) | |
.classed("line"); | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment