fix: support chinese for axis, #4

This commit is contained in:
vicanso 2022-05-01 11:15:13 +08:00
parent a713c3023e
commit cad8296e28
4 changed files with 7 additions and 0 deletions

View file

@ -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