A charts library for Golang
Geek Repo:Geek Repo
Github PK Tool:Github PK Tool
ChuanFF opened this issue a year ago · comments
当x轴字符串过长,x轴会只显示部分字符串。有没有方法让所有的x轴显示?比如字体缩小/字符串倾斜显示等
可通过设置TextRotation属性,如:
TextRotation
func(opt *charts.ChartOption) { opt.XAxis.TextRotation = -math.Pi / 3 },
最终通过 opt.XAxis.FontSize设置字体大小解决了