JavaScript reproduction of https://github.com/plotly/plotly.py/issues/1527 reported by @SaschaJust CodePen: https://codepen.io/jonmmease/pen/KYBqWR 