forked from reinholdsson/shiny-dashboard
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ui.R
50 lines (43 loc) · 1.38 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
shinyUI(bootstrapPage(
# Add custom CSS
tagList(
tags$head(
tags$title("Shiny Dashboard Example"),
tags$link(rel="stylesheet", type="text/css",
href="style.css")
)
),
div(class="row",
div(class="span2",
selectInput("year", label = "Year", choices = .years, selected = max(.years))
),
div(class="span2",
selectInput("process", label = "Process", choices = .processes)
)
),
HTML("<hr>"),
conditionalPanel(
condition = "input.process",
div(class="row",
div(class="span6",
chartOutput("flow")
),
div(class="span6",
chartOutput("days")
)
),
div(class="row",
div(class="span6",
chartOutput("types")
),
div(class="span6",
textOutput("text"),
br(),
strong(textOutput("text2")),
htmlOutput("summary")
)
)
),
HTML("<hr>"),
HTML("Shiny Dashboard Example (<a href=\"https://github.com/reinholdsson/shiny-dashboard\">source code</a>) by Thomas Reinholdsson. For Highcharts in R, see <a href=\"https://github.com/metagraf/rHighcharts\">https://github.com/metagraf/rHighcharts</a>.")
))