feat: support horizontal bar chart
This commit is contained in:
parent
b69728dd12
commit
3f24521593
15 changed files with 677 additions and 91 deletions
5
title.go
5
title.go
|
|
@ -95,6 +95,11 @@ func (t *titlePainter) Render() (Box, error) {
|
|||
opt := t.opt
|
||||
p := t.p
|
||||
theme := opt.Theme
|
||||
|
||||
if opt.Text == "" && opt.Subtext == "" {
|
||||
return BoxZero, nil
|
||||
}
|
||||
|
||||
measureOptions := make([]titleMeasureOption, 0)
|
||||
|
||||
if opt.Font == nil {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue