refactor: enhance axis render function

This commit is contained in:
vicanso 2022-02-01 09:26:57 +08:00
parent 29a1bdc1fb
commit 9dbea37f55
6 changed files with 97 additions and 82 deletions

View file

@ -65,7 +65,7 @@ func (o *ChartOption) FillDefault(t *Theme) {
o.BackgroundColor = t.GetBackgroundColor()
}
if o.Title.Style.FontColor.IsZero() {
o.Title.Style.FontColor = t.GetTitleColor()
o.Title.Style.FontColor = t.GetTextColor()
}
if o.Title.Style.FontSize == 0 {
o.Title.Style.FontSize = 14
@ -88,7 +88,7 @@ func (o *ChartOption) FillDefault(t *Theme) {
o.Legend.Style.Font = f
}
if o.Legend.Style.FontColor.IsZero() {
o.Legend.Style.FontColor = t.GetTitleColor()
o.Legend.Style.FontColor = t.GetTextColor()
}
}