From eb61fbfd0f3d8372db6ca03a21bc37440ee98e3f Mon Sep 17 00:00:00 2001 From: Will Charczuk Date: Sun, 17 Jul 2016 14:32:27 -0700 Subject: [PATCH] test fixes --- chart.go | 1 + value_formatter_test.go | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) 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)