R dPlots提供空的工具提示框
我试图在一个闪亮的应用程序中展示一些演示示例(topic=“dimple”,package=“rCharts”)。 但是当我把它包装在一个闪亮的应用程序中时,工具提示框是空的。 这是我最简单的例子:R dPlots提供空的工具提示框,r,shiny,rcharts,dimple.js,R,Shiny,Rcharts,Dimple.js,我试图在一个闪亮的应用程序中展示一些演示示例(topic=“dimple”,package=“rCharts”)。 但是当我把它包装在一个闪亮的应用程序中时,工具提示框是空的。 这是我最简单的例子: require(shiny) require(rCharts) df <- data.frame(user=LETTERS[1:3],amount=rnorm(3)) ui <- fluidPage( helpText("Clicking on graph gives emp
require(shiny)
require(rCharts)
df <- data.frame(user=LETTERS[1:3],amount=rnorm(3))
ui <- fluidPage(
helpText("Clicking on graph gives empty frame instead of values,\n",
"while the dotted line to the y-axis is paint well."),
chartOutput("myPlot","dimple"))
server <- function(input,output){
output$myPlot <- renderChart2({
dd <<- dPlot(x = "user",y = "amount",data = df,type="bar")
return(dd)
})
}
runApp(list(ui=ui,server=server))
require(闪亮)
要求(艺术)
df如果是相同的问题,它在dimple的第2版中已修复,因此请确保您使用的是最新版本。或者,解决方案只是要求您添加一些css:
.tooltip {
opacity: 1 !Important;
}
谢谢你的帮助。我使用了带有酒窝的rCharts_0.4.5.v.1.1.4。因为我不知道如何从R添加工具提示,所以我尝试了一种肮脏的方法。我将较新版本从复制到本地dimple/js目录中。将config.yml升级到v.2.0会满足您的期望,让我非常高兴。而且它还在firefox中运行。但不幸的是,在版本v.2.1中,它无法再次工作。您可以尝试devtools::install_github(“timelyportfolio”)/rCharts@dimple_v2.0.0)这是正在开发的升级酒窝的分支。这是一种更好的方法,而且效果很好。非常感谢你。