Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HTML overlay for nodes #201

Closed
dockstreet opened this issue Sep 6, 2017 · 1 comment
Closed

HTML overlay for nodes #201

dockstreet opened this issue Sep 6, 2017 · 1 comment

Comments

@dockstreet
Copy link

dockstreet commented Sep 6, 2017

Hi - is this simple to implement with visNetwork? or would extensive changes need to be made to support it?

almende/vis#3408 (comment)

@dockstreet dockstreet changed the title HTML overlays HTML overlay for nodes Sep 6, 2017
@bthieurmel
Copy link
Contributor

I think it's already possible....?

nodes <- data.frame(id = 1:3, label = "\uf286 <b>This</b> is an\n<i>html</i> <b><i>multi-</i>font</b> <code>label</code>'")
edges <- data.frame(from = c(1,2), to = c(1,3))

visNetwork(nodes, edges) %>%
  visNodes(font = list(multi = TRUE, face = 'FontAwesome', ital = list(mod = ''), 
                       bold = list(mod = ''))) %>%
  addFontAwesome()

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants