Editing the legend symbols

here is the solution to hide the Aa labels on legends

get the plotly reference id and find the legend text element and apply the css styling

$("#id").find(“g.pointtext”).find(“text”).css(“visibility”, “hidden”);