feat: support rect legend
This commit is contained in:
parent
a5754bb1b3
commit
a713c3023e
4 changed files with 45 additions and 24 deletions
|
|
@ -235,10 +235,13 @@ func indexHandler(w http.ResponseWriter, req *http.Request) {
|
|||
"Sat",
|
||||
"Sun",
|
||||
}),
|
||||
Legend: charts.NewLegendOption([]string{
|
||||
"Rainfall",
|
||||
"Evaporation",
|
||||
}),
|
||||
Legend: charts.LegendOption{
|
||||
Data: []string{
|
||||
"Rainfall",
|
||||
"Evaporation",
|
||||
},
|
||||
Icon: charts.LegendIconRect,
|
||||
},
|
||||
SeriesList: []charts.Series{
|
||||
charts.NewSeriesFromValues([]float64{
|
||||
120,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue