aboutsummaryrefslogtreecommitdiff
path: root/components/options.py
diff options
context:
space:
mode:
Diffstat (limited to 'components/options.py')
-rw-r--r--components/options.py8
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)