diff --git a/chart.go b/chart.go index 6e9d40a..3956923 100644 --- a/chart.go +++ b/chart.go @@ -178,6 +178,7 @@ func (c Chart) getRanges() (xrange, yrange, yrangeAlt Range) { } else if seriesAxis == YAxisSecondary { minya = math.Min(minya, vy) maxya = math.Max(maxya, vy) + hasSecondaryAxis = true } } } diff --git a/value_formatter_test.go b/value_formatter_test.go index 83b347e..cc402b4 100644 --- a/value_formatter_test.go +++ b/value_formatter_test.go @@ -11,7 +11,7 @@ func TestTimeValueFormatterWithFormat(t *testing.T) { assert := assert.New(t) d := time.Now() - di := d.Unix() + di := TimeToFloat64(d) df := float64(di) s := TimeValueFormatterWithFormat(d, DefaultDateFormat)