From f57227946993d8e3f6af7d1de8867f590230f44d Mon Sep 17 00:00:00 2001 From: Will Charczuk Date: Mon, 18 Jul 2016 17:15:24 -0700 Subject: [PATCH] tweak for line overlap. --- yaxis.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/yaxis.go b/yaxis.go index 833ce08..c4557e2 100644 --- a/yaxis.go +++ b/yaxis.go @@ -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 }