feat: support box option for chart

This commit is contained in:
vicanso 2022-02-12 12:41:14 +08:00
parent 4262b148ca
commit bff06b2aa5
3 changed files with 17 additions and 219 deletions

View file

@ -56,6 +56,7 @@ type ChartOption struct {
Height int
Parent *Draw
Padding chart.Box
Box chart.Box
SeriesList []Series
BackgroundColor drawing.Color
Children []ChartOption
@ -337,6 +338,7 @@ func chartBasicRender(opt *ChartOption) (*basicRenderResult, error) {
Height: opt.getHeight(),
},
PaddingOption(opt.Padding),
BoxOption(opt.Box),
)
if err != nil {
return nil, err