DiagrammeR
DiagrammeR copied to clipboard
Hide tooltip option
Love the package!
Usually I'm all for adding tooltips in my diagrams, but for some Shiny Apps, they can be distracting/unnecessary. I might just not be looking in the right places of the docs, but it would be super helpful to have the option of removing/hiding the default HTML tooltips on the Nodes, Edges, edge labels, etc.
Thanks for the feature request! It's a good idea. I'll take a look into whether tooltips can be suppressed at the Graphviz level or during a post process render stage (which really needs to be developed).
Solid - thanks! Some poking around on SO led me to a temporary fix w/ CSS:
svg { pointer-events: none; }
@krfurlong I'm running into a similar problem with a project at work right now. Where in the code did you put svg { pointer-events: none; }
?
Hey @chrisjohnholiday - sorry for not responding sooner. So in the UI section of my app.R
file, I have included some CSS style code. If you add this somewhere in the tags$head()
, should should be able to suppress them from the CSS:
ex.
ui <- navbarPage(title="example UI",
tabPanel(title="first Tab",
tags$head(
tags$style("svg { pointer-events: none;}")
#any other elements in the <head>
)
#any other elements in the tab UI
)
)