var chartLabelPlugin={afterDatasetsDraw:function(d){var b=d.ctx;b.fillStyle="rgb(0, 0, 0)";var e=12;var h="normal";var a="Helvetica Neue";b.font=Chart.helpers.fontString(e,h,a);b.textAlign="center";b.textBaseline="bottom";var f=2;var c=f+e;var g=f;d.data.datasets.forEach(function(j,k){var i=d.getDatasetMeta(k);if(!i.hidden){i.data.forEach(function(m,l){if(j.data[l]){var p=m.tooltipPosition();if("polarArea/pie/doughnut".indexOf(d.config.type)>=0){var n=d.data.labels[l];b.fillText(n,p.x,p.y-c)}var o=j.data[l].toString();b.fillText(o,p.x,p.y-g)}})}})}};var clickLink=function(a,g,j,c){if(!c){c=this}var b=g[0]._chart.getElementAtEvent(a);var h=b[0]._chart.data;if(b[0]){var k=b[0]._index;var d=b[0]._datasetIndex;var f=h.labels[k];var e=h.datasets[d].data[k];var i=j.replace(/\{CLM\}/g,f).replace(/\{VAL\}/g,e).replace(/\{IDX\}/g,k);c.location.href=encodeURI(i)}};