fixing examples
This commit is contained in:
parent
4d93883953
commit
50b025e273
32 changed files with 87 additions and 67 deletions
|
|
@ -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 |
Loading…
Add table
Add a link
Reference in a new issue