Skip to content

Instantly share code, notes, and snippets.

@kouphax
Forked from mbostock/.block
Last active December 20, 2015 19:19
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 kouphax/6182326 to your computer and use it in GitHub Desktop.
Save kouphax/6182326 to your computer and use it in GitHub Desktop.
Workflow Visualisation

Trying to design a visualisation for a linear flow

<!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