jbkunst / jbkunst/d3wordcloud

tooltip location with Shiny

Open
#23 0 comments 2 reactions 0 assignees View on GitHub
Dominant language
R
Stars
63
Forks
15
PR merge metrics
No merged PRs in 30d

Description

I have a wordcloud in Shiny and the tooltips are always way below the cursor. It seems like it is a standard gap too.

I edited d3wordcloud.js to change the "top" setting in function mousemove, but that did not work.

```
function mousemove(d){
tooltip
.style("left", (d3.event.pageX + 0 ) + "px")
.style("top", (d3.event.pageY + **0**) + "px");
}
```

How can I have the tooltip hover properly like found here: http://rstudio-pubs-static.s3.amazonaws.com/133106_df80b0877cfe45f2b8f06c03c60ffcab.html#tooltips

Is there a different location where I can change the top setting?

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.