refactor: update examples
This commit is contained in:
parent
2316689ce5
commit
1258262f2c
4 changed files with 65 additions and 54 deletions
|
|
@ -30,6 +30,11 @@ import (
|
|||
// OptionFunc option function
|
||||
type OptionFunc func(opt *ChartOption)
|
||||
|
||||
// PNGTypeOption set png type of chart's output
|
||||
func PNGTypeOption() OptionFunc {
|
||||
return TypeOptionFunc(ChartOutputPNG)
|
||||
}
|
||||
|
||||
// TypeOptionFunc set type of chart's output
|
||||
func TypeOptionFunc(t string) OptionFunc {
|
||||
return func(opt *ChartOption) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue