See https://jsfiddle.net/3trr91m0/2/ May be related https://github.com/plotly/plotly.js/issues/771