could you tell me please, what should I insert into source code if I want to have same "stroke-with" attribute in circles on my web page? My application is here:
http://sodbtn.sk/json/json8/index2.html. When I zoom the map, the borders are with same stroke-width, and the same I wish append to the bubbles. I have tried some possibilities, but nothing was successfull. Thank you very much.
var zoom = d3.behavior.zoom()
.on("zoom",function() {
g.attr("transform","translate("+
d3.event.translate.join(",")+")scale("+d3.event.scale+")")
.selectAll("path").style("stroke-width", 0.3 / zoom.scale() + "px" );
g.selectAll("circle")
.attr("d", path.projection(projection))
.attr("r", function(e) {
return radius(e.<?php echo $ukazovatel ?>)/zoom.scale();
})
g.selectAll("path")
.attr("d", path.projection(projection));
});
svg.call(zoom)