This example comes directly from https://plot.ly/javascript/line-and-scatter/, and includes all the HTML needed to render in a browser.