【问题标题】:GoogleVis does not show chart in RStudioGoogleVis 不在 RStudio 中显示图表
【发布时间】:2015-09-25 19:39:11
【问题描述】:

我正在尝试在 Windows 7 上将 googleVis-0.5.10 与 RStudio 0.99.473 一起使用。我可以很好地生成图表,但它们总是在新的浏览器窗口中打开。代码很简单,没有设置额外的选项:

lineChart <- gvisLineChart(data,
                       options = list(
                         selectionMode = "multiple",
                         focusTarget = "category",
                         tooltip = "{ trigger : 'focus', aggregationTarget: 'auto' }")
                       )
plot(lineChart)

我尝试通过在打开的浏览器窗口中提供 url 来手动调用查看器:

rstudio::viewer("http://127.0.0.1:10529/custom/googleVis/LineChartIDc6837e37021.html")

但它几乎显示一个空白屏幕:

我认为这是某种安全问题,因为当我右键单击 RStudio 查看器窗口并打开网络检查器时,我看到有一个 javascript 错误:

Failed to load resource: Unable to init SSL Context:  https://www.google.com/jsapi?callback=displayChartLineChartIDc6837e37021

如果我是对的,有没有办法指示 RStudio 信任来自 www.google.com 域的内容?或者,如果我错了,我该如何解决问题?

谢谢。

【问题讨论】:

    标签: r rstudio googlevis


    【解决方案1】:

    我认为您的 Flash 播放器未启用。在镀铬类型中:

    chrome://plugins
    

    并选中 Flash 播放器复选框,然后重试。

    【讨论】:

    • “无法访问此站点”版本 74.0.3729.169(官方构建)(64 位)
    【解决方案2】:

    Inda 的回答是正确的,除了现在更改 Chrome 闪存设置的路径是

    chrome://settings/content

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2020-11-27
      • 2015-11-10
      • 2014-12-25
      • 1970-01-01
      • 2020-08-08
      相关资源
      最近更新 更多