diff options
| author | Tyler <tyler@tylerhoang.xyz> | 2026-05-14 01:01:02 -0700 |
|---|---|---|
| committer | Tyler <tyler@tylerhoang.xyz> | 2026-05-14 01:01:02 -0700 |
| commit | 764cd69bfc2e5a0cf504c8d6e4f032d35edd9a4c (patch) | |
| tree | 0143dbd55cceded1b8f4a8c689888fa9a76152ca /components/options.py | |
| parent | 679baae2773dc7eaf419648ac7a59c4734fca735 (diff) | |
Completely refreshed Key Ratios, Historical Ratios, and DCF/Multiples
tab.
Diffstat (limited to 'components/options.py')
| -rw-r--r-- | components/options.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/components/options.py b/components/options.py index 0acce31..b2c98c3 100644 --- a/components/options.py +++ b/components/options.py @@ -134,7 +134,7 @@ def render_options(ticker: str): legend=dict(orientation="h", yanchor="bottom", y=1.02, xanchor="right", x=1), hovermode="x unified", ) - st.plotly_chart(fig_iv, use_container_width=True) + st.plotly_chart(fig_iv, width="stretch") # ── Open Interest by strike ─────────────────────────────────────────────── with chart_col2: @@ -172,7 +172,7 @@ def render_options(ticker: str): height=300, legend=dict(orientation="h", yanchor="bottom", y=1.02, xanchor="right", x=1), ) - st.plotly_chart(fig_oi, use_container_width=True) + st.plotly_chart(fig_oi, width="stretch") # ── Raw chain table ─────────────────────────────────────────────────────── with st.expander("Full options chain"): @@ -187,7 +187,7 @@ def render_options(ticker: str): df_show["impliedVolatility"] = df_show["impliedVolatility"].apply( lambda v: f"{v*100:.1f}%" if pd.notna(v) else "—" ) - st.dataframe(df_show, use_container_width=True, hide_index=True) + st.dataframe(df_show, width="stretch", hide_index=True) with tab_puts: show_cols = [c for c in display_cols if c in puts.columns] @@ -197,4 +197,4 @@ def render_options(ticker: str): df_show["impliedVolatility"] = df_show["impliedVolatility"].apply( lambda v: f"{v*100:.1f}%" if pd.notna(v) else "—" ) - st.dataframe(df_show, use_container_width=True, hide_index=True) + st.dataframe(df_show, width="stretch", hide_index=True) |
