Update app.py
Browse files
app.py
CHANGED
|
@@ -180,7 +180,7 @@ app_ui = ui.page_fluid(
|
|
| 180 |
ui.tags.h3("Select a Question to View Travel Patterns", style="text-align: center;"),
|
| 181 |
# Add radio button for date and data table selection
|
| 182 |
ui.input_radio_buttons(
|
| 183 |
-
"
|
| 184 |
label="Select Data Year:",
|
| 185 |
choices=["Fall 2014", "Fall 2018", "Fall 2024"],
|
| 186 |
selected="Fall 2024", # Preselect a default year
|
|
@@ -210,7 +210,7 @@ app_ui = ui.page_fluid(
|
|
| 210 |
ui.tags.h3("Select a Question to View Travel Characteristics", style="text-align: center;"),
|
| 211 |
# Add radio button for date and data table selection
|
| 212 |
ui.input_radio_buttons(
|
| 213 |
-
"
|
| 214 |
label="Select Data Year:",
|
| 215 |
choices=["Fall 2014", "Fall 2018", "Fall 2024"],
|
| 216 |
selected="Fall 2024", # Preselect a default year
|
|
@@ -219,7 +219,7 @@ app_ui = ui.page_fluid(
|
|
| 219 |
ui.tags.br(),
|
| 220 |
# Add dropdown for question selection
|
| 221 |
ui.input_select(
|
| 222 |
-
"
|
| 223 |
label="Select a Question:",
|
| 224 |
choices=list(QUESTION_TO_SHEET.keys()),
|
| 225 |
selected="What types of trips are occurring within Napa County?", # Preselect a valid question
|
|
@@ -232,15 +232,15 @@ app_ui = ui.page_fluid(
|
|
| 232 |
# selected="Fall 2024" # Preselect a default year
|
| 233 |
#),
|
| 234 |
# Output table for the selected sheet
|
| 235 |
-
ui.output_table("
|
| 236 |
-
ui.output_table("
|
| 237 |
),
|
| 238 |
ui.nav_panel(
|
| 239 |
"Roadway Segments",
|
| 240 |
ui.tags.h3("Select a Question to View Travel Characteristics for Roadway Segments", style="text-align: center;"),
|
| 241 |
# Add radio button for date and data table selection
|
| 242 |
ui.input_radio_buttons(
|
| 243 |
-
"
|
| 244 |
label="Select Data Year:",
|
| 245 |
choices=["Fall 2014", "Fall 2018", "Fall 2024"],
|
| 246 |
selected="Fall 2024", # Preselect a default year
|
|
@@ -249,7 +249,7 @@ app_ui = ui.page_fluid(
|
|
| 249 |
ui.tags.br(),
|
| 250 |
# Add dropdown for question selection
|
| 251 |
ui.input_select(
|
| 252 |
-
"
|
| 253 |
label="Select a Question:",
|
| 254 |
choices=list(QUESTION_TO_SHEET.keys()),
|
| 255 |
selected="What types of trips are occurring within Napa County?", # Preselect a valid question
|
|
@@ -262,15 +262,15 @@ app_ui = ui.page_fluid(
|
|
| 262 |
# selected="Fall 2024" # Preselect a default year
|
| 263 |
#),
|
| 264 |
# Output table for the selected sheet
|
| 265 |
-
ui.output_table("
|
| 266 |
-
ui.output_table("
|
| 267 |
),
|
| 268 |
ui.nav_panel(
|
| 269 |
"Commercial Vehicle Travel Characteristics",
|
| 270 |
ui.tags.h3("Select a Question to View Travel Characteristics for Commercial Vehicle", style="text-align: center;"),
|
| 271 |
# Add radio button for date and data table selection
|
| 272 |
ui.input_radio_buttons(
|
| 273 |
-
"
|
| 274 |
label="Select Data Year:",
|
| 275 |
choices=["Fall 2014", "Fall 2018", "Fall 2024"],
|
| 276 |
selected="Fall 2024", # Preselect a default year
|
|
@@ -279,7 +279,7 @@ app_ui = ui.page_fluid(
|
|
| 279 |
ui.tags.br(),
|
| 280 |
# Add dropdown for question selection
|
| 281 |
ui.input_select(
|
| 282 |
-
"
|
| 283 |
label="Select a Question:",
|
| 284 |
choices=list(QUESTION_TO_SHEET.keys()),
|
| 285 |
selected="What types of trips are occurring within Napa County?", # Preselect a valid question
|
|
@@ -292,8 +292,8 @@ app_ui = ui.page_fluid(
|
|
| 292 |
# selected="Fall 2024" # Preselect a default year
|
| 293 |
#),
|
| 294 |
# Output table for the selected sheet
|
| 295 |
-
ui.output_table("
|
| 296 |
-
ui.output_table("
|
| 297 |
),
|
| 298 |
#ui.nav_panel(
|
| 299 |
# "Mode",
|
|
|
|
| 180 |
ui.tags.h3("Select a Question to View Travel Patterns", style="text-align: center;"),
|
| 181 |
# Add radio button for date and data table selection
|
| 182 |
ui.input_radio_buttons(
|
| 183 |
+
"data_year_selector1",
|
| 184 |
label="Select Data Year:",
|
| 185 |
choices=["Fall 2014", "Fall 2018", "Fall 2024"],
|
| 186 |
selected="Fall 2024", # Preselect a default year
|
|
|
|
| 210 |
ui.tags.h3("Select a Question to View Travel Characteristics", style="text-align: center;"),
|
| 211 |
# Add radio button for date and data table selection
|
| 212 |
ui.input_radio_buttons(
|
| 213 |
+
"data_year_selector2",
|
| 214 |
label="Select Data Year:",
|
| 215 |
choices=["Fall 2014", "Fall 2018", "Fall 2024"],
|
| 216 |
selected="Fall 2024", # Preselect a default year
|
|
|
|
| 219 |
ui.tags.br(),
|
| 220 |
# Add dropdown for question selection
|
| 221 |
ui.input_select(
|
| 222 |
+
"question_selector2",
|
| 223 |
label="Select a Question:",
|
| 224 |
choices=list(QUESTION_TO_SHEET.keys()),
|
| 225 |
selected="What types of trips are occurring within Napa County?", # Preselect a valid question
|
|
|
|
| 232 |
# selected="Fall 2024" # Preselect a default year
|
| 233 |
#),
|
| 234 |
# Output table for the selected sheet
|
| 235 |
+
ui.output_table("table_title2"),
|
| 236 |
+
ui.output_table("trip_table2"),
|
| 237 |
),
|
| 238 |
ui.nav_panel(
|
| 239 |
"Roadway Segments",
|
| 240 |
ui.tags.h3("Select a Question to View Travel Characteristics for Roadway Segments", style="text-align: center;"),
|
| 241 |
# Add radio button for date and data table selection
|
| 242 |
ui.input_radio_buttons(
|
| 243 |
+
"data_year_selector3",
|
| 244 |
label="Select Data Year:",
|
| 245 |
choices=["Fall 2014", "Fall 2018", "Fall 2024"],
|
| 246 |
selected="Fall 2024", # Preselect a default year
|
|
|
|
| 249 |
ui.tags.br(),
|
| 250 |
# Add dropdown for question selection
|
| 251 |
ui.input_select(
|
| 252 |
+
"question_selector3",
|
| 253 |
label="Select a Question:",
|
| 254 |
choices=list(QUESTION_TO_SHEET.keys()),
|
| 255 |
selected="What types of trips are occurring within Napa County?", # Preselect a valid question
|
|
|
|
| 262 |
# selected="Fall 2024" # Preselect a default year
|
| 263 |
#),
|
| 264 |
# Output table for the selected sheet
|
| 265 |
+
ui.output_table("table_title3"),
|
| 266 |
+
ui.output_table("trip_table3"),
|
| 267 |
),
|
| 268 |
ui.nav_panel(
|
| 269 |
"Commercial Vehicle Travel Characteristics",
|
| 270 |
ui.tags.h3("Select a Question to View Travel Characteristics for Commercial Vehicle", style="text-align: center;"),
|
| 271 |
# Add radio button for date and data table selection
|
| 272 |
ui.input_radio_buttons(
|
| 273 |
+
"data_year_selector4",
|
| 274 |
label="Select Data Year:",
|
| 275 |
choices=["Fall 2014", "Fall 2018", "Fall 2024"],
|
| 276 |
selected="Fall 2024", # Preselect a default year
|
|
|
|
| 279 |
ui.tags.br(),
|
| 280 |
# Add dropdown for question selection
|
| 281 |
ui.input_select(
|
| 282 |
+
"question_selector4",
|
| 283 |
label="Select a Question:",
|
| 284 |
choices=list(QUESTION_TO_SHEET.keys()),
|
| 285 |
selected="What types of trips are occurring within Napa County?", # Preselect a valid question
|
|
|
|
| 292 |
# selected="Fall 2024" # Preselect a default year
|
| 293 |
#),
|
| 294 |
# Output table for the selected sheet
|
| 295 |
+
ui.output_table("table_title4"),
|
| 296 |
+
ui.output_table("trip_table4"),
|
| 297 |
),
|
| 298 |
#ui.nav_panel(
|
| 299 |
# "Mode",
|