-
Notifications
You must be signed in to change notification settings - Fork 0
/
ui_trend.R
85 lines (77 loc) · 2.57 KB
/
ui_trend.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
#--------------------------------------------------------------------------#
# UI for Trend Page #
#--------------------------------------------------------------------------#
# Version | Name | Remarks #
#--------------------------------------------------------------------------#
# 1.0 | Prathiba | Initial Version #
#--------------------------------------------------------------------------#
ui <- fluidPage(
style = "background-color: #3481ad" ,
titlePanel(tags$h1("Trend")),
sidebarLayout(
sidebarPanel(
#Input the Topic
fluidRow(
selectInput("topic_input",
"Select Topic",
choices = c("Life Expectancy", "Drug Abuse","Smoking")
)),
fluidRow(
selectInput("area_input",
"Select Data Zone",
choices = NULL
)),
fluidRow(
selectInput("name_input",
"Select Region:",
choices = NULL
),
),
fluidRow(
selectInput("breakdown_input",
"Select Breakdown:",
choices = NULL
)
),
fluidRow(
dropdown(
label = "Select one or more breakdown", status = "default",
checkboxGroupInput("demographic_input",
"",
choices = NULL,
inline = TRUE)
)
)
# ,
# fluidRow(tags$br()),
# fluidRow(tags$br()),
# fluidRow(
# downloadButton(label ="Download", "download_report")
# )
),
mainPanel(
#Content to display the plot
fluidRow(style = "background-color: #3481ad" ,
box(
title = tags$h3("Representation of ",textOutput("topic", inline = TRUE),
" data based on ",
textOutput("name", inline = TRUE),
" for the ",
textOutput("breakdown", inline = TRUE),
" Category "
),
width = 12, status = "primary",
plotlyOutput("distPlot")
)
),
#Content to display the table
fluidRow(
box(
width = 12,
title = tags$h3("Table"),
DT::dataTableOutput("output_table")
)
)
)
)
)