chore: add png type option function
This commit is contained in:
parent
6695a3a062
commit
4121829e6e
1 changed files with 5 additions and 0 deletions
|
|
@ -74,6 +74,11 @@ func SVGTypeOption() OptionFunc {
|
||||||
return TypeOptionFunc(ChartOutputSVG)
|
return TypeOptionFunc(ChartOutputSVG)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// PNGTypeOption set png type of chart's output
|
||||||
|
func PNGTypeOption() OptionFunc {
|
||||||
|
return TypeOptionFunc(ChartOutputPNG)
|
||||||
|
}
|
||||||
|
|
||||||
// TypeOptionFunc set type of chart's output
|
// TypeOptionFunc set type of chart's output
|
||||||
func TypeOptionFunc(t string) OptionFunc {
|
func TypeOptionFunc(t string) OptionFunc {
|
||||||
return func(opt *ChartOption) {
|
return func(opt *ChartOption) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue