Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/r/70.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
与闪亮的0.8.0.99配合使用时,rCharts的功能有限_R_Highcharts_Shiny_Rcharts - Fatal编程技术网

与闪亮的0.8.0.99配合使用时,rCharts的功能有限

与闪亮的0.8.0.99配合使用时,rCharts的功能有限,r,highcharts,shiny,rcharts,R,Highcharts,Shiny,Rcharts,更新到最新的Shiny development版本0.8.0.99似乎对我通过rCharts(版本0.4.2)创建的图表产生了一些负面影响。特别是,我在我闪亮的应用程序中使用Highcharts发现了以下两个问题: 通过悬停激活后,工具提示文本不会消失 如果序列被激活/停用,则x/y轴的自动重新缩放不起作用 下面是一个重复使用Ramanth的Highchart示例的小示例 这是一个独立的Highchart代码,它工作得非常好: library(rCharts) h1 <- Highc

更新到最新的Shiny development版本0.8.0.99似乎对我通过rCharts(版本0.4.2)创建的图表产生了一些负面影响。特别是,我在我闪亮的应用程序中使用Highcharts发现了以下两个问题:

  • 通过悬停激活后,工具提示文本不会消失
  • 如果序列被激活/停用,则x/y轴的自动重新缩放不起作用
下面是一个重复使用Ramanth的Highchart示例的小示例

这是一个独立的Highchart代码,它工作得非常好:

library(rCharts)

h1 <- Highcharts$new()
h1$chart(type = "spline")
h1$series(data = c(1, 3, 2, 4, 5, 4, 6, 2, 3, 5, NA), dashStyle = "longdash")
h1$series(data = c(NA, 4, 1, 3, 4, 2, 9, 1, 2, 3, 4), dashStyle = "shortdot")
h1$legend(symbolWidth = 80)
h1
库(rCharts)

h1它与在Shiny的开发版本中使用jQuery 1.10.1
有关。查看以了解详细信息


本周晚些时候,我将在主分支的
github
上更新
highcharts
,这将解决这个问题。

这与在Shining的开发版本中使用
jQuery 1.10.1
有关。查看以了解详细信息


本周晚些时候,我将在主分支的
github
上更新
highcharts
,这将解决此问题。

非常感谢您的快速回答和补充信息!期待更新。不幸的是,我的代表太小,无法投票支持您的答案。:-)现在使用它的一个快速方法是在您的代码中设置
选项(rcharts.cdn=TRUE)
。这提供了highcharts cdn中的js/css资产,它们是最新的。非常感谢您的快速回答和其他信息!期待更新。不幸的是,我的代表太小,无法投票支持您的答案。:-)现在使用它的一个快速方法是在您的代码中设置
选项(rcharts.cdn=TRUE)
。这提供了highcharts cdn中最新的js/css资产。
library(shiny)
library(rCharts)

runApp(list(
  ui = basicPage(
    h2("Ramnath's GitHub example"),
    showOutput('myChart', 'highcharts')
  ),
  server = function(input, output) {
    output$myChart <- renderChart({
      h1 <- Highcharts$new()
      h1$chart(type = "spline")
      h1$series(data = c(1, 3, 2, 4, 5, 4, 6, 2, 3, 5, NA), dashStyle = "longdash")
      h1$series(data = c(NA, 4, 1, 3, 4, 2, 9, 1, 2, 3, 4), dashStyle = "shortdot")
      h1$legend(symbolWidth = 80)
      # Set dom attribute otherwise chart will not appear on the web page
      h1$set(dom = 'myChart')
      h1
    })
  }
))