vicanso / go-charts

A charts library for Golang

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

当X轴坐标数据太多的时候,会导致一些坐标数据显示不全,这个有什么办法修复吗?可以让坐标数据旋转45度吗

sunshinexyp opened this issue · comments

{
"测试数据1":4,
"测试数据2":1,
"测试数据3":1,
"测试数据4":4,
"测试数据5":2,
"测试数据6":1,
"测试数据7":2
}
image
旋转45度后的效果
image

@sunshinexyp 可以通过设置opt.XAxis.TextRotation 来旋转,可参考#38

请问怎么把数值显示在上面 @vicanso @sunshinexyp
image

@l0nLychen 设置每个series的label为show即可:

			opt.SeriesList[0].Label.Show = true