This simple line chart is constructed from a TSV file storing the closing value of AAPL stock over the last few years. The chart employs conventional margins and a number of D3 features:
This also uses simple-statistics to derive a linear regression of the price changes.
Modified http://d3js.org/d3.v3.js to a secure url
https://d3js.org/d3.v3.js
https://npmcdn.com/simple-statistics@2.0.0-beta3/dist/simple-statistics.min.js