<!-- source is https://bl.ocks.org/mbostock/4060366 --> <!DOCTYPE html> <htm> <meta charset="utf-8"> <style> .links { stroke: #000; stroke-opacity: 0.2; } .polygons { fill: none; stroke: #000; } .polygons :first-child { fill: #f00; } .sites { fill: #000; stroke: #fff; } .sites :first-child { fill: #fff; } </style> <body> <svg width="960" height="500"></svg> <script src="https://d3js.org/d3.v4.min.js"></script> <script type="application/json" id="data"> { "clustering": [ { "cohesion_clusters": [ -10.224979204176277, -9.86676219444134, -1.2459418492874201, -2.737468158839746 ] } ] } </script> <script> var dataD = JSON.parse(document.getElementById('data').innerHTML); console.log(dataD); </script> </body> </html>
We use cookies to provide and improve our services. By using our site, you consent to our Cookies Policy. Accept Learn more