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
The United States and China are the world's two largest trading partners. On 22 March 2018, U.S. President Donald Trump announced that the United States would impose some $60 billion in tariffs on goods imported by the U.S. from China as part of his administration's efforts to renegotiate trade agreements between the two nations. China quickly responded with its own retaliatory tariffs on U.S. goods imported by China from the U.S.
The data just released yestersday by the U.S. Census Bureau then contains the first evidence of how these tariffs are affecting the flow of trade of goods and services between the U.S. and China. Our first chart illustrates the immediate impact as measured by the exchange-rate adjusted year-over-year rate of growth of both nation's exports to each other.
Both nations went from double-digit growth rates in March 2018 to near-zero or negative growth rates in April 2018. The growth rate of the value of U.S. exports to China dropped from 17.9% to -4.6%, while the growth rate of Chinese exports to the U.S. declined from 11.0% to 2.0%. Aside from the short-term impact of the lunar calendar-based timing of China's Spring Festival holiday, which effectively shuts down China's ports for a week in either January or February each year, April 2018 saw perhaps the most significant simultaneous disruption to trade between the two nations that has occurred outside of periods of recession.
That sharp deceleration is also evident in the combined value of goods and services exported between the U.S. and China, where a positive trend for growth has suddenly started to look like the potential beginning of an economic top. Our second chart shows the combined value of that trade in terms of U.S. dollars for each month over the past 10 years, along with its trailing twelve month average.
It's too early to call it a top, but since the tariffs have continued through May 2018, next month's data will be a key data point to watch. Especially since China has delayed reporting its own final international trade figures for April 2018.
Update 8 June 2018: The White House agrees that tariffs will hurt U.S. economic growth!
Board of Governors of the Federal Reserve System. China / U.S. Foreign Exchange Rate. G.5 Foreign Exchange Rates. Accessed 6 June 2018.
U.S. Census Bureau. Trade in Goods with China. Accessed 6 June 2018.
Labels: data visualization, 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.