aboutsummaryrefslogtreecommitdiff
path: root/components/valuation.py
diff options
context:
space:
mode:
Diffstat (limited to 'components/valuation.py')
-rw-r--r--components/valuation.py14
1 files changed, 7 insertions, 7 deletions
diff --git a/components/valuation.py b/components/valuation.py
index 0095f41..a141846 100644
--- a/components/valuation.py
+++ b/components/valuation.py
@@ -586,7 +586,7 @@ def _render_dcf_model(ctx: dict):
fig = go.Figure(go.Bar(
x=years + ["Terminal Value"],
y=[(v / 1e9) for v in discounted] + [terminal_pv / 1e9],
- marker_color=["#4F8EF7"] * len(years) + ["#F7A24F"],
+ marker_color=["#C2AA7A"] * len(years) + ["#C49545"],
text=[f"${v / 1e9:.2f}B" for v in discounted] + [f"${terminal_pv / 1e9:.2f}B"],
textposition="outside",
))
@@ -1235,7 +1235,7 @@ def _render_analyst_targets(ticker: str):
st.write("")
- colors = ["#2ecc71", "#82e0aa", "#f0b27a", "#e59866", "#e74c3c"]
+ colors = ["#4F8C5E", "#4F8C5E", "#C49545", "#8F7A50", "#B5494B"]
fig = go.Figure(go.Bar(
x=list(counts.keys()),
y=list(counts.values()),
@@ -1314,14 +1314,14 @@ def _render_earnings_history(ticker: str):
y=df_chart["epsActual"],
name="Actual EPS",
mode="lines+markers",
- line=dict(color="#4F8EF7", width=2),
+ line=dict(color="#C2AA7A", width=2),
))
fig.add_trace(go.Scatter(
x=df_chart.index.astype(str),
y=df_chart["epsEstimate"],
name="Estimated EPS",
mode="lines+markers",
- line=dict(color="#F7A24F", width=2, dash="dash"),
+ line=dict(color="#C49545", width=2, dash="dash"),
))
fig.update_layout(
title="EPS: Actual vs. Estimate",
@@ -1351,7 +1351,7 @@ _HIST_RATIO_OPTIONS = {
}
_CHART_COLORS = [
- "#4F8EF7", "#F7A24F", "#2ecc71", "#e74c3c",
+ "#C2AA7A", "#C49545", "#4F8C5E", "#B5494B",
"#9b59b6", "#1abc9c", "#f39c12", "#e67e22",
]
@@ -1534,7 +1534,7 @@ def _render_forward_estimates(ticker: str):
y=hist["epsActual"],
name="EPS Actual",
mode="lines+markers",
- line=dict(color="#4F8EF7", width=2),
+ line=dict(color="#C2AA7A", width=2),
))
if fwd_dates:
@@ -1560,7 +1560,7 @@ def _render_forward_estimates(ticker: str):
y=fwd_eps,
name="EPS Est. (Avg)",
mode="lines+markers",
- line=dict(color="#F7A24F", width=2, dash="dash"),
+ line=dict(color="#C49545", width=2, dash="dash"),
))
fig.update_layout(