(function () { var highcharts = document.createElement('script'); var cdn = 'https://code.highcharts.com/'; var loaded = 0; var encodedUrl = encodeURI('https://app.everviz.com//show/yejoxPCYT'); var scripts = [ "stock/highstock.js", "highcharts-more.js", "highcharts-3d.js", "modules/data.js", "modules/exporting.js", "modules/funnel.js", "modules/solid-gauge.js", "modules/annotations.js", "modules/export-data.js", "modules/accessibility.js" /* "modules/series-label.js" */ ]; var options = {"chart":{"type":"column"},"series[0]":{"type":"line"},"title":{"text":"Net migration into the UK increased last year"},"subtitle":{"text":"Source: ONS"},"exporting":{},"series":[{"data":[[1212278400000,571],[1228089600000,590],[1243814400000,563],[1259625600000,567],[1267401600000,587],[1275350400000,582],[1283299200000,600],[1291161600000,591],[1298937600000,578],[1306886400000,589],[1314835200000,581],[1322697600000,566],[1330560000000,536],[1338508800000,517],[1346457600000,497],[1354320000000,498],[1362096000000,493],[1370044800000,502],[1377993600000,530],[1385856000000,526],[1393632000000,552],[1401580800000,574],[1409529600000,615],[1417392000000,632],[1425168000000,644],[1433116800000,639],[1441065600000,619],[1448928000000,631],[1456790400000,638],[1464739200000,652],[1472688000000,598],[1480550400000,589],[1488326400000,585],[1496275200000,557],[1504224000000,626],[1512086400000,630]],"name":"Inflow","_colorIndex":0,"_symbolIndex":0,"marker":{},"type":"line"},{"data":[[1212278400000,375],[1228089600000,427],[1243814400000,397],[1259625600000,368],[1267401600000,365],[1275350400000,347],[1283299200000,345],[1291161600000,339],[1298937600000,336],[1306886400000,342],[1314835200000,339],[1322697600000,351],[1330560000000,352],[1338508800000,349],[1346457600000,343],[1354320000000,321],[1362096000000,318],[1370044800000,320],[1377993600000,320],[1385856000000,317],[1393632000000,316],[1401580800000,320],[1409529600000,323],[1417392000000,319],[1425168000000,308],[1433116800000,303],[1441065600000,297],[1448928000000,299],[1456790400000,311],[1464739200000,316],[1472688000000,325],[1480550400000,340],[1488326400000,341],[1496275200000,331],[1504224000000,352],[1512086400000,349]],"name":"Outflow","_colorIndex":1,"_symbolIndex":1,"marker":{},"type":"line"},{"data":[[1212278400000,267],[1228089600000,229],[1243814400000,205],[1259625600000,229],[1267401600000,null],[1275350400000,244],[1283299200000,null],[1291161600000,256],[1298937600000,null],[1306886400000,263],[1314835200000,null],[1322697600000,205],[1330560000000,184],[1338508800000,167],[1346457600000,154],[1354320000000,177],[1362096000000,175],[1370044800000,182],[1377993600000,210],[1385856000000,209],[1393632000000,236],[1401580800000,254],[1409529600000,292],[1417392000000,313],[1425168000000,336],[1433116800000,336],[1441065600000,322],[1448928000000,332],[1456790400000,327],[1464739200000,336],[1472688000000,273],[1480550400000,249],[1488326400000,243],[1496275200000,226],[1504224000000,274],[1512086400000,282]],"name":"Net migration","_colorIndex":2,"_symbolIndex":2}],"plotOptions":{"series":{"animation":false}},"yAxis":[{"title":{"text":"Thousand, in the previous 12 months"}}],"credits":{"enabled":true,"text":"Powered by Highcharts Cloud","href":"https://app.everviz.com","style":{"font-size":"16px"}},"data":{"csv":"\"null\";\"Inflow\";\"Outflow\";\"Net migration\"\n\"June 2008\";571;375;267\n\"December 2008\";590;427;229\n\"June 2009\";563;397;205\n\"December 2009\";567;368;229\n\"March 2010\";587;365;\n\"June 2010\";582;347;244\n\"September 2010\";600;345;\n\"December 2010\";591;339;256\n\"March 2011\";578;336;\n\"June 2011\";589;342;263\n\"September 2011\";581;339;\n\"December 2011\";566;351;205\n\"March 2012\";536;352;184\n\"June 2012\";517;349;167\n\"September 2012\";497;343;154\n\"December 2012\";498;321;177\n\"March 2013\";493;318;175\n\"June 2013\";502;320;182\n\"September 2013\";530;320;210\n\"December 2013\";526;317;209\n\"March 2014\";552;316;236\n\"June 2014\";574;320;254\n\"September 2014\";615;323;292\n\"December 2014\";632;319;313\n\"March 2015\";644;308;336\n\"June 2015\";639;303;336\n\"September 2015\";619;297;322\n\"December 2015\";631;299;332\n\"March 2016\";638;311;327\n\"June 2016\";652;316;336\n\"September 2016\";598;325;273\n\"December 2016\";589;340;249\n\"March 2017\";585;341;243\n\"June 2017\";557;331;226\n\"September 2017\";626;352;274\n\"December 2017\";630;349;282"}}; function isScriptAlreadyIncluded(src){ var scripts = document.getElementsByTagName("script"); for (var i = 0; i < scripts.length; i++) { if (scripts[i].hasAttribute('src')) { if ((scripts[i].getAttribute('src') || '').indexOf(src) >= 0) { return true; } } } return false; } function createChart() { if (typeof window['Highcharts'] !== 'undefined') { if (options.yAxis && options.yAxis.length === 1) options.yAxis = options.yAxis[0]; if (options.xAxis && options.xAxis.length === 1) options.xAxis = options.xAxis[0]; if (options.zAxis && options.zAxis.length === 1) options.zAxis = options.zAxis[0]; /* // Sample of extending options: Highcharts.merge(true, options, { chart: { backgroundColor: "#bada55" }, plotOptions: { series: { cursor: "pointer", events: { click: function(event) { alert(this.name + " clicked\n" + "Alt: " + event.altKey + "\n" + "Control: " + event.ctrlKey + "\n" + "Shift: " + event.shiftKey + "\n"); } } } } }); */ if (options && (options.lang || options.global)) { Highcharts.setOptions({ global: options.global || {}, lang: options.lang || {} }); } new Highcharts.Chart('highcharts-yejoxPCYT', options); } } function check() { if (loaded === scripts.length) { for (var i = 0; i < window.HighchartsCloud.ondone.length; i++) { try { window.HighchartsCloud.ondone[i](); } catch(e) { console.error(e); } } } window.HighchartsCloud.hasLoaded = true; } function loadScript(s) { function next() { ++loaded; if (loaded < scripts.length) { loadScript(scripts[loaded]); } check(); } if (isScriptAlreadyIncluded(s)) { return next(); } var n = document.createElement('script'); n.onload = function () { next(); }; if (s.indexOf('https') >= 0) { n.src = s; } else { n.src = cdn + s; } document.body.appendChild(n); } if (typeof window['HighchartsCloud'] === 'undefined') { window.HighchartsCloud = { ondone: [createChart], hasWrapped: false, hasLoaded: false }; loadScript(scripts[0]); } else { if (window.HighchartsCloud.hasLoaded) { createChart(); } else { window.HighchartsCloud.ondone.push(createChart); } } try { var r = new XMLHttpRequest(); r.open('POST', 'https://api.everviz.com:443/chart/171511/1/view', true); r.setRequestHeader('Content-Type', 'application/json'); r.send(); } catch (e) { } }());