Spaces:
Sleeping
Sleeping
Upload charts.py with huggingface_hub
Browse files
charts.py
CHANGED
|
@@ -179,6 +179,18 @@ def chart_burn_rate(df: pd.DataFrame) -> go.Figure | None:
|
|
| 179 |
xaxis_title="Date",
|
| 180 |
yaxis_title="Cumulative Dollars",
|
| 181 |
yaxis_tickprefix="$",
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 182 |
)
|
| 183 |
return fig
|
| 184 |
|
|
|
|
| 179 |
xaxis_title="Date",
|
| 180 |
yaxis_title="Cumulative Dollars",
|
| 181 |
yaxis_tickprefix="$",
|
| 182 |
+
annotations=[
|
| 183 |
+
dict(
|
| 184 |
+
text="Dashed line = linear projection (total spend / days elapsed × days remaining)",
|
| 185 |
+
xref="paper",
|
| 186 |
+
yref="paper",
|
| 187 |
+
x=0,
|
| 188 |
+
y=-0.12,
|
| 189 |
+
showarrow=False,
|
| 190 |
+
font=dict(size=11, color="#666666"),
|
| 191 |
+
)
|
| 192 |
+
],
|
| 193 |
+
margin=dict(b=80),
|
| 194 |
)
|
| 195 |
return fig
|
| 196 |
|