no-data-to-display.js 2.1 KB

123456789101112131415161718192021
  1. /*
  2. Highcharts JS v9.3.2 (2021-11-29)
  3. Plugin for displaying a message when there is no data visible in chart.
  4. (c) 2010-2021 Highsoft AS
  5. Author: Oystein Moseng
  6. License: www.highcharts.com/license
  7. */
  8. 'use strict'; (function (a) { "object" === typeof module && module.exports ? (a["default"] = a, module.exports = a) : "function" === typeof define && define.amd ? define("highcharts/modules/no-data-to-display", ["highcharts"], function (b) { a(b); a.Highcharts = b; return a }) : a("undefined" !== typeof Highcharts ? Highcharts : void 0) })(function (a) {
  9. function b(a, b, e, d) { a.hasOwnProperty(b) || (a[b] = d.apply(null, e)) } a = a ? a._modules : {}; b(a, "Extensions/NoDataToDisplay.js", [a["Core/Renderer/HTML/AST.js"], a["Core/Chart/Chart.js"], a["Core/DefaultOptions.js"],
  10. a["Core/Utilities.js"]], function (a, b, e, d) {
  11. var f = e.getOptions; e = d.addEvent; var g = d.extend; d = b.prototype; f = f(); g(f.lang, { noData: "No data to display" }); f.noData = { attr: { zIndex: 1 }, position: { x: 0, y: 0, align: "center", verticalAlign: "middle" }, style: { fontWeight: "bold", fontSize: "12px", color: "#666666" } }; d.showNoData = function (b) {
  12. var c = this.options; b = b || c && c.lang.noData || ""; c = c && (c.noData || {}); this.renderer && (this.noDataLabel || (this.noDataLabel = this.renderer.label(b, 0, 0, void 0, void 0, void 0, c.useHTML, void 0, "no-data").add()),
  13. this.styledMode || this.noDataLabel.attr(a.filterUserAttributes(c.attr || {})).css(c.style || {}), this.noDataLabel.align(g(this.noDataLabel.getBBox(), c.position || {}), !1, "plotBox"))
  14. }; d.hideNoData = function () { this.noDataLabel && (this.noDataLabel = this.noDataLabel.destroy()) }; d.hasData = function () { for (var a = this.series || [], b = a.length; b--;) if (a[b].hasData() && !a[b].options.isInternal) return !0; return this.loadingShown }; e(b, "render", function () { this.hasData() ? this.hideNoData() : this.showNoData() })
  15. }); b(a, "masters/modules/no-data-to-display.src.js",
  16. [], function () { })
  17. });
  18. //# sourceMappingURL=no-data-to-display.js.map