refactor: enhance chart render function
This commit is contained in:
parent
65a1cb11ad
commit
38c4978e44
20 changed files with 665 additions and 462 deletions
|
|
@ -149,9 +149,9 @@ func NewPainter(opts PainterOptions, opt ...PainterOption) (*Painter, error) {
|
|||
}
|
||||
font = f
|
||||
}
|
||||
fn := chart.SVG
|
||||
if opts.Type == ChartOutputPNG {
|
||||
fn = chart.PNG
|
||||
fn := chart.PNG
|
||||
if opts.Type == ChartOutputSVG {
|
||||
fn = chart.SVG
|
||||
}
|
||||
width := opts.Width
|
||||
height := opts.Height
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue