I am trying to add a rChart and nvd3 plot a shiny dashboard.
However only the top part of the graph shows. and does not even fill the panel which is created.
my code ui code is
showOutput("myPlot")
I have also tried to alter it using the following
div(class='wrapper', tags$style(".Nvd3{ height: 700px;}"),
showOutput("myPlot"))
but all this seems to do is create a box the same colour as the shiny dashboard side bar.
My server code #
output$myPlot<- renderChart({
plotdataukv <- nPlot(verifiedUsers ~ date, group="group", data = myData, type = 'lineChart', dom = 'myPlot')
plotdataukv$xAxis(axisLabel = 'Time (Days)', tickFormat="#!function(d) {return d3.time.format('%d/%m/%Y')(new Date( d * 86400000 ));}!#", rotateLabels=-90 )
plotdataukv$yAxis(axisLabel = 'My Metric')
plotdataukv$chart(color = c('blue', 'red'))
return(plotdataukv)
})