Loading chart of largest shareholders…
Loading list of largest shareholders…

{{for ShareHolders}}
{{if #index < #parent.parent.data.AmountInList}}

{{/if}}
{{/for}}

  {{>TextName}} {{>TextTotal}} % Owner share
{{>Number}}. {{>Name}} {{>~formatNumber(TotalShares, 0)}} {{>~formatNumber(OwnershipPercent, 1)}} %

{{>DateFormatted}}

{{for Groups}}

{{/for}}

{{>TextRange}} {{>TextHolders}} {{>TextHoldings}} % {{>TextVotes}} {{>TextValueKSEK}}
{{>ShareSize}}. {{>~formatNumber(ShareHoldersCount, 0)}} {{>~formatNumber(OwnershipPercent, 1)}} % {{>~formatNumber(VotingRightsPercent, 1)}} % {{>~formatNumber(MarketValueInSEK, 0)}}

{{>DateFormatted}}

{{for Areas}}

{{/for}}

{{if Total}}

{{/if}}

{{>TextArea}} {{>TextHolders}} {{>TextTotal}} {{>TextVoting}} {{>TextValueKSEK}}
{{>AreaName}}. {{>~formatNumber(ShareHoldersCount, 0)}} ({{>~formatNumber(ShareHoldersPercent, 1)}} %) {{>~formatNumber(TotalShares, 0)}} ({{>~formatNumber(OwnershipPercent, 1)}} %) {{>~formatNumber(VotingRightsTotal, 0)}} ({{>~formatNumber(VotingRightsPercent, 1)}} %) {{>~formatNumber(MarketValueInSEK, 0)}}
 
{{>Total.AreaName}}. {{>~formatNumber(Total.ShareHoldersCount, 0)}} ({{>~formatNumber(Total.ShareHoldersPercent, 1)}} %) {{>~formatNumber(Total.TotalShares, 0)}} ({{>~formatNumber(Total.OwnershipPercent, 0)}} %) {{>~formatNumber(Total.VotingRightsTotal, 0)}} ({{>~formatNumber(Total.VotingRightsPercent, 0)}} %) {{>~formatNumber(Total.MarketValueInSEK, 0)}}

{{>DateFormatted}}

$(function () {
var settings = cision.websolution.settings.general,
accessKey = cision.websolution.settings.ownership.accessKey,
texts = cision.websolution.texts[settings.uiLanguage];

// cision.websolution.ownership.renderShareHolderAreasChart();
// if (options) {
// $.extend(settings, options);
// }
if (!accessKey) {
console.log(“You must provide your ownership access key.”);
return;
}

var promiseOwnership = cision.websolution.common.getModuleData({ ‘accessKey’: accessKey, ‘module’: “Ownership Largest shareholders”, ‘path’: ‘Ownership/’ + accessKey });

return Promise.resolve(promiseOwnership).then(function (rawData) {
rawData.TotalAmount = rawData.ShareHolders.length;
rawData.DateFormatted = moment(rawData.Date).format(settings.dateFormatOptions.dateFormat);
rawData.AmountInList = settings.LargestListShowCount;

renderLargestShareholdersChart(rawData);

var tplElement = ‘#’ + (settings.templateElement || ‘tplLargestShareholdersListing’);
var tplTarget = ‘#’ + (settings.outputTargetElement || ‘target-largestshareholders’);
cision.websolution.common.modelToHtml(rawData, tplElement, tplTarget);

}).catch(function (err) { console.log(‘Could not retrieve ownership data for largest shareholders. ‘ + err.message) });

});

function renderLargestShareholdersChart (rawData) {
var settings = $.extend({}, cision.websolution.settings.general);

// Build Data Series
var dataArray = [],
othersPercent = 100;
$.each(rawData.ShareHolders, function (ix, objShareHolder) {
if (ix < 10 && objShareHolder.Number 0) {
dataArray.push({
name: ‘Others’,
y: othersPercent,
sliced: true
});
}
var chartOptions = getChartOptions(rawData, dataArray);
$(‘#container-largest-shareholders-chart’).highcharts(chartOptions);
}

function getChartOptions(rawData, dataArray) {
return { // make into setting
chart: {
plotBackgroundColor: null,
plotBorderWidth: null,
plotShadow: false
},
title: {
text: ”
},
tooltip: {
pointFormat: ‘{series.name}: {point.percentage:.1f}%
},
responsive: {
rules: [{
chartOptions: {
plotOptions: {
pie: {
dataLabels: {
enabled: false,
},
showInLegend: true
}
},
},
condition: {
maxWidth: 480
},
},{
chartOptions: {
plotOptions: {
pie: {
dataLabels: {
enabled: true,
},
showInLegend: false
}
},
},
condition: {
minWidth: 481
},
}] },
credits: {
href: null,
text: “Data: Euroclear”,
},

plotOptions: {
pie: {
allowPointSelect: true,
colors: [
“#008FED”,
“#0083DA”,
“#0079C9”,
“#006FB8”,
“#0065A8”,
“#005A97”,
“#005086”,
“#004675”,
“#003C65”,
“#003254”,
“#002843”
],

cursor: ‘pointer’,
dataLabels: {
enabled: true,
style: {
fontFamily: “‘Roboto’, sans-serif”,
fontSize: “12px”,
fontWeight: 400,
letterSpacing: “0.7px”
},
format: ‘{point.name}: {point.percentage:.1f} %’
}
}
},
series: [{
type: ‘pie’,
name: rawData.Name,
data: dataArray
}] };
}