Juan José Rodríguez
2021-08-31 071984a12d1c7887d0ef41b206e01bc5afefb95d
layouts/partials/graph.html
@@ -1,4 +1,5 @@
<script src="https://cdn.jsdelivr.net/npm/d3@6"></script>
<h3>Interactive Graph</h3>
<div id="graph-container"></div>
<style>
    :root {
@@ -125,7 +126,7 @@
    .attr("fill", color)
    .style("cursor", "pointer")
    .on("click", (_, d) => {
      window.location.href = d.id;
      window.location.href = {{.Site.BaseURL}} + d.id;
    })
    .on("mouseover", function (_, d) {
      d3.selectAll(".node")