inst/shiny/src/stock/stock_ui.R

shinydashboard::tabItem(
  tabName = "stock",
  
  fluidRow(
    column(
      width = 12,
      
      br(),
      
      tabBox(width=12,
             
             tabPanel(
               title = "Graphic",
               fluidRow(
                 h2("Stock example", align="center"),
                 column(
                   width = 12,
                   rAmCharts::amChartsOutput("stock1"))
                 
               )),
             tabPanel(
               title = "Code",
               fluidRow(
                 h2("Stock example", align="center"),
                 
                 column(
                   width = 12,
                   verbatimTextOutput("code_stock1")
                 )
               )
             )
      ),
      
      tabBox(width=12,
             
             tabPanel(
               title = "Graphic",
               fluidRow(
                 h2("Mean if more than 50 points in selected range", align="center"),
                 column(
                   width = 12,
                   rAmCharts::amChartsOutput("stock2"))
                 
               )),
             tabPanel(
               title = "Code",
               fluidRow(
                 h2("Mean if more than 50 points in selected range", align="center"),
                 column(
                   width = 12,
                   
                   verbatimTextOutput("code_stock2"))
               )
             )
      )
      
      
    )
  )
  
  
  
)

Try the rAmCharts package in your browser

Any scripts or data that you put into this service are public.

rAmCharts documentation built on Sept. 30, 2022, 5:06 p.m.