diff --git a/web/src/expense.ts b/web/src/expense.ts index a5b6c72..2ffed4a 100644 --- a/web/src/expense.ts +++ b/web/src/expense.ts @@ -283,7 +283,6 @@ function renderCurrentExpensesBreakdown( .attr("alignment-baseline", "middle") .attr("x", width + 125) .attr("y", function (d) { - console.log(sprintf("|%7.2f|", (d.total / total) * 100)); return y(d.category) + y.bandwidth() / 2; }) .style("white-space", "pre") diff --git a/web/src/overview.ts b/web/src/overview.ts index ba5768f..483b821 100644 --- a/web/src/overview.ts +++ b/web/src/overview.ts @@ -51,6 +51,7 @@ function renderOverview(points: Overview[], element: Element) { const areaScale = d3.scaleOrdinal().domain(areaKeys).range(colors); const lineKeys = ["networth", "investment"]; + const labels = ["Net Worth", "Net Investment"]; const lineScale = d3 .scaleOrdinal() .domain(lineKeys) @@ -203,7 +204,7 @@ function renderOverview(points: Overview[], element: Element) { .labelOffset(22) .shapeHeight(3) .shapeWidth(25) - .labels(lineKeys) + .labels(labels) .scale(lineScale); svg.select(".legendLine").call(legendLine as any);