Commit 1a5443feb1

1a5443feb1d429189dc1b5317c337fdee6c5f148

parent: a99b687218

Verified · cmc ci/build: success ci/lint: success

cmc <hello@cleberg.net> · 2026-10-07 23:13 UTC

Give the salary chart more vertical room

Layout: unified · split

utils/salary_visualization.py +6 −5
@@ -43,7 +43,7 @@ BRAND = {
4343 "KPMG": "#00338d",
4444}
4545PATTERN = {"salaried": "", "hourly": "/"}
46BAR_HEIGHT = 1800 # in dollars, about 6px at the default figure size
46BAR_HEIGHT = 1400 # in dollars, about 6px at the default figure size
4747HOURS_PER_YEAR = 2080
4848
4949
@@ -170,7 +170,8 @@ def build_figure(df: pd.DataFrame, theme: str = "light") -> go.Figure:
170170 )
171171 fig.add_annotation(
172172 x=0,
173 y=-0.2,
173 y=0,
174 yshift=-105,
174175 xref="paper",
175176 yref="paper",
176177 text=(
@@ -195,9 +196,9 @@ def build_figure(df: pd.DataFrame, theme: str = "light") -> go.Figure:
195196 paper_bgcolor=t["surface"],
196197 plot_bgcolor=t["surface"],
197198 font={"family": "monospace", "size": 14, "color": t["text"]},
198 margin={"l": 90, "r": 40, "t": 70, "b": 150},
199 margin={"l": 90, "r": 40, "t": 70, "b": 140},
199200 width=1600,
200 height=800,
201 height=1000,
201202 xaxis={
202203 "type": "date",
203204 "showgrid": True,
@@ -216,7 +217,7 @@ def build_figure(df: pd.DataFrame, theme: str = "light") -> go.Figure:
216217 legend={
217218 "orientation": "h",
218219 "yanchor": "top",
219 "y": -0.09,
220 "y": -0.07,
220221 "xanchor": "center",
221222 "x": 0.5,
222223 "title": None,