adds percent change series
This commit is contained in:
parent
fed210cc81
commit
602ff901f7
4 changed files with 150 additions and 5 deletions
|
|
@ -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))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue