var chartLabelPlugin={afterDatasetsDraw:function(a,d){var c=a.ctx;c.fillStyle="rgb(0, 0, 0)";c.font=Chart.helpers.fontString(12,"normal","Helvetica Neue");c.textAlign="center";c.textBaseline="bottom";var e=a.legend.legendItems;a.data.datasets.forEach(function(g,l){var n=a.getDatasetMeta(l),h=a.config.type.toString(),m=0>"polarArea/pie/doughnut".indexOf(h);m&&e[l].hidden||n.data.forEach(function(f,k){if(m||!e[k].hidden){var b=g.data[k];b&&(f=f.tooltipPosition(),0<="polarArea/pie/doughnut/bubble/scatter".indexOf(h)&&
c.fillText(a.data.labels[k],f.x,f.y-14),"bubble"==h?b=b.r:"scatter"==h&&(b=[b.x,b.y]),$.isNumeric(b)&&(b=Number(b).toLocaleString(void 0,{maximumFractionDigits:20})),c.fillText(b,f.x,f.y-2))}})})}},clickLink=function(a,d,c,e){e||(e=this);if(d[0]){var g=d[0].index;d=a.chart.data.datasets[d[0].datasetIndex].data[g];a=c.replace(/\{CLM\}/g,a.chart.data.labels[g]).replace(/\{VAL\}/g,d).replace(/\{IDX\}/g,g);e.location.href=encodeURI(a)}};
