Embedding Participation Rates on Your Website


Using the “Track Participation Rate” option on the Take 10 map, you can grab a widget to display the daily rate for your specific geography, but it doesn’t actually give you all the code you need.

Here is the code it gives you, which is really just a URL link:

http://2010.census.gov/2010census/take10map/2010partcipationrateswidget.php?loc=18

Here is the full code you need to add to your webpage in order to actually display this as part of a page, as seen on Indiana’s site:

A few things to note

  • You’ll change the “src=” URL in the above code to the URL you get from the “Track Participation Rate” link on the Take 10 map . (Alternatively, the last piece of the URL “loc=” refers to state, county, township, or tract FIPS code so you could just change it and skip the Take10 map step).
  • At the moment, there doesn’t seem to be a way to use this widget for places (not sure if that’s intentional or just a bug). If you’re on a place on the Take10 map and click “Track Participation Rate,” you just receive the link for the state rate. And manually adding in the FIPS code doesn’t seem to work either.

UPDATE: Clifford Holley pointed out that the FIPS option is now working for places (example). Update the “loc=” command to use the 2-digit state FIPS plus the 5-digit place FIPS. (For those who don’t know city/town FIPS off the top of your head, the Missouri Data Center has compiled them for easy reference: http://mcdc2.missouri.edu/pub/webrepts/commoncodes/)

  • You can set the width bigger, but 200 pixels wide is as small as this will go without doing some nasty things with text wrapping.
  • All the quote marksĀ  in the code should be straight quotes and not curly quotes (I can’t get WordPress to accurately render them). If this gives you an encoding error when you try to paste it into your site, simply replace the quote marks.
About these ads

One thought on “Embedding Participation Rates on Your Website

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s