I wrote something similar while I was writing my diploma thesis, albeit not that visual. For me it was handy to see whether I was making any progress, so I regularly updated a CSV file with the current number of pages, lines, words, figures, code lines, and code comments. The idea was that on every day I did something I could at least look at the data and see how much (also the script automatically adjusted page, line and word count for the appendix which I didn't want to count).