feat: support subtext for title
This commit is contained in:
parent
dfba1ceafc
commit
126244ba52
5 changed files with 81 additions and 30 deletions
2
xaxis.go
2
xaxis.go
|
|
@ -56,7 +56,7 @@ func drawXAxis(p *Draw, opt *XAxisOption) (int, *Range, error) {
|
|||
|
||||
boundary := true
|
||||
max := float64(len(opt.Data))
|
||||
if opt.BoundaryGap != nil && !*opt.BoundaryGap {
|
||||
if isFalse(opt.BoundaryGap) {
|
||||
boundary = false
|
||||
max--
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue