dont need to use curl, just using wget
This commit is contained in:
parent
9ca1b0466a
commit
4d93883953
3 changed files with 4 additions and 4 deletions
|
@ -31,8 +31,8 @@ func drawChart(res http.ResponseWriter, req *http.Request) {
|
|||
},
|
||||
Series: []chart.Series{
|
||||
chart.ContinuousSeries{
|
||||
XValues: seq.Wrap(seq.NewLinear().WithStart(1.0).WithEnd(100.0)).Array(),
|
||||
YValues: seq.Wrap(seq.NewRandom().WithLen(100).WithAverage(256)).Array(),
|
||||
XValues: seq.Range(1.0, 100.0),
|
||||
YValues: seq.New(seq.NewRandom().WithLen(100).WithAverage(256)).Array(),
|
||||
},
|
||||
},
|
||||
}
|
||||
|
@ -58,8 +58,8 @@ func drawChartDefault(res http.ResponseWriter, req *http.Request) {
|
|||
},
|
||||
Series: []chart.Series{
|
||||
chart.ContinuousSeries{
|
||||
XValues: seq.Wrap(seq.NewLinear().WithStart(1.0).WithEnd(100.0)).Array(),
|
||||
YValues: seq.Wrap(seq.NewRandom().WithLen(100).WithAverage(256)).Array(),
|
||||
XValues: seq.Range(1.0, 100.0),
|
||||
YValues: seq.New(seq.NewRandom().WithLen(100).WithAverage(256)).Array(),
|
||||
},
|
||||
},
|
||||
}
|
||||
|
|
Binary file not shown.
Before Width: | Height: | Size: 64 KiB After Width: | Height: | Size: 67 KiB |
Binary file not shown.
Before Width: | Height: | Size: 15 KiB After Width: | Height: | Size: 12 KiB |
Loading…
Reference in a new issue