Closed stevef1uk closed 3 years ago
Ok. Looking at other examples I have solved this. Not elegant but ...
ValueFormatter: func(v interface{}) string {
if vf, isTime := v.(float64); isTime {
v1 := int64(vf)
v1 = v1 / 1000000000
parsed := time.Unix(v1, 0)
unitTimeInRFC3339 :=parsed.Format(time.RFC3339)
return unitTimeInRFC3339[11:16]
}
Hi,
Nice library.
I am trying to display a time series but want to show hours (within a day) for the X-Axis labels rather than days. Any pointers?
I used the Stock Analysis demo code as my starter for 10.
Regards
Steve