This visualization shows the results of running NLTK's sentiment analyzer on every line of dialog in The Office for the six characters shown.

Each line plotted shows the sentiment--positive or negative--for the dialog, and the lines are plotted in sequence for all of each character's dialog over each season of the show.

The visualization was created using D3.js. You can move your mouse over the lines to see the dialog spoken, as well as some other data from the analysis.