add subtle background pattern

This commit is contained in:
Nils Schneider 2012-06-03 14:31:46 +02:00
parent f58360f852
commit 23b8651bf6
3 changed files with 5 additions and 1 deletions

View file

@ -17,3 +17,7 @@ line.link {
display: block;
vertical-align: middle;
}
#chart {
background-image: url(gplaypattern.png);
}

View file

@ -42,7 +42,7 @@ d3.json("nodes.json", function(json) {
.data(json.links)
.enter().append("line")
.attr("class", "link")
//.style("stroke-width", function(d) { return Math.min(1, d.strength * 2); })
.style("stroke-width", function(d) { return Math.min(1, d.strength * 2); })
.attr("x1", function(d) { return d.source.x; })
.attr("y1", function(d) { return d.source.y; })
.attr("x2", function(d) { return d.target.x; })

BIN
html/gplaypattern.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB