works, ish.
This commit is contained in:
parent
ac5cb1a00b
commit
2e8d196621
3 changed files with 20 additions and 13 deletions
1
xaxis.go
1
xaxis.go
|
|
@ -160,6 +160,7 @@ func (xa XAxis) Render(r Renderer, canvasBox Box, ra Range, defaults Style, tick
|
|||
llx := ra.Translate(ticks[index-1].Value)
|
||||
ltx := canvasBox.Left + llx
|
||||
finalTickStyle := tickWithAxisStyle.InheritFrom(Style{TextHorizontalAlign: TextHorizontalAlignCenter})
|
||||
|
||||
Draw.TextWithin(r, t.Label, Box{
|
||||
Left: ltx,
|
||||
Right: tx,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue