fix ui default
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user