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

SelectableLegend doesn't hide Pie-Chart segments #309

Open
gerpres opened this issue Jul 19, 2019 · 1 comment
Open

SelectableLegend doesn't hide Pie-Chart segments #309

gerpres opened this issue Jul 19, 2019 · 1 comment

Comments

@gerpres
Copy link

gerpres commented Jul 19, 2019

may be broken since v1.12
some similar code than:

run = arr.map(this.run.data, function(item, i){
	if(typeof item != "number" && item.hidden){ 
		this.runFilter.push(i); 
		item.hidden = false; 
	} 
	if(arr.some(this.runFilter, function(filter){return filter == i;})){ 
		if(typeof item == "number"){ 
			return 0; 
		}else{ 
			return {y: 0, text: item.text}; 
		} 
	}else{ 
		return item; 
	} 
}, this);

is missing in Pie.js

SelectableLegend.js populates plot's runFilter-array, but it's never taken into account

@gerpres
Copy link
Author

gerpres commented Mar 4, 2020

any ideas?

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

1 participant