If you like this you might also be interested in StashLine my personal finance planning app for IOS.
IndexView helps you visualize long term trends in economic data. It includes long term S&P 500 data going back to 1871 as well as housing and indicator data. Use it to understand the average market returns in multiple ways including with and without inflation and dividends.
Use the boxes at the top left or scroll on the graph to select a time period. Different statistics on the left give you a sense of how much the market grew during the time period shown. You can overlay other data on the graph using the box in the top right to see how data sets relate.
The source code for this tool is on Github