Your codepen is using the pre-open-source plotly.js. No wonder it’s not working.
Here’s a working version http://codepen.io/etpinard/pen/gLoNgR
Your codepen is using the pre-open-source plotly.js. No wonder it’s not working.
Here’s a working version http://codepen.io/etpinard/pen/gLoNgR