Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pie chart percentage enable ,disable #79

Open
abhijitpawar12 opened this issue Jun 11, 2024 · 1 comment
Open

Pie chart percentage enable ,disable #79

abhijitpawar12 opened this issue Jun 11, 2024 · 1 comment

Comments

@abhijitpawar12
Copy link

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
Copy link
Owner

vicanso commented Jun 22, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants