@@ -184,23 +184,26 @@ ui <- navbarPage(
184184 )
185185 ),
186186
187- # ── Tab 3: Returns (existing) ─────────────────────── ───────────────────────
187+ # ── Tab 4: Performance (daily + cumulative returns) ───────────────────────
188188
189- tabPanel(" Returns " ,
189+ tabPanel(" Performance " ,
190190 mainPanel(
191- withSpinner(plotOutput(" returnsPlot" ), type = 4 , color = " darkturquoise" ),
191+ h3(" Cumulative performance" ),
192+ tags $ p(class = " text-muted" ,
193+ " Growth of $1 invested over the selected period (same tickers as Price Trend)."
194+ ),
195+ withSpinner(plotOutput(" cumulativePlot" , height = " 400px" ),
196+ type = 4 , color = " darkturquoise" ),
192197 hr(),
193- withSpinner(plotOutput(" returnDistribution" ), type = 4 , color = " darkturquoise" )
194- )
195- ),
196-
197- # ── Tab 4: Cumulative Returns (existing) ───────────────────────────────────
198-
199- tabPanel(" Cumulative Returns" ,
200- mainPanel(
201- withSpinner(plotOutput(" cumulativePlot" ), type = 4 , color = " darkturquoise" ),
198+ h3(" Daily returns" ),
199+ withSpinner(plotOutput(" returnsPlot" , height = " 380px" ),
200+ type = 4 , color = " darkturquoise" ),
201+ hr(),
202+ h3(" Return distributions" ),
203+ withSpinner(plotOutput(" returnDistribution" , height = " 400px" ),
204+ type = 4 , color = " darkturquoise" ),
202205 hr(),
203- h4 (" Performance Summary " ),
206+ h3 (" Performance summary " ),
204207 withSpinner(tableOutput(" performanceSummary" ), type = 4 , color = " darkturquoise" )
205208 )
206209 ),
@@ -238,7 +241,7 @@ ui <- navbarPage(
238241 )
239242 ),
240243
241- # ── Tab 6: Risk Analysis (existing) ────────────────────────────────────────
244+ # ── Tab 6: Risk Analysis ─────────── ────────────────────────────────────────
242245
243246 tabPanel(" Risk Analysis" ,
244247 sidebarLayout(
0 commit comments