Live data from Hacker News

Gmail data visualization with D3.js

luk3thomas.com

1–10 of 13 posts

Re: Gmail data visualization with D3.js

#4
post #2

This is great! Any chance, you'll be sharing the code for this? Would love to use it on my inbox.

Because D3 is javascript based, the code is already there:

view-source:http://luk3thomas.com/labs/gmail-archive-for-2013-20140224.h...

Just parse your data to look like his: http://luk3thomas.com/labs/data/2014-02-24-gmail-archive-for...

Re: Gmail data visualization with D3.js

#8
post #2

This is great! Any chance, you'll be sharing the code for this? Would love to use it on my inbox.

Yep, all the source code is in the page.

view-source:http://luk3thomas.com/labs/gmail-archive-for-2013-20140224.h...

The hard part is parsing your gmail.mbox file from google takeout. You can use `egrep '^From [0-9]|X-Gmail-Labels' gmail.mbox` as a good starting place for finding the labels and dates for each email. Personally, once I had the data I stored that data in a SQL database and ran an aggregate query to count the emails for each label every month.

I'm sure there is a better way to do it.

Re: Gmail data visualization with D3.js

#9
post #2

This is great! Any chance, you'll be sharing the code for this? Would love to use it on my inbox.

Yep, all the source code is in the page. view-source: http://luk3thomas.com/labs/gmail-archive-for-2013-20140224.h... The hard part is parsing your gmail.mbox file from google takeout. You can use `egrep '^From [0-9]|X-Gmail-Labels' gmail.mbox` as a good starting place for finding the labels and dates for each email. Personally, once I had the data I stored that data in a SQL database and ran an aggregate query to co…

[deleted]
Post reply on HN