diff --git a/cmd/clitest/main.go b/cmd/clitest/main.go index a606ee8..019ab70 100644 --- a/cmd/clitest/main.go +++ b/cmd/clitest/main.go @@ -103,7 +103,9 @@ func main() { series[i] = int(lastValue) } key := fmt.Sprintf("%s (%s)", name, currency) - line.AddYAxis(key, series) + if slices.Min(series) != 0 || slices.Max(series) != 0 { + line.AddYAxis(key, series) + } } } case "/reg": @@ -122,7 +124,9 @@ func main() { series[i] = int(lastValue - prevValue) } key := fmt.Sprintf("%s (%s)", name, currency) - line.AddYAxis(key, series) + if slices.Min(series) != 0 || slices.Max(series) != 0 { + line.AddYAxis(key, series) + } } } } diff --git a/todo.yaml b/todo.yaml index 96ad559..c5cf395 100755 --- a/todo.yaml +++ b/todo.yaml @@ -1,4 +1,5 @@ todo: +- html has stacked bar chart version - html version has fields and submit button rather than query params by hand - html version can accept new transactions for moolah - html version has projections based on compounding/non compounding interest and rate