feat: support font size for series label, #38

This commit is contained in:
vicanso 2022-12-09 20:08:02 +08:00
parent f9a534ea02
commit ef04ac14ab
5 changed files with 13 additions and 2 deletions

View file

@ -156,6 +156,7 @@ func (h *horizontalBarChart) render(result *defaultRenderResult, seriesList Seri
Y: y + barHeight>>1,
Offset: series.Label.Offset,
FontColor: series.Label.Color,
FontSize: series.Label.FontSize,
}
if series.Label.Position == PositionLeft {
labelValue.X = 0