Update to work with plotly 1.x.