notes links invisible fix
All checks were successful
Updates the graph by copying the updated files in the right directory / build-and-deploy (push) Successful in 3s
All checks were successful
Updates the graph by copying the updated files in the right directory / build-and-deploy (push) Successful in 3s
This commit is contained in:
parent
ecff506675
commit
1709911051
1 changed files with 9 additions and 1 deletions
|
|
@ -117,11 +117,19 @@ function update(source) {
|
||||||
);
|
);
|
||||||
})
|
})
|
||||||
.append("svg:text")
|
.append("svg:text")
|
||||||
.attr("x", 80) // Fixed position - adjust this number as needed
|
.attr("x", function (d) {
|
||||||
|
// Get the sibling text element (the node name) and calculate position
|
||||||
|
var nameText = this.parentNode.previousSibling.querySelector("text");
|
||||||
|
if (nameText) {
|
||||||
|
return 10 + nameText.getComputedTextLength() + 5; // 5px gap
|
||||||
|
}
|
||||||
|
return 80; // fallback
|
||||||
|
})
|
||||||
.attr("dy", ".35em")
|
.attr("dy", ".35em")
|
||||||
.attr("text-anchor", "start")
|
.attr("text-anchor", "start")
|
||||||
.text("[Notes]")
|
.text("[Notes]")
|
||||||
.style("fill", "brown")
|
.style("fill", "brown")
|
||||||
|
.style("font-size", "0.85em") // Smaller font
|
||||||
.style("fill-opacity", 1e-6)
|
.style("fill-opacity", 1e-6)
|
||||||
.style("text-decoration", "underline");
|
.style("text-decoration", "underline");
|
||||||
// END OF NEW CODE
|
// END OF NEW CODE
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue