Skip to content

Hyperlinks in Plot.tree #2301

Answered by Fil
pwiner asked this question in Q&A
Mar 18, 2025 · 3 comments · 2 replies
Discussion options

You must be logged in to vote

You can use the href option:

Plot.tree(flare, {
  path: "name",
  delimiter: ".",
  href: ({name}) => `https://github.com/prefuse/Flare/blob/master/flare/src/${name.replaceAll(".", "/")}.as`,
  target: "_blank"
})

(paste this into https://observablehq.com/@observablehq/plot-tree-tidy to test)

Replies: 3 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by pwiner
Comment options

You must be logged in to vote
1 reply
@Fil
Comment options

Fil Mar 19, 2025
Collaborator

Comment options

You must be logged in to vote
1 reply
@Fil
Comment options

Fil Mar 20, 2025
Collaborator

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants