!function(t){var a=t.seriesTypes,o=t.Chart.prototype,n=t.getOptions(),i=t.extend;function e(){return!!this.points.length}function l(){var a=this;a.hasData()?a.hideNoData():a.showNoData()}i(n.lang,{noData:"No data to display"}),n.noData={position:{x:0,y:0,align:"center",verticalAlign:"middle"},attr:{},style:{fontWeight:"bold",fontSize:"12px",color:"#60606a"}},a.pie.prototype.hasData=e,a.gauge&&(a.gauge.prototype.hasData=e),a.waterfall&&(a.waterfall.prototype.hasData=e),t.Series.prototype.hasData=function(){return void 0!==this.dataMax&&void 0!==this.dataMin},o.showNoData=function(a){var t=this,o=t.options,n=a||o.lang.noData,e=o.noData;t.noDataLabel||(t.noDataLabel=t.renderer.label(n,0,0,null,null,null,null,null,"no-data").attr(e.attr).css(e.style).add(),t.noDataLabel.align(i(t.noDataLabel.getBBox(),e.position),!1,"plotBox"))},o.hideNoData=function(){var a=this;a.noDataLabel&&(a.noDataLabel=a.noDataLabel.destroy())},o.hasData=function(){for(var a=this.series,t=a.length;t--;)if(a[t].hasData()&&!a[t].options.isInternal)return!0;return!1},o.callbacks.push(function(a){t.addEvent(a,"load",l),t.addEvent(a,"redraw",l)})}(Highcharts);
|