Skip to content

SelectableLegend doesn't hide Pie-Chart segments #309

Description

@gerpres

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions