below piece of code does not work in IE 11 it throws a syntax error in the console
g.selectAll(".mainBars").append("text").attr("x",d=>(d.part=="primary"? -40: 40)).attr("y",d=>+6).text(d=>d.key).attr("text-anchor",d=>(d.part=="primary"? "end": "start"));
Using d3.js
bipartite chart for visualization
this code causing the issue in above statement d=>(d.part=="primary"? -40: 40)