@@ -308,15 +308,15 @@ def render_balance_sheet(financial_data, financial_calculations):
308
308
x = pd .DatetimeIndex (balance_sheet .index ).date ,
309
309
y = balance_sheet ["Total Assets" ].values ,
310
310
name = "Total Assets" ,
311
- marker_color = "green " ,
311
+ marker_color = "forestgreen " ,
312
312
),
313
313
go .Bar (
314
314
x = pd .DatetimeIndex (balance_sheet .index ).date ,
315
315
y = balance_sheet [
316
316
"Total Liabilities Net Minority Interest"
317
317
].values ,
318
318
name = "Total Liabilities" ,
319
- marker_color = "red " ,
319
+ marker_color = "tomato " ,
320
320
),
321
321
]
322
322
)
@@ -333,7 +333,7 @@ def render_balance_sheet(financial_data, financial_calculations):
333
333
x = pd .DatetimeIndex (balance_sheet .index ).date ,
334
334
y = balance_sheet ["Total Debt" ].values ,
335
335
name = "Total Debt" ,
336
- marker_color = "orange " ,
336
+ marker_color = "tomato " ,
337
337
)
338
338
]
339
339
)
@@ -343,7 +343,7 @@ def render_balance_sheet(financial_data, financial_calculations):
343
343
st .plotly_chart (fig , use_container_width = True )
344
344
345
345
with st .container ():
346
- invested_capital , liquidity = st .columns (2 )
346
+ invested_capital , working_capital = st .columns (2 )
347
347
348
348
with invested_capital :
349
349
fig = go .Figure (
@@ -352,7 +352,7 @@ def render_balance_sheet(financial_data, financial_calculations):
352
352
x = pd .DatetimeIndex (balance_sheet .index ).date ,
353
353
y = balance_sheet ["Invested Capital" ].values ,
354
354
name = "Invested Capital" ,
355
- marker_color = "green " ,
355
+ marker_color = "forestgreen " ,
356
356
)
357
357
]
358
358
)
@@ -361,8 +361,21 @@ def render_balance_sheet(financial_data, financial_calculations):
361
361
)
362
362
st .plotly_chart (fig , use_container_width = True )
363
363
364
- with liquidity :
365
- st .write ("Current Ratio plot" )
364
+ with working_capital :
365
+ fig = go .Figure (
366
+ data = [
367
+ go .Bar (
368
+ x = pd .DatetimeIndex (balance_sheet .index ).date ,
369
+ y = balance_sheet ["Working Capital" ].values ,
370
+ name = "Working Capital" ,
371
+ marker_color = "dodgerblue" ,
372
+ )
373
+ ]
374
+ )
375
+ fig .update_layout (
376
+ xaxis = dict (type = "category" ), title = "Working Capital Evolution"
377
+ )
378
+ st .plotly_chart (fig , use_container_width = True )
366
379
367
380
368
381
def render_income_stmt (financial_data , * kwargs ):
0 commit comments