D3-graph-gallery
D3-graph-gallery copied to clipboard
Typo in Highlight links in arc diagram
In the code section in page https://www.d3-graph-gallery.com/graph/arc_highlight.html, I think there is a typo:
// Add the highlighting functionality nodes .on('mouseover', function (d) { // Highlight the nodes: every node is green except of him nodes.style('fill', "#B8B8B8") d3.select(this).style('fill', '#69b3b2')
It should be every node is grey except of him
since the highlighted node is in green while the other nodes are in grey.
Hmm, I still see this error even though the PR has been merged 🤔
Interesting... My merge request changed the comment in arc.html. It appears that there are 2 other HTML files with the same comment: arc_highlight.html, and arc_template.html.
I'm not sure how these files relate to each other but perhaps the comments should be changed in those 2 as well?