add subtle background pattern
parent
f58360f852
commit
23b8651bf6
|
@ -17,3 +17,7 @@ line.link {
|
||||||
display: block;
|
display: block;
|
||||||
vertical-align: middle;
|
vertical-align: middle;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#chart {
|
||||||
|
background-image: url(gplaypattern.png);
|
||||||
|
}
|
||||||
|
|
|
@ -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; })
|
||||||
|
|
Binary file not shown.
After Width: | Height: | Size: 12 KiB |
Loading…
Reference in New Issue