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
We've had a very fast moving month as the coronavirus pandemic has dominated much of our regular activity as we've nearly doubled our analytical output. In case you've missed any of it, here's a recap of several of our more unique contributions:
This is easily the most popular tool we've developed related to the coronavirus outbreak, where if you know how many people live in your town and how many have been confirmed carriers of the virus, you can estimate how at risk you are of coming into contact with someone who is infected if you go out to a public venue.
Using the Diamond Princess cruise ship as a model, we built a tool that can project how long it would have taken all passengers and crew to become infected if they been kept on board in that ideal environment for spreading the coronavirus.
How big a bite has China's coronavirus epidemic taken out of its national economy? We develop back-of-the-envelope math into a tool you can use to answer that question and apply to any nation's economy.
Now that the coronavirus epidemic that originated in China has become a pandemic, we have a unique alternative economic indicator that might tell us how much the global economy has been affected by the coronavirus.
This tool deals with African Swine Fever instead of the coronavirus sweeping across the world today, but the math behind it certainly applies for determining what percentage of a population would need to be vaccinated to protect the entire population against infection, if only a vaccine for the condition existed. For African Swine Fever, researchers appear to be close to having an effective vaccine to fight the disease, which has caused the deaths of at least 40% of China's domestic swine herd to date.
What would happen if we group several charts like the "Tower of Hong Kong" infographic to track the daily progression of the coronavirus in several regions together? Well, when you group a bunch of towers together, you get a skyline featuring a wealth of detailed information, and that's what we introduced to the world of coronavirus data visualization.
We created a simple set of bar charts for tracking the number of confirmed cases, recovered patients, and deaths from the coronavirus pandemic in individual U.S. states. We update this chart daily.
We were impressed by the visualizations put together by the infographic wizards at the South China Morning Post, which directly inspired us to create the skyline charts we just rolled out.
We've developed one of the most advanced models for explaining why the S&P 500 behaves as it does and we've gone from providing weekly to daily updates describing what the market has been doing over the last several weeks and anticipating what it would do next. All are contained in the following articles, presented in chronological order:
There's more we've done, but these are the coronavirus-related highlights. We'd like to close this recap by saying thank you to our regular readers, and welcome to those of you who have discovered some of what we do in the last several weeks!
Image credit: Martin Sanchez
Labels: coronavirus, health, index
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.