test fixes

This commit is contained in:
Will Charczuk 2016-07-17 14:32:27 -07:00
parent cea31c6c23
commit eb61fbfd0f
2 changed files with 2 additions and 1 deletions

View File

@ -178,6 +178,7 @@ func (c Chart) getRanges() (xrange, yrange, yrangeAlt Range) {
} else if seriesAxis == YAxisSecondary { } else if seriesAxis == YAxisSecondary {
minya = math.Min(minya, vy) minya = math.Min(minya, vy)
maxya = math.Max(maxya, vy) maxya = math.Max(maxya, vy)
hasSecondaryAxis = true
} }
} }
} }

View File

@ -11,7 +11,7 @@ func TestTimeValueFormatterWithFormat(t *testing.T) {
assert := assert.New(t) assert := assert.New(t)
d := time.Now() d := time.Now()
di := d.Unix() di := TimeToFloat64(d)
df := float64(di) df := float64(di)
s := TimeValueFormatterWithFormat(d, DefaultDateFormat) s := TimeValueFormatterWithFormat(d, DefaultDateFormat)