Comments (3)
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
On 29 Apr 2016, at 21:54, Whitney E Kramer [email protected] wrote:
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){my.type <- "Timeline" dataName <- deparse(substitute(data)) my.options <- list(gvis=modifyList(list(width=600, height=200),options), dataName=dataName, data=list(rowlabel=rowlabel, barlabel=barlabel,** tooltip=tooltip**, start=start, end=end, allowed=c("number", "string", "date", "datetime")) ) checked.data <- gvisCheckTimelineData(data, rl=rowlabel, bl=barlabel, **tt=tooltip**, start=start, end=end) output <- gvisChart(type=my.type, checked.data=checked.data, options=my.options, chartid=chartid, package="timeline") return(output)
}
gvisCheckTimelineData <- function(data, rl, bl, tt, start, end){
if(any(c(rl, bl, **tt**, start, end) %in% "")) return(data) else return(data[, c(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")
)—
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub
from googlevis.
Got it working. Thanks Markus. Post to follow.
from googlevis.
thx
On Wed, Aug 31, 2016 at 2:24 PM, Markus Gesmann [email protected]
wrote:
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
#34 (comment), or mute
the thread
https://github.com/notifications/unsubscribe-auth/AFBPl3KBtTNCFbSMeea_ands3PR5rDqlks5qlcbSgaJpZM4ITK1M
.
Whitney Kramer
Manager of Analytics and Insights
101 Tremont Street, 6th floor, Boston, MA 02108
m: 507.358.3600 • iorahealth.com
from googlevis.
Related Issues (20)
- blank page with Fruit data using gvisMotionChart HOT 3
- adding multiple color axes to gvisGeoChart HOT 2
- gvisAnnotatedTimeLine display aggregated trend on "RangeSelector" HOT 1
- BubbleChart with Fruits data, including a gradient color scale HOT 2
- Error: "Tried to unbox a vector of length 3" when I use gvisTreeMap in Shiny HOT 3
- gVisOrgChart HOT 2
- gVisOrgChart not displaying child nodes HOT 1
- gvisOrgChart formatting connection lines and node borders HOT 2
- gvisOrgChart idvar with value and formatted value HOT 2
- Fill pattern of bars in gvisTimeline HOT 1
- Charts are not loading HOT 5
- gvisGauge from googleVis package in R studio HOT 3
- Is it possible to add Diff Charts HOT 1
- Charts dont display in Rmarkdown for some reason HOT 3
- Allow to define custom (HTML) tooltips in gvisGeoChart HOT 4
- Motion chart requires Flash; which is no longer supported HOT 1
- gvisTable not plotting larger DFs? HOT 6
- Options gvisCalendar HOT 1
- Change the chartArea background color of gvisAnnotationChart HOT 5
- Offline and fully embedded charts
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from googlevis.