fix ui default

This commit is contained in:
Bel LaPointe
2023-10-27 16:47:31 -06:00
parent 35011bc005
commit d3af9e1113
3 changed files with 7 additions and 4 deletions

View File

@@ -65,7 +65,7 @@
<span>
<label for="prediction">prediction</label>
<input name="prediction" type="text" value="contributions=&interest=AssetAccount:Cash USD 0.02"/>
<input name="prediction" type="text" value="contributions=&prediction=interest=AssetAccount:Cash \$ 0.02"/>
</span>
<span>

View File

@@ -234,7 +234,6 @@ func main() {
}
primary := toChart(r.URL.Path == "/bal", r.URL.Query().Get("chart"), register)
if len(predicted) > 0 {
log.Printf("overlapping predicted: %+v", predicted)
primary.Overlap(toChart(r.URL.Path == "/bal", "line", predicted))
}
if err := primary.Render(w); err != nil {
@@ -343,7 +342,10 @@ func (line Line) AddY(name string, v []int) {
for i := range y {
y[i].Value = v[i]
}
line.AddSeries(name, y)
line.AddSeries(name, y).
SetSeriesOptions(charts.WithBarChartOpts(opts.BarChart{
Stack: "stackB",
}))
}
func (line Line) Overlap(other Chart) {