vicanso / go-charts

A charts library for Golang

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Pie chart percentage enable ,disable

abhijitpawar12 opened this issue · comments

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

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