to your HTML Add class="sortable" to any table you'd like to make sortable Click on the headers to sort Thanks to many, many people for contributions and suggestions. Licenced as X11: http://www.kryogenix.org/code/browser/licence.html This basically means: do what you want with it. */ var stIsIE = /*@cc_on!@*/false; sorttable = { init: function() { // quit if this function has already been called if (arguments.callee.done) return; // flag this function so we don't do the same thing twice arguments.callee.done = true; // kill the timer if (_timer) clearInterval(_timer); if (!document.createElement || !document.getElementsByTagName) return; sorttable.DATE_RE = /^(\d\d?)[\/\.-](\d\d?)[\/\.-]((\d\d)?\d\d)$/; forEach(document.getElementsByTagName('table'), function(table) { if (table.className.search(/\bsortable\b/) != -1) { sorttable.makeSortable(table); } }); }, makeSortable: function(table) { if (table.getElementsByTagName('thead').length == 0) { // table doesn't have a tHead. Since it should have, create one and // put the first table row in it. the = document.createElement('thead'); the.appendChild(table.rows[0]); table.insertBefore(the,table.firstChild); } // Safari doesn't support table.tHead, sigh if (table.tHead == null) table.tHead = table.getElementsByTagName('thead')[0]; if (table.tHead.rows.length != 1) return; // can't cope with two header rows // Sorttable v1 put rows with a class of "sortbottom" at the bottom (as // "total" rows, for example). This is B&R, since what you're supposed // to do is put them in a tfoot. So, if there are sortbottom rows, // for backwards compatibility, move them to tfoot (creating it if needed). sortbottomrows = []; for (var i=0; i
Our regular readers know we periodically experiment with different ways of visualizing data. Today's experiment shows how the number of jobs paying wages or salaries above and below the federal minimum wage has changed in each year since 2006.
Here, we've adapted the candlestick charts used to communicate stock price changes over time to instead indicate the number of jobs that existed at various wage levels in 2006 with the actual number of jobs at the same reference wage levels in the years from 2006 through 2010.
In the chart above, the large purple bands indicate the actual number of employed individuals in the U.S. for each year shown. The black bands that appear either above or below the purple bands indicate the additional number of jobs that existed in 2006 that no longer existed in subsequent years, whether above the minimum wage level (indicated by the horizontal axis), or below it. We then added the numerical data above and below each band to indicate the relative change in the number of jobs either above or below the minimum wage line with respect to the levels recorded at the time-weighted1 indicated wage levels in 2006.
Here's what we see as we read the chart from left to right. 2007, the first year in which we have a federal minimum wage increase, saw 402,850 jobs lost from the U.S. economy below the time-weighted minimum wage level for that year, while the otherwise growing economy added 2,033,767 jobs above the minimum wage line. We know that the jobs below the minimum wage line were lost, rather than shifted above the line, because the number of employed teens and young adults, the individuals most likely to have jobs earning the minimum wage, declined significantly between 2006 and 2007.
In 2008, the economy added some 46,482 jobs above the time-weighted minimum wage line for that year, raising the total difference from 2006's job level above the federal minimum wage level to 2,080,249, but shed 1,128,832 jobs paying the federal minimum wage or less.
It's not until 2009 that we see the effects of the recession that was declared to have begun in December 2007, and specifically, the result of the bottom dropping out of the U.S. automotive industry in late 2008, affect the relative number of jobs that existed above the time-weighted federal minimum wage level. Here, 4,919,970 jobs paying more than the federal minimum wage were lost in 2009, bringing the total number of jobs paying more than the federal minimum wage to be 2,839,721 below the number of jobs paying more than the indicated time-weighted wage levels in 2006.
Meanwhile, 1,691,445 jobs continued to be shed below the federal minimum wage line for that year, which saw the official end of the recession in June 2009.
For 2010, we see that the number of jobs above the federal minimum wage line continued to decline to be 3,117,617 below the level for the indicated wage level of $7.25 per hour that would have been recorded in 2006. Likewise, 2,234,383 fewer Americans earned $7.25 or less per hour in 2010 than did in 2006.
1 For those years in which there was more than one level of the federal minimum wage, we must take into account the amount of time for which each minimum wage level applied during the year in estimating the number of people earning the federal minimum wage or less. We did that by adding together the number of people estimated to be earning the lower indicated wage in 2006 multiplied by the fraction of the year at which that lower minimum wage rate applied and the number of people estimated to be earning the higher indicated wage in 2006 multiplied by the fraction of the year at which it applied. This process is similar to how the Bureau of Labor Statistics "counts" the number of people earning the federal minimum wage or less in years in which the federal minimum wage is changed.
Labels: data visualization, minimum wage
Welcome to the blogosphere's toolchest! Here, unlike other blogs dedicated to analyzing current events, we create easy-to-use, simple tools to do the math related to them so you can get in on the action too! If you would like to learn more about these tools, or if you would like to contribute ideas to develop for this blog, please e-mail us at:
ironman at politicalcalculations
Thanks in advance!
Closing values for previous trading day.
This site is primarily powered by:
The tools on this site are built using JavaScript. If you would like to learn more, one of the best free resources on the web is available at W3Schools.com.