bug fixes and refinements.
This commit is contained in:
parent
52e80c183d
commit
debd56f494
7 changed files with 31 additions and 21 deletions
4
yaxis.go
4
yaxis.go
|
|
@ -122,10 +122,10 @@ func (ya YAxis) Render(r Renderer, canvasBox Box, ra Range, ticks []Tick) {
|
|||
var tx int
|
||||
if ya.AxisType == YAxisPrimary {
|
||||
lx = canvasBox.Right
|
||||
tx = canvasBox.Right + DefaultYAxisMargin
|
||||
tx = lx + DefaultYAxisMargin
|
||||
} else if ya.AxisType == YAxisSecondary {
|
||||
lx = canvasBox.Left
|
||||
tx = canvasBox.Left - DefaultYAxisMargin
|
||||
tx = lx - DefaultYAxisMargin
|
||||
}
|
||||
|
||||
r.MoveTo(lx, canvasBox.Bottom)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue