adds percent change series

This commit is contained in:
Will Charczuk 2019-09-09 19:57:56 -07:00
parent fed210cc81
commit 602ff901f7
4 changed files with 150 additions and 5 deletions

View file

@ -527,6 +527,8 @@ func TestChartE2ELine(t *testing.T) {
func TestChartE2ELineWithFill(t *testing.T) {
assert := assert.New(t)
logBuffer := new(bytes.Buffer)
c := Chart{
Height: 50,
Width: 50,
@ -550,7 +552,7 @@ func TestChartE2ELineWithFill(t *testing.T) {
YValues: LinearRangeWithStep(0, 4, 1),
},
},
Log: NewLogger(),
Log: NewLogger(OptLoggerStdout(logBuffer), OptLoggerStderr(logBuffer)),
}
assert.Equal(5, len(c.Series[0].(ContinuousSeries).XValues))