1 line
62 KiB
JavaScript
1 line
62 KiB
JavaScript
|
|
!function (e, t) { "object" == typeof exports && "undefined" != typeof module ? module.exports = t(require("echarts/lib/echarts"), require("echarts/lib/component/tooltip"), require("echarts/lib/component/legend"), require("echarts/lib/chart/bar"), require("echarts/lib/chart/line"), require("echarts/lib/chart/pie"), require("echarts/lib/chart/funnel"), require("echarts/lib/chart/radar"), require("echarts/lib/chart/map"), require("echarts/extension/bmap/bmap"), require("echarts-amap"), require("echarts/lib/chart/sankey"), require("echarts/lib/chart/heatmap"), require("echarts/lib/component/visualMap"), require("echarts/lib/chart/scatter"), require("echarts/lib/chart/candlestick"), require("echarts/lib/component/dataZoom"), require("echarts/lib/chart/gauge"), require("echarts/lib/chart/tree"), require("echarts-liquidfill"), require("echarts-wordcloud")) : "function" == typeof define && define.amd ? define(["echarts/lib/echarts", "echarts/lib/component/tooltip", "echarts/lib/component/legend", "echarts/lib/chart/bar", "echarts/lib/chart/line", "echarts/lib/chart/pie", "echarts/lib/chart/funnel", "echarts/lib/chart/radar", "echarts/lib/chart/map", "echarts/extension/bmap/bmap", "echarts-amap", "echarts/lib/chart/sankey", "echarts/lib/chart/heatmap", "echarts/lib/component/visualMap", "echarts/lib/chart/scatter", "echarts/lib/chart/candlestick", "echarts/lib/component/dataZoom", "echarts/lib/chart/gauge", "echarts/lib/chart/tree", "echarts-liquidfill", "echarts-wordcloud"], t) : e.VeIndex = t(e.echarts) }(this, function (e) { "use strict"; e = e && e.hasOwnProperty("default") ? e.default : e; var t = { categoryAxis: { axisLine: { show: !1 }, axisTick: { show: !1 }, splitLine: { show: !1 } }, valueAxis: { axisLine: { show: !1 } }, line: { smooth: !0 }, grid: { containLabel: !0, left: 10, right: 10 } }, i = ["#19d4ae", "#5ab1ef", "#fa6e86", "#ffb980", "#0067a6", "#c4b4e4", "#d87a80", "#9cbbff", "#d9d0c7", "#87a997", "#d49ea2", "#5b4947", "#7ba3a8"], n = ["#313695", "#4575b4", "#74add1", "#abd9e9", "#e0f3f8", "#ffffbf", "#fee090", "#fdae61", "#f46d43", "#d73027", "#a50026"], a = ["blue", "blue", "green", "yellow", "red"], r = function (e) { return ['<span style="', "background-color:" + e + ";", "display: inline-block;", "width: 10px;", "height: 10px;", "border-radius: 50%;", "margin-right:2px;", '"></span>'].join("") }, o = ["initOptions", "loading", "dataEmpty", "judgeWidth", "widthChangeDelay"], s = ["grid", "dataZoom", "visualMap", "toolbox", "title", "legend", "xAxis", "yAxis", "radar", "tooltip", "axisPointer", "brush", "geo", "timeline", "graphic", "series", "backgroundColor", "textStyle"], l = { th: 3, mi: 6, bi: 9, tr: 12 }, c = { zeroFormat: null, nullFormat: null, defaultFormat: "0,0", scalePercentBy100: !0, abbrLabel: { th: "k", mi: "m", bi: "b", tr: "t" } }, u = 1e12, d = 1e9, m = 1e6, p = 1e3; function h(e, t, i, n) { var a = e.toString().split("."), r = t - (n || 0), o = 2 === a.length ? Math.min(Math.max(a[1].length, r), t) : r, s = Math.pow(10, o), l = (i(e + "e+" + o) / s).toFixed(o); if (n > t - o) { var c = new RegExp("\\.?0{1," + (n - (t - o)) + "}$"); l = l.replace(c, "") } return l } function f(e, t, i, n) { var a = Math.abs(t), r = !1, o = !1, s = "", c = "", f = !1, v = void 0, b = void 0; i = i || "", t = t || 0, ~i.indexOf("(") ? (r = !0, i = i.replace(/[(|)]/g, "")) : (~i.indexOf("+") || ~i.indexOf("-")) && (b = ~i.indexOf("+") ? i.indexOf("+") : t < 0 ? i.indexOf("-") : -1, i = i.replace(/[+|-]/g, "")), ~i.indexOf("a") && (v = !!(v = i.match(/a(k|m|b|t)?/)) && v[1], ~i.indexOf(" a") && (s = " "), i = i.replace(new RegExp(s + "a[kmbt]?"), ""), a >= u && !v || "t" === v ? (s += e.abbrLabel.tr, t /= u) : a < u && a >= d && !v || "b" === v ? (s += e.abbrLabel.bi, t /= d) : a < d && a >= m && !v || "m" === v ? (s += e.abbrLabel.mi, t /= m) : (a < m && a >= p && !v || "k" === v) && (s += e.abbrLabel.th, t /= p)), ~i.indexOf("[.]") && (o = !0, i = i.replace("[.]", ".")); var y = t.toString().split(".")[0], g = i.split(".")[1], x = i.indexOf(","), w = (i.split(".")[0].split(",")[0].match(/0/g) || []).leng
|