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