diff options
author | Matthijs Kuiper <info@matthijskuiper.nl> | 2018-01-08 00:34:58 +0100 |
---|---|---|
committer | Matthijs Kuiper <info@matthijskuiper.nl> | 2018-01-09 00:44:09 +0100 |
commit | 07e2c59aa35f9d3057f247882136ea6238ed207c (patch) | |
tree | bf9c0d02d7d48e0e685f861a1f2ee14943b6a67a /html/assets/lib/highcharts/modules/no-data-to-display.js | |
parent | a25aca329747cac77264847b29cb844a45c7a88f (diff) |
Assets dir with libs
Diffstat (limited to 'html/assets/lib/highcharts/modules/no-data-to-display.js')
-rw-r--r-- | html/assets/lib/highcharts/modules/no-data-to-display.js | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/html/assets/lib/highcharts/modules/no-data-to-display.js b/html/assets/lib/highcharts/modules/no-data-to-display.js new file mode 100644 index 0000000..c96c4d1 --- /dev/null +++ b/html/assets/lib/highcharts/modules/no-data-to-display.js @@ -0,0 +1,12 @@ +/* + Highcharts JS v4.0.4 (2014-09-02) + Plugin for displaying a message when there is no data visible in chart. + + (c) 2010-2014 Highsoft AS + Author: Oystein Moseng + + License: www.highcharts.com/license +*/ +(function(c){function f(){return!!this.points.length}function g(){this.hasData()?this.hideNoData():this.showNoData()}var d=c.seriesTypes,e=c.Chart.prototype,h=c.getOptions(),i=c.extend;i(h.lang,{noData:"No data to display"});h.noData={position:{x:0,y:0,align:"center",verticalAlign:"middle"},attr:{},style:{fontWeight:"bold",fontSize:"12px",color:"#60606a"}};if(d.pie)d.pie.prototype.hasData=f;if(d.gauge)d.gauge.prototype.hasData=f;if(d.waterfall)d.waterfall.prototype.hasData=f;c.Series.prototype.hasData= +function(){return this.dataMax!==void 0&&this.dataMin!==void 0};e.showNoData=function(a){var b=this.options,a=a||b.lang.noData,b=b.noData;if(!this.noDataLabel)this.noDataLabel=this.renderer.label(a,0,0,null,null,null,null,null,"no-data").attr(b.attr).css(b.style).add(),this.noDataLabel.align(i(this.noDataLabel.getBBox(),b.position),!1,"plotBox")};e.hideNoData=function(){if(this.noDataLabel)this.noDataLabel=this.noDataLabel.destroy()};e.hasData=function(){for(var a=this.series,b=a.length;b--;)if(a[b].hasData()&& +!a[b].options.isInternal)return!0;return!1};e.callbacks.push(function(a){c.addEvent(a,"load",g);c.addEvent(a,"redraw",g)})})(Highcharts); |