BrianIsaac commited on
Commit
11ca6e2
·
1 Parent(s): b29a5e5

refactor: remove confusing benchmark and date range controls

Browse files

Removed S&P 500 benchmark checkbox and date range selector from Dashboard
as they would cause UX confusion:

- Benchmark: Individual stock lines don't benefit from S&P 500 comparison
- Date range: Would only affect one chart while metrics use full year data

Future enhancement: Add separate chart comparing aggregate portfolio
performance vs S&P 500 if benchmark comparison is needed.

Files changed (1) hide show
  1. app.py +1 -23
app.py CHANGED
@@ -2029,29 +2029,7 @@ def create_interface() -> gr.Blocks:
2029
  with gr.Column(scale=1, min_width=400):
2030
  risk_plot = gr.Plot(label="Risk Metrics Dashboard", container=True)
2031
 
2032
- # Middle row - Performance controls and chart
2033
- with gr.Row():
2034
- date_range_selector = gr.Dropdown(
2035
- choices=[
2036
- ("1 Month", "1M"),
2037
- ("3 Months", "3M"),
2038
- ("6 Months", "6M"),
2039
- ("1 Year", "1Y"),
2040
- ("Year to Date", "YTD"),
2041
- ("All", "ALL"),
2042
- ],
2043
- value="1Y",
2044
- label="Time Period",
2045
- scale=1,
2046
- elem_id="date-range-selector"
2047
- )
2048
- benchmark_toggle = gr.Checkbox(
2049
- label="Show S&P 500 Benchmark",
2050
- value=False,
2051
- scale=1,
2052
- elem_id="benchmark-toggle"
2053
- )
2054
-
2055
  with gr.Row():
2056
  performance_plot = gr.Plot(label="Historical Performance", container=True)
2057
 
 
2029
  with gr.Column(scale=1, min_width=400):
2030
  risk_plot = gr.Plot(label="Risk Metrics Dashboard", container=True)
2031
 
2032
+ # Middle row - Performance chart
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2033
  with gr.Row():
2034
  performance_plot = gr.Plot(label="Historical Performance", container=True)
2035