refactor: enhance legend render function
This commit is contained in:
parent
9dbea37f55
commit
910e2dc422
3 changed files with 19 additions and 3 deletions
1
chart.go
1
chart.go
|
|
@ -81,6 +81,7 @@ func (o *ChartOption) FillDefault(t *Theme) {
|
|||
Bottom: 5,
|
||||
}
|
||||
}
|
||||
o.Legend.Theme = t
|
||||
if o.Legend.Style.FontSize == 0 {
|
||||
o.Legend.Style.FontSize = 8
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue