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

@ -20,12 +20,18 @@ func drawLargeChart(res http.ResponseWriter, r *http.Request) {
if err != nil {
numSeriesInt64 = int64(1)
}
if numSeriesInt64 == 0 {
numSeriesInt64 = 1
}
numSeries := int(numSeriesInt64)
numValuesInt64, err := strconv.ParseInt(r.FormValue("values"), 10, 64)
if err != nil {
numValuesInt64 = int64(100)
}
if numValuesInt64 == 0 {
numValuesInt64 = int64(100)
}
numValues := int(numValuesInt64)
series := make([]chart.Series, numSeries)

Binary file not shown.

After

Width:  |  Height:  |  Size: 68 KiB