jsoma / playfair-projects

Common repository of projects for Playfair
6 stars 32 forks source link

A Swiss Singles Map #193

Closed palrogg closed 8 years ago

palrogg commented 8 years ago

Brief summary

A d3.js map of singles in Switzerland. This looks familiar.

I learnt to draw D3.js maps at the Map Club organized by Emily Fuhrman.

Link and preview

http://ww2.paulronga.ch/singles

capture d ecran 2016-08-10 a 01 52 20

Possible headlines

Census data extractor: https://www.pxweb.bfs.admin.ch/Selection.aspx?px_language=en&px_db=px-x-0102010000_102&px_tableid=px-x-0102010000_102px-x-0102010000_102.px&px_type=PX

Canton polygons: http://www.toposhop.admin.ch/en/shop/products/landscape/gg25_1

Edit: new dataset about religion and canton: http://www.bfs.admin.ch/bfs/portal/fr/index/themen/01/05/blank/key/religionen.html

New dataset about weddings by age and canton: http://www.bfs.admin.ch/bfs/portal/fr/index/infothek/lexikon/lex/0.Document.97673.xls

Inspiration

Nuptiality by canton: http://www.bfs.admin.ch/bfs/portal/fr/index/infothek/lexikon/lex/0.Document.104051.xls These “singles maps”: example one, example two (the first example is much better)

(Another useful search page: Encyclopédie statistique de la Suisse )

Story issue checklist

My pitch was (use the number): #159

This thumb is just for @playfairbot. Maybe he doesn't recognize the previous one because it's inside a link

capture d ecran 2016-08-10 a 01 52 20
playfairbot commented 8 years ago

Hi there, I'm the Playfair Bot!

Would you mind adding a category to your issue title? Something like [Pitch] or [Story], or maybe [Meta] if it happens to be a bug. That way we can organize things nice and neat.

Thanks! :pray:

playfairbot commented 8 years ago

Hi there, I'm the Playfair Bot!

Thanks for posting your story issue, but would you mind adding editing the original issue to add the first draft of your image? You have my sincere apologies, but it's easier for dumb robots like me when the comments are only used for updates.

Thanks! :pray:

barjacks commented 8 years ago

I don't understand the methodology, at least the way you have described. I think that needs to be approved. Otherwise. Great story, front page! "If you're 18 and are looking for a girl friend, move to Uri!"

thisss commented 8 years ago

Wow, that looks amazing. If possible, I would include a link to the census data and some information about the actual questions the people were asked.

spm2164 commented 8 years ago

I love your map, but as we discussed, I'm not sure about your method. Maybe ask Soma exactly how he got to his aggregate numbers, but I don't think he just subtracted the singles of one gender from the other. He still displayed the total number, he just switched color to show the balance of power between the sexes. Or, so I thought. Either way, great work.

junebugseo commented 8 years ago

it would be helpful to have legend of color intensity! I want to know the difference between dark blue and light blue!

mercye commented 8 years ago

It's v cool that you made an interactive!

palrogg commented 8 years ago

Thank you so much for your feedback! I definitely need to add a color legend and an explanation about how the calculation is made.

The code is:

[Here's the notebook]

palrogg commented 8 years ago

Merging the data about religion and singles was unexpectedly easy. Finding the dataset about religion took me ages, thought!

The religions in Switzerland (draft chart, I have to find a better way to show this data anyway):

religions_edit

And I just exported a JSON file containing the Singles by age AND the religions for each canton. Next update...

palrogg commented 8 years ago

People who have no religion. Problem: the regions are much too big (cities and countryside are together)

capture d ecran 2016-08-24 a 10 31 04
playfairbot commented 8 years ago

Closing since pull request #217 has been accepted