'); var startDate = this.stringToDate(dt[0].value); var endDate = this.stringToDate(dt[1].value); $('#chart-container #map-start-date').html(startDate.getDate() + " " + monthNames[startDate.getMonth()] + " " + startDate.getFullYear()); $('#chart-container #map-end-date').html(endDate.getDate() + " " + monthNames[endDate.getMonth()] + " " + endDate.getFullYear()); var indexStart = this.getJSONIndex(data, startDate, "start"); var indexEnd = this.getJSONIndex(data, endDate, "end"); var resultMinMaxAvg = this.minMaxAvgRate(data, indexStart, indexEnd); if(indexEnd >= indexStart){ $('#chart-container #map-min-max-avg').html("Minimum (" + resultMinMaxAvg.min_date + "): " + resultMinMaxAvg.min.toFixed(nrDec) + " Maximum (" + resultMinMaxAvg.max_date + "): " + resultMinMaxAvg.max.toFixed(nrDec) + " Average: " + resultMinMaxAvg.avg.toFixed(nrDec) + ""); } else {//short time period we do not have rates for, like 21-12-2013 / 22-12-2013 $('#chart-container #map-min-max-avg').html("ECB did not publish any reference exchange rate for the period selected."); } } } this.generateInverseData = function() { var keys = Object.keys(chartData[0]); for(var i =0;i= res.max){ res.max = value; res.max_date = d.getDate() + ' ' + monthNames[d.getMonth()] + ' ' + d.getFullYear(); } if(isNaN(value)) { nrNans++; }else { res.avg += value; } } res.avg = res.avg / (1+index1 - index0-nrNans); return res; } this.addDaysToDate = function(someDate, days) { someDate.setDate(someDate.getDate() + days); return someDate; } this.dateToString = function(date) { ds=date.split("-"); result = ''; if(ds.length==3) { result+=ds[2]+' '; } if(isNaN(ds[1])) { result+=ds[1]+' '; }else { result+=fullMonthNames[parseInt(ds[1])-1]+' '; } result+=ds[0]; return result; } this.generateStatsTable = function() { var container = $('#statsKeyIndicators'); var elements=[]; var counter=0; var failed = []; var done = function() { for(i=0;i'); } container.find('.ecb-columns').last().append(elements[id]); } } var f = function(name,id,l){ return function(responseText) { var xml_doc = responseText.documentElement; var points = getElementByTagName(xml_doc,'generic','Obs'); chartData = []; chartData = XMLtoJSON(chartData, points, id); var lastElement = chartData[Object.keys(chartData).length-1]; var prevElement = chartData[Object.keys(chartData).length-2]; var value = parseFloat(lastElement['line'+id]); var prevValue = parseFloat(prevElement['line'+id]); elements[id]= ''; counter++; if(counter==l) { done(); } }; } var fail = function(id){ return function(){ counter++; failed.push(id); } } //for each indicator load separately! var filenames = chartHandler.get_filename(); var l = Object.keys(filenames).length; for (var id=0;idmax) { return obj.length-1; } for (key in obj) { var d = new Date(obj[key][settings.xName]); if (d.getDate() == valToFind.getDate() && d.getMonth() == valToFind.getMonth() && d.getFullYear() == valToFind.getFullYear()) { return i; } i++; } valToFind = (fromToType === "start") ? this.addDaysToDate(valToFind, 1) : this.addDaysToDate(valToFind, -1); return this.getJSONIndex(obj, valToFind, fromToType); } this.getLineID = function(key) { var gl = function(key, list, prevID) { for(var i=0;i1||settings.alwaysShowLegend) { var generateItems = function(items, checked,onlyEven) { var result = ''; var id =0; for (var key in items) { if(settings.singleLegendColumn||(id%2==0&&onlyEven)||(id%2==1&&!onlyEven)) { if(typeof(settings.showInLegend)!='undefined') { if(!settings.showInLegend(id)) { continue; } } var colorSpan = ""; var color='#000000'; var value = items[key]; if(checked) { if(typeof(settings.colorFunction)=='undefined') { color = this.generateColor(id); }else { var d = new Date(value); if(isNaN(d.getTime())) { color = settings.colorFunction(value); }else { color = settings.colorFunction(d); } } var colorR = typeof(color)==='undefined'?0:parseInt(color.substr(1,2),16); var colorG = typeof(color)==='undefined'?0:parseInt(color.substr(3,2),16); var colorB = typeof(color)==='undefined'?0:parseInt(color.substr(5,2),16); //colorSpan = '  '; colorSpan = '
' if(settings.simpleLegend) { colorSpan= '
'; } } if(key!='parent') { var checkedString = checked?'checked="true" ':''; label = settings.simpleLegend?'':''; if(typeof value === 'object') { values = this.generateItems(value,false); result+='
  • '+label+colorSpan+ value['parent'] + labelClose+'
      '+values+'
  • '; }else { result+='
  • '+label+colorSpan+ value +labelClose+ '
  • '; } } } id++; } return result; }; $('.chart-legend-wrapper').remove(); extra = settings.simpleLegend?' simpleLegend':''; var extraLine = ''; if(typeof(settings.extraLegendLine)!='undefined') { extraLine = settings.extraLegendLine(); } var twoColsOpening = '
    '; var twoColsClosing = '
    '; var ul = '
      '; var ulColumn = twoColsOpening+ul+twoColsClosing; var ulWrapper = settings.singleLegendColumn?ul:'
      '+ulColumn+ulColumn+'
      '; $('#chart-container').append('
      '+extraLine+ulWrapper+'
      '); $('#chart-container .chart-legend').eq(0).append(generateItems.call(this,filenames,true,true)); if(!settings.singleLegendColumn) { $('#chart-container .chart-legend').eq(1).append(generateItems.call(this,filenames,true,false)); } var wrapper = this; $('#chart-container .chart-legend label').click(function(e) { var el = $(this); if(el.prop('tagName')=='INPUT') { el = el.parent(); } var value = el.children().first().attr('lineid'); var state = el.children().is(":checked"); if(state) { if(settings.xyChart||settings.serialChart) { wrapper.chart.addGraph(wrapper.graphs[value]); }else { wrapper.stockPanel.addGraph(wrapper.graphs[value]); } } else { if(settings.xyChart||settings.serialChart) { wrapper.chart.removeGraph(wrapper.graphs[value]); }else { wrapper.stockPanel.removeGraph(wrapper.graphs[value]); } } }); } } // Generate tabs with filters/dimensions (e.g. coins/banknotes) this.generateFiltersMenu = function(){ var tabs = ""; for (var i = 0; i < settings.filters.length; i++) { var menuItems = ""; for(var j=0;j' + settings.filters[i][j] + ''; } tabs+='
        ' + menuItems + '
      '; }; $('#chart-container').prepend('
      '+tabs+'
      '); } this.getSettings = function() { return settings; } // Change dimension of graph (e.g. coins to banknotes) this.switchDimension = function(i,j) { var label = settings.filters[i][j]; var elements = $("#chart-container .ecb-tabNavs:nth-child("+(i+1)+") li span"); if(settings.current_state[i]!=label) { settings.current_state[i]=label; elements.removeAttr("class"); var elements = $(elements[j]); elements.attr("class","active"); if(i<(settings.filters.length-1)) { //We are switing a regular dimension //Add loading bar var loader = new ChartLoader(settings); loader.addLoadingBox(); //Delete current chart //for(i=0;idiv').removeAttr('style'); $('#chart-container div.amChartsDataSetSelector').prependTo('#chart-container #chart-canvas>div:nth-of-type(1)'); } this.switchChartTableVisibilty = function(switchingView) { if(settings.current_state[settings.current_state.length-1]==settings.filters[settings.filters.length-1][0]) { //first element should be chart $('#chart-container .ecb-contentTable').css({'display':'none'}); $('#chart-container .ecb-tableHolder').css({'display':'none'}); $('#chart-container #chart-canvas').css({'display':'block'}); $('#chart-container .chart-legend-wrapper').css({'display':'block'}); if(settings.addHeader) { $('#chart-container .header').css({'display':'block'}); } if(switchingView) { this.switchChart(); } } else if (settings.current_state[settings.current_state.length-1]==settings.filters[settings.filters.length-1][1]) { this.generateTable(chartHandler.get_filename(settings.current_state)); $('#chart-container .ecb-contentTable').css({'display':'table'}); $('#chart-container .ecb-tableHolder').css({'display':'block'}); $('#chart-container #chart-canvas').css({'display':'none'}); $('#chart-container .chart-legend-wrapper').css({'display':'none'}); if(settings.addHeader) { //$('#chart-container .header').css({'display':'none'}); } }else { var a = settings.filters[settings.filters.length-1]; var b = settings.current_state[settings.current_state.length-1]; var f = settings.extraSecondaryDimension[a.indexOf(b)-2]; f(); } } this.getChartHandler = function() { return chartHandler; } //Script variables, DO NOT EDIT! this.resetChart = function() { if(typeof(chartHandler.chartData)=='undefined'||chartHandler.chartData==null) { this.chartData = [{}]; }else { this.chartData = chartHandler.chartData; } this.chartDataInverse=[]; this.graphs = {}; if(settings.serialChart) { this.chart = new AmCharts.AmSerialChart(); }else if (settings.xyChart) { this.chart = new AmCharts.AmXYChart(); }else { this.chart = new AmCharts.AmStockChart(); this.stockPanel = new AmCharts.StockPanel(); this.p_dates = []; this.e_dates = []; } } this.parseSettings(); this.resetChart(); this.options = { pathToImages: "/shared/js/amcharts_3.16/amcharts/images/", amExport:{ "enabled": true } }; if(!settings.hasOwnProperty('addHeader')) { settings.addHeader = false; } // ------------------------------------------- // Helper functions // Convert XML output from FAME to JSON this.XMLtoJSON = function(chartData, points, id){ var point_number=0; var start_index = 0; var temp = []; var hasSeenNeg = false; var date_min_date; if(!settings.hasOwnProperty('beginDate')) { settings.beginDate = null; } var beginDate = settings.beginDate; var date_split = beginDate==null?null:beginDate.split('-'); min_date = beginDate==null?null:new Date(date_split[0],date_split[1],date_split[2]); $(points).each(function(point){ var point_date = points[point].querySelectorAll('ObsDimension')[0].getAttribute('value'); var point_value = points[point].querySelectorAll('ObsValue')[0].getAttribute('value'); var status = points[point].querySelectorAll('Value')[0].getAttribute('value'); if(status=="P") { p_dates[p_dates.length]=point_date; } if(status=="E") { e_dates[e_dates.length]=point_date; } var date_point_date = new Date(point_date); if(beginDate==null||date_point_date>min_date) { if(start_index>=0&&(chartData[start_index+point_number]==undefined || Object.keys(chartData[start_index+point_number]).length==0)) { chartData[start_index+point_number]={}; chartData[start_index+point_number][settings.xName]=point_date; }else { if(point_number==0) { date_min_date = new Date(chartData[0][settings.xName]); start_index = wrapper.getJSONIndex(chartData,date_point_date,'start'); //start_index=0; } } if(start_index<0&& date_point_date0) { //prepend Array.prototype.unshift.apply(chartData, temp); temp=[]; start_index=0; } chartData[start_index+point_number]["line"+id]=point_value; } point_number++; } }); if(temp.length>0) { //Array.prototype.unshift.apply(chartData, temp); } return chartData } // Add leading zero to single digit numbers this.pad = function(r) { if(r.length==1) r="0"+r; return r; } //Generate color for line this.generateColor = function(id){ if(!settings.hasOwnProperty('colors')) { if(id==0) { return "#BD541F"; } var r = (Math.round(id/10* 150)); var g = (Math.round((10-id)/10* 150)); var b = 255-r; r = pad(r.toString(16)); g = pad(g.toString(16)); b = pad(b.toString(16)); return '#' + r + g + b; } else { return settings.colors[id%settings.colors.length]; } } // Return IE version this.isIE = function() { var myNav = navigator.userAgent.toLowerCase(); return (myNav.indexOf('msie') != -1) ? parseInt(myNav.split('msie')[1]) : false; } //cross browser version of getElementByTagName this.getElementByTagName = function(xml,ns,tag) { var a = xml.getElementsByTagName(ns+":"+tag); return a.length>0 ? a : xml.getElementsByTagName(tag); } //get last three data points this.getLastNDataPoints = function(n) { var results = []; for(i=0;i
      "+ number+"%
      "+v['month']+" '"+ (v['year'].substr(2))+extra_short+"
      "+elements; }); $("#chart-load").after("
      "+elements+"
      ") } this.getAverageOfLine = function(id) { average = 0; numPoints = 0; $.each(chartData,function(i,v){ var d = new Date(v[settings.xName]); if(!settings.hasOwnProperty('averageBeginDate')||d>settings.averageBeginDate) { numPoints++; average+=parseFloat(v[id]); } }); return average/numPoints; } } var monthNames = [ "Jan", "Feb", "Mar", "Apr", "May", "June", "July", "Aug", "Sept", "Oct", "Nov", "Dec" ]; var fullMonthNames = [ "January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December" ]; // var colorPalette = [ // "#007bd2", // "#d20052", // "#7bd200", // "#5700d2", // "#c100d2", // "#880012", // "#00d2c1", // "#d2c100", // "#0012d2", // "#d25700", // "#00d257" // ]; //52 -> 7B //d2 -> D2 //57 -> 57 //12 -> 12 //c1 -> C1

      Daily nominal effective exchange rate of the euro

      The nominal effective exchange rate (NEER) of the euro is a weighted average of nominal bilateral rates between the euro and a basket of foreign currencies.

      It is an indicator of the external values of the euro vis-à-vis the currencies of selected euro area’s trading partners.

      How are nominal effective exchange rates of the euro calculated?

      The nominal effective exchange rates of the euro are calculated by the European Central Bank (ECB).

      They are based on weighted averages of bilateral euro exchange rates against 19 trading partners of the euro area.

      If this index rate goes up, more foreign currency can be obtained, on average, for €1. It therefore becomes more expensive, on average, for those who want to exchange foreign currency for euro. Likewise, if this index rate goes down, less foreign currency can be obtained, on average, for €1 and, in turn, it becomes less expensive to exchange foreign currency into euro.

      The weights capture third-market effects and are based on trade in manufactured goods with the euro area’s trading partners in the periods 1995-97, 1998-2000, 2001-03, 2004-06, 2007-09, 2010-12?and 2013-15, with the indices being chain-linked at the end of each three-year period.

      1 Aug 2017: updated trade weights data underlying the EERs and HCIs

      The base period is the first quarter of 1999 (i.e. 1999 Q1 = 100).
      The latest value shown usually refers to the previous business day.

      Related information

      An additional set of daily nominal indices, considering 12 trading partners (namely Australia, Canada, Denmark, Hong Kong, Japan, Norway, Singapore, South Korea, Sweden, Switzerland, the United Kingdom and the United States) is also available in the Statistical Data Warehouse.

      Weights in the EER-19 indices based on different reference periods

      Chart of the weights in the EER-19 indices (of the 19 major trading partners of the euro area) based on different reference periods: 1995-1997, 2001-2003, 2007-2009, 2010-2012, 2013-2015. Weights of trading partner countries in the EER-19 indices based on different reference periods
      Euro area trading partner reference period 1995-1997 reference period 1998-2000 reference period 2001-2003 reference period 2004-2006 reference period 2007-2009 reference period 2010-2012 reference period 2013-2015
      Australia 1.0 0.9 0.9 0.9 0.9 1.0 0.8
      Bulgaria 0.3 0.4 0.4 0.5 0.6 0.6 0.7
      Canada 1.8 1.9 1.9 1.8 1.6 1.5 1.5
      China 5.5 6.5 9.2 13.8 18.4 22.2 23.3
      Croatia 0.7 0.5 0.6 0.6 0.6 0.5 0.5
      Czech Republic 2.7 2.9 3.7 4.2 5.1 5.2 5.1
      Denmark 3.2 2.8 2.8 2.7 2.6 2.2 2.1
      Hong Kong 2.4 2.1 1.9 1.9 1.7 1.8 1.9
      Hungary 1.9 2.6 3.0 3.2 3.2 2.9 3.0
      Japan 11.9 10.8 9.2 8.2 7.1 6.7 5.1
      Norway 1.6 1.4 1.3 1.3 1.3 1.2 1.1
      Poland 2.9 3.4 4.0 4.9 6.2 6.4 6.9
      Romania 0.9 1.0 1.4 1.7 2.0 2.1 2.3
      Singapore 2.3 1.9 1.7 1.7 1.5 1.6 1.4
      South Korea 3.6 3.3 3.4 4.0 4.0 4.0 3.8
      Sweden 5.9 5.3 4.8 5.1 4.8 4.5 4.2
      Switzerland 8.3 7.3 7.1 6.6 6.6 6.9 6.6
      United Kingdom 22.7 21.5 20.1 17.6 14.9 13.0 12.9
      United States 20.7 23.5 22.7 19.2 16.8 15.9 16.9
      Total 100.0 100.0 100.0 100.0 100.0 100.0 100.0
      北京pk赛车10官网 甘肃十一选五 股票配资平台排行 黑龙江十一选五 黑龙江6十1历史开奖 十大期货配资公司排名 中国福利彩票欢乐生肖 北京单场sp植即时指数 捷报比分网 pk10牛牛 福建31选7最新开奖结果今天 江苏十一选五爱乐彩 p3开机号 股票行情今天大盘走势 体彩20选5 旺润配资 贵州11选五5开奖