Comments (5)
Thanks for your comment. It seems the line <script type="text/javascript\" src="https://www.google.com/jsapi?callback=displayChart%s"></script>
which is generated by the plot
or print
calls is replaced in the rendering process with the actual content of https://www.google.com/jsapi?callback
I am not sure if this is due to changes in knitr, rmarkdown or pandoc.
from googlevis.
Thanks for reporting this issue. I have updated the link to the Google JavaScript function. Can you please test with googleVis 0.6.6 from GitHub.
from googlevis.
I am also encountering this issue (though it may be for a different reason).
I'm on 0.6.6, R Version 4.0.1.
If I print a viz with tag = NULL
or tag="html"
, the chart normally pops up.
If I try and embed the figure in an Rmarkdown document using tag = "chart"
, the chart does not render.
Trying to run the viz function from the DOM also fails:
gvisDataTreeMapID23246cc47a7d()
#> exploration.html:461 Uncaught TypeError: Cannot read property 'DataTable' of undefined
#> at gvisDataTreeMapID23246cc47a7d (exploration.html:461)
#> at <anonymous>:1:1
from googlevis.
Setting the option self_contained
to false
in the YAML header of the RMarkdown file seems to resolve the issue:
output:
html_document:
self_contained: false
from googlevis.
New version of googleVis 0.6.6 CRAN, with the vignettes showing the charts again: https://cran.r-project.org/web/packages/googleVis/index.html
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
- 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.