我试图在一个闪亮的应用程序中显示一些演示示例(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 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))
我看到问题[https://stackoverflow.com/questions/24693805/rcharts-dimple-tooltip-box-empty-in-shiny-app]的相似性,但我无法遵循解决方法。也许3年后有一个更好的解决方案。
答案 0 :(得分:0)
如果它出现同样的问题,那么它在dimple版本2中已得到修复,因此请确保您使用的是最新版本。或者,解决方法只需要您添加一些css:
.tooltip {
opacity: 1 !Important;
}