This commit is contained in:
Will Charczuk 2017-02-06 14:25:09 -08:00
parent be0ad5560a
commit 9b804502c0

View File

@ -1,6 +1,7 @@
package main package main
import ( import (
"fmt"
"net/http" "net/http"
"strconv" "strconv"
"strings" "strings"
@ -94,6 +95,9 @@ func drawChart(res http.ResponseWriter, req *http.Request) {
TickStyle: chart.Style{ TickStyle: chart.Style{
TextRotationDegrees: 45.0, TextRotationDegrees: 45.0,
}, },
ValueFormatter: func(v interface{}) string {
return fmt.Sprintf("%d ms", int(v.(float64)))
},
}, },
XAxis: chart.XAxis{ XAxis: chart.XAxis{
Style: chart.Style{ Style: chart.Style{