highcharts
Version:
JavaScript charting framework
13 lines • 2.61 kB
JavaScript
!/**
* Highcharts JS v13.0.1 (2026-08-17)
* @module highcharts/modules/no-data-to-display
* @requires highcharts
*
* Plugin for displaying a message when there is no data visible in chart.
*
* (c) 2010-2026 Highsoft AS
* Author: Øystein Moseng
*
* A commercial license may be required depending on use,
* see www.highcharts.com/license
*/function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(t._Highcharts,t._Highcharts.AST):"function"==typeof define&&define.amd?define("highcharts/modules/no-data-to-display",["highcharts/highcharts"],function(t){return e(t,t.AST)}):"object"==typeof exports?exports["highcharts/modules/no-data-to-display"]=e(t._Highcharts,t._Highcharts.AST):t.Highcharts=e(t.Highcharts,t.Highcharts.AST)}("u"<typeof window?this:window,(t,e)=>(()=>{"use strict";var a={660(t){t.exports=e},944(e){e.exports=t}};let o={};function r(t){let e=o[t];if(void 0!==e)return e.exports;let i=o[t]={exports:{}};return a[t](i,i.exports,r),i.exports}r.n=t=>{let e=t&&t.__esModule?()=>t.default:()=>t;return r.d(e,{a:e}),e},r.d=(t,e)=>{if(Array.isArray(e))for(var a=0;a<e.length;){var o=e[a++],i=e[a++];r.o(t,o)?0===i&&a++:0===i?Object.defineProperty(t,o,{enumerable:!0,value:e[a++]}):Object.defineProperty(t,o,{enumerable:!0,get:i})}else for(var o in e)r.o(e,o)&&!r.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:e[o]})},r.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);let i={};r.d(i,{default:()=>b});var n=r(944),s=r.n(n),h=r(660),l=r.n(h);let d={lang:{noData:"No data to display"},noData:{attr:{zIndex:1},position:{x:0,y:0,align:"center",verticalAlign:"middle"},style:{fontWeight:"bold",fontSize:"0.8em",color:"var(--highcharts-neutral-color-60)"}}};function c(){let t=this.series||[],e=t.length;for(;e--;)if(t[e].hasData()&&!t[e].options.isInternal)return!0;return this.loadingShown}function p(){this.noDataLabel&&(this.noDataLabel=this.noDataLabel.destroy())}function u(t){let e=this.options,a=t||e&&e.lang.noData||"",o=e&&(e.noData||{});this.renderer&&(this.noDataLabel||(this.noDataLabel=this.renderer.label(a,0,0,void 0,void 0,void 0,o.useHTML,void 0,"no-data").add()),this.styledMode||this.noDataLabel.attr(l().filterUserAttributes(o.attr||{})).css(o.style||{}),this.noDataLabel.align((0,n.extend)(this.noDataLabel.getBBox(),o.position||{}),!1,"plotBox"))}function f(){this.hasData()?this.hideNoData():this.showNoData()}let g=s();({compose:function(t,e){let a=t.prototype;a.showNoData||(a.hasData=c,a.hideNoData=p,a.showNoData=u,(0,n.addEvent)(t,"render",f),(0,n.merge)(!0,e,d))}}).compose(g.Chart,g.defaultOptions);let b=s();return i.default})());