Commit 1a5443feb1
Verified · cmc ci/build: success ci/lint: success
Layout: unified · split
utils/salary_visualization.py +6 −5
| @@ -43,7 +43,7 @@ BRAND = { | ||
| 43 | 43 | "KPMG": "#00338d", |
| 44 | 44 | } |
| 45 | 45 | PATTERN = {"salaried": "", "hourly": "/"} |
| 46 | BAR_HEIGHT = 1800 # in dollars, about 6px at the default figure size | |
| 46 | BAR_HEIGHT = 1400 # in dollars, about 6px at the default figure size | |
| 47 | 47 | HOURS_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 | 171 | fig.add_annotation( |
| 172 | 172 | x=0, |
| 173 | y=-0.2, | |
| 173 | y=0, | |
| 174 | yshift=-105, | |
| 174 | 175 | xref="paper", |
| 175 | 176 | yref="paper", |
| 176 | 177 | text=( |
| @@ -195,9 +196,9 @@ def build_figure(df: pd.DataFrame, theme: str = "light") -> go.Figure: | ||
| 195 | 196 | paper_bgcolor=t["surface"], |
| 196 | 197 | plot_bgcolor=t["surface"], |
| 197 | 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 | 200 | width=1600, |
| 200 | height=800, | |
| 201 | height=1000, | |
| 201 | 202 | xaxis={ |
| 202 | 203 | "type": "date", |
| 203 | 204 | "showgrid": True, |
| @@ -216,7 +217,7 @@ def build_figure(df: pd.DataFrame, theme: str = "light") -> go.Figure: | ||
| 216 | 217 | legend={ |
| 217 | 218 | "orientation": "h", |
| 218 | 219 | "yanchor": "top", |
| 219 | "y": -0.09, | |
| 220 | "y": -0.07, | |
| 220 | 221 | "xanchor": "center", |
| 221 | 222 | "x": 0.5, |
| 222 | 223 | "title": None, |