feat: support box option for chart
This commit is contained in:
parent
4262b148ca
commit
bff06b2aa5
3 changed files with 17 additions and 219 deletions
2
chart.go
2
chart.go
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue