Visualization of my blog categories

Posted: - Modified: | visualization, blogging, visual

This visualizes how often I blogged something with a tag in a given year, sorted by all-time popularity. There are more categories, but I skipped them. The height of each block represents how many blog posts I wrote in that category, while the different blocks represent the years, ending with 2010 at the far right. The graph reflects changing interests and recurring themes.

image

This visualizes some of the things I’ve been writing about in 2010. We’re only a month in, so the last line is pretty small, and in some cases (n < 4) not even visible.

image

Sparkline bar graphs created with Sparklines for Excel. Initial categories table created with the following SQL incantation:

select p.post_date, p.post_title, terms.name from wp_posts p inner join wp_term_relationships tr on p.id=tr.object_id inner join wp_term_taxonomy tt on tr.term_taxonomy_id=tt.term_taxonomy_id inner join wp_terms terms on tt.term_id=terms.term_id into outfile '/tmp/categories.csv';

then imported and tweaked in Microsoft Excel.

You can view 5 comments or e-mail me at sacha@sachachua.com.

5 comments

So clever. What was the data file?

The data file was a CSV created using the SQL statement above. It had the post date, title, and category name. I then used the YEAR function in Microsoft Excel to extract just the year, and I used a pivot table to sum it all up. I could've done that in SQL too (the summary, and probably the year calculation too), but pulling in the raw post data meant that I could slice and dice it in other ways.

Thanks Sacha. I think I would have to export a CSV file from Wordpress.com Then I can find my way though Excel from there.

Great idea!

Oh, that's what you meant. =) Yes, you'll probably have to export your posts and then figure out what to do with them. One of the perks of hosting my own Wordpress installation is that I can play around with the database myself.

Good point. I am in the process of migrating my blog. Maybe I should do that first.