From a34829041812883ada91430f304cc1d37f43ab0c Mon Sep 17 00:00:00 2001 From: sangheee Date: Tue, 23 Apr 2019 18:29:08 +0900 Subject: [PATCH] modify getting YAxisSecondary range --- chart.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chart.go b/chart.go index 1354bc0..4947afb 100644 --- a/chart.go +++ b/chart.go @@ -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) }