From 63a26acadddf7b516176c43d9b8fdb1200ddd6fa Mon Sep 17 00:00:00 2001 From: Will Charczuk Date: Sun, 7 Aug 2016 00:33:48 -0700 Subject: [PATCH] zero line? --- yaxis.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/yaxis.go b/yaxis.go index abc9f5e..66351b3 100644 --- a/yaxis.go +++ b/yaxis.go @@ -189,6 +189,10 @@ func (ya YAxis) Render(r Renderer, canvasBox Box, ra Range, defaults Style, tick r.ClearTextRotation() } + if ya.Zero.Style.Show { + ya.Zero.Render(r, canvasBox, ra, Style{}) + } + if ya.GridMajorStyle.Show || ya.GridMinorStyle.Show { for _, gl := range ya.GetGridLines(ticks) { if (gl.IsMinor && ya.GridMinorStyle.Show) || (!gl.IsMinor && ya.GridMajorStyle.Show) {