test: add test for echart
This commit is contained in:
parent
519c8a492e
commit
c15fec21ad
10 changed files with 1516 additions and 47 deletions
2
draw.go
2
draw.go
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue