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
After falling below the recession line in February 2014, it would appear that the U.S. economy began to rebound in March 2014, as measured by the value of goods imported by the U.S. from China in that month.
Meanwhile, the value of goods exported by the U.S. to China in March 2014 also picked up over the level recorded in February 2014, although here, we suspect that the relative timing of China's New Year and Spring Festival in 2014 boosted the direct year-over-year growth rate.
To get a better sense of how both the U.S. and China's economies are performing, we accounted for the variable timing of China's New Year and Spring Festival calculating the rolling sum of each nation's imports and exports to each other over a two month period, then calculated the year-over-year growth rate. Since China's New Year and Spring Festival can fall in either January or February, or even be split between these two months, this approach should allow us to make decent year-over-year measurement of the growth rate of trade between the two nations.
The results of that exercise are presented below, with the month indicated the second of the two months whose trade values were added together:
This chart is cool because it shows the massive impact of the U.S.' 2013 bumper crop of soybeans, which was harvested in the third quarter of 2013 and followed by the exporting of every bushel of harvested soybeans that could be put in a container ship to China in the fourth quarter of that year. One result of the decision by the U.S.' behemoth soybean processors to export so many soybeans is that U.S. stockpiles have shrunk so much that it's causing U.S. soybean prices to sharply rise in response to the domestic shortage.
More interesting though is what we find when we look at the fate of China's exports to the United States. Here, we see the year-over-year growth rate of the value and volume of trade plunge in February 2014, but then begin to rebound in March 2014.
That's significant because of the typical three-week transit time for goods crossing the Pacific Ocean to get from China's export centers to the U.S.' west coast ports and also the time for Chinese manufacturers to produce the goods that they would ship to the U.S., which precedes the shipping of those goods by weeks and months. None of which, we should note, would have been impacted at all by extreme winter weather occurring in the upper midwest and eastern U.S.
What that means is that Chinese producers anticipated that the U.S. economy would be experiencing contractionary conditions long before they actually arrived and adjusted their export plans accordingly.
Board of Governors of the Federal Reserve System. China / U.S. Foreign Exchange Rate. G.5 Foreign Exchange Rates. Accessed 7 May 2014.
U.S. Census Bureau. Trade in Goods with China. Accessed 7 May 2014.
Labels: trade
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.