smomtaz commited on
Commit
39cf52e
·
verified ·
1 Parent(s): e876ecf

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +16 -6
app.py CHANGED
@@ -178,6 +178,15 @@ app_ui = ui.page_fluid(
178
  ui.nav_panel(
179
  "Travel Trend Questions",
180
  ui.tags.h3("Select a Question to View Trips Data", style="text-align: center;"),
 
 
 
 
 
 
 
 
 
181
  # Add dropdown for question selection
182
  ui.input_select(
183
  "question_selector",
@@ -185,12 +194,13 @@ app_ui = ui.page_fluid(
185
  choices=list(QUESTION_TO_SHEET.keys()),
186
  selected="What types of trips are occurring within Napa County?", # Preselect a valid question
187
  ),
188
- ui.input_radio_buttons(
189
- "data_year_selector",
190
- label="Select Data Year:",
191
- choices=["Fall 2014", "Fall 2018", "Fall 2024"],
192
- selected="Fall 2024" # Preselect a default year
193
- ),
 
194
  # Output table for the selected sheet
195
  ui.output_table("table_title"),
196
  ui.output_table("trip_table"),
 
178
  ui.nav_panel(
179
  "Travel Trend Questions",
180
  ui.tags.h3("Select a Question to View Trips Data", 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",
 
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"),