-
Notifications
You must be signed in to change notification settings - Fork 154
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
Custom tooltip in gvisTimeline #34
Comments
Hi Whitney, The function gvisChart is not exported by googleVis, hence you have to rebuild the package yourself with your new function. I hope this helps. Regards Markus
|
Got it working. Thanks Markus. Post to follow. |
thx On Wed, Aug 31, 2016 at 2:24 PM, Markus Gesmann notifications@github.com
Whitney Kramer |
Can you help troubleshoot....
My goal is to add a custom tooltip to the gvisTimeline function.
I've modified your script to add tooltip as a parameter. However, when I run the modified function, I get the following error message "could not find function "gvisChart". I reloaded googleVis, but I get the same error message.
This is also an unsolved post on StackOverflow, so I'm reaching out to the expert!
Thanks in advance for any guidance.
gvisTimeline <- function(data, rowlabel="", barlabel="", tooltip="", start="",
end="", options=list(), chartid){
}
gvisCheckTimelineData <- function(data, rl, bl, tt, start, end){
}
require(timeline)
require(googleVis)
data(ww2)
ww2$Person <- gsub("\n" ," ", ww2$Person)
ww2$tooltip <- rep("Hello World",nrow(ww2))
plot(gvisTimeline(ww2, barlabel="Person", rowlabel="Group", tooltip = "tooltip",
start="StartDate", end="EndDate",
options=list(tooltip="{isHtml:'True'}"), chartid="ww2")
)
The text was updated successfully, but these errors were encountered: