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

What effect is the tit-for-tat trading of tariffs between the U.S. and China having upon the world's two largest trading partners economies?

Based on the U.S. Census Bureau's data for the value of goods and services traded between the two nations and adjusting for the exchange rate between the U.S. dollar and Chinese yuan, we're seeing the kind of deceleration that is consistent with economic slowdowns taking hold in both economies. The following chart shows the year-over-year growth rate of the value of goods exported between the U.S. and China from January 1986 through May 2018.

The key takeaway from this chart is the negative year over year growth rate of U.S. exports to China and the single-digit growth rate of Chinese exports to the U.S., which has continued for the second month. This continued negative trend represents the largest negative adjustment outside of the seasonal impact of the variable timing of China's week long Spring Festival Golden Week holiday in the year-over-year data, which was responsible for the negative growth rates recorded for U.S. exports to China earlier in 2018.

The deceleration is evident in the trailing twelve month average of the combined value of trade between the two nations. The following chart shows the entire series for this data from January 1985 through May 2018, where the trailing twelve month average of the data smooths out the seasonal cycles and events that affect the year-over-year data.

Let's next zoom in on the period covered by the dashed red box in the upper right hand corner of this chart, which covers the last decade.

Here, we can see the deceleration as a downward shift in what had been a robust upward trajectory for the trailing year average of the total value of goods and services traded between the U.S. and China. While not yet negative, the deceleration taking place now is similar to the patterns that were observed back in October 2008, as the U.S. economy was reaching the most negative growth period of the Great Recession, and also in August 2015, when the negative impact of China's political leadership's 2013decision to slow down the growth of China's economy began to be evident in the international trade data with the U.S.

The trade data over the next two months will be interesting to watch, where June 2018's data will capture the effort of businesses in both nations to "beat the clock" before each nation's more extensive proposed tariffs would go into effect, and where July 2018's data will capture a large portion of what happened after they did.

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:

Materials on this website are published by Political Calculations to provide visitors with free information and insights regarding the incentives created by the laws and policies described. However, this website is not designed for the purpose of providing legal, medical or financial advice to individuals. Visitors should not rely upon information on this website as a substitute for personal legal, medical or financial advice. While we make every effort to provide accurate website information, laws can change and inaccuracies happen despite our best efforts. If you have an individual problem, you should seek advice from a licensed professional in your state, i.e., by a competent authority with specialized knowledge who can apply it to the particular circumstances of your case.