Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- dropDown.on("change", function () {
- var selected = this.value;
- displayOthers = this.checked ? "inline" : "none";
- display = this.checked ? "none" : "inline";
- hGsvg.selectAll(".bar").data(data[this.value])
- .filter(function() {return (selected != sF) ;})
- .attr("display", displayOthers);
- hGsvg.selectAll(".bar").data(data[this.value])
- .filter(function() {return (selected == sF) ;})
- .attr("display", display);
- console.log(selected);
- });
Add Comment
Please, Sign In to add comment