tweak for line overlap.
This commit is contained in:
parent
f3a6eb0960
commit
f572279469
1 changed files with 4 additions and 2 deletions
6
yaxis.go
6
yaxis.go
|
@ -130,13 +130,15 @@ func (ya YAxis) Render(r Renderer, canvasBox Box, ra Range, defaults Style, tick
|
||||||
|
|
||||||
sort.Sort(Ticks(ticks))
|
sort.Sort(Ticks(ticks))
|
||||||
|
|
||||||
|
sw := ya.Style.GetStrokeWidth(defaults.StrokeWidth)
|
||||||
|
|
||||||
var lx int
|
var lx int
|
||||||
var tx int
|
var tx int
|
||||||
if ya.AxisType == YAxisPrimary {
|
if ya.AxisType == YAxisPrimary {
|
||||||
lx = canvasBox.Right
|
lx = canvasBox.Right + int(sw)
|
||||||
tx = lx + DefaultYAxisMargin
|
tx = lx + DefaultYAxisMargin
|
||||||
} else if ya.AxisType == YAxisSecondary {
|
} else if ya.AxisType == YAxisSecondary {
|
||||||
lx = canvasBox.Left
|
lx = canvasBox.Left - int(sw)
|
||||||
tx = lx - DefaultYAxisMargin
|
tx = lx - DefaultYAxisMargin
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue