Shinydashboard ValueBox prevent text overflow

Hi all,

How do i prevent value from overflowing in a ValueBox Render in ShinyDashboard?img

  output$value4 <- renderValueBox({
    valueBox(
      formatC(lgwpvalue(), format="d", big.mark=',')
      ,paste('GWP(EURO)',as.numeric(input$year)-1)
      ,icon = icon("menu-gbp",lib='glyphicon')
      ,color = "purple")   
  })

...

Rather than overflow, what would you like to happen under such circumstances?

So what I am looking is there a way to scale the font size based on the size of the box? Basically the end scenario is to dynamic adapt based on multiple screen size.

This looks promising

This topic was automatically closed 54 days after the last reply. New replies are no longer allowed.