Migrating d3.v3 to d3.v4 in circle force layout chart
问题 I have following circle force layout chart code using d3.v3 version.,It is working fine. how to modify version 3 to version 4 using following code <!DOCTYPE html> <html> <head> <title>bubble</title> <style> .domain { fill: none; stroke: #000; stroke-opacity: .3; stroke-width: 10px; stroke-linecap: round; } .halo { fill: none; stroke: #ddd; stroke-width: 8px; stroke-linecap: round; } .tick { font-size: 10px; } .selecting circle { fill-opacity: .2; } .selecting circle.selected { stroke: #f00; }