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 = {
43 "KPMG": "#00338d", 43 "KPMG": "#00338d",
44} 44}
45PATTERN = {"salaried": "", "hourly": "/"} 45PATTERN = {"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
47HOURS_PER_YEAR = 2080 47HOURS_PER_YEAR = 2080
48 48
49 49
@@ -170,7 +170,8 @@ def build_figure(df: pd.DataFrame, theme: str = "light") -> go.Figure:
170 ) 170 )
171 fig.add_annotation( 171 fig.add_annotation(
172 x=0, 172 x=0,
173 y=-0.2, 173 y=0,
174 yshift=-105,
174 xref="paper", 175 xref="paper",
175 yref="paper", 176 yref="paper",
176 text=( 177 text=(
@@ -195,9 +196,9 @@ def build_figure(df: pd.DataFrame, theme: str = "light") -> go.Figure:
195 paper_bgcolor=t["surface"], 196 paper_bgcolor=t["surface"],
196 plot_bgcolor=t["surface"], 197 plot_bgcolor=t["surface"],
197 font={"family": "monospace", "size": 14, "color": t["text"]}, 198 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},
199 width=1600, 200 width=1600,
200 height=800, 201 height=1000,
201 xaxis={ 202 xaxis={
202 "type": "date", 203 "type": "date",
203 "showgrid": True, 204 "showgrid": True,
@@ -216,7 +217,7 @@ def build_figure(df: pd.DataFrame, theme: str = "light") -> go.Figure:
216 legend={ 217 legend={
217 "orientation": "h", 218 "orientation": "h",
218 "yanchor": "top", 219 "yanchor": "top",
219 "y": -0.09, 220 "y": -0.07,
220 "xanchor": "center", 221 "xanchor": "center",
221 "x": 0.5, 222 "x": 0.5,
222 "title": None, 223 "title": None,