WhatsApp, Aplikasi Pesan Singkat Terpopuler 2019 – Databoks

‘; //catatan
if (label_frequency == 0) {
label_frequency = 3;
}else{
label_frequency = label_frequency;
};
if (tipechart == 1 && height_chart == 0) {
var maxheight = 1300;
var minheight = 450;

AmCharts.addInitHandler( function ( chartbar ) {
// set base values
var categoryWidth = 60;

// calculate bottom margin based on number of data points
var chartHeight = categoryWidth * chartbar.dataProvider.length;

if (chartHeight > maxheight) {
chartHeight = maxheight;
};

if (chartHeight [[value]]”,
“type”: “line”,
“fontSize”:14,
“labelOffset” : 2,
“valueField”: “value”,
“bullet”:”round”,
“lineThickness” : 3

},],
“categoryAxis”: {
// “parseDates” :true,
“labelsEnabled” : true,
// “labelRotation” : 45,
“axisColor”: “#DADADA”,
“minorGridEnabled”: true,
“fontSize” : fontSizelabel,
“autoWrap” : autoWrap,
“ignoreAxisWidth”:ignoreAxisWidth,
“dashLength”: 3,
“gridAlpha”: 0

},
“balloon”: {
“borderThickness”: 1,
“shadowAlpha”: 0,
“fontSize” : 12
},
“usePrefixes” : true,
“prefixesOfBigNumbers” : [
// {number:1e+3,prefix:” Ribu”},
{number:1e+6,prefix:” Juta”},
{number:1e+9,prefix:” Miliar”},
{number:1e+12,prefix:” Triliun”},
{number:1e+15,prefix:” Kuadriliun”}
],
“fontSize” : 9,
“marginTop” : 5,
“marginLeft” : marginLeft,
“marginRight” : 35,
“minMarginBottom” : 0,
“minMarginTop” : 75,
“marginTop” : 50,
“marginBottom” : 0,
“autoResize” : true,
“export”:{
“enabled”: true,
“beforeCapture”: function(menuConfig) {
var title = “”;
if(!menuConfig.content){
title =”Jumlah Pengguna Aktif Bulanan Aplikasi Pesan Singkat (Oktober 2019)”;
}
var tinggilegend = $(‘.amcharts-legend-div’).height();
var imageleft = “iVBORw0KGgoAAAANSUhEUgAAALoAAAAgCAYAAACl82LUAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAA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OZuhT8IFESFruZqy6pzxtNknp6xFdH/QqUdS8nOCsfRkJ7rgcdAukGrPilSpUfgE6BRYmIAM9USEFWncKXA8pA2gOwkTGEHgeL58tdxMu4rBS38EPMfjsS0QBDS6SmFR0XdC4h9z7bXsjCPt5x1EsJykjUFX5zTvuJLe2sOCD8rkbInWguq9sneyiF+4inb0W77U2OIoudIB35VANPhs7K5uar/Gcs7CAoB4qRS0RMAq6JqtctXIDOGiDKF36zVSsXWKvQ5fckyXFNxcDqPEoGr9z2/GKiWlam6XX5ESra9Hbxd5DQ8R+c5i6ua5+VzFXaK0bSzxqdCtX6uqvJHWubl2/CG21cAz6frHNuHVx3z7kM1Mvm8FT8AnS0tL3m8VwteNWbDPgyNrhoa4f8D9mZtg9QY7+X+OaJ9+BvG3pS8W7Eil8HYqJj3vA/7MCr4P3GK4b2zl4oJAAAAJXRFWHRkYXRlOmNyZWF0ZQAyMDE5LTA4LTE5VDAwOjQ2OjMxLTA0OjAwS2q+zwAAACV0RVh0ZGF0ZTptb2RpZnkAMjAxOS0wOC0xOVQwMDo0NjozMS0wNDowMDo3BnMAAAAASUVORK5CYII=”;
var url = “data:image/png;base64,”+imagebg+””;
var url_left = “data:image/png;base64,”+imageleft+””;
var url_adv = “data:image/png;base64,”+$(‘#img_64’).val()+””;

var setup = this.setup;
var height = $(‘.amcharts-chart-div’).height() – 35;
var width = $(‘.amcharts-chart-div’).width();
if(tinggilegend == undefined){
tinggilegend =0 ;
}
var timer = setInterval(function() {
if (setup.fabric) {
var canvas = setup.fabric;
clearTimeout(timer);
canvas.setHeight(height + tinggilegend + 120);
fabric.Image.fromURL(url_left, function(img) {
img.set({top: height + tinggilegend + 60,left: 20,scaleX: 0.5,scaleY: 0.5,})
canvas.add(img);
});

fabric.Image.fromURL(url, function(img) {
img.set({top: height + tinggilegend + 60,left: width – 100,scaleX: 0.45,scaleY: 0.45,})
canvas.add(img);
});

fabric.Image.fromURL(url_adv, function(img) {
img.set({top: height + tinggilegend + 60,left: (width / 2) – 50,width: 75,height: 20,})
canvas.add(img);
});

var unformatted = new fabric.Text(title, {
left: 5, //Take the block’s position
top: 5,
fontSize: 18,
fontWeight:’bold’
});

// var unformattedsumber = new fabric.Text(sumber, {
// left: 30, //Take the block’s position
// top: 25,
// fontSize: 16,
// fill:’rgb(153,153,153)’,
// fontWeight:’bold’
// });

var formatted = wrapCanvasText(unformatted, canvas, 820, 100, ‘center’);
// var formatsumber = wrapCanvasText(unformattedsumber, canvas, 780, 100, ‘center’);
canvas.add(formatted);
// canvas.add(formatsumber);
}
}, 100);
},
“afterCapture”: function(menuConfig) {
$(‘#chartdiv’).width(‘100%’);
},
“fileName”: “whatsapp-aplikasi-pesan-singkat-terpopuler-2019-by-katadata”,
“libs”: {
“path”: “https://cdn1.katadata.co.id/template/frontend_template_v1/js/amcharts/libs/”
},
“menu”: [{
“format”: “JPG”,
“label”: “Download JPG”,
“title”: “Export chart to JPG”,
“class”: “jpg-line”,
},
{
“format”: “PNG”,
“label”: “Download PNG”,
“title”: “Export chart to PNG”,
“class”: “png-line”,
},
{
“format”: “PDF”,
“label”: “Download PDF”,
“title”: “Export chart to PDF”,
“class”: “pdf-line”,
},
{
“format”: “XLSX”,
“label”: “Download Xls”,
“title”: “Export chart data to Excel”,
“class”: “xls-line”,
}]
}
});

chart.addListener(‘rendered’, showDownload);
chart.addListener(“rendered”, function() {
$(‘.amcharts-chart-div’).after(newdiv);
countshare();
countView();
getheight();
getheight2();
});
$(“#xls”).on(“click”,function(e){
chart.export.toXLSX({}, function(data) {
this.download(data, this.defaults.formats.XLSX.mimeType, “whatsapp-aplikasi-pesan-singkat-terpopuler-2019.xlsx”);
});
})
$(“.download-pdf-line”).on(“click”,function(e) {
var $div = $(chart.div);
$div.addClass(“print”);
var options = {
“pageSize”: “LEGAL”,
“pageOrigin”: false,
“content”: [{text: “WhatsApp, Aplikasi Pesan Singkat Terpopuler 2019”, style: ‘header’ },
{text: “WhatsApp masih menjadi aplikasi pesan singkat paling populer di dunia pada 2019. Per Oktober tahun lalu, WhatsApp memiliki jumlah pengguna aktif bulanan terbanyak, hingga 1,6 miliar pengguna. Tahun sebelumnya hanya berjumlah 1,5 miliar pengguna.Facebook Messenger menyusul dengan 1,3 miliar pengguna. Aplikasi buatan Tiongkok turut bersaing. WeChat menempati posisi ketiga yang memiliki sekitar 1,1 miliar pengguna. Tencent adalah korporasi di balik berkembangnya WeChat yang telah dirilis sejak 2011 lalu.(Baca: Whatsapp, Aplikasi dengan Total Rating Tertinggi)”, style: ‘anotherStyle’ },{“image”: “reference”,”fit”: [540.00, 720.00]},
{text: sumber, style: ‘otherStyle’ }],
styles: {
header: {
fontSize: 22,
bold: true,
alignment: ‘center’,
},
anotherStyle: {
fontSize: 9,
alignment: ‘center’,
margin:[0, 10, 0, 5]
},
otherStyle:{
fontSize: 9,
alignment: ‘left’,
margin:[0, 10, 0, 5]
}
}};
setTimeout(function () {
chart.AmExport.capture(options,function() {
chart.AmExport.toPDF(options, function( data ) {
chart.AmExport.download(data, “application/pdf”, “whatsapp-aplikasi-pesan-singkat-terpopuler-2019.pdf”);
$div.removeClass(“print”);
});
});
}, 200);
});

$(“.download-png-line”).on(“click”, function(e){
e.preventDefault();
$(‘#chartdiv’).width(850);
setTimeout(function(){ $(“#chartdiv li.png-line a”)[0].click(); }, 500);
});
}else if(tipechart == 1 || tipechart == 3){
var chartbar = AmCharts.makeChart(“chartdivbar”, {
“numberFormatter”: {
“decimalSeparator”: “,”,
“thousandsSeparator”: “.”
},
“type”: “serial”,
“theme”: “light”,
“numberFormatter”: {
// “precision”: -1,
“decimalSeparator”: “,”,
“thousandsSeparator”: “.”
},
// “backgroundImage”: “https://cdn1.katadata.co.id/template/frontend_template_v1/images/bg-charts.jpg”,
“colors”: [‘#f37125′,’#e3a127′,’#f4d20f’,’#cedc3e’,’#6dc9c8′,’#43ba84′,’#1b8f8f’,’#11639b’,’#1491d3′,’#a19086′,’#f4dcb0′,’#e44728′],
“categoryField”: “nama_data”,
“rotate”: rotate,
“startDuration”: 0,
“chartScrollbar”: {
“enabled”:chart_scrollbar,
“dragIcon”:’dragIconRoundSmall’,
“dragIconHeight”:20,
“scrollbarHeight”:17,
},
“trendLines”: [],
“dataProvider”: [{
“nama_data”: “WhatsApp”,
“value”:1600
},{
“nama_data”: “Facebook Messenger”,
“value”:1300
},{
“nama_data”: “WeChat”,
“value”:1133
},{
“nama_data”: “QQ Mobile”,
“value”:808
},{
“nama_data”: “Snapchat”,
“value”:314
},{
“nama_data”: “Telegram”,
“value”:200
}],
“guides”: [],
“valueAxes”: [
{
“id”: “ValueAxis-1”,
“position”: “bottom”,
“axisAlpha”: 0,
// “labelRotation”:45,
“title”: “Juta Pengguna”,
“fontSize” : 13,
“dashLength”: 0,
“minimum” : minimum,
“gridAlpha”: 0.4,
“gridColor”: “#d3d3d3”,
}
],
“allLabels”: [],
“graphs”: [{
“balloonText”: “[[category]]

[[value]]”,
“fillAlphas”: 0.8,
“fontSize”:14,
“lineAlpha”: 0.2,
“title”: “WhatsApp, Aplikasi Pesan Singkat Terpopuler 2019”,
“type”: “column”,
“labelOffset” : 2,
“valueField”: “value”
},],
“categoryAxis”: {
// “parseDates” :true,
“labelsEnabled” : true,
// “labelRotation” : 45,
“axisColor”: “#DADADA”,
“minorGridEnabled”: true,
“fontSize” : fontSizelabel,
“autoWrap” : autoWrap,
“ignoreAxisWidth”:ignoreAxisWidth,
“dashLength”: 3,
“gridAlpha”: 0,
},
“balloon”: {
“borderThickness”: 1,
“shadowAlpha”: 0,
“fontSize” : 12
},
“usePrefixes” : true,
“prefixesOfBigNumbers” : [
// {number:1e+3,prefix:” Ribu”},
{number:1e+6,prefix:” Juta”},
{number:1e+9,prefix:” Miliar”},
{number:1e+12,prefix:” Triliun”},
{number:1e+15,prefix:” Kuadriliun”}
],
“fontSize” : 9,
“marginTop” : 5,
“marginLeft” : marginLeft,
“marginRight” : 35,
“minMarginBottom” : 0,
“minMarginTop” : 75,
“marginTop” : 50,
“marginBottom” : 0,
“autoResize” : true,
“export”:{
“enabled”: true,

“fileName”: “whatsapp-aplikasi-pesan-singkat-terpopuler-2019-by-katadata”,
“libs”: {
“path”: “https://cdn1.katadata.co.id/template/frontend_template_v1/js/amcharts/libs/”
},
“beforeCapture”: function(menuConfig) {

var title = “”;
if(!menuConfig.content){
title =”Jumlah Pengguna Aktif Bulanan Aplikasi Pesan Singkat (Oktober 2019)”;
}
var tinggilegend = $(‘.amcharts-legend-div’).height();
var imageleft = “iVBORw0KGgoAAAANSUhEUgAAALoAAAAgCAYAAACl82LUAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAABcRAAAXEQHKJvM/AAAAB3RJTUUH4wkXFjoDONGe2gAADx9JREFUeNrtnHt0VNUVxn+TBxnCM4SgIkETGdBGURRUilq1olbqo1ZHrW19oq2tVVu1PlpFrbWtVdRWBUprHyqK2oqlpVaFatUaoSggKMSKoBLRGjEiGUKS6R/fvtw7l3vvTCYkUFf2WrPIzJx7ztnnfGfvb++zh1g8kaSjkqqb2eE+uqVbOlNieQK9wP5t83/RDfpu2R4lFk8ka4CzgXg7nisFYkAjsAZ4DVgMrAJaITfABx2y7oMi6V6brStFwK7ANxB485Vm4G3gCeAeYH48kWzLYWMKgf7AJutjYzyRTHfVhm7nYCrENT5pW5vWrTG/7VzvTpECtIgtHeynB1ANnA/8CbgM6J0DLaoGHgaeBB4FrqR9nqWjEgN6A31Mh+1JDgL+BjwFzAEuwqWMW0NKgb5ACQSD/9MkW3PhHNkJuN5evbIsYCmwFzAGOAr4GtCrC/UvBaYiTzQDOKYLx84mOwDjgAOAQ4CD2Xr7FQduRYdoJnD6tla2s6Wok/rtAVwAvAXcTkDQ6pFWz99R7TpDCoE9gFH2fhnw1y6eQ5i0obUp8rzfWlIMfAYYbe8/BO5H3v1TKZ0FdJBLvASYG08kF3WEA0Z5hQ5yyzSZAO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Ch/Ffs8tXppYwsJmX1KTghsTc0p5fZ0LFyJonyrfwOz931aMFUc3pi1bnLjrpCK22rWgFYFNarXJF2FFQT1UfRnCtpAmFwKXAtsqUshBbL0RnfoTczUvAk8exqrEItr0AO9zMDH8kuIpNdPhC9iHvrXW0ouFEv9F0c+LsO1Vk6ToWtBKNp8LgJWK3iHIMViRyCxMym0F/ozygEOf8EQCh0t8htPV3Eomn+tDSj/ApW5BmItJW8XMovsFXlT7rP2joGGgXLY48ap+QDBwJTzx1j/wmj99bu7TR+2HMAVoAvWAzZGHn1ZU4DcKvxcr75uNOVTPA/cTyHp8VUwrLAtziv2YjTuIzuZWMh25IvCLsMrqzVhA/zAstbotfOZuhT8IFESFruZqy6pzxtNknp6xFdH/QqUdS8nOCsfRkJ7rgcdAukGrPilSpUfgE6BRYmIAM9USEFWncKXA8pA2gOwkTGEHgeL58tdxMu4rBS38EPMfjsS0QBDS6SmFR0XdC4h9z7bXsjCPt5x1EsJykjUFX5zTvuJLe2sOCD8rkbInWguq9sneyiF+4inb0W77U2OIoudIB35VANPhs7K5uar/Gcs7CAoB4qRS0RMAq6JqtctXIDOGiDKF36zVSsXWKvQ5fckyXFNxcDqPEoGr9z2/GKiWlam6XX5ESra9Hbxd5DQ8R+c5i6ua5+VzFXaK0bSzxqdCtX6uqvJHWubl2/CG21cAz6frHNuHVx3z7kM1Mvm8FT8AnS0tL3m8VwteNWbDPgyNrhoa4f8D9mZtg9QY7+X+OaJ9+BvG3pS8W7Eil8HYqJj3vA/7MCr4P3GK4b2zl4oJAAAAJXRFWHRkYXRlOmNyZWF0ZQAyMDE5LTA4LTE5VDAwOjQ2OjMxLTA0OjAwS2q+zwAAACV0RVh0ZGF0ZTptb2RpZnkAMjAxOS0wOC0xOVQwMDo0NjozMS0wNDowMDo3BnMAAAAASUVORK5CYII=”;
var url = “data:image/png;base64,”+imagebg+””;
var url_left = “data:image/png;base64,”+imageleft+””;
var url_adv = “data:image/png;base64,”+$(‘#img_64’).val()+””;

var setup = this.setup;
var height = $(‘.amcharts-chart-div’).height() – 25;
var width = $(‘.amcharts-chart-div’).width();
if(tinggilegend == undefined){
tinggilegend =0 ;
}
var timer = setInterval(function() {
if (setup.fabric) {
var canvas = setup.fabric;
clearTimeout(timer);
canvas.setHeight(height + tinggilegend + 120);
fabric.Image.fromURL(url_left, function(img) {
img.set({top: height + tinggilegend + 60,left: 20,scaleX: 0.5,scaleY: 0.5,})
canvas.add(img);
});

fabric.Image.fromURL(url, function(img) {
img.set({top: height + tinggilegend + 60,left: width – 100,scaleX: 0.45,scaleY: 0.45,})
canvas.add(img);
});

fabric.Image.fromURL(url_adv, function(img) {
img.set({top: height + tinggilegend + 60,left: (width / 2) – 50,width: 75,height: 20,})
canvas.add(img);
});

var unformatted = new fabric.Text(title, {
left: 5, //Take the block’s position
top: 5,
fontSize: 18,
fontWeight:’bold’
});

//sumber di chart
// var unformattedsumber = new fabric.Text(sumber, {
// left: 30, //Take the block’s position
// top: 25,
// fontSize: 16,
// fill:’rgb(153,153,153)’,
// fontWeight:’bold’
// });

var formatted = wrapCanvasText(unformatted, canvas, 820, 100, ‘center’);
// var formatsumber = wrapCanvasText(unformattedsumber, canvas, 780, 100, ‘center’);
canvas.add(formatted);
// canvas.add(formatsumber);
}
}, 100);
},
“afterCapture”: function(menuConfig) {
$(‘#chartdivbar’).width(‘100%’);
},
“menu”: [{
“format”: “JPG”,
“label”: “Download JPG”,
“title”: “Export chart to JPG”,
“class”: “jpg-bar”,
},
{
“format”: “PNG”,
“label”: “Download PNG”,
“title”: “Export chart to PNG”,
“class”: “png-bar”,
},
{
“format”: “PDF”,
“label”: “Download PDF”,
“title”: “Export chart to PDF”,
“class”: “pdf-bar”,
},
{
“format”: “XLSX”,
“label”: “Download Xls”,
“title”: “Export chart data to Excel”,
“class”: “xls-bar”,
}]
}
});
chartbar.addListener(‘rendered’, showDownload);
chartbar.addListener(“rendered”, function() {
$(‘.amcharts-chart-div’).after(newdiv);
countshare();
countView();
getheight();
getheight2();

});
$(“#xls”).on(“click”,function(e){
chartbar.export.toXLSX({}, function(data) {
this.download(data, this.defaults.formats.XLSX.mimeType, “whatsapp-aplikasi-pesan-singkat-terpopuler-2019.xlsx”);
});
})
$(“.download-pdf-bar”).on(“click”,function(e) {
var $div = $(chartbar.div);
$div.addClass(“print”);
var options = {
“pageSize”: “LEGAL”,
“pageOrigin”: false,
“content”: [{ text: “WhatsApp, Aplikasi Pesan Singkat Terpopuler 2019”, style: ‘header’ },
{text: “WhatsApp masih menjadi aplikasi pesan singkat paling populer di dunia pada 2019. Per Oktober tahun lalu, WhatsApp memiliki jumlah pengguna aktif bulanan terbanyak, hingga 1,6 miliar pengguna. Tahun sebelumnya hanya berjumlah 1,5 miliar pengguna.Facebook Messenger menyusul dengan 1,3 miliar pengguna. Aplikasi buatan Tiongkok turut bersaing. WeChat menempati posisi ketiga yang memiliki sekitar 1,1 miliar pengguna. Tencent adalah korporasi di balik berkembangnya WeChat yang telah dirilis sejak 2011 lalu.(Baca: Whatsapp, Aplikasi dengan Total Rating Tertinggi)”, style: ‘anotherStyle’ },{“image”: “reference”,”fit”: [540.00, 720.00]},
{text: sumber, style: ‘otherStyle’ }],
styles: {
header: {
fontSize: 22,
bold: true,
alignment: ‘center’,
},
anotherStyle: {
fontSize: 9,
alignment: ‘center’,
margin:[0, 10, 0, 5]
},
otherStyle:{
fontSize: 9,
alignment: ‘left’,
margin:[0, 10, 0, 5]
}
}
};

setTimeout(function () {
chartbar.AmExport.capture(options,function() {
chartbar.AmExport.toPDF(options, function( data ) {
chartbar.AmExport.download(data, “application/pdf”, “whatsapp-aplikasi-pesan-singkat-terpopuler-2019.pdf”);
$div.removeClass(“print”);
});
});
}, 200);
});

$(“.download-png-bar”).on(“click”, function(e){
e.preventDefault();
$(‘#chartdivbar’).width(850);
setTimeout(function(){
var cle = document.createEvent(“MouseEvent”);
cle.initEvent(“click”, true, true);
var elem = $(“#chartdivbar li.png-bar a”)[0];
elem.dispatchEvent(cle);
// $(“#chartdivbar li.png-bar a”)[0].click();
}, 500);
});

}else if(tipechart == 8){
var chartbar = AmCharts.makeChart(“chartdivbar”, {
“type”: “serial”,
“theme”: “light”,
“numberFormatter”: {
// “precision”: -1,
“decimalSeparator”: “,”,
“thousandsSeparator”: “.”
},
“colors”: [‘#f37125′,’#e3a127′,’#f4d20f’,’#cedc3e’,’#6dc9c8′,’#43ba84′,’#1b8f8f’,’#11639b’,’#1491d3′,’#a19086′,’#f4dcb0′,’#e44728′],
“categoryField”: “nama_data”,
“rotate”: rotate,
“startDuration”: 0,
“chartScrollbar”: {
“enabled”:chart_scrollbar,
“dragIcon”:’dragIconRoundSmall’,
“dragIconHeight”:20,
“scrollbarHeight”:17,
},
“trendLines”: [],
“dataProvider”: [{
“nama_data”: “WhatsApp”,
“value”:1600
},{
“nama_data”: “Facebook Messenger”,
“value”:1300
},{
“nama_data”: “WeChat”,
“value”:1133
},{
“nama_data”: “QQ Mobile”,
“value”:808
},{
“nama_data”: “Snapchat”,
“value”:314
},{
“nama_data”: “Telegram”,
“value”:200
}],
“guides”: [],
“valueAxes”: [
{
“id”: “ValueAxis-1”,
“position”: “bottom”,
“axisAlpha”: 0,
“title”: “Juta Pengguna”,
“fontSize” : 13,
“dashLength”: 3,
“gridAlpha”: 0.4,
“gridColor”: “#d3d3d3”,
“labelFunction” : function(value) {return Math.abs(value);}
}
],
“allLabels”: [],
“graphs”: [
{
“balloonText”: “[[category]]

[[value]]”,
“fillAlphas”: 0.8,
“fontSize”:14,
“lineAlpha”: 0.2,
“title”: “WhatsApp, Aplikasi Pesan Singkat Terpopuler 2019”,
“type”: “column”,
“labelOffset” : 2,
“valueField”: “value”
}, {
“valueAxis”:”WhatsApp, Aplikasi Pesan Singkat Terpopuler 2019″,
“balloonText”: “[[category]]

[[value]]”,
“type”: “line”,
“fontSize”:14,
“labelOffset” : 2,
“valueField”: “value”,
“bullet”:”round”,
“lineThickness” : 3

}, ],
“categoryAxis”: {
“labelsEnabled” : true,
“axisColor”: “#DADADA”,
“minorGridEnabled”: true,
“fontSize” : fontSizelabel,
“autoWrap” : autoWrap,
“ignoreAxisWidth”:ignoreAxisWidth,
“dashLength”: 3,
“gridAlpha”: 0
},
“chartCursor”: {
“cursorPosition”: “mouse”,
“pan”: true,
“valueLineEnabled”: true,
“valueLineBalloonEnabled”: false,
“cursorAlpha”:0.2,
“valueLineAlpha”:0.2
},
“balloon”: {
“borderThickness”: 1,
“shadowAlpha”: 0,
“fontSize” : 12
},
“legend”: {
“useGraphSettings”: false,
“align”: “center”,
“verticalGap” : 30,
“marginBottom” : 0,
},
“usePrefixes” : true,
“prefixesOfBigNumbers” : [
// {number:1e+3,prefix:” Ribu”},
{number:1e+6,prefix:” Juta”},
{number:1e+9,prefix:” Miliar”},
{number:1e+12,prefix:” Triliun”},
{number:1e+15,prefix:” Kuadriliun”}
],
“fontSize” : 9,
“marginTop” : 5,
“marginLeft” : marginLeft,
“marginRight” : 35,
“minMarginBottom” : 0,
“minMarginTop” : 75,
“marginTop” : 50,
“marginBottom” : 0,
“autoResize” : true,
“export”:{
“enabled”: true,
“beforeCapture”: function(menuConfig) {
console.log(‘ssddd’);
var title = “”;
if(!menuConfig.content){
title =”Jumlah Pengguna Aktif Bulanan Aplikasi Pesan Singkat (Oktober 2019)”;
}
var tinggilegend = $(‘.amcharts-legend-div’).height();
var imageleft = “iVBORw0KGgoAAAANSUhEUgAAALoAAAAgCAYAAACl82LUAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAABcRAAAXEQHKJvM/AAAAB3RJTUUH4wkXFjoDONGe2gAADx9JREFUeNrtnHt0VNUVxn+TBxnCM4SgIkETGdBGURRUilq1olbqo1ZHrW19oq2tVVu1PlpFrbWtVdRWBUprHyqK2oqlpVaFatUaoSggKMSKoBLRGjEiGUKS6R/fvtw7l3vvTCYkUFf2WrPIzJx7ztn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RMAq6JqtctXIDOGiDKF36zVSsXWKvQ5fckyXFNxcDqPEoGr9z2/GKiWlam6XX5ESra9Hbxd5DQ8R+c5i6ua5+VzFXaK0bSzxqdCtX6uqvJHWubl2/CG21cAz6frHNuHVx3z7kM1Mvm8FT8AnS0tL3m8VwteNWbDPgyNrhoa4f8D9mZtg9QY7+X+OaJ9+BvG3pS8W7Eil8HYqJj3vA/7MCr4P3GK4b2zl4oJAAAAJXRFWHRkYXRlOmNyZWF0ZQAyMDE5LTA4LTE5VDAwOjQ2OjMxLTA0OjAwS2q+zwAAACV0RVh0ZGF0ZTptb2RpZnkAMjAxOS0wOC0xOVQwMDo0NjozMS0wNDowMDo3BnMAAAAASUVORK5CYII=”;
var url = “data:image/png;base64,”+imagebg+””;
var url_left = “data:image/png;base64,”+imageleft+””;
var url_adv = “data:image/png;base64,”+$(‘#img_64’).val()+””;

var setup = this.setup;
var height = $(‘.amcharts-chart-div’).height() – 35;
var width = $(‘.amcharts-chart-div’).width();
if(tinggilegend == undefined){
tinggilegend =0 ;
}
var timer = setInterval(function() {
if (setup.fabric) {
var canvas = setup.fabric;
clearTimeout(timer);

fabric.Image.fromURL(url_left, function(img) {
img.set({top: height + tinggilegend + 60,left: 20,scaleX: 0.5,scaleY: 0.5,})
canvas.add(img);
});

fabric.Image.fromURL(url, function(img) {
img.set({top: height + tinggilegend + 60,left: width – 100,scaleX: 0.45,scaleY: 0.45,})
canvas.add(img);
});

fabric.Image.fromURL(url_adv, function(img) {
img.set({top: height + tinggilegend + 60,left: (width / 2) – 50,width: 75,height: 20,})
canvas.add(img);
});

var unformatted = new fabric.Text(title, {
left: 5, //Take the block’s position
top: 3,
fontSize: 18,
fontWeight:’bold’
});
// var unformattedsumber = new fabric.Text(sumber, {
// left: 30, //Take the block’s position
// top: 25,
// fontSize: 16,
// fill:’rgb(153,153,153)’,
// fontWeight:’bold’
// });
var formatted = wrapCanvasText(unformatted, canvas, 820, 100, ‘center’);
// var formatsumber = wrapCanvasText(unformattedsumber, canvas, 780, 100, ‘center’);
canvas.add(formatted);
// canvas.add(formatsumber);
}
}, 100);
},
“afterCapture”: function(menuConfig) {
$(‘#chartdivbar’).width(‘100%’);
},
“fileName”: “whatsapp-aplikasi-pesan-singkat-terpopuler-2019-by-katadata”,
“libs”: {
“path”: “https://cdn1.katadata.co.id/template/frontend_template_v1/js/amcharts/libs/”
},
“menu”: [{
“format”: “JPG”,
“label”: “Download JPG”,
“title”: “Export chart to JPG”,
“class”: “jpg-bar”,
},
{
“format”: “PNG”,
“label”: “Download PNG”,
“title”: “Export chart to PNG”,
“class”: “png-bar”,
},
{
“format”: “PDF”,
“label”: “Download PDF”,
“title”: “Export chart to PDF”,
“class”: “pdf-bar”,
},
{
“format”: “XLSX”,
“label”: “Download Xls”,
“title”: “Export chart data to Excel”,
“class”: “xls-bar”,
}]
}
});
chartbar.addListener(‘rendered’, showDownload);
chartbar.addListener(“rendered”, function() {
$(‘.amcharts-chart-div’).after(newdiv);
countshare();
countView();
getheight();
getheight2();

});
$(“#xls”).on(“click”,function(e){
chartbar.export.toXLSX({}, function(data) {
this.download(data, this.defaults.formats.XLSX.mimeType, “whatsapp-aplikasi-pesan-singkat-terpopuler-2019.xlsx”);
});
})
$(“.download-pdf-bar”).on(“click”,function(e) {
var $div = $(chartbar.div);
$div.addClass(“print”);
var options = {
“pageSize”: “LEGAL”,
“pageOrigin”: false,
“content”: [{ text: “WhatsApp, Aplikasi Pesan Singkat Terpopuler 2019”, style: ‘header’ },
{text: “WhatsApp masih menjadi aplikasi pesan singkat paling populer di dunia pada 2019. Per Oktober tahun lalu, WhatsApp memiliki jumlah pengguna aktif bulanan terbanyak, hingga 1,6 miliar pengguna. Tahun sebelumnya hanya berjumlah 1,5 miliar pengguna.Facebook Messenger menyusul dengan 1,3 miliar pengguna. Aplikasi buatan Tiongkok turut bersaing. WeChat menempati posisi ketiga yang memiliki sekitar 1,1 miliar pengguna. Tencent adalah korporasi di balik berkembangnya WeChat yang telah dirilis sejak 2011 lalu.(Baca: Whatsapp, Aplikasi dengan Total Rating Tertinggi)”, style: ‘anotherStyle’ },{“image”: “reference”,”fit”: [540.00, 720.00]},
{text: sumber, style: ‘otherStyle’ }],
styles: {
header: {
fontSize: 22,
bold: true,
alignment: ‘center’,
},
anotherStyle: {
fontSize: 9,
alignment: ‘center’,
margin:[0, 10, 0, 5]
},
otherStyle:{
fontSize: 9,
alignment: ‘left’,
margin:[0, 10, 0, 5]
}
}
};

setTimeout(function () {
chartbar.AmExport.capture(options,function() {
chartbar.AmExport.toPDF(options, function( data ) {
chartbar.AmExport.download(data, “application/pdf”, “whatsapp-aplikasi-pesan-singkat-terpopuler-2019.pdf”);
$div.removeClass(“print”);
});
});
}, 200);
});

$(“.download-png-bar”).on(“click”, function(e){
e.preventDefault();
$(‘#chartdivbar’).width(850);
setTimeout(function(){ $(“#chartdivbar li.png-bar a”)[0].click(); }, 500);
});

};
});

function showDownload() {
$(“.datapublish-download”).show();
if ($(window).width() ‘;
$(“.embedtext:first”).val(iframe);
}

}

function getheight2(){
var tipe_chart = ‘1’;
if (tipe_chart == 0 || tipe_chart == 2 ) {
var height = $(“#chartdiv”).height()+100;
}else if(tipe_chart == 1 || tipe_chart == 3 || tipe_chart == 8){
var height = $(“#chartdivbar”).height()+100;
}
var id = ‘114521’;
var slug = ‘whatsapp-aplikasi-pesan-singkat-terpopuler-2019’;
var is_script = ‘0’;
var scripts = ”;
if(is_script == 1){
$(“.embedtexten”).val(scripts);
}else{
var iframe = ‘
‘;
$(“.embedtexten”).val(iframe);
}

}

Disalin..

Penulis: Yosepha Pusparisa

Editor: Safrezi Fitra

14/2/2020, 13.15 WIB

WhatsApp masih menjadi aplikasi pesan singkat paling populer di dunia pada 2019. Per Oktober tahun lalu, WhatsApp memiliki jumlah pengguna aktif bulanan terbanyak, hingga 1,6 miliar pengguna. Tahun sebelumnya hanya berjumlah 1,5 miliar pengguna.

Facebook Messenger menyusul dengan 1,3 miliar pengguna. Aplikasi buatan Tiongkok turut bersaing. WeChat menempati posisi ketiga yang memiliki sekitar 1,1 miliar pengguna. Tencent adalah korporasi di balik berkembangnya WeChat yang telah dirilis sejak 2011 lalu.

(Baca: Whatsapp, Aplikasi dengan Total Rating Tertinggi)

Leave a Reply

Your email address will not be published. Required fields are marked *

Copyright Zitub.com 2020