feat: support option function for chart render
This commit is contained in:
parent
1be8d43405
commit
2316689ce5
5 changed files with 429 additions and 3 deletions
|
|
@ -128,7 +128,7 @@ type PieSeriesOption struct {
|
|||
Names []string
|
||||
}
|
||||
|
||||
func NewPieSeriesList(values []float64, opts ...PieSeriesOption) []Series {
|
||||
func NewPieSeriesList(values []float64, opts ...PieSeriesOption) SeriesList {
|
||||
result := make([]Series, len(values))
|
||||
var opt PieSeriesOption
|
||||
if len(opts) != 0 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue