tweak for line overlap.

This commit is contained in:
Will Charczuk 2016-07-18 17:15:24 -07:00
parent f3a6eb0960
commit f572279469

View File

@ -130,13 +130,15 @@ func (ya YAxis) Render(r Renderer, canvasBox Box, ra Range, defaults Style, tick
sort.Sort(Ticks(ticks))
sw := ya.Style.GetStrokeWidth(defaults.StrokeWidth)
var lx int
var tx int
if ya.AxisType == YAxisPrimary {
lx = canvasBox.Right
lx = canvasBox.Right + int(sw)
tx = lx + DefaultYAxisMargin
} else if ya.AxisType == YAxisSecondary {
lx = canvasBox.Left
lx = canvasBox.Left - int(sw)
tx = lx - DefaultYAxisMargin
}