test: add test for charts
This commit is contained in:
parent
212a51083f
commit
6695a3a062
6 changed files with 827 additions and 61 deletions
|
|
@ -69,9 +69,9 @@ type ChartOption struct {
|
|||
// OptionFunc option function
|
||||
type OptionFunc func(opt *ChartOption)
|
||||
|
||||
// PNGTypeOption set png type of chart's output
|
||||
func PNGTypeOption() OptionFunc {
|
||||
return TypeOptionFunc(ChartOutputPNG)
|
||||
// SVGTypeOption set svg type of chart's output
|
||||
func SVGTypeOption() OptionFunc {
|
||||
return TypeOptionFunc(ChartOutputSVG)
|
||||
}
|
||||
|
||||
// TypeOptionFunc set type of chart's output
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue