test: add test for chart

This commit is contained in:
vicanso 2022-02-12 16:12:02 +08:00
parent 56709e22b7
commit 11fdd9121a
4 changed files with 304 additions and 16 deletions

View file

@ -460,8 +460,10 @@ func indexHandler(w http.ResponseWriter, req *http.Request) {
484,
300,
}, charts.PieSeriesOption{
LabelShow: true,
Radius: "35%",
Label: charts.SeriesLabel{
Show: true,
},
Radius: "35%",
}),
},
// 多图展示
@ -551,8 +553,10 @@ func indexHandler(w http.ResponseWriter, req *http.Request) {
285.9,
204.5,
}, charts.PieSeriesOption{
LabelShow: true,
Radius: "35%",
Label: charts.SeriesLabel{
Show: true,
},
Radius: "35%",
}),
},
},