var lang = 1; var categoryLabel ='Category'; (function () { var htmlTemplate ="
Use arrow keys to navigate between all locations. For NVDA, switch to focus mode to navigate and cycle through locations.
" + "
"; var width ="-1"; var height ="600"; // check for v3 component var infiniteScroll = document.querySelector('infinite-scroll'); var isSuccess = addElement("EstablishmentGrowth", "div", "vis", "visualization-container scrollable scrollable-x", htmlTemplate, width, height); if (isSuccess) { var isDelay = $('#EstablishmentGrowth').data('delay'); if ("EstablishmentGrowth" =="RiskRatingBarometerIndustry" || "EstablishmentGrowth" =="CommercialBankingRiskRatingBarometerIndustry" || "EstablishmentGrowth" =="RiskRatingBarometerSector" || "EstablishmentGrowth" =="BusinessConcentration" || isDelay) { setTimeout(function() { createChart(); }, 500); } else { if(infiniteScroll){ createChart(true); } else{ createChart(); } } } function createChart(shadowDomIsActive) { if (typeof window['Highcharts'] !=='undefined') { var optionsNew = {"credits":{"text":"
Source: Alfabank-Adres
","href":"https://alfabank-adres.ru","style":{"fontSize":"12px","lineHeight":"16px","color":"#A1A7B5","fontFamily":"roboto","fontWeight":"normal","textShadow":false,"textOutline":false},"position":{"y":-18},"enabled":false},"series":[{"states":{"normal":false,"hover":{"enabled":false}},"tooltip":{"pointFormat":"x: {point.x}
y: {point.y}
","useHTML":false,"headerFormat":"{point.key}
","formatter":function () { return false; },"enabled":false,"borderRadius":3,"shape":"callout","followPointer":true,"headerShape":"callout"},"allAreas":true,"data":[{"code":"2176","name":"ca-ab","value":2.3},{"code":"2177","name":"ca-bc","value":2.7},{"code":"2174","name":"ca-mb","value":3.8},{"code":"2171","name":"ca-nb","value":2.0},{"code":"2168","name":"ca-nl","value":3.1},{"code":"2179","name":"ca-nt","value":3.8},{"code":"2170","name":"ca-ns","value":2.5},{"code":"2180","name":"ca-nu","value":8.0},{"code":"2173","name":"ca-on","value":3.0},{"code":"2169","name":"ca-pe","value":4.8},{"code":"2172","name":"ca-qc","value":3.2},{"code":"2175","name":"ca-sk","value":2.6},{"code":"2178","name":"ca-yt","value":4.0}],"nullColor":"#c9d4ea","events":{"click":function (e) { ChangeContext(e.point.code,e.point.name); }}}],"legend":{"enabled":false,"x":0,"y":0},"colorAxis":{"min":0,"max":8.0,"tickLength":3,"tickInterval":3,"tickAmount":4,"endOnTick":true},"accessibility":{"description":"A map of Canada showing the concentration of industry establishments in each state.","enabled":true},"exporting":{"enabled":false}}; var options = { chart: { map : 'countries/ca/ca-all', width: null, height: 600, marginTop: 40, events: { load: function(){ addResponsiveEvents(990, 600, 'EstablishmentGrowth'); } }, }, exporting: { buttons: { contextButton: { symbol: 'url(/o__my.alfabank-adres.ru/img/download.svg)', x: -10, y: 0, symbolSize: 25, symbolX: 25.0, symbolY: 25.0, menuItems: ['viewFullscreen', 'printChart', 'separator', 'downloadPNG', 'downloadCSV', 'viewData'] } }, enabled: true }, title: { text: '', align: 'center', style: { color : '#333333', fontSize: '16px', lineHeight: '20px', fontWeight : '500', fontFamily: 'Noto Sans, Roboto', }, enabled : true, }, legend: { title:{ text: 'Percentage of Establishment (%)', style: { color : '#333333', fontSize: '14px', lineHeight: '18px', fontWeight : 'normal', }, }, borderWidth: 0, backgroundColor: 'rgba(255,255,255,0.85)', floating: true, layout: 'horizontal', verticalAlign: 'bottom', y: 0, align: 'left', }, credits: { enabled: false }, tooltip: { valueDecimals: 1, backgroundColor: '#FFFFFF', borderColor: '#AAA', borderRadius: 10, style: { padding: 0, }, enabled: false, useHTML: true, formatter: function () { //console.log(this); return '
' + '\u25CF
' + '
' + this.point.name + '
' + this.point.value + '%' + '
' + '
'; }, }, plotOptions: { map: { borderColor: 'white', borderWidth: 1, states: { hover: { color: '#97002D' } }, joinBy: ['hc-key','name'], dataLabels: { align: 'center', enabled: true, style: { color: '#002F65', fontSize:'14px', fontWeight: 'normal',textOutline: '1px #FFFFFF' }, formatter: function() { var max = 20, color = this.point.value < max ? 'black' : 'white', point = this.point; //console.log(this); //return '' + this.point.properties['postal-code'] + ''; //return '' + this.point.series.mapData.properties.name + ''; if(this.point.name =='Norfolk Island' || this.point.name == undefined || this.point.name =='Bounty Islands' || this.point.name =='The Snares') { } else if(this.series.mapTitle =='Australia') { if(this.point['hc-a2'] =='CT'){ return 'ACT
'; } else if(this.point['hc-a2'] =='NS'){ return 'NSW
'; } else if(this.point['hc-a2'] =='QL'){ return 'QLD
'; } else if(this.point['hc-a2'] =='TS'){ return 'TAS
'; } else if(this.point['hc-a2'] =='VI'){ return 'VIC
'; } else { return '' + this.point['hc-a2'] + '
'; } } else if(this.series.mapMap && this.series.mapMap.Dublin) { var point = this.point; if(this.key =='Mid-East'){ return 'ME
'; } else if(this.key =='South-West'){ return 'SW
'; } else if(this.key =='South-East'){ return 'SE
'; } else if(this.key =='Midland'){ window.setTimeout(function () { point.dataLabel.attr({ x: 535 }); }); return 'MD
'; } else if(this.key =='Mid-West'){ return 'MW
'; } else if(this.key =='Border'){ window.setTimeout(function () { point.dataLabel.attr({ y: 175 }); }); return 'BO
'; } else if(this.key =='West'){ return 'W
'; } else if(this.key =='Dublin'){ return 'DU
'; } else { return ''; } } else if(this.series.mapMap && this.series.mapMap.Scotland) { if(this.key =='Scotland'){ return 'SCT
'; } else if(this.key =='Wales'){ return 'WAL
'; } else if(this.key =='East Midlands'){ return 'EMD
'; } else if(this.key =='South West'){ return 'SW
'; } else if(this.key =='Northern Ireland'){ return 'NIR
'; } else if(this.key =='Yorkshire'){ return 'YKS
'; } else if(this.key =='North East'){ return 'NE
'; } else if(this.key =='North West'){ return 'NW
'; } else if(this.key =='South East'){ return 'SE
'; } else if(this.key =='West Midlands'){ return 'WMD
'; } else if(this.key =='East of England'){ return '‎UKH
'; } else if(this.key =='London'){ return '‎LDN
'; } else { return ''; } } else if(this.series.mapTitle =='United States of America' || this.series.mapTitle =='Canada' || this.series.mapTitle =='China with Hong Kong, Macau, and Taiwan' || this.series.mapTitle =='New Zealand' || this.series.mapTitle =='Germany') { //console.log(this.key, this); if (this.key =='Tai Po') { window.setTimeout(function() { point.dataLabel.attr({ x: 600, y: 440 }); }); return 'HK
'; } if (this.key =='Macau') { window.setTimeout(function() { point.dataLabel.attr({ x: 580 }); }); return 'MA
'; } if ((this.point.properties && this.point.properties.country =='Hong Kong') || (this.point.properties && this.point.properties.country =='Hong Kong S.A.R.') || (this.point.properties && this.point.properties.country =='Taiwan') || this.key =='Paracel Islands') {return;} try { return '' + this.point.properties['hc-a2'] + '
'; } catch(err) {} } else { return '' + this.point.name + '
'; } }, }, }, }, }; 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]; Highcharts.merge(true, options, optionsNew); if (options && (options.lang || options.global)) { Highcharts.setOptions({ global: options.global || { }, lang: options.lang || { } }); } if (1 == 2) { Highcharts.setOptions({ lang: { accessibility: { series: { pointAnnotationsDescription: '{point.name}, {point.y}.' } }, decimalPoint: ',', thousandsSep: '.', viewFullscreen: 'Im Vollbildmodus anzeigen', printChart: 'Grafik drucken', downloadPNG: 'PNG-Datei herunterladen', downloadCSV: 'CSV-Datei herunterladen', viewData: 'Datentabelle anzeigen', hideData: 'Datentabelle ausblenden', resetZoom: 'Zoom zurücksetzen', loading: 'Wird geladen …', contextButtonTitle: 'Diagrammkontextmenü', months: ['Januar', 'Februar', 'März', 'April', 'Mai', 'Juni', 'Juli', 'August', 'September', 'Oktober', 'November', 'Dezember'], shortMonths: ['Jan', 'Feb', 'Mär', 'Apr', 'Mai', 'Jun', 'Jul', 'Aug', 'Sep', 'Okt', 'Nov', 'Dez'], weekdays: ['Dimanche', 'Lundi', 'Mardi', 'Mercredi', 'Jeudi', 'Vendredi', 'Samedi'] } }); } else{ Highcharts.setOptions({ lang: { accessibility: { series: { pointAnnotationsDescription: '{point.name}, {point.y}.' } }, decimalPoint: '.', thousandsSep: ',', viewFullscreen: 'View in full screen', printChart: 'Print chart', downloadPNG: 'Download PNG image', downloadCSV: 'Download CSV', viewData: 'View data table', resetZoom: 'Reset zoom', loading: 'Loading …', contextButtonTitle: 'Chart context menu', accessibility: { exporting: { exportRegionLabel: 'Chart Context Menu for
Source Alfabank-Adres
hrefhttps//alfabank-adres.rustyle{fontSize12pxlineHeight16pxcolor#A1A7B5fontFamilyrobotofontWeightnormaltextShadowfalsetextOutlinefalse}position{y-18}' } } } }); } if("EstablishmentGrowth" =="IndustryOutlook" || "EstablishmentGrowth" =="IndustryTradeBalance") { Highcharts.setOptions({ lang: { numericSymbols: null } }); } var chart = ""; if(shadowDomIsActive){ chart = new Highcharts.mapChart(document.querySelector('infinite-scroll').shadowRoot.querySelector('#vis-EstablishmentGrowth'), options) ; } else{ chart = new Highcharts.mapChart('vis-EstablishmentGrowth', options); } if (chart){ if (chart.options.exporting.buttons.contextButton.menuItems.length == 3){ chart.options.exporting.buttons.contextButton.menuItems[2].text ='View Data'.toUpperCase(); } } } } }());