Here I’m just experimenting around with using d3. I took a dataset of Tesla stock prices from July 2010, when Tesla first went public, to June 2011 and analyzed it a few different ways.

First, I plotted them as a Candlestick Chart.

From this chart, I could see visually that Tesla stock in its first full year on the market was pretty volatile. In fact, I wanted to find out exactly how volatile. Using the dataset, we find:

We can also find the mean price of Tesla stock over the period:

This data is interesting in itself, but what if we compare it to Tesla’s stock prices from a different year to give it a little bit of historical contextualization. For this comparison, I took Tesla’s stock prices from July 2015 to June 2016 and plotted them in the same way.

For the period between July 2015 and June 2016, we find that the volatility of Tesla stock was:

We also find that the mean price in this period was: