fix: fix unit count of xasix
This commit is contained in:
parent
3d20bea846
commit
cac6fd03d3
3 changed files with 10 additions and 4 deletions
|
|
@ -108,9 +108,12 @@ func TitleOptionFunc(title TitleOption) OptionFunc {
|
|||
}
|
||||
|
||||
// TitleTextOptionFunc set title text of chart
|
||||
func TitleTextOptionFunc(text string) OptionFunc {
|
||||
func TitleTextOptionFunc(text string, subtext ...string) OptionFunc {
|
||||
return func(opt *ChartOption) {
|
||||
opt.Title.Text = text
|
||||
if len(subtext) != 0 {
|
||||
opt.Title.Subtext = subtext[0]
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue