function labelChangeY(clickedAxis) {
  d3.selectAll(".y-axis-text")
      .filter(".active")
      .classed("active", false)
      .classed("inactive", true);

  clickedAxis.classed("inactive", false).classed("active", true);
}
// change the y axis's status from inactive to active when clicked and change all active to inactive
change the y axis's status from inactive to active when clicked and change all active to inactive
change the y axis ' s status from inactive to active when clicked and change all active to inactive
function labelChangeY(clickedAxis) {
  d3.selectAll(".y-axis-text")
      .filter(".active")
      .classed("active", false)
      .classed("inactive", true);
  clickedAxis.classed("inactive", false).classed("active", true);
}
function labelChangeY ( clickedAxis ) { d3 . selectAll ( ".y-axis-text" ) . filter ( ".active" ) . classed ( "active" , false ) . classed ( "inactive" , true ) ; clickedAxis . classed ( "inactive" , false ) . classed ( "active" , true ) ; }
change the y axis's status from inactive to active when clicked and change all active to inactive
change the y axis ' s status from inactive to active when clicked and change all active to inactive