From 4121829e6e9c483ac2c659b56a1762192a3f74ea Mon Sep 17 00:00:00 2001 From: vicanso Date: Tue, 21 Jun 2022 20:19:37 +0800 Subject: [PATCH] chore: add png type option function --- chart_option.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/chart_option.go b/chart_option.go index 94574a1..f2f3b51 100644 --- a/chart_option.go +++ b/chart_option.go @@ -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) {