fix: support chinese for axis, #4
This commit is contained in:
parent
a713c3023e
commit
cad8296e28
4 changed files with 7 additions and 0 deletions
1
yaxis.go
1
yaxis.go
|
|
@ -96,6 +96,7 @@ func drawYAxis(p *Draw, opt *ChartOption, axisIndex, xAxisHeight int, padding ch
|
|||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
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