See this pen: https://codepen.io/kMutagene/pen/RwmjKZj Using plotly.js v2.24.1 displays two legends as expected, while changing to a version >= 2.25.0 will only display `legend2`