chore: add png type option function

This commit is contained in:
vicanso 2022-06-21 20:19:37 +08:00
parent 6695a3a062
commit 4121829e6e

View file

@ -74,6 +74,11 @@ func SVGTypeOption() OptionFunc {
return TypeOptionFunc(ChartOutputSVG)
}
// 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) {