modify getting YAxisSecondary range
This commit is contained in:
parent
9852fce5a1
commit
a348290418
1 changed files with 1 additions and 1 deletions
2
chart.go
2
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)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue