From 182c4eeed29ada24c2475ba8228d58b86d89df0b Mon Sep 17 00:00:00 2001 From: Will Charczuk Date: Fri, 12 May 2017 13:26:17 -0700 Subject: [PATCH] updates --- _examples/twoaxis/main.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/_examples/twoaxis/main.go b/_examples/twoaxis/main.go index 6c87a3f..baac87e 100644 --- a/_examples/twoaxis/main.go +++ b/_examples/twoaxis/main.go @@ -5,6 +5,7 @@ import ( "net/http" "github.com/wcharczuk/go-chart" + util "github.com/wcharczuk/go-chart/util" ) func drawChart(res http.ResponseWriter, req *http.Request) { @@ -23,7 +24,7 @@ func drawChart(res http.ResponseWriter, req *http.Request) { TickPosition: chart.TickPositionBetweenTicks, ValueFormatter: func(v interface{}) string { typed := v.(float64) - typedDate := chart.Time.FromFloat64(typed) + typedDate := util.Time.FromFloat64(typed) return fmt.Sprintf("%d-%d\n%d", typedDate.Month(), typedDate.Day(), typedDate.Year()) }, },