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