diagnostics/d3/view: added chord viewer hash

This commit is contained in:
Juan Batiz-Benet 2015-01-14 09:21:37 -08:00
parent b9f828e1e3
commit dd409fb151
2 changed files with 4 additions and 2 deletions

View File

@ -55,7 +55,7 @@ d3.json(hash, function(error, data) {
.attr("dy", ".31em")
// .attr("text-anchor", function(d) { return d.x < 180 ? "start" : "end"; })
// .attr("transform", function(d) { return d.x < 180 ? null : "rotate(180)"; })
.text(function(d) { return truncate(d.name, 16); });
.text(function(d) { return d.name; });
var p = projection
var link = svg.selectAll(".link")

View File

@ -8,7 +8,9 @@ cat >"$file"
hash=$(ipfs add -q "$file" </dev/null | tail -n1)
# this viewer is the hash of go-ipfs/diagnostics/d3/viewer.html
viewer="QmaY6Lq9MEhDfWUc1VfHcu9aLWSyvi4VDLvWQXLoVZ4Mau"
force="QmaY6Lq9MEhDfWUc1VfHcu9aLWSyvi4VDLvWQXLoVZ4Mau"
chord="QmVGcat7ieYqf8mwcvwACbJstCRH8m8k2Yyt2qhuFEMoAz"
viewer="$chord"
# the ipfs gateway to use
gatewayHTTP="http://ipfs.benet.ai:8080"