zero line?
This commit is contained in:
parent
a74c8710df
commit
63a26acadd
1 changed files with 4 additions and 0 deletions
4
yaxis.go
4
yaxis.go
|
@ -189,6 +189,10 @@ func (ya YAxis) Render(r Renderer, canvasBox Box, ra Range, defaults Style, tick
|
||||||
r.ClearTextRotation()
|
r.ClearTextRotation()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ya.Zero.Style.Show {
|
||||||
|
ya.Zero.Render(r, canvasBox, ra, Style{})
|
||||||
|
}
|
||||||
|
|
||||||
if ya.GridMajorStyle.Show || ya.GridMinorStyle.Show {
|
if ya.GridMajorStyle.Show || ya.GridMinorStyle.Show {
|
||||||
for _, gl := range ya.GetGridLines(ticks) {
|
for _, gl := range ya.GetGridLines(ticks) {
|
||||||
if (gl.IsMinor && ya.GridMinorStyle.Show) || (!gl.IsMinor && ya.GridMajorStyle.Show) {
|
if (gl.IsMinor && ya.GridMinorStyle.Show) || (!gl.IsMinor && ya.GridMajorStyle.Show) {
|
||||||
|
|
Loading…
Reference in a new issue