changed map
This commit is contained in:
parent
fc4987780f
commit
903a1d816f
6
static/js/d3_map.js
vendored
6
static/js/d3_map.js
vendored
@ -4,12 +4,12 @@ var width = 700,
|
|||||||
var svg = d3.select(".map_area").append("svg")
|
var svg = d3.select(".map_area").append("svg")
|
||||||
.attr("width", width)
|
.attr("width", width)
|
||||||
.attr("height", height)
|
.attr("height", height)
|
||||||
.attr("viewBox", `${-width/1.7} ${-height/1.6} ${width*2.3} ${height*2.2}`);
|
.attr("viewBox", `${-width/1.7} ${-height/1.8} ${width*2.3} ${height*2.2}`);
|
||||||
|
|
||||||
var force = d3.layout.force()
|
var force = d3.layout.force()
|
||||||
.gravity(0.008)
|
.gravity(0.008)
|
||||||
.distance(200)
|
.distance(180)
|
||||||
.charge(-40)
|
.charge(-35)
|
||||||
.size([width, height]);
|
.size([width, height]);
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user