Commerce: Trade

Application of Informatics
International trade has existed since Marco Polo traveled on Silk Road in 13th century, or even earlier. In the last few decades its significance has increased dramatically, partially driven by cheap transport and partly by the dropping of trade barriers. The nature of our global trade shapes both the strategy of international relationships, and domestic policies. Australian's mining boom (which has contributed ~$A300 billion to our economy to date), is generally accepted to be driven by the expansion of the Chinese economy, and is an example how Australian foreign policy and prosperity are tied to our international trade.
Informatics in Action
This example illustrates the recent history of Australia-China export-import total trade value (in $A millions, plotted per month) in the top chart, against the exchange rate between Australian dollar and Chinese yuan in the lower chart. The dark blue represents import trade value and lighter blue indicates export trade value. Some interesting phenomena are readily apparent - e.g. Australia's export total to China tends to be lower than its import but both are closely aligned, and Australian imports from China seem to increase towards the later part of the year (possibly Christmas presents?). You can also see that the floating of China's currency in 1994 did not have a significant impact on Australia's trade.
Resources
Data
Code
<script language="JavaScript" type="text/javascript" src="/js/MochiKit.js"></script>
<script language="JavaScript" type="text/javascript" src="/js/PlotKit_Packed.js"></script>
<script language="JavaScript" type="text/javascript" src="/js/excanvas.js"></script>
<script language="JavaScript" type="text/javascript" >
newChildContent = function(url) {
var req = getXMLHttpRequest();
req.open("GET", url, true);
d = sendXMLHttpRequest(req).addCallback(datatableFromXMLRequest);
};
datatableFromXMLRequest = function (req) {
var xml = req.responseXML;
rows = xml.getElementsByTagName('record');
var data1 = new Array();
var data2 = new Array();
var data3 = new Array();
var xTicks = new Array();
ticksNum=0;
for (var i=0; i < rows.length; i++) {
aRow = rows[i];
vMonth = aRow.getElementsByTagName('month')[0].firstChild.nodeValue;
vRates = aRow.getElementsByTagName('rates')[0].firstChild.nodeValue;
vImport = aRow.getElementsByTagName('import')[0].firstChild.nodeValue;
vExport = aRow.getElementsByTagName('export')[0].firstChild.nodeValue;
data1[i] = [i, vImport];
data2[i] = [i, vExport];
data3[i] = [i, vRates];
vMonth = new String(vMonth);
if( vMonth.substring(0,3) == "Jan" ){
xTicks[ticksNum] = new Object();
xTicks[ticksNum].v = i;
xTicks[ticksNum++].label = vMonth.substring(4);
}
}
vOptions1 = {"yTickPrecision":0,"axisLineColor": Color.whiteColor(), "yAxis":[0,3000],"shouldFill": true, "strokeWidth" : 0.05,"xTicks": xTicks };
vOptions2 = {"yAxis":[1,7.2],"shouldFill": true, "strokeWidth" : 0.05,"drawXAxis": false };
var plotter1 = EasyPlot("line", vOptions1, $("example"), [data1, data2]);
var plotter2 = EasyPlot("line", vOptions2, $("rates"), [data3]);
};
newChildContent("/showcase/trade/china.xml")
</script>
Other Resources