todo, omit only zeroes from htlm
This commit is contained in:
@@ -103,9 +103,11 @@ func main() {
|
|||||||
series[i] = int(lastValue)
|
series[i] = int(lastValue)
|
||||||
}
|
}
|
||||||
key := fmt.Sprintf("%s (%s)", name, currency)
|
key := fmt.Sprintf("%s (%s)", name, currency)
|
||||||
|
if slices.Min(series) != 0 || slices.Max(series) != 0 {
|
||||||
line.AddYAxis(key, series)
|
line.AddYAxis(key, series)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
case "/reg":
|
case "/reg":
|
||||||
for name, currencyDateValue := range nameCurrencyDateValue {
|
for name, currencyDateValue := range nameCurrencyDateValue {
|
||||||
for currency, dateValue := range currencyDateValue {
|
for currency, dateValue := range currencyDateValue {
|
||||||
@@ -122,10 +124,12 @@ func main() {
|
|||||||
series[i] = int(lastValue - prevValue)
|
series[i] = int(lastValue - prevValue)
|
||||||
}
|
}
|
||||||
key := fmt.Sprintf("%s (%s)", name, currency)
|
key := fmt.Sprintf("%s (%s)", name, currency)
|
||||||
|
if slices.Min(series) != 0 || slices.Max(series) != 0 {
|
||||||
line.AddYAxis(key, series)
|
line.AddYAxis(key, series)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
if err := line.Render(w); err != nil {
|
if err := line.Render(w); err != nil {
|
||||||
panic(err)
|
panic(err)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
todo:
|
todo:
|
||||||
|
- html has stacked bar chart version
|
||||||
- html version has fields and submit button rather than query params by hand
|
- html version has fields and submit button rather than query params by hand
|
||||||
- html version can accept new transactions for moolah
|
- html version can accept new transactions for moolah
|
||||||
- html version has projections based on compounding/non compounding interest and rate
|
- html version has projections based on compounding/non compounding interest and rate
|
||||||
|
|||||||
Reference in New Issue
Block a user