vicanso / go-charts

A charts library for Golang
MIT License
216 stars 33 forks source link

Pie chart percentage enable ,disable #79

Open abhijitpawar12 opened 3 months ago

abhijitpawar12 commented 3 months ago

Hi @vicanso Do we have any option to only show name and it's correpsonding count or only name in pie chart instead of showing percentage in it In below pie chart I don't want to show percentage : 71-pie_chart

vicanso commented 3 months ago
func(opt *charts.ChartOption) {
    for index := range opt.SeriesList {
        opt.SeriesList[index].Label.Show = true
        opt.SeriesList[index].Label.Formatter = "{b}"
    }
},