vue-data-ui 3.0.0-next.24 → 3.0.0-next.26
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{Arrow-Bl5-mnOV.js → Arrow-CsNgq2ZF.js} +1 -1
- package/dist/{BaseDraggableDialog-CUfjf--m.js → BaseDraggableDialog-yqJAu5Cf.js} +2 -2
- package/dist/{BaseIcon-Bqx1co2m.js → BaseIcon-CIPCGWyZ.js} +1 -1
- package/dist/{ColorPicker-DiuthUpG.js → ColorPicker-CzNlpUdq.js} +2 -2
- package/dist/{DataTable-C52vrt0E.js → DataTable-6ZKiedr4.js} +2 -2
- package/dist/{Legend-RgPqbRB2.js → Legend-B0mt4iJx.js} +2 -2
- package/dist/{NonSvgPenAndPaper-Daeez5Uj.js → NonSvgPenAndPaper-DLef79mr.js} +3 -3
- package/dist/{PackageVersion-foDSwBnR.js → PackageVersion-DF_M_33r.js} +1 -1
- package/dist/{PenAndPaper-BHk86d8V.js → PenAndPaper-i2SC47RS.js} +3 -3
- package/dist/{Shape-nLYuojED.js → Shape-XBUldhbb.js} +1 -1
- package/dist/{Slicer-w37VlSJL.js → Slicer-CoD6AOHL.js} +2 -2
- package/dist/{SparkTooltip-D9g3UBp9.js → SparkTooltip-BgBRqkPH.js} +1 -1
- package/dist/{Title-C31zTrEg.js → Title-IaxR8U-N.js} +1 -1
- package/dist/{Tooltip-DTeSp5uD.js → Tooltip-DCh0ZmS5.js} +1 -1
- package/dist/{UserOptions-CUhQWPrm.js → UserOptions-J_zxxPnc.js} +2 -2
- package/dist/{dom-to-png-akj-svzH.js → dom-to-png-Bm-vMd2x.js} +1 -1
- package/dist/{img-Uixyjj8A.js → img-B3U0-8wy.js} +1 -1
- package/dist/{index-BlXaaLFe.js → index-gToq10k7.js} +301 -290
- package/dist/{pdf-BvJ3RiOs.js → pdf-BdjzkOlO.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +11 -0
- package/dist/types/vue-data-ui.d.ts +11 -0
- package/dist/{useNestedProp-Cy-hEFSJ.js → useNestedProp-gmapANmc.js} +1 -1
- package/dist/{usePrinter-D5YEoSwm.js → usePrinter-CbZEI2_c.js} +2 -2
- package/dist/{vue-data-ui-c-UnndK7.js → vue-data-ui-CZVJfC0E.js} +64 -64
- package/dist/vue-data-ui.js +1 -1
- package/dist/{vue-ui-3d-bar-oguO8SdP.js → vue-ui-3d-bar-MTNEP9CL.js} +6 -6
- package/dist/{vue-ui-accordion-BEife378.js → vue-ui-accordion-DLihDfed.js} +3 -3
- package/dist/{vue-ui-age-pyramid-DScPiCDr.js → vue-ui-age-pyramid-IY3QdXfK.js} +6 -6
- package/dist/{vue-ui-annotator-Dv_91gd2.js → vue-ui-annotator-CJeQgt2n.js} +2 -2
- package/dist/{vue-ui-bullet-4kwdiXCW.js → vue-ui-bullet-DGldX5sC.js} +7 -7
- package/dist/{vue-ui-candlestick-BLhgKIos.js → vue-ui-candlestick-C-HIjwPy.js} +76 -71
- package/dist/{vue-ui-carousel-table-CAxldPeA.js → vue-ui-carousel-table-BmiJoBXA.js} +4 -4
- package/dist/{vue-ui-chestnut-BFbpADeQ.js → vue-ui-chestnut-CZlbhQrJ.js} +5 -5
- package/dist/{vue-ui-chord-CBpT3QLV.js → vue-ui-chord-Dq4rskRf.js} +8 -8
- package/dist/{vue-ui-circle-pack-BYjq2Knu.js → vue-ui-circle-pack-DW9-8rGV.js} +6 -6
- package/dist/{vue-ui-cursor-g1m-y6fq.js → vue-ui-cursor-D0tCtX4f.js} +2 -2
- package/dist/{vue-ui-dashboard-CNkM9lFq.js → vue-ui-dashboard-Bk_MJlYy.js} +62 -62
- package/dist/{vue-ui-digits-Dr52gylX.js → vue-ui-digits-BA_tNRkj.js} +2 -2
- package/dist/{vue-ui-donut-_QDAZp4P.js → vue-ui-donut-DzAeK2TE.js} +8 -8
- package/dist/vue-ui-donut-evolution-CZ2mtt3z.js +1034 -0
- package/dist/{vue-ui-dumbbell-BLl7MbRR.js → vue-ui-dumbbell-_YZFjBH6.js} +7 -7
- package/dist/{vue-ui-flow-C3x9hvnq.js → vue-ui-flow-C7aLXJTA.js} +7 -7
- package/dist/{vue-ui-funnel-UlwhfxI6.js → vue-ui-funnel-B_3QpOUU.js} +6 -6
- package/dist/{vue-ui-galaxy-DMPulm8s.js → vue-ui-galaxy-DuU1fS4U.js} +5 -5
- package/dist/{vue-ui-gauge-y7YOi5pM.js → vue-ui-gauge-_cAQb9Hn.js} +6 -6
- package/dist/{vue-ui-gizmo-CWUUCfeb.js → vue-ui-gizmo-DqYMjhpX.js} +3 -3
- package/dist/{vue-ui-heatmap-_9bs_l_c.js → vue-ui-heatmap-BkU3wZkK.js} +7 -7
- package/dist/{vue-ui-history-plot-DY2hBcBB.js → vue-ui-history-plot-C83pTqnc.js} +7 -7
- package/dist/{vue-ui-kpi-AVbXZy5l.js → vue-ui-kpi-CWu4hx68.js} +3 -3
- package/dist/{vue-ui-mini-loader-Bu_CgsIj.js → vue-ui-mini-loader-Cw48lkNp.js} +2 -2
- package/dist/{vue-ui-molecule-k5-DcIhX.js → vue-ui-molecule-CWNMsooa.js} +5 -5
- package/dist/{vue-ui-mood-radar-BN7kioh1.js → vue-ui-mood-radar-hxw5vhXc.js} +7 -7
- package/dist/{vue-ui-nested-donuts-CzOd_wz4.js → vue-ui-nested-donuts-SCEIJRnl.js} +9 -9
- package/dist/{vue-ui-onion-CR6LOxEf.js → vue-ui-onion-xkpaiVLl.js} +7 -7
- package/dist/{vue-ui-parallel-coordinate-plot-B2L9GM3t.js → vue-ui-parallel-coordinate-plot-DP8c7Zy2.js} +8 -8
- package/dist/{vue-ui-quadrant-BlbM2_j4.js → vue-ui-quadrant-YoAP5U9i.js} +8 -8
- package/dist/{vue-ui-quick-chart-ZeuFLc-o.js → vue-ui-quick-chart-QQd0jAgp.js} +6 -6
- package/dist/{vue-ui-radar-Cu9-YaLt.js → vue-ui-radar-2aBWeu33.js} +7 -7
- package/dist/{vue-ui-rating-CqOfQXjm.js → vue-ui-rating-cevrLC7m.js} +2 -2
- package/dist/{vue-ui-relation-circle-D1TKPRAu.js → vue-ui-relation-circle-pfHEqPqz.js} +6 -6
- package/dist/{vue-ui-ridgeline-Cmmc3c4e.js → vue-ui-ridgeline-8Fi_HR1k.js} +8 -8
- package/dist/{vue-ui-rings-Bx-TRfAc.js → vue-ui-rings-CqBfRCcH.js} +8 -8
- package/dist/{vue-ui-scatter-rv_0UZKq.js → vue-ui-scatter-BslmJ4rg.js} +8 -8
- package/dist/{vue-ui-skeleton-HiIwRF9u.js → vue-ui-skeleton-DXITY4Wb.js} +3 -3
- package/dist/{vue-ui-smiley-DRIazlJl.js → vue-ui-smiley-2m2GnNUB.js} +2 -2
- package/dist/{vue-ui-spark-trend-C-hhNGtd.js → vue-ui-spark-trend-Bpp-odIP.js} +3 -3
- package/dist/{vue-ui-sparkbar-C30PDQgB.js → vue-ui-sparkbar-Dqen9icZ.js} +3 -3
- package/dist/{vue-ui-sparkgauge-DF9rvlRU.js → vue-ui-sparkgauge-C9Dlt6iV.js} +3 -3
- package/dist/{vue-ui-sparkhistogram-BiAxrc5I.js → vue-ui-sparkhistogram-D-MlMk-Q.js} +4 -4
- package/dist/{vue-ui-sparkline-B9LUqXNt.js → vue-ui-sparkline-BZA1s4pf.js} +3 -3
- package/dist/{vue-ui-sparkstackbar-DQHS8eF3.js → vue-ui-sparkstackbar-BB-tBLQd.js} +3 -3
- package/dist/{vue-ui-stackbar-DUtcotHG.js → vue-ui-stackbar-DEcZ471x.js} +74 -69
- package/dist/{vue-ui-strip-plot-CVtpRsJr.js → vue-ui-strip-plot-BNPYL2hl.js} +7 -7
- package/dist/{vue-ui-table-Dao94Fyr.js → vue-ui-table-BDn61l1T.js} +3 -3
- package/dist/{vue-ui-table-heatmap-nVVJBAlm.js → vue-ui-table-heatmap-DcVDM0D7.js} +5 -5
- package/dist/{vue-ui-table-sparkline-L3sxqyOu.js → vue-ui-table-sparkline-CpF2AiH0.js} +4 -4
- package/dist/{vue-ui-thermometer-CZ4tQZeT.js → vue-ui-thermometer-DW90pE_h.js} +6 -6
- package/dist/{vue-ui-timer-CKYXO2gi.js → vue-ui-timer-DnzpNY0x.js} +5 -5
- package/dist/{vue-ui-tiremarks-Bqq9N4uJ.js → vue-ui-tiremarks-CNHI4MuH.js} +6 -6
- package/dist/{vue-ui-treemap-Bu_IOJjV.js → vue-ui-treemap-CWWLDBEO.js} +8 -8
- package/dist/{vue-ui-vertical-bar-44vaxifJ.js → vue-ui-vertical-bar-B2GiFfDO.js} +9 -9
- package/dist/{vue-ui-waffle-TBu3871G.js → vue-ui-waffle-CsyXZFOd.js} +8 -8
- package/dist/{vue-ui-wheel-DEHAZdGf.js → vue-ui-wheel-DOrEgq2T.js} +6 -6
- package/dist/{vue-ui-word-cloud-_KRS8rdd.js → vue-ui-word-cloud-CUEMogkJ.js} +6 -6
- package/dist/{vue-ui-world-DCjRVtGO.js → vue-ui-world-C2xiB-yS.js} +6 -6
- package/dist/{vue-ui-xy-BwhHWoc_.js → vue-ui-xy-cahWUi-P.js} +110 -110
- package/dist/{vue-ui-xy-canvas-CrDPAZRH.js → vue-ui-xy-canvas-BzTkP8HC.js} +8 -8
- package/package.json +1 -1
- package/dist/vue-ui-donut-evolution-DpotkfSL.js +0 -903
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { defineAsyncComponent as Be, useSlots as Nt, getCurrentInstance as Vt, ref as w, computed as $, onMounted as Ba, toRefs as Pt, watchEffect as Ht, onBeforeUnmount as Ya, watch as Ql, createElementBlock as i, openBlock as u, normalizeStyle as z, normalizeClass as Ue, createBlock as Me, createCommentVNode as d, createVNode as xl, unref as v, createSlots as Rt, withCtx as ue, renderSlot as q, normalizeProps as Ze, guardReactiveProps as Je, createElementVNode as g, Fragment as h, renderList as y, toDisplayString as ee, mergeProps as jl, withDirectives as Bt, vModelCheckbox as Yt, createTextVNode as Ft, nextTick as
|
|
2
|
-
import { u as Et, c as ea, e as la, A as Wt, a5 as Ye, b as Xt, D as
|
|
3
|
-
import { u as aa } from "./useNestedProp-
|
|
1
|
+
import { defineAsyncComponent as Be, useSlots as Nt, getCurrentInstance as Vt, ref as w, computed as $, onMounted as Ba, toRefs as Pt, watchEffect as Ht, onBeforeUnmount as Ya, watch as Ql, createElementBlock as i, openBlock as u, normalizeStyle as z, normalizeClass as Ue, createBlock as Me, createCommentVNode as d, createVNode as xl, unref as v, createSlots as Rt, withCtx as ue, renderSlot as q, normalizeProps as Ze, guardReactiveProps as Je, createElementVNode as g, Fragment as h, renderList as y, toDisplayString as ee, mergeProps as jl, withDirectives as Bt, vModelCheckbox as Yt, createTextVNode as Ft, nextTick as bl } from "vue";
|
|
2
|
+
import { u as Et, c as ea, e as la, A as Wt, a5 as Ye, b as Xt, D as ml, ab as Ke, d as Gt, p as Dt, ac as zl, aa as R, ad as qt, v as T, ae as Fa, V as Ea, af as Wa, U as Xa, ag as Ut, ah as Ga, ai as Da, i as re, x as Zt, y as Jt, _ as qa, R as ze, f as xe, w as Qe, s as we, a8 as X, L as Kt, F as Fe, aj as Cl, I as Qt, ak as Ee, C as Ne, t as jt, a as eo, o as Ua, q as lo, r as ao, E as ol } from "./index-gToq10k7.js";
|
|
3
|
+
import { u as aa } from "./useNestedProp-gmapANmc.js";
|
|
4
4
|
import { u as to } from "./useTimeLabels-DFkUfjfs.js";
|
|
5
5
|
import { u as oo } from "./useTimeLabelCollider-V7AOiPLB.js";
|
|
6
|
-
import { S as so } from "./Slicer-
|
|
7
|
-
import uo from "./Title-
|
|
8
|
-
import { _ as Il } from "./Shape-
|
|
9
|
-
import ro from "./img-
|
|
10
|
-
import { u as io } from "./usePrinter-
|
|
6
|
+
import { S as so } from "./Slicer-CoD6AOHL.js";
|
|
7
|
+
import uo from "./Title-IaxR8U-N.js";
|
|
8
|
+
import { _ as Il } from "./Shape-XBUldhbb.js";
|
|
9
|
+
import ro from "./img-B3U0-8wy.js";
|
|
10
|
+
import { u as io } from "./usePrinter-CbZEI2_c.js";
|
|
11
11
|
import { u as no, B as co } from "./BaseScanner-DIK2NTdp.js";
|
|
12
12
|
import { t as vo } from "./useResponsive-DfdjqQps.js";
|
|
13
13
|
import { _ as ho } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
14
|
-
const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "height"],
|
|
14
|
+
const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "height"], bo = { key: 1 }, mo = { class: "vue-ui-xy-grid" }, yo = ["stroke", "x1", "x2", "y1", "y2"], po = ["stroke", "x1", "x2", "y1", "y2"], ko = { key: 1 }, _o = ["x1", "x2", "y1", "y2", "stroke"], wo = ["x1", "x2", "y1", "y2", "stroke"], So = ["x1", "x2", "y1", "y2", "stroke"], $o = { key: 3 }, Lo = ["d", "stroke"], Ao = { key: 4 }, Mo = ["d", "stroke"], zo = ["id"], Co = ["stop-color"], Io = ["stop-color"], To = ["stop-color"], Oo = ["id"], No = ["stop-color"], Vo = ["stop-color"], Po = ["stop-color"], Ho = ["id"], Ro = ["stop-color"], Bo = ["stop-color"], Yo = ["id"], Fo = ["stop-color"], Eo = ["stop-color"], Wo = ["id"], Xo = ["stop-color"], Go = ["stop-color"], Do = ["x", "y", "height", "width", "fill"], qo = ["x", "y", "width"], Uo = { key: 0 }, Zo = ["x", "y", "height", "width", "fill"], Jo = ["x", "y", "height", "width", "rx", "fill", "stroke", "stroke-width"], Ko = ["x", "y", "height", "width", "rx", "fill", "stroke", "stroke-width"], Qo = ["width", "x", "y"], jo = { key: 0 }, es = ["id"], ls = ["fill"], as = ["x1", "x2", "y1", "y2", "stroke", "marker-end"], ts = ["x", "y", "font-size", "fill"], os = ["stroke", "x1", "x2", "y1", "y2"], ss = { key: 3 }, us = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], rs = ["x", "y", "width", "height", "stroke", "stroke-width", "stroke-linecap", "stroke-linejoin", "stroke-dasharray"], is = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], ns = ["fill", "font-size", "transform"], cs = ["x1", "x2", "y1", "y2", "stroke"], vs = ["x", "y", "font-size", "fill"], ds = ["x1", "x2", "y1", "y2", "stroke"], hs = ["x", "y", "font-size", "fill"], fs = ["width", "x", "y"], gs = { style: { width: "100%" } }, xs = { key: 0 }, bs = ["id"], ms = ["fill"], ys = ["x1", "x2", "y1", "y2", "stroke", "marker-end"], ps = ["x", "y", "font-size", "fill"], ks = ["d", "stroke", "stroke-width", "stroke-dasharray"], _s = ["d", "stroke", "stroke-width", "stroke-dasharray"], ws = { key: 6 }, Ss = { key: 0 }, $s = ["d", "fill"], Ls = ["d", "fill"], As = ["d", "fill"], Ms = ["d", "fill"], zs = ["d", "stroke", "stroke-width", "stroke-dasharray"], Cs = ["d", "stroke", "stroke-width", "stroke-dasharray"], Is = ["width", "x", "y"], Ts = { style: { width: "100%" } }, Os = { key: 3 }, Ns = ["id"], Vs = ["fill"], Ps = ["x1", "x2", "y1", "y2", "stroke", "marker-end"], Hs = ["x", "y", "font-size", "fill"], Rs = { key: 7 }, Bs = ["x", "y", "font-size", "fill"], Ys = ["x", "y", "font-size", "fill", "font-weight"], Fs = { key: 8 }, Es = ["x", "y", "font-size", "fill"], Ws = { key: 9 }, Xs = ["x", "y"], Gs = ["innerHTML"], Ds = ["x", "y"], qs = ["innerHTML"], Us = ["x1", "x2", "y1", "y2", "stroke"], Zs = { key: 10 }, Js = ["x", "y", "font-size", "fill"], Ks = { key: 11 }, Qs = ["x", "y"], js = ["innerHTML"], eu = ["x", "y"], lu = ["innerHTML"], au = ["x1", "x2", "y1", "y2", "stroke"], tu = ["x", "y", "font-size", "fill", "innerHTML"], ou = ["x", "y", "font-size", "fill", "innerHTML"], su = ["x", "y", "font-size", "fill", "innerHTML"], uu = ["x", "y", "font-size", "fill", "innerHTML"], ru = ["id"], iu = ["stop-color"], nu = ["stop-color"], cu = ["x", "y", "width", "height", "fill", "onMouseenter"], vu = ["font-size", "fill", "transform"], du = ["x", "y", "font-size", "fill"], hu = ["text-anchor", "font-size", "fill", "transform", "onClick"], fu = ["text-anchor", "font-size", "fill", "transform", "innerHTML", "onClick"], gu = { key: 14 }, xu = ["x1", "y1", "x2", "y2", "stroke", "stroke-width", "stroke-dasharray"], bu = ["x1", "y1", "x2", "y2", "stroke", "stroke-width", "stroke-dasharray"], mu = ["y", "x", "width", "height", "fill"], yu = ["id", "x", "y", "font-size", "fill", "text-anchor"], pu = { key: 15 }, ku = ["x", "y", "height", "width", "onMouseenter", "onClick"], _u = {
|
|
15
15
|
key: 16,
|
|
16
16
|
style: { "pointer-events": "none" }
|
|
17
17
|
}, wu = ["x", "y"], Su = ["cx", "cy", "r", "fill"], $u = {
|
|
@@ -73,10 +73,10 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
|
|
|
73
73
|
},
|
|
74
74
|
emits: ["selectTimeLabel", "selectX", "selectLegend"],
|
|
75
75
|
setup(Tl, { expose: Za, emit: Ja }) {
|
|
76
|
-
const
|
|
76
|
+
const m = Tl, Ka = Be(() => import("./DataTable-6ZKiedr4.js")), Qa = Be(() => import("./Tooltip-DCh0ZmS5.js")), ja = Be(() => import("./UserOptions-J_zxxPnc.js")), et = Be(() => import("./BaseIcon-CIPCGWyZ.js")), lt = Be(() => import("./vue-ui-table-sparkline-CpF2AiH0.js")), at = Be(() => import("./vue-ui-accordion-DLihDfed.js")), tt = Be(() => import("./PackageVersion-DF_M_33r.js")), ot = Be(() => import("./PenAndPaper-i2SC47RS.js")), Ol = Ja, ta = Nt(), st = Vt(), { vue_ui_xy: Nl } = Et(), je = w(null), sl = w(null), Se = w(null), el = w(null), ul = w(null), rl = w(null), ut = w(null), Vl = w(null), Pl = w(null), ll = w(null), Hl = w(null), We = w(null), Rl = w(null), Bl = w(0), M = w(null), oa = w(!0), ve = w(600), ae = w(1e3), yl = w("0 0 1000 600"), rt = w({ x: 0, y: 0 }), il = w({ line: "line", bar: "bar", plot: "plot" }), pl = w(!1), al = w(!1), sa = w(!1), k = w(null), Xe = w(null), te = w([]), U = w(ea()), ua = w(0), ra = w(0), ia = w(0), nl = w(!0), Yl = w(0), O = w(null), na = w(!1), Fl = w(!0), kl = w(!0), be = w(null), Ce = w({}), _l = w(null), it = $(() => ({
|
|
77
77
|
height: ve.value,
|
|
78
78
|
width: ae.value
|
|
79
|
-
})), nt =
|
|
79
|
+
})), nt = m.config.downsample && m.config.downsample.threshold ? m.config.downsample.threshold : 500, f = w({
|
|
80
80
|
dataLabels: { show: !0 },
|
|
81
81
|
showTooltip: !0,
|
|
82
82
|
showTable: !1,
|
|
@@ -89,7 +89,7 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
|
|
|
89
89
|
plotLabels: 10
|
|
90
90
|
}), $e = w({ plot: 3, line: 3 });
|
|
91
91
|
Ba(() => {
|
|
92
|
-
|
|
92
|
+
m.dataset.length && m.dataset.forEach((a, c) => {
|
|
93
93
|
[null, void 0].includes(a.series) && la({
|
|
94
94
|
componentName: "VueUiXy",
|
|
95
95
|
type: "datasetSerieAttribute",
|
|
@@ -100,32 +100,32 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
|
|
|
100
100
|
});
|
|
101
101
|
});
|
|
102
102
|
function El() {
|
|
103
|
-
if (!Object.keys(
|
|
103
|
+
if (!Object.keys(m.config || {}).length)
|
|
104
104
|
return Nl;
|
|
105
105
|
const a = aa({
|
|
106
|
-
userConfig:
|
|
106
|
+
userConfig: m.config,
|
|
107
107
|
defaultConfig: Nl
|
|
108
108
|
});
|
|
109
|
-
return
|
|
109
|
+
return m.config && Ne(m.config, "chart.highlightArea") && (Array.isArray(m.config.chart.highlightArea) ? a.chart.highlightArea = m.config.chart.highlightArea : a.chart.highlightArea = [m.config.chart.highlightArea]), m.config && Ne(m.config, "chart.grid.labels.yAxis.scaleMin") ? a.chart.grid.labels.yAxis.scaleMin = m.config.chart.grid.labels.yAxis.scaleMin : a.chart.grid.labels.yAxis.scaleMin = null, m.config && Ne(m.config, "chart.grid.labels.yAxis.scaleMax") ? a.chart.grid.labels.yAxis.scaleMax = m.config.chart.grid.labels.yAxis.scaleMax : a.chart.grid.labels.yAxis.scaleMax = null, m.config && Ne(m.config, "chart.zoom.startIndex") ? a.chart.zoom.startIndex = m.config.chart.zoom.startIndex : a.chart.zoom.startIndex = null, m.config && Ne(m.config, "chart.zoom.endIndex") ? a.chart.zoom.endIndex = m.config.chart.zoom.endIndex : a.chart.zoom.endIndex = null, m.config && Ne(m.config, "chart.grid.labels.yAxis.groupColor") ? a.chart.grid.labels.yAxis.groupColor = m.config.chart.grid.labels.yAxis.groupColor : a.chart.grid.labels.yAxis.groupColor = null, m.config && m.config.chart.annotations && Array.isArray(m.config.chart.annotations) && m.config.chart.annotations.length ? a.chart.annotations = m.config.chart.annotations.map((c) => aa({
|
|
110
110
|
defaultConfig: Nl.chart.annotations[0],
|
|
111
111
|
userConfig: c
|
|
112
|
-
})) : a.chart.annotations = [],
|
|
112
|
+
})) : a.chart.annotations = [], m.config && Ne(m.config, "chart.grid.position") && m.config.chart.grid.position === "start" && m.dataset.length && m.dataset.some((c) => c.type === "bar") && (a.chart.grid.position = "middle", Ne(m.config, "debug") && console.warn("Vue Data UI - VueUiXy - config.chart.grid.position was overriden to `middle` because your dataset contains a bar")), m.config && Ne(m.config, "chart.grid.labels.yAxis.serieNameFormatter") ? a.chart.grid.labels.yAxis.serieNameFormatter = m.config.chart.grid.labels.yAxis.serieNameFormatter : a.chart.grid.labels.yAxis.serieNameFormatter = null, a.theme ? {
|
|
113
113
|
...aa({
|
|
114
|
-
userConfig: eo.vue_ui_xy[a.theme] ||
|
|
114
|
+
userConfig: eo.vue_ui_xy[a.theme] || m.config,
|
|
115
115
|
defaultConfig: a
|
|
116
116
|
}),
|
|
117
|
-
customPalette: jt[a.theme] ||
|
|
117
|
+
customPalette: jt[a.theme] || m.palette
|
|
118
118
|
} : a;
|
|
119
119
|
}
|
|
120
120
|
const Wl = $({
|
|
121
121
|
get() {
|
|
122
|
-
return !!
|
|
122
|
+
return !!m.dataset && m.dataset.length;
|
|
123
123
|
},
|
|
124
124
|
set(a) {
|
|
125
125
|
return a;
|
|
126
126
|
}
|
|
127
|
-
}), l = w(El()), { loading: Xl, FINAL_DATASET:
|
|
128
|
-
...Pt(
|
|
127
|
+
}), l = w(El()), { loading: Xl, FINAL_DATASET: me, manualLoading: wl } = no({
|
|
128
|
+
...Pt(m),
|
|
129
129
|
FINAL_CONFIG: l,
|
|
130
130
|
prepareConfig: El,
|
|
131
131
|
callback: () => {
|
|
@@ -207,7 +207,7 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
|
|
|
207
207
|
}
|
|
208
208
|
})
|
|
209
209
|
}), Ve = $({
|
|
210
|
-
get: () => Math.max(...
|
|
210
|
+
get: () => Math.max(...me.value.map((a) => Ye({ data: a.series, threshold: nt }).length)),
|
|
211
211
|
set: (a) => a
|
|
212
212
|
}), S = w({ start: 0, end: Ve.value }), { isPrinting: Gl, isImaging: ca, generatePdf: va, generateImage: da } = io({
|
|
213
213
|
elementId: `vue-ui-xy_${U.value}`,
|
|
@@ -218,7 +218,7 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
|
|
|
218
218
|
return l.value.chart.grid.labels.yAxis.scaleMin;
|
|
219
219
|
const a = Math.min(...Ie.value.filter((c) => !te.value.includes(c.id)).map((c) => Math.min(...c.series)));
|
|
220
220
|
return a > 0 ? 0 : a;
|
|
221
|
-
}), ye = $(() => l.value.chart.grid.labels.yAxis.useNiceScale ?
|
|
221
|
+
}), ye = $(() => l.value.chart.grid.labels.yAxis.useNiceScale ? ml(Dl.value, Sl.value < 0 ? 0 : Sl.value, l.value.chart.grid.labels.yAxis.commonScaleSteps) : Ke(Dl.value, Sl.value < 0 ? 0 : Sl.value, l.value.chart.grid.labels.yAxis.commonScaleSteps)), cl = $(() => [null, void 0].includes(l.value.chart.grid.labels.yAxis.scaleMin) ? ye.value.min >= 0 ? 0 : Math.abs(ye.value.min) : -ye.value.min), Ie = $(() => oa.value ? me.value.map((a, c) => {
|
|
222
222
|
const e = Ye({
|
|
223
223
|
data: a.series,
|
|
224
224
|
threshold: l.value.downsample.threshold
|
|
@@ -231,7 +231,7 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
|
|
|
231
231
|
id: s,
|
|
232
232
|
scaleLabel: a.scaleLabel || s
|
|
233
233
|
};
|
|
234
|
-
}) :
|
|
234
|
+
}) : me.value), Te = $(() => Ie.value.map((a, c) => ({
|
|
235
235
|
absoluteIndex: c,
|
|
236
236
|
...a,
|
|
237
237
|
series: a.series.map((e) => e + cl.value),
|
|
@@ -270,16 +270,16 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
|
|
|
270
270
|
Vl.value && (a = Vl.value.getBBox().height);
|
|
271
271
|
let c = 0;
|
|
272
272
|
return ll.value && (c = ql.value), a + c + x.value.xAxis;
|
|
273
|
-
}), ht = $(() =>
|
|
273
|
+
}), ht = $(() => me.value.some((a) => a.useProgression)), n = $(() => {
|
|
274
274
|
let a = 0;
|
|
275
275
|
const c = 36;
|
|
276
|
-
l.value.chart.grid.labels.show && (f.value.useIndividualScale && !f.value.isStacked ? a = (
|
|
276
|
+
l.value.chart.grid.labels.show && (f.value.useIndividualScale && !f.value.isStacked ? a = (me.value.length - te.value.length) * (l.value.chart.grid.labels.yAxis.labelWidth + c) : f.value.useIndividualScale && f.value.isStacked ? a = l.value.chart.grid.labels.yAxis.labelWidth + c : a = vt());
|
|
277
277
|
const e = l.value.chart.labels.fontSize * 1.1, s = ht.value ? 24 : 6;
|
|
278
278
|
if (ll.value) {
|
|
279
279
|
const o = ll.value.getBBox().x;
|
|
280
280
|
o < 0 && (a += Math.abs(o));
|
|
281
281
|
}
|
|
282
|
-
const t = ae.value - a - l.value.chart.grid.labels.yAxis.crosshairSize - s - l.value.chart.padding.left - l.value.chart.padding.right, r = l.value.chart.grid.position === "middle" ? 0 : t /
|
|
282
|
+
const t = ae.value - a - l.value.chart.grid.labels.yAxis.crosshairSize - s - l.value.chart.padding.left - l.value.chart.padding.right, r = l.value.chart.grid.position === "middle" ? 0 : t / b.value / 2;
|
|
283
283
|
return {
|
|
284
284
|
top: l.value.chart.padding.top + e,
|
|
285
285
|
right: ae.value - s - l.value.chart.padding.right,
|
|
@@ -291,9 +291,9 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
|
|
|
291
291
|
individualOffsetX: c
|
|
292
292
|
};
|
|
293
293
|
}), ft = $(() => {
|
|
294
|
-
const a = l.value.chart.grid.position === "middle" ? 1 : 0, c =
|
|
294
|
+
const a = l.value.chart.grid.position === "middle" ? 1 : 0, c = b.value + a, e = R(n.value.top), s = R(n.value.bottom);
|
|
295
295
|
return Array.from({ length: c }).map((t, r) => {
|
|
296
|
-
const o = n.value.width /
|
|
296
|
+
const o = n.value.width / b.value * r + n.value.left + G.value;
|
|
297
297
|
return `M${o},${e} L${o},${s}`;
|
|
298
298
|
}).join(" ");
|
|
299
299
|
}), gt = $(() => {
|
|
@@ -303,13 +303,13 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
|
|
|
303
303
|
showOnlyAtModulo: a,
|
|
304
304
|
showOnlyFirstAndLast: c,
|
|
305
305
|
modulo: e
|
|
306
|
-
} = l.value.chart.grid.labels.xAxisLabels, s = le.value.length ? Math.min(e, [...new Set(le.value.map((r) => r.text))]) : e, t = Math.floor((S.value.end - S.value.start) / s);
|
|
306
|
+
} = l.value.chart.grid.labels.xAxisLabels, s = le.value.length ? Math.min(e, [...new Set(le.value.map((r) => r.text))].length) : e, t = Math.floor((S.value.end - S.value.start) / s);
|
|
307
307
|
return le.value.map((r, o) => {
|
|
308
308
|
if (!r) return null;
|
|
309
|
-
const B = a &&
|
|
309
|
+
const B = a && b.value <= s, F = !c && !a, E = c && !a && (o === 0 || o === le.value.length - 1), L = c && !a && k.value === o, C = !c && a && o % t === 0;
|
|
310
310
|
if (!(B || F || E || L || C))
|
|
311
311
|
return null;
|
|
312
|
-
const Y = n.value.width /
|
|
312
|
+
const Y = n.value.width / b.value, _ = n.value.left + Y * o + Y / 2, N = l.value.chart.grid.labels.xAxis.crosshairSize, A = l.value.chart.grid.labels.xAxis.crosshairsAlwaysAtZero, J = A ? ie.value - (ie.value === n.value.bottom ? 0 : N / 2) : n.value.bottom, oe = A ? ie.value + N / (ie.value === n.value.bottom ? 1 : 2) : n.value.bottom + N;
|
|
313
313
|
return `M${_},${J} L${_},${oe}`;
|
|
314
314
|
}).filter((r) => r !== null).join(" ");
|
|
315
315
|
});
|
|
@@ -331,14 +331,14 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
|
|
|
331
331
|
e && (Ce.value[`${a}_${c}_${s}_${t}`] = e);
|
|
332
332
|
}
|
|
333
333
|
const Ul = w(!1);
|
|
334
|
-
async function
|
|
335
|
-
await
|
|
334
|
+
async function ba(a = !1) {
|
|
335
|
+
await bl(), Ul.value = a, na.value && (kl.value = a);
|
|
336
336
|
}
|
|
337
337
|
function Zl() {
|
|
338
338
|
pl.value = !pl.value;
|
|
339
339
|
}
|
|
340
340
|
const le = $(() => {
|
|
341
|
-
const a = Math.max(...
|
|
341
|
+
const a = Math.max(...me.value.map((c) => Ye({ data: c.series, threshold: l.value.downsample.threshold }).length));
|
|
342
342
|
return to({
|
|
343
343
|
values: l.value.chart.grid.labels.xAxisLabels.values,
|
|
344
344
|
maxDatapoints: a,
|
|
@@ -350,7 +350,7 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
|
|
|
350
350
|
const a = l.value.chart.grid.labels.xAxisLabels.modulo;
|
|
351
351
|
return le.value.length ? Math.min(a, [...new Set(le.value.map((c) => c.text))].length) : a;
|
|
352
352
|
});
|
|
353
|
-
function
|
|
353
|
+
function ma(a, c) {
|
|
354
354
|
const e = pe.value.map((s) => ({
|
|
355
355
|
shape: s.shape || null,
|
|
356
356
|
name: s.name,
|
|
@@ -367,8 +367,8 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
|
|
|
367
367
|
label: a.text
|
|
368
368
|
});
|
|
369
369
|
}
|
|
370
|
-
const
|
|
371
|
-
function
|
|
370
|
+
const b = $(() => S.value.end - S.value.start);
|
|
371
|
+
function bt(a) {
|
|
372
372
|
O.value = a;
|
|
373
373
|
}
|
|
374
374
|
function ya() {
|
|
@@ -377,20 +377,20 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
|
|
|
377
377
|
function Jl(a) {
|
|
378
378
|
hl.value && a.autoScaling && (l.value.chart.grid.labels.yAxis.useIndividualScale || console.warn(`VueUiXy (datapoint: ${a.name}) : autoScaling only works when config.chart.grid.labels.yAxis.useIndividualScale is set to true`), l.value.chart.grid.labels.yAxis.stacked || console.warn(`VueUiXy (datapoint: ${a.name}) : autoScaling only works when config.chart.grid.labels.yAxis.stacked is set to true`));
|
|
379
379
|
}
|
|
380
|
-
function
|
|
380
|
+
function mt(a, c) {
|
|
381
381
|
let e = Array(a).fill(0);
|
|
382
382
|
for (let s = 0; s < c.length && s < a; s += 1)
|
|
383
383
|
e[s] = c[s];
|
|
384
384
|
return e;
|
|
385
385
|
}
|
|
386
386
|
function yt(a) {
|
|
387
|
-
const c = Math.max(...
|
|
387
|
+
const c = Math.max(...me.value.map((e) => Ye({ data: e.series, threshold: l.value.downsample.threshold }).length));
|
|
388
388
|
return a > c ? c : a < 0 || l.value.chart.zoom.startIndex !== null && a < l.value.chart.zoom.startIndex ? l.value.chart.zoom.startIndex !== null ? l.value.chart.zoom.startIndex + 1 : 1 : a;
|
|
389
389
|
}
|
|
390
390
|
async function Kl() {
|
|
391
|
-
(l.value.chart.zoom.startIndex !== null || l.value.chart.zoom.endIndex !== null) && Se.value ? (l.value.chart.zoom.startIndex !== null && (await
|
|
391
|
+
(l.value.chart.zoom.startIndex !== null || l.value.chart.zoom.endIndex !== null) && Se.value ? (l.value.chart.zoom.startIndex !== null && (await bl(), await bl(), Se.value.setStartValue(l.value.chart.zoom.startIndex)), l.value.chart.zoom.endIndex !== null && (await bl(), await bl(), Se.value.setEndValue(yt(l.value.chart.zoom.endIndex + 1)))) : (S.value = {
|
|
392
392
|
start: 0,
|
|
393
|
-
end: Math.max(...
|
|
393
|
+
end: Math.max(...me.value.map((a) => Ye({ data: a.series, threshold: l.value.downsample.threshold }).length))
|
|
394
394
|
}, Bl.value += 1);
|
|
395
395
|
}
|
|
396
396
|
function pt() {
|
|
@@ -412,15 +412,15 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
|
|
|
412
412
|
return a.value >= 0 ? T(a.zeroPosition - a.y <= 0 ? 1e-5 : a.zeroPosition - a.y) : T(a.y - a.zeroPosition <= 0 ? 1e-5 : a.zeroPosition - a.y);
|
|
413
413
|
}
|
|
414
414
|
const Z = $(() => ({
|
|
415
|
-
bar: n.value.width /
|
|
416
|
-
plot: n.value.width /
|
|
417
|
-
line: n.value.width /
|
|
415
|
+
bar: n.value.width / b.value / Ie.value.filter((a) => a.type === "bar").filter((a) => !te.value.includes(a.id)).length,
|
|
416
|
+
plot: n.value.width / b.value,
|
|
417
|
+
line: n.value.width / b.value
|
|
418
418
|
}));
|
|
419
419
|
function ke() {
|
|
420
|
-
return f.value.useIndividualScale && f.value.isStacked ? Z.value.line - n.value.width /
|
|
420
|
+
return f.value.useIndividualScale && f.value.isStacked ? Z.value.line - n.value.width / b.value * 0.1 : Z.value.bar;
|
|
421
421
|
}
|
|
422
422
|
function Al(a) {
|
|
423
|
-
return f.value.useIndividualScale && f.value.isStacked ? a.x + n.value.width /
|
|
423
|
+
return f.value.useIndividualScale && f.value.isStacked ? a.x + n.value.width / b.value * 0.05 : a.x + Z.value.bar / 2;
|
|
424
424
|
}
|
|
425
425
|
function wa(a) {
|
|
426
426
|
return a.value >= 0 ? a.y : [null, void 0, NaN, 1 / 0, -1 / 0].includes(ie.value) ? n.bottom.value : ie.value;
|
|
@@ -481,7 +481,7 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
|
|
|
481
481
|
const a = l.value.chart.title.text || "Chart visualization", c = l.value.chart.title.subtitle.text || "";
|
|
482
482
|
return `${a}. ${c}`;
|
|
483
483
|
}), La = $(() => ({
|
|
484
|
-
linePlot:
|
|
484
|
+
linePlot: b.value > l.value.line.dot.hideAboveMaxSerieLength
|
|
485
485
|
})), $t = $(() => l.value.chart.userOptions.show && (!l.value.chart.title.show || !l.value.chart.title.text)), Lt = $(() => {
|
|
486
486
|
if (Array.isArray(l.value.chart.highlightArea))
|
|
487
487
|
return l.value.chart.highlightArea.map((c) => {
|
|
@@ -496,20 +496,20 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
|
|
|
496
496
|
to: Math.min(l.value.chart.highlightArea.to, Ve.value - 1)
|
|
497
497
|
};
|
|
498
498
|
return [{ ...a, span: a.from === a.to ? 1 : a.to < a.from ? 0 : a.to - a.from + 1 }];
|
|
499
|
-
}), At = $(() => oa.value ?
|
|
499
|
+
}), At = $(() => oa.value ? me.value.map((a, c) => ({
|
|
500
500
|
...a,
|
|
501
501
|
series: Ye({
|
|
502
502
|
data: a.series,
|
|
503
503
|
threshold: l.value.downsample.threshold
|
|
504
504
|
}),
|
|
505
505
|
id: `uniqueId_${c}`
|
|
506
|
-
})) :
|
|
506
|
+
})) : me.value), Mt = $(() => pe.value.map((a) => {
|
|
507
507
|
const c = a.absoluteValues.map((e) => [void 0, null].includes(e) ? 0 : e);
|
|
508
508
|
return {
|
|
509
509
|
id: a.id,
|
|
510
510
|
name: a.name,
|
|
511
511
|
color: a.color,
|
|
512
|
-
values:
|
|
512
|
+
values: mt(b.value, c)
|
|
513
513
|
};
|
|
514
514
|
})), zt = $(() => ({
|
|
515
515
|
responsiveBreakpoint: l.value.table.responsiveBreakpoint,
|
|
@@ -534,7 +534,7 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
|
|
|
534
534
|
userOptions: {
|
|
535
535
|
show: !1
|
|
536
536
|
}
|
|
537
|
-
})), G = $(() => l.value.chart.grid.position === "middle" ? 0 : n.value.width /
|
|
537
|
+
})), G = $(() => l.value.chart.grid.position === "middle" ? 0 : n.value.width / b.value / 2), De = $(() => qt(Te.value.filter((a) => !te.value.includes(a.id)))), p = $(() => {
|
|
538
538
|
const a = Object.groupBy(De.value, (e) => e.scaleLabel), c = {};
|
|
539
539
|
for (const [e, s] of Object.entries(a)) {
|
|
540
540
|
const t = s.flatMap((r) => r.absoluteValues);
|
|
@@ -547,7 +547,7 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
|
|
|
547
547
|
return c;
|
|
548
548
|
}), Ct = $(() => {
|
|
549
549
|
const a = Ie.value.filter((c) => c.type === "bar").filter((c) => !te.value.includes(c.id)).length;
|
|
550
|
-
return n.value.width /
|
|
550
|
+
return n.value.width / b.value / a - Oe.value * a;
|
|
551
551
|
}), Oe = $(() => Z.value.line * l.value.bar.periodGap), It = $(() => {
|
|
552
552
|
if (!l.value.chart.zoom.minimap.show) return [];
|
|
553
553
|
const a = At.value.filter((t) => !te.value.includes(t.id)), c = Math.max(...a.map((t) => t.series.length)), e = [];
|
|
@@ -624,8 +624,8 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
|
|
|
624
624
|
}, C = {
|
|
625
625
|
max: o.scaleMax || Math.max(...o.absoluteValues) || 1,
|
|
626
626
|
min: o.scaleMin || Math.min(...o.absoluteValues.filter((V) => ![void 0, null].includes(V))) > 0 ? 0 : Math.min(...o.absoluteValues.filter((V) => ![null, void 0].includes(V)))
|
|
627
|
-
}, Y = o.scaleSteps || l.value.chart.grid.labels.yAxis.commonScaleSteps, _ = 1.0000001, N = l.value.chart.grid.labels.yAxis.useNiceScale ?
|
|
628
|
-
const Re = f.value.useIndividualScale ? (o.absoluteValues[j] + J) / D : Ge(V), qe = f.value.useIndividualScale && f.value.isStacked ? n.value.left + n.value.width /
|
|
627
|
+
}, Y = o.scaleSteps || l.value.chart.grid.labels.yAxis.commonScaleSteps, _ = 1.0000001, N = l.value.chart.grid.labels.yAxis.useNiceScale ? ml(C.min, C.max === C.min ? C.max * _ : C.max, Y) : Ke(C.min, C.max === C.min ? C.max * _ : C.max, Y), A = l.value.chart.grid.labels.yAxis.useNiceScale ? ml(L.valueMin, L.valueMax === L.valueMin ? L.valueMax * _ : L.valueMax, Y) : Ke(L.valueMin, L.valueMax === L.valueMin ? L.valueMax * _ : L.valueMax, Y), J = N.min >= 0 ? 0 : Math.abs(N.min), oe = 0, D = N.max + J, ge = A.max + Math.abs(oe), Ae = o.stackIndex, tl = c - 1 - Ae, de = s ? 1 - o.cumulatedStackRatio : 0, P = s ? r * de + e * tl : 0, H = s ? r * o.stackRatio : n.value.height, K = n.value.bottom - P - H * J / D, he = n.value.bottom - P - H * oe / ge, ne = Te.value.filter((V) => V.type === "bar").filter((V) => !te.value.includes(V.id)).length, fl = o.series.map((V, j) => {
|
|
628
|
+
const Re = f.value.useIndividualScale ? (o.absoluteValues[j] + J) / D : Ge(V), qe = f.value.useIndividualScale && f.value.isStacked ? n.value.left + n.value.width / b.value * j : n.value.left + Z.value.bar * B + Z.value.bar * j * ne - Ct.value / 2 - B * Oe.value;
|
|
629
629
|
return {
|
|
630
630
|
yOffset: T(P),
|
|
631
631
|
individualHeight: T(H),
|
|
@@ -637,7 +637,7 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
|
|
|
637
637
|
comment: o.comments && o.comments.slice(S.value.start, S.value.end)[j] || ""
|
|
638
638
|
};
|
|
639
639
|
}), ce = o.absoluteValues.map((V) => A.min >= 0 ? (V - Math.abs(A.min)) / (A.max - Math.abs(A.min)) : (V + Math.abs(A.min)) / (A.max + Math.abs(A.min))), He = o.series.map((V, j) => {
|
|
640
|
-
const Re = f.value.useIndividualScale && f.value.isStacked ? n.value.left + n.value.width /
|
|
640
|
+
const Re = f.value.useIndividualScale && f.value.isStacked ? n.value.left + n.value.width / b.value * j : n.value.left - Z.value.bar / 2 + Z.value.bar * B + Z.value.bar * j * Te.value.filter((qe) => qe.type === "bar").filter((qe) => !te.value.includes(qe.id)).length;
|
|
641
641
|
return {
|
|
642
642
|
yOffset: T(P),
|
|
643
643
|
individualHeight: T(H),
|
|
@@ -689,7 +689,7 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
|
|
|
689
689
|
}, C = {
|
|
690
690
|
max: o.scaleMax || Math.max(...o.absoluteValues) || 1,
|
|
691
691
|
min: o.scaleMin || (Math.min(...o.absoluteValues) > 0 ? 0 : Math.min(...o.absoluteValues))
|
|
692
|
-
}, Y = o.scaleSteps || l.value.chart.grid.labels.yAxis.commonScaleSteps, _ = 1.0000001, N = l.value.chart.grid.labels.yAxis.useNiceScale ?
|
|
692
|
+
}, Y = o.scaleSteps || l.value.chart.grid.labels.yAxis.commonScaleSteps, _ = 1.0000001, N = l.value.chart.grid.labels.yAxis.useNiceScale ? ml(C.min, C.max === C.min ? C.max * _ : C.max, Y) : Ke(C.min, C.max === C.min ? C.max * _ : C.max, Y), A = l.value.chart.grid.labels.yAxis.useNiceScale ? ml(L.valueMin, L.valueMax === L.valueMin ? L.valueMax * _ : L.valueMax, Y) : Ke(L.valueMin, L.valueMax === L.valueMin ? L.valueMax * _ : L.valueMax, Y), J = N.min >= 0 ? 0 : Math.abs(N.min), oe = 0, D = N.max + Math.abs(J), ge = A.max + Math.abs(oe), Ae = o.stackIndex, tl = c - 1 - Ae, de = s ? 1 - o.cumulatedStackRatio : 0, P = s ? r * de + e * tl : 0, H = s ? r * o.stackRatio : n.value.height, K = n.value.bottom - P - H * J / D, he = n.value.bottom - P - H * oe / ge, ne = o.series.map((I, se) => {
|
|
693
693
|
const Ot = f.value.useIndividualScale ? (o.absoluteValues[se] + Math.abs(J)) / D : Ge(I);
|
|
694
694
|
return {
|
|
695
695
|
x: T(n.value.left + Z.value.line / 2 + Z.value.line * se),
|
|
@@ -973,7 +973,7 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
|
|
|
973
973
|
let c = [""].concat(pe.value.map((r) => r.name));
|
|
974
974
|
a && (c = c.concat(' <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M18 16v2a1 1 0 0 1 -1 1h-11l6 -7l-6 -7h11a1 1 0 0 1 1 1v2" /></svg>'));
|
|
975
975
|
let e = [];
|
|
976
|
-
for (let r = 0; r <
|
|
976
|
+
for (let r = 0; r < b.value; r += 1) {
|
|
977
977
|
const o = pe.value.map((B) => B.absoluteValues[r] ?? 0).reduce((B, F) => B + F, 0);
|
|
978
978
|
e.push(
|
|
979
979
|
[
|
|
@@ -1071,11 +1071,11 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
|
|
|
1071
1071
|
}
|
|
1072
1072
|
const hl = $(() => !!l.value.debug);
|
|
1073
1073
|
function Ra() {
|
|
1074
|
-
Ua(
|
|
1074
|
+
Ua(m.dataset) ? (la({
|
|
1075
1075
|
componentName: "VueUiXy",
|
|
1076
1076
|
type: "dataset",
|
|
1077
1077
|
debug: hl.value
|
|
1078
|
-
}), wl.value = !0) :
|
|
1078
|
+
}), wl.value = !0) : m.dataset.forEach((c, e) => {
|
|
1079
1079
|
[null, void 0].includes(c.name) && (la({
|
|
1080
1080
|
componentName: "VueUiXy",
|
|
1081
1081
|
type: "datasetSerieAttribute",
|
|
@@ -1083,13 +1083,13 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
|
|
|
1083
1083
|
index: e,
|
|
1084
1084
|
debug: hl.value
|
|
1085
1085
|
}), wl.value = !0);
|
|
1086
|
-
}), hl.value &&
|
|
1086
|
+
}), hl.value && m.dataset.forEach((c) => {
|
|
1087
1087
|
c.series.forEach((e, s) => {
|
|
1088
1088
|
zl(e) || console.warn(`VueUiXy has detected an unsafe value in your dataset:
|
|
1089
1089
|
-----> The serie '${c.name}' contains the value '${e}' at index ${s}.
|
|
1090
1090
|
'${e}' was converted to null to allow the chart to display.`);
|
|
1091
1091
|
});
|
|
1092
|
-
}), Ua(
|
|
1092
|
+
}), Ua(m.dataset) || (wl.value = l.value.loading), na.value = l.value.chart.userOptions.showOnChartHover, Fl.value = l.value.chart.userOptions.keepStateOnChartLeave, kl.value = !l.value.chart.userOptions.showOnChartHover, f.value = {
|
|
1093
1093
|
dataLabels: {
|
|
1094
1094
|
show: !0
|
|
1095
1095
|
},
|
|
@@ -1140,15 +1140,15 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
|
|
|
1140
1140
|
rotationPath: ["chart", "grid", "labels", "xAxisLabels", "rotation"],
|
|
1141
1141
|
autoRotatePath: ["chart", "grid", "labels", "xAxisLabels", "autoRotate"],
|
|
1142
1142
|
isAutoSize: ct
|
|
1143
|
-
}), Ql(() =>
|
|
1144
|
-
Array.isArray(a) && a.length > 0 && (wl.value = !1), Ve.value = Math.max(...
|
|
1143
|
+
}), Ql(() => m.dataset, (a) => {
|
|
1144
|
+
Array.isArray(a) && a.length > 0 && (wl.value = !1), Ve.value = Math.max(...me.value.map((c) => Ye({
|
|
1145
1145
|
data: c.series,
|
|
1146
1146
|
threshold: l.value.downsample.threshold
|
|
1147
1147
|
}).length)), S.value = {
|
|
1148
1148
|
start: 0,
|
|
1149
1149
|
end: Ve.value
|
|
1150
1150
|
}, Bl.value += 1, Yl.value += 1;
|
|
1151
|
-
}, { deep: !0 }), Ql(() =>
|
|
1151
|
+
}, { deep: !0 }), Ql(() => m.config, (a) => {
|
|
1152
1152
|
Xl.value || (l.value = El()), Ra(), ia.value += 1, ra.value += 1, f.value = {
|
|
1153
1153
|
dataLabels: {
|
|
1154
1154
|
show: !0
|
|
@@ -1186,12 +1186,12 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
|
|
|
1186
1186
|
ref_key: "chart",
|
|
1187
1187
|
ref: je,
|
|
1188
1188
|
style: z(`background:${l.value.chart.backgroundColor}; color:${l.value.chart.color};width:100%;font-family:${l.value.chart.fontFamily};${l.value.responsive ? "height: 100%" : ""}`),
|
|
1189
|
-
onMouseenter: c[7] || (c[7] = () =>
|
|
1190
|
-
onMouseleave: c[8] || (c[8] = () =>
|
|
1189
|
+
onMouseenter: c[7] || (c[7] = () => ba(!0)),
|
|
1190
|
+
onMouseleave: c[8] || (c[8] = () => ba(!1))
|
|
1191
1191
|
}, [
|
|
1192
|
-
l.value.chart.userOptions.buttons.annotator &&
|
|
1192
|
+
l.value.chart.userOptions.buttons.annotator && be.value ? (u(), Me(v(ot), {
|
|
1193
1193
|
key: 0,
|
|
1194
|
-
svgRef:
|
|
1194
|
+
svgRef: be.value,
|
|
1195
1195
|
backgroundColor: l.value.chart.backgroundColor,
|
|
1196
1196
|
color: l.value.chart.color,
|
|
1197
1197
|
active: pl.value,
|
|
@@ -1337,7 +1337,7 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
|
|
|
1337
1337
|
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasXls", "hasImg", "hasLabel", "hasTable", "hasStack", "hasFullscreen", "isStacked", "isFullscreen", "chartElement", "position", "isTooltip", "titles", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "onGeneratePdf", "onGenerateImage", "style"])) : d("", !0),
|
|
1338
1338
|
(u(), i("svg", {
|
|
1339
1339
|
ref_key: "svgRef",
|
|
1340
|
-
ref:
|
|
1340
|
+
ref: be,
|
|
1341
1341
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1342
1342
|
class: Ue([{ "vue-data-ui-fullscreen--on": al.value, "vue-data-ui-fulscreen--off": !al.value }, "vue-ui-xy-svg vue-data-ui-svg"]),
|
|
1343
1343
|
width: "100%",
|
|
@@ -1362,7 +1362,7 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
|
|
|
1362
1362
|
key: 0,
|
|
1363
1363
|
x: n.value.left + G.value < 0 ? 0 : n.value.left + G.value,
|
|
1364
1364
|
y: n.value.top,
|
|
1365
|
-
width: n.value.width - (l.value.chart.grid.position === "middle" ? 0 : n.value.width /
|
|
1365
|
+
width: n.value.width - (l.value.chart.grid.position === "middle" ? 0 : n.value.width / b.value) < 0 ? 0 : n.value.width - (l.value.chart.grid.position === "middle" ? 0 : n.value.width / b.value),
|
|
1366
1366
|
height: n.value.height < 0 ? 0 : n.value.height,
|
|
1367
1367
|
style: {
|
|
1368
1368
|
pointerEvents: "none"
|
|
@@ -1370,8 +1370,8 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
|
|
|
1370
1370
|
}, [
|
|
1371
1371
|
q(a.$slots, "chart-background", {}, void 0, !0)
|
|
1372
1372
|
], 8, xo)) : d("", !0),
|
|
1373
|
-
|
|
1374
|
-
g("g",
|
|
1373
|
+
b.value > 0 ? (u(), i("g", bo, [
|
|
1374
|
+
g("g", mo, [
|
|
1375
1375
|
l.value.chart.grid.labels.xAxis.showBaseline ? (u(), i("line", {
|
|
1376
1376
|
key: 0,
|
|
1377
1377
|
stroke: l.value.chart.grid.stroke,
|
|
@@ -1553,24 +1553,24 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
|
|
|
1553
1553
|
transition: "none",
|
|
1554
1554
|
opacity: e.from + t >= S.value.start && e.from + t <= S.value.end - 1 ? 1 : 0
|
|
1555
1555
|
}),
|
|
1556
|
-
x: n.value.left + n.value.width /
|
|
1556
|
+
x: n.value.left + n.value.width / b.value * (e.from + t - S.value.start),
|
|
1557
1557
|
y: n.value.top,
|
|
1558
1558
|
height: n.value.height < 0 ? 10 : n.value.height,
|
|
1559
|
-
width: n.value.width /
|
|
1559
|
+
width: n.value.width / b.value < 0 ? 1e-5 : n.value.width / b.value,
|
|
1560
1560
|
fill: v(we)(e.color, e.opacity)
|
|
1561
1561
|
}, null, 12, Do)
|
|
1562
1562
|
]))), 256)),
|
|
1563
1563
|
(u(!0), i(h, null, y(e.span, (s, t) => (u(), i("g", null, [
|
|
1564
1564
|
e.caption.text && t === 0 ? (u(), i("foreignObject", {
|
|
1565
1565
|
key: 0,
|
|
1566
|
-
x: n.value.left + n.value.width /
|
|
1566
|
+
x: n.value.left + n.value.width / b.value * (e.from + t - S.value.start) - (e.caption.width === "auto" ? 0 : e.caption.width / 2 - n.value.width / b.value * e.span / 2),
|
|
1567
1567
|
y: n.value.top + e.caption.offsetY,
|
|
1568
1568
|
style: z({
|
|
1569
1569
|
overflow: "visible",
|
|
1570
1570
|
opacity: e.to >= S.value.start && e.from < S.value.end ? 1 : 0
|
|
1571
1571
|
}),
|
|
1572
1572
|
height: "1",
|
|
1573
|
-
width: e.caption.width === "auto" ? n.value.width /
|
|
1573
|
+
width: e.caption.width === "auto" ? n.value.width / b.value * e.span : e.caption.width
|
|
1574
1574
|
}, [
|
|
1575
1575
|
g("div", {
|
|
1576
1576
|
style: z(`padding:${e.caption.padding}px;text-align:${e.caption.textAlign};font-size:${e.caption.fontSize}px;color:${e.caption.color};font-weight:${e.caption.bold ? "bold" : "normal"}`)
|
|
@@ -1580,14 +1580,14 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
|
|
|
1580
1580
|
], 64)) : d("", !0)
|
|
1581
1581
|
]))), 256)),
|
|
1582
1582
|
Ul.value ? (u(), i("g", Uo, [
|
|
1583
|
-
(u(!0), i(h, null, y(
|
|
1583
|
+
(u(!0), i(h, null, y(b.value, (e, s) => (u(), i("g", {
|
|
1584
1584
|
key: `tooltip_trap_highlighter_${s}`
|
|
1585
1585
|
}, [
|
|
1586
1586
|
g("rect", {
|
|
1587
|
-
x: n.value.left + n.value.width /
|
|
1587
|
+
x: n.value.left + n.value.width / b.value * s,
|
|
1588
1588
|
y: n.value.top,
|
|
1589
1589
|
height: n.value.height < 0 ? 10 : n.value.height,
|
|
1590
|
-
width: n.value.width /
|
|
1590
|
+
width: n.value.width / b.value < 0 ? 1e-5 : n.value.width / b.value,
|
|
1591
1591
|
fill: [O.value, k.value, Xe.value].includes(s) ? v(we)(l.value.chart.highlighter.color, l.value.chart.highlighter.opacity) : "transparent"
|
|
1592
1592
|
}, null, 8, Zo)
|
|
1593
1593
|
]))), 128))
|
|
@@ -1690,8 +1690,8 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
|
|
|
1690
1690
|
}, null, 8, os)) : d("", !0),
|
|
1691
1691
|
l.value.chart.highlighter.useLine && (![null, void 0].includes(k.value) || ![null, void 0].includes(O.value)) ? (u(), i("g", ss, [
|
|
1692
1692
|
g("line", {
|
|
1693
|
-
x1: n.value.left + n.value.width /
|
|
1694
|
-
x2: n.value.left + n.value.width /
|
|
1693
|
+
x1: n.value.left + n.value.width / b.value * ((k.value !== null ? k.value : 0) || (O.value !== null ? O.value : 0)) + n.value.width / b.value / 2,
|
|
1694
|
+
x2: n.value.left + n.value.width / b.value * ((k.value !== null ? k.value : 0) || (O.value !== null ? O.value : 0)) + n.value.width / b.value / 2,
|
|
1695
1695
|
y1: v(R)(n.value.top),
|
|
1696
1696
|
y2: v(R)(n.value.bottom),
|
|
1697
1697
|
stroke: l.value.chart.highlighter.color,
|
|
@@ -1706,7 +1706,7 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
|
|
|
1706
1706
|
style: { pointerEvents: "none", transition: "none", animation: "none !important" },
|
|
1707
1707
|
x: n.value.left + G.value < 0 ? 0 : n.value.left + G.value,
|
|
1708
1708
|
y: n.value.top,
|
|
1709
|
-
width: n.value.width - (l.value.chart.grid.position === "middle" ? 0 : n.value.width /
|
|
1709
|
+
width: n.value.width - (l.value.chart.grid.position === "middle" ? 0 : n.value.width / b.value) < 0 ? 0 : n.value.width - (l.value.chart.grid.position === "middle" ? 0 : n.value.width / b.value),
|
|
1710
1710
|
height: n.value.height < 0 ? 0 : n.value.height,
|
|
1711
1711
|
fill: "transparent",
|
|
1712
1712
|
stroke: l.value.chart.grid.frame.stroke,
|
|
@@ -1852,8 +1852,8 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
|
|
|
1852
1852
|
g("polygon", {
|
|
1853
1853
|
points: `0 0, 7 ${7 / 2}, 0 7`,
|
|
1854
1854
|
fill: e.color
|
|
1855
|
-
}, null, 8,
|
|
1856
|
-
], 8,
|
|
1855
|
+
}, null, 8, ms)
|
|
1856
|
+
], 8, bs)
|
|
1857
1857
|
]),
|
|
1858
1858
|
e.plots.length > 1 ? (u(), i("line", {
|
|
1859
1859
|
key: 0,
|
|
@@ -2415,26 +2415,26 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
|
|
|
2415
2415
|
key: `time_label_${s}`,
|
|
2416
2416
|
ref_for: !0
|
|
2417
2417
|
}, {
|
|
2418
|
-
x: n.value.left + n.value.width /
|
|
2418
|
+
x: n.value.left + n.value.width / b.value * s + n.value.width / b.value / 2,
|
|
2419
2419
|
y: n.value.bottom,
|
|
2420
2420
|
fontSize: x.value.xAxis,
|
|
2421
2421
|
fill: l.value.chart.grid.labels.xAxisLabels.color,
|
|
2422
|
-
transform: `translate(${n.value.left + n.value.width /
|
|
2422
|
+
transform: `translate(${n.value.left + n.value.width / b.value * s + n.value.width / b.value / 2}, ${n.value.bottom + x.value.xAxis * 1.3 + l.value.chart.grid.labels.xAxisLabels.yOffset}), rotate(${l.value.chart.grid.labels.xAxisLabels.rotation})`,
|
|
2423
2423
|
absoluteIndex: e.absoluteIndex,
|
|
2424
2424
|
content: e.text,
|
|
2425
2425
|
textAnchor: l.value.chart.grid.labels.xAxisLabels.rotation > 0 ? "start" : l.value.chart.grid.labels.xAxisLabels.rotation < 0 ? "end" : "middle",
|
|
2426
|
-
show: e && l.value.chart.grid.labels.xAxisLabels.showOnlyAtModulo &&
|
|
2426
|
+
show: e && l.value.chart.grid.labels.xAxisLabels.showOnlyAtModulo && b.value <= Ll.value || e && !l.value.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && !l.value.chart.grid.labels.xAxisLabels.showOnlyAtModulo || e && l.value.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && (s === 0 || s === le.value.length - 1) && !l.value.chart.grid.labels.xAxisLabels.showOnlyAtModulo || e && l.value.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && k.value === s && !l.value.chart.grid.labels.xAxisLabels.showOnlyAtModulo || e && !l.value.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && l.value.chart.grid.labels.xAxisLabels.showOnlyAtModulo && s % Math.floor((S.value.end - S.value.start) / Ll.value) === 0
|
|
2427
2427
|
}), void 0, !0)), 128)) : (u(!0), i(h, { key: 1 }, y(le.value, (e, s) => (u(), i("g", {
|
|
2428
2428
|
key: `time_label_${s}`
|
|
2429
2429
|
}, [
|
|
2430
|
-
e && l.value.chart.grid.labels.xAxisLabels.showOnlyAtModulo &&
|
|
2430
|
+
e && l.value.chart.grid.labels.xAxisLabels.showOnlyAtModulo && b.value <= Ll.value || e && !l.value.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && !l.value.chart.grid.labels.xAxisLabels.showOnlyAtModulo || e && l.value.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && (s === 0 || s === le.value.length - 1) && !l.value.chart.grid.labels.xAxisLabels.showOnlyAtModulo || e && l.value.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && k.value === s && !l.value.chart.grid.labels.xAxisLabels.showOnlyAtModulo || e && !l.value.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && l.value.chart.grid.labels.xAxisLabels.showOnlyAtModulo && s % Math.floor((S.value.end - S.value.start) / Ll.value) === 0 ? (u(), i(h, { key: 0 }, [
|
|
2431
2431
|
String(e.text).includes(`
|
|
2432
2432
|
`) ? (u(), i("text", {
|
|
2433
2433
|
key: 1,
|
|
2434
2434
|
"text-anchor": l.value.chart.grid.labels.xAxisLabels.rotation > 0 ? "start" : l.value.chart.grid.labels.xAxisLabels.rotation < 0 ? "end" : "middle",
|
|
2435
2435
|
"font-size": x.value.xAxis,
|
|
2436
2436
|
fill: l.value.chart.grid.labels.xAxisLabels.color,
|
|
2437
|
-
transform: `translate(${n.value.left + n.value.width /
|
|
2437
|
+
transform: `translate(${n.value.left + n.value.width / b.value * s + n.value.width / b.value / 2}, ${n.value.bottom + x.value.xAxis * 1.3 + l.value.chart.grid.labels.xAxisLabels.yOffset}), rotate(${l.value.chart.grid.labels.xAxisLabels.rotation})`,
|
|
2438
2438
|
style: z({
|
|
2439
2439
|
cursor: ga() ? "pointer" : "default"
|
|
2440
2440
|
}),
|
|
@@ -2445,18 +2445,18 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
|
|
|
2445
2445
|
x: 0,
|
|
2446
2446
|
y: 0
|
|
2447
2447
|
}),
|
|
2448
|
-
onClick: () =>
|
|
2448
|
+
onClick: () => ma(e, s)
|
|
2449
2449
|
}, null, 12, fu)) : (u(), i("text", {
|
|
2450
2450
|
key: 0,
|
|
2451
2451
|
class: "vue-data-ui-time-label",
|
|
2452
2452
|
"text-anchor": l.value.chart.grid.labels.xAxisLabels.rotation > 0 ? "start" : l.value.chart.grid.labels.xAxisLabels.rotation < 0 ? "end" : "middle",
|
|
2453
2453
|
"font-size": x.value.xAxis,
|
|
2454
2454
|
fill: l.value.chart.grid.labels.xAxisLabels.color,
|
|
2455
|
-
transform: `translate(${n.value.left + n.value.width /
|
|
2455
|
+
transform: `translate(${n.value.left + n.value.width / b.value * s + n.value.width / b.value / 2}, ${n.value.bottom + x.value.xAxis * 1.5}), rotate(${l.value.chart.grid.labels.xAxisLabels.rotation})`,
|
|
2456
2456
|
style: z({
|
|
2457
2457
|
cursor: ga() ? "pointer" : "default"
|
|
2458
2458
|
}),
|
|
2459
|
-
onClick: () =>
|
|
2459
|
+
onClick: () => ma(e, s)
|
|
2460
2460
|
}, ee(e.text || ""), 13, hu))
|
|
2461
2461
|
], 64)) : d("", !0)
|
|
2462
2462
|
]))), 128))
|
|
@@ -2488,7 +2488,7 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
|
|
|
2488
2488
|
"stroke-dasharray": e.config.line.strokeDasharray,
|
|
2489
2489
|
"stroke-linecap": "round",
|
|
2490
2490
|
style: { animation: "none !important" }
|
|
2491
|
-
}, null, 8,
|
|
2491
|
+
}, null, 8, bu)) : d("", !0),
|
|
2492
2492
|
e.hasArea && e.show && isFinite(e.yTop) && isFinite(e.yBottom) ? (u(), i("rect", {
|
|
2493
2493
|
key: 2,
|
|
2494
2494
|
y: Math.min(e.yTop, e.yBottom),
|
|
@@ -2497,7 +2497,7 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
|
|
|
2497
2497
|
height: v(T)(e.areaHeight, 0),
|
|
2498
2498
|
fill: v(we)(e.config.area.fill, e.config.area.opacity),
|
|
2499
2499
|
style: { animation: "none !important" }
|
|
2500
|
-
}, null, 8,
|
|
2500
|
+
}, null, 8, mu)) : d("", !0),
|
|
2501
2501
|
e.config.label.text && e.show && isFinite(e._box.y) ? (u(), i("rect", jl({
|
|
2502
2502
|
key: 3,
|
|
2503
2503
|
class: "vue-ui-xy-annotation-label-box"
|
|
@@ -2515,12 +2515,12 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
|
|
|
2515
2515
|
]))), 128))
|
|
2516
2516
|
])) : d("", !0),
|
|
2517
2517
|
Ul.value ? (u(), i("g", pu, [
|
|
2518
|
-
(u(!0), i(h, null, y(
|
|
2518
|
+
(u(!0), i(h, null, y(b.value, (e, s) => (u(), i("rect", {
|
|
2519
2519
|
key: `tooltip_trap_${s}`,
|
|
2520
|
-
x: n.value.left + n.value.width /
|
|
2520
|
+
x: n.value.left + n.value.width / b.value * s,
|
|
2521
2521
|
y: n.value.top,
|
|
2522
2522
|
height: n.value.height < 0 ? 10 : n.value.height,
|
|
2523
|
-
width: n.value.width /
|
|
2523
|
+
width: n.value.width / b.value < 0 ? 1e-5 : n.value.width / b.value,
|
|
2524
2524
|
fill: "transparent",
|
|
2525
2525
|
onMouseenter: (t) => Ta(!0, s),
|
|
2526
2526
|
onMouseleave: c[1] || (c[1] = (t) => Ta(!1)),
|
|
@@ -2529,7 +2529,7 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
|
|
|
2529
2529
|
])) : d("", !0),
|
|
2530
2530
|
l.value.chart.timeTag.show && (![null, void 0].includes(k.value) || ![null, void 0].includes(O.value)) ? (u(), i("g", _u, [
|
|
2531
2531
|
(u(), i("foreignObject", {
|
|
2532
|
-
x: n.value.left + n.value.width /
|
|
2532
|
+
x: n.value.left + n.value.width / b.value * ((k.value !== null ? k.value : 0) || (O.value !== null ? O.value : 0)) - 100 + n.value.width / b.value / 2,
|
|
2533
2533
|
y: n.value.bottom,
|
|
2534
2534
|
width: "200",
|
|
2535
2535
|
height: "40",
|
|
@@ -2541,7 +2541,7 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
|
|
|
2541
2541
|
}, ee(le.value[(k.value !== null ? k.value : 0) || (O.value !== null ? O.value : 0)].text || (k.value !== null ? k.value : 0) || (O.value !== null ? O.value : 0)), 5)
|
|
2542
2542
|
], 8, wu)),
|
|
2543
2543
|
g("circle", {
|
|
2544
|
-
cx: n.value.left + n.value.width /
|
|
2544
|
+
cx: n.value.left + n.value.width / b.value * ((k.value !== null ? k.value : 0) || (O.value !== null ? O.value : 0)) + n.value.width / b.value / 2,
|
|
2545
2545
|
cy: n.value.bottom,
|
|
2546
2546
|
r: l.value.chart.timeTag.circleMarker.radius,
|
|
2547
2547
|
fill: l.value.chart.timeTag.circleMarker.color
|
|
@@ -2569,14 +2569,14 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
|
|
|
2569
2569
|
style: z({
|
|
2570
2570
|
position: "fixed",
|
|
2571
2571
|
top: v(Ee)({
|
|
2572
|
-
svgElement:
|
|
2572
|
+
svgElement: be.value,
|
|
2573
2573
|
x: n.value.right + l.value.line.tag.fontSize / 1.5,
|
|
2574
2574
|
y: t.y,
|
|
2575
2575
|
element: Ce.value[`${s}_${r}_right_line`],
|
|
2576
2576
|
position: "right"
|
|
2577
2577
|
}).top + "px",
|
|
2578
2578
|
left: v(Ee)({
|
|
2579
|
-
svgElement:
|
|
2579
|
+
svgElement: be.value,
|
|
2580
2580
|
x: n.value.right + l.value.line.tag.fontSize / 1.5,
|
|
2581
2581
|
y: t.y,
|
|
2582
2582
|
element: Ce.value[`${s}_${r}_right_line`],
|
|
@@ -2621,14 +2621,14 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
|
|
|
2621
2621
|
style: z({
|
|
2622
2622
|
position: "fixed",
|
|
2623
2623
|
top: v(Ee)({
|
|
2624
|
-
svgElement:
|
|
2624
|
+
svgElement: be.value,
|
|
2625
2625
|
x: n.value.left - l.value.line.tag.fontSize / 1.5,
|
|
2626
2626
|
y: t.y,
|
|
2627
2627
|
element: Ce.value[`${s}_${r}_left_line`],
|
|
2628
2628
|
position: "left"
|
|
2629
2629
|
}).top + "px",
|
|
2630
2630
|
left: v(Ee)({
|
|
2631
|
-
svgElement:
|
|
2631
|
+
svgElement: be.value,
|
|
2632
2632
|
x: n.value.left - l.value.line.tag.fontSize / 1.5,
|
|
2633
2633
|
y: t.y,
|
|
2634
2634
|
element: Ce.value[`${s}_${r}_left_line`],
|
|
@@ -2681,14 +2681,14 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
|
|
|
2681
2681
|
style: z({
|
|
2682
2682
|
position: "fixed",
|
|
2683
2683
|
top: v(Ee)({
|
|
2684
|
-
svgElement:
|
|
2684
|
+
svgElement: be.value,
|
|
2685
2685
|
x: n.value.right + l.value.plot.tag.fontSize / 1.5,
|
|
2686
2686
|
y: t.y,
|
|
2687
2687
|
element: Ce.value[`${s}_${r}_right_plot`],
|
|
2688
2688
|
position: "right"
|
|
2689
2689
|
}).top + "px",
|
|
2690
2690
|
left: v(Ee)({
|
|
2691
|
-
svgElement:
|
|
2691
|
+
svgElement: be.value,
|
|
2692
2692
|
x: n.value.right + l.value.plot.tag.fontSize / 1.5,
|
|
2693
2693
|
y: t.y,
|
|
2694
2694
|
element: Ce.value[`${s}_${r}_right_plot`],
|
|
@@ -2733,14 +2733,14 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
|
|
|
2733
2733
|
style: z({
|
|
2734
2734
|
position: "fixed",
|
|
2735
2735
|
top: v(Ee)({
|
|
2736
|
-
svgElement:
|
|
2736
|
+
svgElement: be.value,
|
|
2737
2737
|
x: n.value.left - l.value.plot.tag.fontSize / 1.5,
|
|
2738
2738
|
y: t.y,
|
|
2739
2739
|
element: Ce.value[`${s}_${r}_left_plot`],
|
|
2740
2740
|
position: "left"
|
|
2741
2741
|
}).top + "px",
|
|
2742
2742
|
left: v(Ee)({
|
|
2743
|
-
svgElement:
|
|
2743
|
+
svgElement: be.value,
|
|
2744
2744
|
x: n.value.left - l.value.plot.tag.fontSize / 1.5,
|
|
2745
2745
|
y: t.y,
|
|
2746
2746
|
element: Ce.value[`${s}_${r}_left_plot`],
|
|
@@ -2813,7 +2813,7 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
|
|
|
2813
2813
|
enableRangeHandles: l.value.chart.zoom.enableRangeHandles,
|
|
2814
2814
|
enableSelectionDrag: l.value.chart.zoom.enableSelectionDrag,
|
|
2815
2815
|
onReset: pt,
|
|
2816
|
-
onTrapMouse:
|
|
2816
|
+
onTrapMouse: bt
|
|
2817
2817
|
}, {
|
|
2818
2818
|
"reset-action": ue(({ reset: e }) => [
|
|
2819
2819
|
q(a.$slots, "reset-action", Ze(Je({ reset: e })), void 0, !0)
|
|
@@ -2994,7 +2994,7 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
|
|
|
2994
2994
|
v(Xl) ? (u(), Me(co, { key: 10 })) : d("", !0)
|
|
2995
2995
|
], 46, fo));
|
|
2996
2996
|
}
|
|
2997
|
-
}, rr = /* @__PURE__ */ ho(qu, [["__scopeId", "data-v-
|
|
2997
|
+
}, rr = /* @__PURE__ */ ho(qu, [["__scopeId", "data-v-0fb9d3a1"]]);
|
|
2998
2998
|
export {
|
|
2999
2999
|
rr as default
|
|
3000
3000
|
};
|