feat: support bar chart render
This commit is contained in:
parent
8a5990fe8f
commit
b69728dd12
11 changed files with 408 additions and 50 deletions
|
|
@ -87,6 +87,9 @@ func (l *legendPainter) Render() (Box, error) {
|
|||
if opt.FontColor.IsZero() {
|
||||
opt.FontColor = theme.GetTextColor()
|
||||
}
|
||||
if opt.Left == "" {
|
||||
opt.Left = PositionCenter
|
||||
}
|
||||
p := l.p
|
||||
p.SetTextStyle(Style{
|
||||
FontSize: opt.FontSize,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue