fixing examples

This commit is contained in:
Will Charczuk 2017-05-12 17:06:45 -07:00
parent 4d93883953
commit 50b025e273
32 changed files with 87 additions and 67 deletions

View file

@ -32,7 +32,7 @@ func drawChart(res http.ResponseWriter, req *http.Request) {
Series: []chart.Series{
chart.ContinuousSeries{
XValues: seq.Range(1.0, 100.0),
YValues: seq.New(seq.NewRandom().WithLen(100).WithAverage(256)).Array(),
YValues: seq.RandomValuesWithMax(100, 512),
},
},
}
@ -59,7 +59,7 @@ func drawChartDefault(res http.ResponseWriter, req *http.Request) {
Series: []chart.Series{
chart.ContinuousSeries{
XValues: seq.Range(1.0, 100.0),
YValues: seq.New(seq.NewRandom().WithLen(100).WithAverage(256)).Array(),
YValues: seq.RandomValuesWithMax(100, 512),
},
},
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 67 KiB

After

Width:  |  Height:  |  Size: 66 KiB

Before After
Before After