fix: fix the font option of axis
This commit is contained in:
parent
cad8296e28
commit
cf2eb91690
2 changed files with 6 additions and 2 deletions
4
xaxis.go
4
xaxis.go
|
|
@ -68,7 +68,9 @@ func drawXAxis(p *Draw, opt *XAxisOption, yAxisCount int) (int, *Range, error) {
|
|||
Right: right,
|
||||
}),
|
||||
)
|
||||
dXAxis.Font = opt.Font
|
||||
if opt.Font != nil {
|
||||
dXAxis.Font = opt.Font
|
||||
}
|
||||
if err != nil {
|
||||
return 0, nil, err
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue