Skip to content

Commit 2bd0640

Browse files
authored
Add subtitle (#76)
1 parent 18ef15e commit 2bd0640

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

manager_for_ynab/sankey/__init__.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -380,10 +380,12 @@ def build_echarts_html(data: SankeyData, *, start: date, end: date) -> str:
380380
),
381381
layout_iterations=0,
382382
node_gap=10,
383+
pos_top="80px",
383384
)
384385
.set_global_opts(
385386
title_opts=options.TitleOpts(
386-
title=f"Spending Sankey: {start.isoformat()} to {end.isoformat()}"
387+
title=f"Spending Sankey: {start.isoformat()} to {end.isoformat()}",
388+
subtitle=f"Generated on {date.today().isoformat()}",
387389
)
388390
)
389391
.render_embed()

0 commit comments

Comments
 (0)