Adds a line chart capability to the app, but needs plumbing in.

Also a few minor fixes around the events count in functions.php