farmer luo
farmer luo
> we got back to this after the release, but in the meantime the Go team itself also tackled the problem as you can track [here](https://go-review.googlesource.com/c/go/+/432976/), now we just need...
+1,可以像grafana的图这样就好了: 
> @farmerluo @leslieDD 最新版本已经支持,具体设置如下: > > 1. 设置x axis的boundaryGap为false: charts.XAxisDataOptionFunc(xAxisValue, charts.FalseFlag()), > 2. 根据x轴的value值计算第一个label展示的位置,例如判断value为xx:00 > 3. 设置 opt.XAxis.FirstAxis = firstAxis > > 可参考示例:https://github.com/vicanso/go-charts/blob/main/examples/time_line_chart/main.go 这种方式虽然可以实现,但是还是有些不方便,X轴本质上还不是时间序列,是字符串。