Skip to content
This repository has been archived by the owner on Aug 23, 2024. It is now read-only.

Commit

Permalink
zero line?
Browse files Browse the repository at this point in the history
  • Loading branch information
Will Charczuk committed Aug 7, 2016
1 parent a74c871 commit 63a26ac
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions yaxis.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 63a26ac

Please sign in to comment.