also do this for the secondary axis
This commit is contained in:
parent
182d5a199b
commit
7a3d6a6915
12
chart.go
12
chart.go
|
@ -283,11 +283,13 @@ func (c Chart) getRanges() (xrange, yrange, yrangeAlt Range) {
|
||||||
yrangeAlt.SetMin(minya)
|
yrangeAlt.SetMin(minya)
|
||||||
yrangeAlt.SetMax(maxya)
|
yrangeAlt.SetMax(maxya)
|
||||||
|
|
||||||
delta := yrangeAlt.GetDelta()
|
if c.YAxisSecondary.Style.Show {
|
||||||
roundTo := Math.GetRoundToForDelta(delta)
|
delta := yrangeAlt.GetDelta()
|
||||||
rmin, rmax := Math.RoundDown(yrangeAlt.GetMin(), roundTo), Math.RoundUp(yrangeAlt.GetMax(), roundTo)
|
roundTo := Math.GetRoundToForDelta(delta)
|
||||||
yrangeAlt.SetMin(rmin)
|
rmin, rmax := Math.RoundDown(yrangeAlt.GetMin(), roundTo), Math.RoundUp(yrangeAlt.GetMax(), roundTo)
|
||||||
yrangeAlt.SetMax(rmax)
|
yrangeAlt.SetMin(rmin)
|
||||||
|
yrangeAlt.SetMax(rmax)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return
|
return
|
||||||
|
|
Loading…
Reference in New Issue
Block a user