add subtle background pattern

alfred-data
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; display: block;
vertical-align: middle; vertical-align: middle;
} }
#chart {
background-image: url(gplaypattern.png);
}

View File

@ -42,7 +42,7 @@ d3.json("nodes.json", function(json) {
.data(json.links) .data(json.links)
.enter().append("line") .enter().append("line")
.attr("class", "link") .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("x1", function(d) { return d.source.x; })
.attr("y1", function(d) { return d.source.y; }) .attr("y1", function(d) { return d.source.y; })
.attr("x2", function(d) { return d.target.x; }) .attr("x2", function(d) { return d.target.x; })

BIN
html/gplaypattern.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB