Update app.py
Browse files
app.py
CHANGED
|
@@ -176,8 +176,98 @@ app_ui = ui.page_fluid(
|
|
| 176 |
),
|
| 177 |
),
|
| 178 |
ui.nav_panel(
|
| 179 |
-
"Travel
|
| 180 |
-
ui.tags.h3("Select a Question to View
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 181 |
# Add radio button for date and data table selection
|
| 182 |
ui.input_radio_buttons(
|
| 183 |
"data_year_selector",
|
|
|
|
| 176 |
),
|
| 177 |
),
|
| 178 |
ui.nav_panel(
|
| 179 |
+
"Travel Patterns",
|
| 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_selector",
|
| 184 |
+
label="Select Data Year:",
|
| 185 |
+
choices=["Fall 2014", "Fall 2018", "Fall 2024"],
|
| 186 |
+
selected="Fall 2024", # Preselect a default year
|
| 187 |
+
inline=True
|
| 188 |
+
),
|
| 189 |
+
ui.tags.br(),
|
| 190 |
+
# Add dropdown for question selection
|
| 191 |
+
ui.input_select(
|
| 192 |
+
"question_selector",
|
| 193 |
+
label="Select a Question:",
|
| 194 |
+
choices=list(QUESTION_TO_SHEET.keys()),
|
| 195 |
+
selected="What types of trips are occurring within Napa County?", # Preselect a valid question
|
| 196 |
+
),
|
| 197 |
+
ui.tags.br(),
|
| 198 |
+
#ui.input_radio_buttons(
|
| 199 |
+
# "data_year_selector",
|
| 200 |
+
# label="Select Data Year:",
|
| 201 |
+
# choices=["Fall 2014", "Fall 2018", "Fall 2024"],
|
| 202 |
+
# selected="Fall 2024" # Preselect a default year
|
| 203 |
+
#),
|
| 204 |
+
# Output table for the selected sheet
|
| 205 |
+
ui.output_table("table_title"),
|
| 206 |
+
ui.output_table("trip_table"),
|
| 207 |
+
),
|
| 208 |
+
ui.nav_panel(
|
| 209 |
+
"Travel Characteristics",
|
| 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_selector",
|
| 214 |
+
label="Select Data Year:",
|
| 215 |
+
choices=["Fall 2014", "Fall 2018", "Fall 2024"],
|
| 216 |
+
selected="Fall 2024", # Preselect a default year
|
| 217 |
+
inline=True
|
| 218 |
+
),
|
| 219 |
+
ui.tags.br(),
|
| 220 |
+
# Add dropdown for question selection
|
| 221 |
+
ui.input_select(
|
| 222 |
+
"question_selector",
|
| 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
|
| 226 |
+
),
|
| 227 |
+
ui.tags.br(),
|
| 228 |
+
#ui.input_radio_buttons(
|
| 229 |
+
# "data_year_selector",
|
| 230 |
+
# label="Select Data Year:",
|
| 231 |
+
# choices=["Fall 2014", "Fall 2018", "Fall 2024"],
|
| 232 |
+
# selected="Fall 2024" # Preselect a default year
|
| 233 |
+
#),
|
| 234 |
+
# Output table for the selected sheet
|
| 235 |
+
ui.output_table("table_title"),
|
| 236 |
+
ui.output_table("trip_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 |
+
"data_year_selector",
|
| 244 |
+
label="Select Data Year:",
|
| 245 |
+
choices=["Fall 2014", "Fall 2018", "Fall 2024"],
|
| 246 |
+
selected="Fall 2024", # Preselect a default year
|
| 247 |
+
inline=True
|
| 248 |
+
),
|
| 249 |
+
ui.tags.br(),
|
| 250 |
+
# Add dropdown for question selection
|
| 251 |
+
ui.input_select(
|
| 252 |
+
"question_selector",
|
| 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
|
| 256 |
+
),
|
| 257 |
+
ui.tags.br(),
|
| 258 |
+
#ui.input_radio_buttons(
|
| 259 |
+
# "data_year_selector",
|
| 260 |
+
# label="Select Data Year:",
|
| 261 |
+
# choices=["Fall 2014", "Fall 2018", "Fall 2024"],
|
| 262 |
+
# selected="Fall 2024" # Preselect a default year
|
| 263 |
+
#),
|
| 264 |
+
# Output table for the selected sheet
|
| 265 |
+
ui.output_table("table_title"),
|
| 266 |
+
ui.output_table("trip_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 |
"data_year_selector",
|