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
yaxis.go
4
yaxis.go
|
|
@ -96,7 +96,9 @@ func drawYAxis(p *Draw, opt *ChartOption, axisIndex, xAxisHeight int, padding ch
|
|||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
dYAxis.Font = opt.Font
|
||||
if opt.Font != nil {
|
||||
dYAxis.Font = opt.Font
|
||||
}
|
||||
NewAxis(dYAxis, data, style).Render()
|
||||
yRange.Size = dYAxis.Box.Height()
|
||||
return &yRange, nil
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue