-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathui.R
85 lines (68 loc) · 3.04 KB
/
ui.R
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
library(shinydashboard)
library(shiny)
library(DT)
dashboardPage(skin = "black",
dashboardHeader(title = ""),
dashboardSidebar(
tags$head(
tags$link(rel = "stylesheet", type = "text/css", href = "custom.css")
),
# tags$head(tags$style(HTML('
# .main-sidebar .sidebar {
# background-color: #FFFFFF;
# color: #000000;
# }
# '))),
sidebarMenu(
# menuItem("", tabName = "production_and_trade"),
# menuItem("Trade", tabName = "economy", icon = icon("money")),
radioButtons("trade_production",label = "Pick one",choices = c("Production","Trade"), inline = TRUE),
uiOutput("indicator"),
# uiOutput("country"),
# uiOutput("group"),
# uiOutput("domain"),
#uiOutput("indOrAgg"),
# uiOutput("item"),
# uiOutput("time_frame"),
# uiOutput("element"),
uiOutput("yearYear"),
# sliderInput("year_range", "Select year range", min = 2000, max = 2010, value = c(2000,2010), step = 1,animate = TRUE),
#menuItem("Nutrition", tabName = "des", icon = icon("cutlery")),
#
menuItem("Source code", icon = icon("github"),
href = "https://github.com/unfaostatistics/faodash")
)
),
dashboardBody(
# tags$head(tags$style(HTML('
# .shiny-output-error { visibility: hidden; }
# .shiny-output-error:before { visibility: hidden; }
# '))),
tabItem(tabName = "production_and_trade",
# #uiOutput("item"),
tags$h2(uiOutput("page_title")),
tags$hr(),
fluidRow(
valueBoxOutput("box_1_1", width=6),
valueBoxOutput("box_1_2", width=6)
),
fluidRow(
infoBoxOutput("box_1_3", width=6),
infoBoxOutput("box_1_4", width=6)
),
tags$h3(uiOutput("sub_title1")),
fluidRow(
box(plotOutput("box_2_1"), width=6),
box(plotOutput("box_2_2"), width=6)
),
tags$h3(uiOutput("sub_title2")),
uiOutput("yearRange", width = 12),
fluidRow(
box(plotOutput("box_3_1"), width=9),
box(tableOutput("box_3_2"), width=3,title = "Top 11")
),
tags$hr()
#dataTableOutput("mytable")
)
)
)