From 9b804502c009d61be39d702262aca6c4fe2256d9 Mon Sep 17 00:00:00 2001 From: Will Charczuk Date: Mon, 6 Feb 2017 14:25:09 -0800 Subject: [PATCH] tweaks --- _examples/request_timings/main.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/_examples/request_timings/main.go b/_examples/request_timings/main.go index 7306062..e4781b6 100644 --- a/_examples/request_timings/main.go +++ b/_examples/request_timings/main.go @@ -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{