fix: fix unit count of xasix

This commit is contained in:
vicanso 2022-07-26 20:44:50 +08:00
parent 3d20bea846
commit cac6fd03d3
3 changed files with 10 additions and 4 deletions

View file

@ -232,7 +232,7 @@ func (l *legendPainter) Render() (Box, error) {
x0 += measureList[index].Width()
if opt.Align == AlignRight {
x0 += textOffset
x0 = drawIcon(0, x0)
x0 = drawIcon(y0, x0)
}
if opt.Orient == OrientVertical {
y0 += offset