Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rCharts::Highcharts radar plot only renders legends in shiny #746

Open
linagapa opened this issue Sep 10, 2021 · 0 comments
Open

rCharts::Highcharts radar plot only renders legends in shiny #746

linagapa opened this issue Sep 10, 2021 · 0 comments

Comments

@linagapa
Copy link

Hello ramnathv,

I would deeply appreciate if you can give me some hints about what could be happening here.

I've been trying to make a radar plot using rCharts::Highcharts. While it is generated without problems within an rstudio session, once I try to render it within the mainPanel inside a shiny app it just shows the figure legend and anything else. I've been already playing around with the width and height and nothing seems to work. Only the legend is displayed.

This is how the code looks:

ui <- fluidPage(theme = shinytheme("cosmo"),
navbarPage(tabPanel("Radar plot",
sidebarLayout(
mainPanel(
h1("Radar plot"),
showOutput("radarplot", "highcharts")%>% withSpinner(color="#0dc5c1"),
) # mainPanel
)
)
)

) # fluidPage

server <- function(input, output, session) {
output$radarplot <- renderChart2({
plotS <- rCharts::Highcharts$new()
plotS$chart(polar = TRUE, type = "line", width=700, height=700)
plotS$xAxis(categories=df$names, tickmarkPlacement= 'on', lineWidth= 0)
plotS$yAxis(gridLineInterpolation= 'circle', lineWidth= 0, min= -1.0,
max=1.0,endOnTick=T,tickInterval=0.1)
plotS$series(data = df[,2],name = "some name", pointPlacement="on", color="black")
plotS$exporting(enabled = T)
plotS$addParams(dom = 'Highcharts')
return(plotS)
})
} # end of server

What am I doing wrong here?

Thank you very much for any input on this issue.

Best,

Lina.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant