tweaks
This commit is contained in:
parent
be0ad5560a
commit
9b804502c0
1 changed files with 4 additions and 0 deletions
|
@ -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{
|
||||||
|
|
Loading…
Reference in a new issue