Skip to content

Commit

Permalink
update projection chart
Browse files Browse the repository at this point in the history
  • Loading branch information
andreasgerstmayr committed Sep 24, 2023
1 parent 5ac5263 commit 2c31d32
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 389 deletions.
10 changes: 7 additions & 3 deletions example/dashboards.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1089,7 +1089,8 @@ dashboards:
return {
tooltip: {
valueFormatter: currencyFormat.format,
trigger: "axis",
valueFormatter: (val) => (val ? currencyFormat.format(val) : ""),
},
legend: {
top: "bottom",
Expand All @@ -1108,21 +1109,24 @@ dashboards:
name: "Net Worth",
smooth: true,
connectNulls: true,
data: months.map((month) => amounts[month] || null),
showSymbol: false,
data: months.map((month) => amounts[month]),
},
{
type: "line",
name: "Excluding onetime txns",
smooth: true,
connectNulls: true,
showSymbol: false,
data: months.map((month) => amountsEx[month]),
},
{
type: "line",
name: "Projection",
lineStyle: {
type: "dotted",
type: "dashed",
},
showSymbol: false,
data: months.map((month) => projection[month]),
},
],
Expand Down
Binary file modified frontend/tests/e2e/__image_snapshots__/dashboard_projection.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 2c31d32

Please sign in to comment.