number/values at inside or top of my bar
dickyjoelsaputra opened this issue · comments
@dickyjoelsaputra You can set the label options like this:
- Top of bar
charts.BarRender(
values,
....
// custom option func
func(opt *charts.ChartOption) {
opt.SeriesList[0].Label.Show = true
},
)
- Inside of bar
charts.BarRender(
values,
....
// custom option func
func(opt *charts.ChartOption) {
opt.SeriesList[0].Label.Show = true
opt.SeriesList[0].Label.Position = charts.PositionBottom
},
)