modify getting YAxisSecondary range

This commit is contained in:
sangheee 2019-04-23 18:29:08 +09:00 committed by GitHub
parent 9852fce5a1
commit a348290418
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -276,7 +276,7 @@ func (c Chart) getRanges() (xrange, yrange, yrangeAlt Range) {
if len(c.YAxisSecondary.Ticks) > 0 {
tickMin, tickMax := math.MaxFloat64, -math.MaxFloat64
for _, t := range c.YAxis.Ticks {
for _, t := range c.YAxisSecondary.Ticks {
tickMin = math.Min(tickMin, t.Value)
tickMax = math.Max(tickMax, t.Value)
}