Browse Source

changed map

master
alicestrt 3 years ago
parent
commit
903a1d816f
  1. 6
      static/js/d3_map.js

6
static/js/d3_map.js

@ -4,12 +4,12 @@ var width = 700,
var svg = d3.select(".map_area").append("svg")
.attr("width", width)
.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()
.gravity(0.008)
.distance(200)
.charge(-40)
.distance(180)
.charge(-35)
.size([width, height]);

Loading…
Cancel
Save