feat: support title render function
This commit is contained in:
parent
ccdaf70dcb
commit
ffbda8f214
12 changed files with 455 additions and 141 deletions
1
util.go
1
util.go
|
|
@ -67,6 +67,7 @@ func maxInt(values ...int) int {
|
|||
return result
|
||||
}
|
||||
|
||||
// measureTextMaxWidthHeight returns maxWidth and maxHeight of text list
|
||||
func measureTextMaxWidthHeight(textList []string, r chart.Renderer) (int, int) {
|
||||
maxWidth := 0
|
||||
maxHeight := 0
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue