test: add test for echart

This commit is contained in:
vicanso 2022-02-17 22:53:12 +08:00
parent 519c8a492e
commit c15fec21ad
10 changed files with 1516 additions and 47 deletions

View file

@ -114,7 +114,7 @@ func NewDraw(opt DrawOption, opts ...Option) (*Draw, error) {
// 创建render
if d.parent == nil {
fn := chart.SVG
if opt.Type == "png" {
if opt.Type == ChartOutputPNG {
fn = chart.PNG
}
r, err := fn(d.Box.Right, d.Box.Bottom)