test: add test for chart
This commit is contained in:
parent
56709e22b7
commit
11fdd9121a
4 changed files with 304 additions and 16 deletions
|
|
@ -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%",
|
||||
}),
|
||||
},
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue