Spaces:
Running
Running
updated chart settings
Browse files
app/app.R
CHANGED
@@ -322,7 +322,7 @@ ui <- shinydashboardPlus::dashboardPage(
|
|
322 |
tabsetPanel(type = "tabs",
|
323 |
|
324 |
|
325 |
-
tabPanel("
|
326 |
|
327 |
br(),
|
328 |
|
@@ -365,6 +365,17 @@ ui <- shinydashboardPlus::dashboardPage(
|
|
365 |
br()
|
366 |
|
367 |
),
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
368 |
|
369 |
|
370 |
tabPanel("Payout (Overview)",
|
@@ -974,7 +985,7 @@ server <- function(input, output) {
|
|
974 |
})
|
975 |
|
976 |
output$text_performance_models <- renderText({
|
977 |
-
if (nrow(react_d_filter()) >= 1) "
|
978 |
})
|
979 |
|
980 |
output$text_performance_models_note <- renderText({
|
@@ -982,7 +993,7 @@ server <- function(input, output) {
|
|
982 |
})
|
983 |
|
984 |
output$text_performance_chart <- renderText({
|
985 |
-
if (nrow(react_d_filter()) >= 1) "
|
986 |
})
|
987 |
|
988 |
|
@@ -1144,7 +1155,7 @@ server <- function(input, output) {
|
|
1144 |
ylab("Round Payout (NMR)")
|
1145 |
|
1146 |
# Generate plotly
|
1147 |
-
ggplotly(p, tooltip = "text")
|
1148 |
|
1149 |
})
|
1150 |
|
@@ -1194,7 +1205,7 @@ server <- function(input, output) {
|
|
1194 |
ylab("Round Payout (NMR)")
|
1195 |
|
1196 |
# Generate plotly
|
1197 |
-
ggplotly(p, tooltip = "text")
|
1198 |
|
1199 |
})
|
1200 |
|
@@ -1251,7 +1262,7 @@ server <- function(input, output) {
|
|
1251 |
p <- p + facet_wrap(. ~ model, ncol = 5, scales = "fixed") # fixed
|
1252 |
|
1253 |
# Dynamic height adjustment
|
1254 |
-
height <-
|
1255 |
if (n_model >= 10) height = 800
|
1256 |
if (n_model >= 15) height = 1000
|
1257 |
if (n_model >= 20) height = 1200
|
|
|
322 |
tabsetPanel(type = "tabs",
|
323 |
|
324 |
|
325 |
+
tabPanel("KPI (CORR+TC)",
|
326 |
|
327 |
br(),
|
328 |
|
|
|
365 |
br()
|
366 |
|
367 |
),
|
368 |
+
|
369 |
+
|
370 |
+
# tabPanel("KPI (All)",
|
371 |
+
#
|
372 |
+
# br(),
|
373 |
+
#
|
374 |
+
# markdown("xxx"),
|
375 |
+
#
|
376 |
+
# br()
|
377 |
+
# ),
|
378 |
+
|
379 |
|
380 |
|
381 |
tabPanel("Payout (Overview)",
|
|
|
985 |
})
|
986 |
|
987 |
output$text_performance_models <- renderText({
|
988 |
+
if (nrow(react_d_filter()) >= 1) "KPI Analysis (CORR and TC)" else " "
|
989 |
})
|
990 |
|
991 |
output$text_performance_models_note <- renderText({
|
|
|
993 |
})
|
994 |
|
995 |
output$text_performance_chart <- renderText({
|
996 |
+
if (nrow(react_d_filter()) >= 1) "KPI Charts" else " "
|
997 |
})
|
998 |
|
999 |
|
|
|
1155 |
ylab("Round Payout (NMR)")
|
1156 |
|
1157 |
# Generate plotly
|
1158 |
+
ggplotly(p, height = 500, tooltip = "text")
|
1159 |
|
1160 |
})
|
1161 |
|
|
|
1205 |
ylab("Round Payout (NMR)")
|
1206 |
|
1207 |
# Generate plotly
|
1208 |
+
ggplotly(p, height = 500, tooltip = "text")
|
1209 |
|
1210 |
})
|
1211 |
|
|
|
1262 |
p <- p + facet_wrap(. ~ model, ncol = 5, scales = "fixed") # fixed
|
1263 |
|
1264 |
# Dynamic height adjustment
|
1265 |
+
height <- 500 # default minimum height
|
1266 |
if (n_model >= 10) height = 800
|
1267 |
if (n_model >= 15) height = 1000
|
1268 |
if (n_model >= 20) height = 1200
|