Git Product home page Git Product logo

Comments (5)

mages avatar mages commented on September 2, 2024 1

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.

mages avatar mages commented on September 2, 2024

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.

beansrowning avatar beansrowning commented on September 2, 2024

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.

mages avatar mages commented on September 2, 2024

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.

mages avatar mages commented on September 2, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.