refactor: support more echarts options
This commit is contained in:
parent
23e2eca0c6
commit
c0170bf250
5 changed files with 176 additions and 43 deletions
|
|
@ -46,7 +46,9 @@ type (
|
|||
Style chart.Style
|
||||
}
|
||||
Legend struct {
|
||||
Data []string
|
||||
Data []string
|
||||
Align string
|
||||
Padding chart.Box
|
||||
}
|
||||
Options struct {
|
||||
Width int
|
||||
|
|
@ -177,6 +179,8 @@ func New(opt Options) (Graph, error) {
|
|||
Theme: opt.Theme,
|
||||
TextPosition: LegendTextPositionRight,
|
||||
IconDraw: DefaultLegendIconDraw,
|
||||
Align: opt.Legend.Align,
|
||||
Padding: opt.Legend.Padding,
|
||||
}),
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue