var t,e;t=this,e=function(t){return function(t,e,n){var l={labelClass:"ct-label",labelOffset:{x:0,y:-10},textAnchor:"middle",align:"center",labelInterpolationFnc:n.noop},a={point:function(t){return{x:t.x,y:t.y}},bar:{left:function(t){return{x:t.x1,y:t.y1}},center:function(t){return{x:t.x1+(t.x2-t.x1)/2,y:t.y1}},right:function(t){return{x:t.x2,y:t.y1}}}};n.plugins=n.plugins||{},n.plugins.ctPointLabels=function(t){return t=n.extend({},l,t),function ctPointLabels(e){(e instanceof n.Line||e instanceof n.Bar)&&e.on("draw",(function(e){var n=a[e.type]&&a[e.type][t.align]||a[e.type];n&&function addLabel(e,n){var l=void 0!==n.value.x&&n.value.y?n.value.x+", "+n.value.y:n.value.y||n.value.x;n.group.elem("text",{x:e.x+t.labelOffset.x,y:e.y+t.labelOffset.y,style:"text-anchor: "+t.textAnchor},t.labelClass).text(t.labelInterpolationFnc(l))}(n(e),e)}))}}}(window,document,t),t.plugins.ctPointLabels},"function"==typeof define&&define.amd?define(["chartist"],(function(n){return t.returnExportsGlobal=e(n)})):"object"==typeof exports?module.exports=e(require("chartist")):t["Chartist.plugins.ctPointLabels"]=e(Chartist);