vue-data-ui 3.0.0-next.25 → 3.0.0-next.27
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-BTsjhHHh.js → Arrow-RGDVmFSH.js} +1 -1
- package/dist/{BaseDraggableDialog-7344fBM0.js → BaseDraggableDialog-2MH5hxMc.js} +2 -2
- package/dist/{BaseIcon-CDz2oozx.js → BaseIcon-DLJ5Lzvf.js} +1 -1
- package/dist/{ColorPicker-BxiEt6Tt.js → ColorPicker-uH4pBeoc.js} +2 -2
- package/dist/{DataTable-iAIT4SCP.js → DataTable-DWXGn13M.js} +2 -2
- package/dist/{Legend-CyOENTUo.js → Legend-XvLWu-U4.js} +2 -2
- package/dist/{NonSvgPenAndPaper-CA6KMiGz.js → NonSvgPenAndPaper-DY6-8nWM.js} +3 -3
- package/dist/{PackageVersion-BYRaFDzL.js → PackageVersion-CcyOrmqr.js} +1 -1
- package/dist/{PenAndPaper-rr8902FN.js → PenAndPaper-S1h1sM_v.js} +3 -3
- package/dist/{Shape-CEqtl1VO.js → Shape-B2NNkVEU.js} +1 -1
- package/dist/{Slicer-DDzthK35.js → Slicer-C2128jWm.js} +2 -2
- package/dist/{SparkTooltip-CtRls3um.js → SparkTooltip-B0IgrAiC.js} +1 -1
- package/dist/{Title-B7M9e3sH.js → Title-BT7bS0eb.js} +1 -1
- package/dist/{Tooltip-COY92a5-.js → Tooltip-CbaafXw_.js} +1 -1
- package/dist/{UserOptions-DK3vsMFd.js → UserOptions-C9lB05jb.js} +2 -2
- package/dist/{dom-to-png-D3GALOZU.js → dom-to-png-B5f_cRVB.js} +1 -1
- package/dist/{img-CcchoCI6.js → img-BScthXJW.js} +1 -1
- package/dist/{index-fJBJ72OC.js → index-DTJkgcxh.js} +341 -337
- package/dist/{pdf-DYTZWUjw.js → pdf-DEfty6-G.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +3 -2
- package/dist/types/vue-data-ui.d.ts +3 -2
- package/dist/{useNestedProp-BliM4SGD.js → useNestedProp-DvwKj8Zn.js} +1 -1
- package/dist/{usePrinter-DQuFkOC5.js → usePrinter-CbokYjoB.js} +2 -2
- package/dist/{vue-data-ui-C1lvBv6z.js → vue-data-ui-BubXK-EN.js} +64 -64
- package/dist/vue-data-ui.js +1 -1
- package/dist/{vue-ui-3d-bar-C3eQe8U7.js → vue-ui-3d-bar-BgbiwMsJ.js} +6 -6
- package/dist/{vue-ui-accordion-CsrBV8sH.js → vue-ui-accordion-BDuLBbkX.js} +3 -3
- package/dist/{vue-ui-age-pyramid-n7sNiWF2.js → vue-ui-age-pyramid-B8esFXAj.js} +6 -6
- package/dist/{vue-ui-annotator-DYst7GL2.js → vue-ui-annotator-BM2Fxwyn.js} +2 -2
- package/dist/{vue-ui-bullet-Cl2M41Ke.js → vue-ui-bullet-C5r2tlAw.js} +7 -7
- package/dist/{vue-ui-candlestick-6jYtO7Vh.js → vue-ui-candlestick-DEqKEVdy.js} +149 -150
- package/dist/{vue-ui-carousel-table--F9f6OWZ.js → vue-ui-carousel-table-CHABZSa7.js} +4 -4
- package/dist/{vue-ui-chestnut-nZz6MY0E.js → vue-ui-chestnut-CKmXKQ61.js} +5 -5
- package/dist/{vue-ui-chord-Dlj-3X51.js → vue-ui-chord-DW2ndivp.js} +8 -8
- package/dist/{vue-ui-circle-pack-DhUppMs-.js → vue-ui-circle-pack-BKlgiMRS.js} +6 -6
- package/dist/{vue-ui-cursor-D6sHbFHG.js → vue-ui-cursor-BpctNjDR.js} +2 -2
- package/dist/{vue-ui-dashboard-DaxbLtod.js → vue-ui-dashboard-C304-EeY.js} +62 -62
- package/dist/{vue-ui-digits-D-ujFZF8.js → vue-ui-digits-anpApSWe.js} +2 -2
- package/dist/{vue-ui-donut-DORQBhM_.js → vue-ui-donut-JzjQTiDx.js} +8 -8
- package/dist/vue-ui-donut-evolution-nQbgWXs5.js +1072 -0
- package/dist/{vue-ui-dumbbell-Biush2C5.js → vue-ui-dumbbell-BgnmrlkA.js} +7 -7
- package/dist/{vue-ui-flow-DpX0UCZi.js → vue-ui-flow-DEPrQA-w.js} +7 -7
- package/dist/{vue-ui-funnel-CP1GlNtS.js → vue-ui-funnel-ojf0srk6.js} +6 -6
- package/dist/{vue-ui-galaxy-DfKr6Mae.js → vue-ui-galaxy-CYP_NOuc.js} +5 -5
- package/dist/{vue-ui-gauge-BZmrsbJ9.js → vue-ui-gauge-PZkGA3xT.js} +6 -6
- package/dist/{vue-ui-gizmo-DU7dxEIZ.js → vue-ui-gizmo-BVEf1l02.js} +3 -3
- package/dist/{vue-ui-heatmap-DLeCwx6k.js → vue-ui-heatmap-C0QKWdB2.js} +7 -7
- package/dist/{vue-ui-history-plot-BrvUX4gK.js → vue-ui-history-plot-DL6znOA2.js} +7 -7
- package/dist/{vue-ui-kpi-s56r373O.js → vue-ui-kpi-k901VoIN.js} +3 -3
- package/dist/{vue-ui-mini-loader-jNRdHqeK.js → vue-ui-mini-loader-dO16jdj9.js} +2 -2
- package/dist/{vue-ui-molecule-DZUOPeeV.js → vue-ui-molecule-CgBLfrXa.js} +5 -5
- package/dist/{vue-ui-mood-radar-CySbOHJ9.js → vue-ui-mood-radar-BxwR2Ez7.js} +7 -7
- package/dist/{vue-ui-nested-donuts-zmWAssyd.js → vue-ui-nested-donuts-BIjRulQt.js} +9 -9
- package/dist/{vue-ui-onion-L_TXtgR4.js → vue-ui-onion-CkoPdA0-.js} +7 -7
- package/dist/{vue-ui-parallel-coordinate-plot-BjTfK64F.js → vue-ui-parallel-coordinate-plot-CHQ4Brih.js} +8 -8
- package/dist/{vue-ui-quadrant-DndNU61k.js → vue-ui-quadrant-CEQTH_Vf.js} +8 -8
- package/dist/{vue-ui-quick-chart-B1RCrld7.js → vue-ui-quick-chart-DIoqKBCM.js} +265 -263
- package/dist/{vue-ui-radar-OMddOqeu.js → vue-ui-radar-Cft9wyK8.js} +7 -7
- package/dist/{vue-ui-rating-BTFawXu8.js → vue-ui-rating-OARiI9ot.js} +2 -2
- package/dist/{vue-ui-relation-circle-CSZUUpA2.js → vue-ui-relation-circle-B-Zb1LQY.js} +6 -6
- package/dist/{vue-ui-ridgeline-Hq3omBeT.js → vue-ui-ridgeline-v7NEDfRs.js} +8 -8
- package/dist/{vue-ui-rings-CwPNpgCY.js → vue-ui-rings-BQwfTTzr.js} +8 -8
- package/dist/{vue-ui-scatter-CtiY2eO5.js → vue-ui-scatter-CHQCbV8M.js} +8 -8
- package/dist/{vue-ui-skeleton-Coyylsf1.js → vue-ui-skeleton-CHJxsFpK.js} +3 -3
- package/dist/{vue-ui-smiley-CtC16aE_.js → vue-ui-smiley-CsWC9IZ1.js} +2 -2
- package/dist/{vue-ui-spark-trend-D51qNzOE.js → vue-ui-spark-trend-BuamubwE.js} +3 -3
- package/dist/{vue-ui-sparkbar-BIV0QfYy.js → vue-ui-sparkbar-BHGRAUXV.js} +3 -3
- package/dist/{vue-ui-sparkgauge-B4ClXnGf.js → vue-ui-sparkgauge-DUnltuDi.js} +3 -3
- package/dist/{vue-ui-sparkhistogram-Dr7IDQTa.js → vue-ui-sparkhistogram-BMedlapo.js} +4 -4
- package/dist/{vue-ui-sparkline-BOlHSO6v.js → vue-ui-sparkline-BHNwaMiS.js} +3 -3
- package/dist/{vue-ui-sparkstackbar-D4XwZcKR.js → vue-ui-sparkstackbar-vRQz_uQJ.js} +3 -3
- package/dist/{vue-ui-stackbar-4aaZsvIC.js → vue-ui-stackbar-CQ6dTUhn.js} +328 -329
- package/dist/{vue-ui-strip-plot-CjqnGufK.js → vue-ui-strip-plot-CO2CPtr7.js} +7 -7
- package/dist/{vue-ui-table-CmOvVren.js → vue-ui-table-BLsZesaa.js} +3 -3
- package/dist/{vue-ui-table-heatmap-DBl2qszz.js → vue-ui-table-heatmap-CGDBekDd.js} +5 -5
- package/dist/{vue-ui-table-sparkline-CocUmVJB.js → vue-ui-table-sparkline-DDBnNFfS.js} +4 -4
- package/dist/{vue-ui-thermometer-BrjOEzEz.js → vue-ui-thermometer-DCgjIlYn.js} +6 -6
- package/dist/{vue-ui-timer-B5AaNDZt.js → vue-ui-timer-BUTGgiXL.js} +5 -5
- package/dist/{vue-ui-tiremarks-CMhnPzcj.js → vue-ui-tiremarks-Dbwy0DLv.js} +6 -6
- package/dist/{vue-ui-treemap-wV1Brun_.js → vue-ui-treemap-fZnaJFLV.js} +8 -8
- package/dist/{vue-ui-vertical-bar-DkdMEKrJ.js → vue-ui-vertical-bar-CC1RSDNH.js} +9 -9
- package/dist/{vue-ui-waffle-D7UqwRa-.js → vue-ui-waffle-yCHIWPVz.js} +8 -8
- package/dist/{vue-ui-wheel-G7G2XvoJ.js → vue-ui-wheel-BgCEnXux.js} +6 -6
- package/dist/{vue-ui-word-cloud-D04DJczJ.js → vue-ui-word-cloud-DdYN7hGc.js} +6 -6
- package/dist/{vue-ui-world-F3toaZ3V.js → vue-ui-world-Drt14jLg.js} +6 -6
- package/dist/{vue-ui-xy-DgUQf_Zh.js → vue-ui-xy-E2hScHc-.js} +348 -342
- package/dist/{vue-ui-xy-canvas-BEEg7Vs6.js → vue-ui-xy-canvas-DYaSIflg.js} +251 -252
- package/package.json +1 -1
- package/dist/vue-ui-donut-evolution-CIESyjfI.js +0 -1034
|
@@ -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
|
|
2
|
-
import { u as Et, c as ea, e as la, A as Wt, a5 as Ye, b as Xt, D as bl, ab as Ke, d as Gt, p as Dt, ac 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 Kl, createElementBlock as i, openBlock as u, normalizeStyle as z, normalizeClass as Ue, createBlock as Ae, 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 le, mergeProps as Ql, withDirectives as Bt, vModelCheckbox as Yt, createTextVNode as Ft, nextTick as jl } from "vue";
|
|
2
|
+
import { u as Et, c as ea, e as la, A as Wt, a5 as Ye, b as Xt, D as bl, ab as Ke, d as Gt, p as Dt, ac as Ml, 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 Me, f as xe, w as Qe, s as we, a8 as X, L as Kt, F as Fe, aj as zl, I as Qt, ak as Ee, C as Oe, t as jt, a as eo, o as Ua, q as lo, r as ao, E as ol } from "./index-DTJkgcxh.js";
|
|
3
|
+
import { u as aa } from "./useNestedProp-DvwKj8Zn.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
|
|
9
|
-
import ro from "./img-
|
|
10
|
-
import { u as io } from "./usePrinter-
|
|
6
|
+
import { S as so } from "./Slicer-C2128jWm.js";
|
|
7
|
+
import uo from "./Title-BT7bS0eb.js";
|
|
8
|
+
import { _ as Cl } from "./Shape-B2NNkVEU.js";
|
|
9
|
+
import ro from "./img-BScthXJW.js";
|
|
10
|
+
import { u as io } from "./usePrinter-CbokYjoB.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 = {
|
|
@@ -72,11 +72,11 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
|
|
|
72
72
|
}
|
|
73
73
|
},
|
|
74
74
|
emits: ["selectTimeLabel", "selectX", "selectLegend"],
|
|
75
|
-
setup(
|
|
76
|
-
const
|
|
75
|
+
setup(Il, { expose: Za, emit: Ja }) {
|
|
76
|
+
const m = Il, Ka = Be(() => import("./DataTable-DWXGn13M.js")), Qa = Be(() => import("./Tooltip-CbaafXw_.js")), ja = Be(() => import("./UserOptions-C9lB05jb.js")), et = Be(() => import("./BaseIcon-DLJ5Lzvf.js")), lt = Be(() => import("./vue-ui-table-sparkline-DDBnNFfS.js")), at = Be(() => import("./vue-ui-accordion-BDuLBbkX.js")), tt = Be(() => import("./PackageVersion-CcyOrmqr.js")), ot = Be(() => import("./PenAndPaper-S1h1sM_v.js")), Tl = Ja, ta = Nt(), st = Vt(), { vue_ui_xy: Ol } = Et(), je = w(null), sl = w(null), Ne = w(null), el = w(null), ul = w(null), rl = w(null), ut = w(null), Nl = w(null), Vl = w(null), ll = w(null), Pl = w(null), We = w(null), Hl = w(null), Rl = w(0), M = w(null), oa = w(!0), ve = w(600), ae = w(1e3), ml = w("0 0 1000 600"), rt = w({ x: 0, y: 0 }), il = w({ line: "line", bar: "bar", plot: "plot" }), yl = 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), Bl = w(0), O = w(null), na = w(!1), Yl = w(!0), pl = w(!0), be = w(null), ze = w({}), kl = 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,
|
|
@@ -87,9 +87,9 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
|
|
|
87
87
|
yAxis: 12,
|
|
88
88
|
dataLabels: 20,
|
|
89
89
|
plotLabels: 10
|
|
90
|
-
}),
|
|
90
|
+
}), Se = 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",
|
|
@@ -99,38 +99,38 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
|
|
|
99
99
|
});
|
|
100
100
|
});
|
|
101
101
|
});
|
|
102
|
-
function
|
|
103
|
-
if (!Object.keys(
|
|
104
|
-
return
|
|
102
|
+
function Fl() {
|
|
103
|
+
if (!Object.keys(m.config || {}).length)
|
|
104
|
+
return Ol;
|
|
105
105
|
const a = aa({
|
|
106
|
-
userConfig:
|
|
107
|
-
defaultConfig:
|
|
106
|
+
userConfig: m.config,
|
|
107
|
+
defaultConfig: Ol
|
|
108
108
|
});
|
|
109
|
-
return
|
|
110
|
-
defaultConfig:
|
|
109
|
+
return m.config && Oe(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 && Oe(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 && Oe(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 && Oe(m.config, "chart.zoom.startIndex") ? a.chart.zoom.startIndex = m.config.chart.zoom.startIndex : a.chart.zoom.startIndex = null, m.config && Oe(m.config, "chart.zoom.endIndex") ? a.chart.zoom.endIndex = m.config.chart.zoom.endIndex : a.chart.zoom.endIndex = null, m.config && Oe(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
|
+
defaultConfig: Ol.chart.annotations[0],
|
|
111
111
|
userConfig: c
|
|
112
|
-
})) : a.chart.annotations = [],
|
|
112
|
+
})) : a.chart.annotations = [], m.config && Oe(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", Oe(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 && Oe(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
|
-
const
|
|
120
|
+
const El = $({
|
|
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(
|
|
128
|
-
...Pt(
|
|
127
|
+
}), l = w(Fl()), { loading: Wl, FINAL_DATASET: me, manualLoading: _l } = no({
|
|
128
|
+
...Pt(m),
|
|
129
129
|
FINAL_CONFIG: l,
|
|
130
|
-
prepareConfig:
|
|
130
|
+
prepareConfig: Fl,
|
|
131
131
|
callback: () => {
|
|
132
132
|
Promise.resolve().then(async () => {
|
|
133
|
-
await
|
|
133
|
+
await Jl();
|
|
134
134
|
});
|
|
135
135
|
},
|
|
136
136
|
skeletonDataset: [
|
|
@@ -207,18 +207,18 @@ 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
|
-
}), S = w({ start: 0, end: Ve.value }), { isPrinting:
|
|
212
|
+
}), S = w({ start: 0, end: Ve.value }), { isPrinting: Xl, isImaging: ca, generatePdf: va, generateImage: da } = io({
|
|
213
213
|
elementId: `vue-ui-xy_${U.value}`,
|
|
214
214
|
fileName: l.value.chart.title.text || "vue-ui-xy",
|
|
215
215
|
options: l.value.chart.userOptions.print
|
|
216
|
-
}), ct = w(!1), ha = $(() => Xt(l.value.customPalette)),
|
|
216
|
+
}), ct = w(!1), ha = $(() => Xt(l.value.customPalette)), wl = $(() => l.value.chart.grid.labels.yAxis.scaleMax ? l.value.chart.grid.labels.yAxis.scaleMax : Math.max(...Ce.value.filter((a) => !te.value.includes(a.id)).map((a) => Math.max(...a.series)))), Gl = $(() => {
|
|
217
217
|
if (l.value.chart.grid.labels.yAxis.scaleMin !== null)
|
|
218
218
|
return l.value.chart.grid.labels.yAxis.scaleMin;
|
|
219
|
-
const a = Math.min(...
|
|
219
|
+
const a = Math.min(...Ce.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 ? bl(
|
|
221
|
+
}), ye = $(() => l.value.chart.grid.labels.yAxis.useNiceScale ? bl(Gl.value, wl.value < 0 ? 0 : wl.value, l.value.chart.grid.labels.yAxis.commonScaleSteps) : Ke(Gl.value, wl.value < 0 ? 0 : wl.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), Ce = $(() => oa.value ? me.value.map((a, c) => {
|
|
222
222
|
const e = Ye({
|
|
223
223
|
data: a.series,
|
|
224
224
|
threshold: l.value.downsample.threshold
|
|
@@ -226,34 +226,34 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
|
|
|
226
226
|
return {
|
|
227
227
|
...a,
|
|
228
228
|
slotAbsoluteIndex: c,
|
|
229
|
-
series: e.map((t) =>
|
|
229
|
+
series: e.map((t) => Ml(t) ? t : null).slice(S.value.start, S.value.end),
|
|
230
230
|
color: Gt(a.color ? a.color : ha.value[c] ? ha.value[c] : Dt[c]),
|
|
231
231
|
id: s,
|
|
232
232
|
scaleLabel: a.scaleLabel || s
|
|
233
233
|
};
|
|
234
|
-
}) :
|
|
234
|
+
}) : me.value), Ie = $(() => Ce.value.map((a, c) => ({
|
|
235
235
|
absoluteIndex: c,
|
|
236
236
|
...a,
|
|
237
237
|
series: a.series.map((e) => e + cl.value),
|
|
238
238
|
absoluteValues: a.series,
|
|
239
239
|
segregate: () => $a(a),
|
|
240
240
|
isSegregated: te.value.includes(a.id)
|
|
241
|
-
}))), pe = $(() =>
|
|
241
|
+
}))), pe = $(() => Ce.value.map((a, c) => ({
|
|
242
242
|
...a,
|
|
243
243
|
series: a.series.map((e) => e + cl.value),
|
|
244
244
|
absoluteValues: a.series
|
|
245
245
|
})).filter((a) => !te.value.includes(a.id)));
|
|
246
246
|
function vt() {
|
|
247
247
|
let a = 0;
|
|
248
|
-
|
|
248
|
+
Pl.value && (a = Array.from(Pl.value.querySelectorAll("text")).reduce((t, r) => {
|
|
249
249
|
const o = r.getComputedTextLength();
|
|
250
250
|
return (o > t ? o : t) + l.value.chart.grid.labels.yAxis.scaleValueOffsetX;
|
|
251
251
|
}, 0));
|
|
252
|
-
const c =
|
|
252
|
+
const c = Vl.value ? Vl.value.getBoundingClientRect().width + l.value.chart.grid.labels.axis.yLabelOffsetX + x.value.yAxis : 0, e = l.value.chart.grid.labels.yAxis.crosshairSize;
|
|
253
253
|
return a + c + e;
|
|
254
254
|
}
|
|
255
|
-
const
|
|
256
|
-
|
|
255
|
+
const Dl = w(0), dt = vo((a) => {
|
|
256
|
+
Dl.value = a;
|
|
257
257
|
}, 100);
|
|
258
258
|
Ht((a) => {
|
|
259
259
|
const c = ll.value;
|
|
@@ -263,23 +263,23 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
|
|
|
263
263
|
});
|
|
264
264
|
e.observe(c), a(() => e.disconnect());
|
|
265
265
|
}), Ya(() => {
|
|
266
|
-
|
|
266
|
+
Dl.value = 0;
|
|
267
267
|
});
|
|
268
268
|
const fa = $(() => {
|
|
269
269
|
let a = 0;
|
|
270
|
-
|
|
270
|
+
Nl.value && (a = Nl.value.getBBox().height);
|
|
271
271
|
let c = 0;
|
|
272
|
-
return ll.value && (c =
|
|
273
|
-
}), ht = $(() =>
|
|
272
|
+
return ll.value && (c = Dl.value), a + c + x.value.xAxis;
|
|
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,42 +303,42 @@ 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 =
|
|
307
|
-
return
|
|
306
|
+
} = l.value.chart.grid.labels.xAxisLabels, s = J.value.length ? Math.min(e, [...new Set(J.value.map((r) => r.text))].length) : e, t = Math.floor((S.value.end - S.value.start) / s);
|
|
307
|
+
return J.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 === J.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 /
|
|
313
|
-
return `M${_},${
|
|
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, K = 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
|
+
return `M${_},${K} L${_},${oe}`;
|
|
314
314
|
}).filter((r) => r !== null).join(" ");
|
|
315
315
|
});
|
|
316
316
|
function ga() {
|
|
317
317
|
return !!st?.vnode.props?.onSelectTimeLabel;
|
|
318
318
|
}
|
|
319
319
|
function xt(a, c, e) {
|
|
320
|
-
if (!
|
|
320
|
+
if (!kl.value) {
|
|
321
321
|
const s = document.createElement("canvas");
|
|
322
|
-
|
|
322
|
+
kl.value = s.getContext("2d");
|
|
323
323
|
}
|
|
324
|
-
return
|
|
324
|
+
return kl.value.font = `normal ${a}px sans-serif`, kl.value;
|
|
325
325
|
}
|
|
326
326
|
function xa() {
|
|
327
327
|
const a = je.value.querySelectorAll(".vue-ui-xy-tag");
|
|
328
328
|
a.length && Array.from(a).forEach((c) => c.style.opacity = "0");
|
|
329
329
|
}
|
|
330
|
-
function
|
|
331
|
-
e && (
|
|
330
|
+
function Sl(a, c, e, s, t) {
|
|
331
|
+
e && (ze.value[`${a}_${c}_${s}_${t}`] = e);
|
|
332
332
|
}
|
|
333
|
-
const
|
|
334
|
-
async function
|
|
335
|
-
await
|
|
333
|
+
const ql = w(!1);
|
|
334
|
+
async function ba(a = !1) {
|
|
335
|
+
await jl(), ql.value = a, na.value && (pl.value = a);
|
|
336
336
|
}
|
|
337
|
-
function
|
|
338
|
-
|
|
337
|
+
function Ul() {
|
|
338
|
+
yl.value = !yl.value;
|
|
339
339
|
}
|
|
340
|
-
const
|
|
341
|
-
const a = Math.max(...
|
|
340
|
+
const J = $(() => {
|
|
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,
|
|
@@ -346,11 +346,11 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
|
|
|
346
346
|
start: S.value.start,
|
|
347
347
|
end: S.value.end
|
|
348
348
|
});
|
|
349
|
-
}),
|
|
349
|
+
}), $l = $(() => {
|
|
350
350
|
const a = l.value.chart.grid.labels.xAxisLabels.modulo;
|
|
351
|
-
return
|
|
351
|
+
return J.value.length ? Math.min(a, [...new Set(J.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,
|
|
@@ -361,40 +361,46 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
|
|
|
361
361
|
prefix: s.prefix || l.value.chart.labels.prefix,
|
|
362
362
|
suffix: s.suffix || l.value.chart.labels.suffix
|
|
363
363
|
}));
|
|
364
|
-
|
|
364
|
+
Tl("selectTimeLabel", {
|
|
365
365
|
datapoint: e,
|
|
366
366
|
absoluteIndex: a.absoluteIndex,
|
|
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() {
|
|
375
375
|
f.value.isStacked = !f.value.isStacked, f.value.isStacked ? f.value.useIndividualScale = !0 : f.value.useIndividualScale = l.value.chart.grid.labels.yAxis.useIndividualScale;
|
|
376
376
|
}
|
|
377
|
-
function
|
|
377
|
+
function Zl(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
|
|
381
|
-
let e = Array(a).fill(0);
|
|
380
|
+
function mt(a, c) {
|
|
381
|
+
let e = Array(Math.abs(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
|
-
async function
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
390
|
+
async function Jl() {
|
|
391
|
+
await jl(), await jl();
|
|
392
|
+
const { startIndex: a, endIndex: c } = l.value.chart.zoom, e = Ne.value, s = Math.max(
|
|
393
|
+
...me.value.map(
|
|
394
|
+
(t) => Ye({
|
|
395
|
+
data: t.series,
|
|
396
|
+
threshold: l.value.downsample.threshold
|
|
397
|
+
}).length
|
|
398
|
+
)
|
|
399
|
+
);
|
|
400
|
+
(a != null || c != null) && e ? (a != null && e.setStartValue(a), c != null && e.setEndValue(yt(c + 1))) : (S.value = { start: 0, end: s }, Rl.value += 1);
|
|
395
401
|
}
|
|
396
402
|
function pt() {
|
|
397
|
-
|
|
403
|
+
Jl();
|
|
398
404
|
}
|
|
399
405
|
function fe(a) {
|
|
400
406
|
return ![null, void 0, NaN, 1 / 0, -1 / 0].includes(a);
|
|
@@ -405,22 +411,22 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
|
|
|
405
411
|
}
|
|
406
412
|
const ie = $(() => isNaN(Ge(cl.value)) ? n.value.bottom : n.value.bottom - n.value.height * Ge(cl.value));
|
|
407
413
|
function ka(a) {
|
|
408
|
-
const c = ![null, void 0].includes(l.value.chart.grid.labels.yAxis.scaleMin) && l.value.chart.grid.labels.yAxis.scaleMin > 0 &&
|
|
414
|
+
const c = ![null, void 0].includes(l.value.chart.grid.labels.yAxis.scaleMin) && l.value.chart.grid.labels.yAxis.scaleMin > 0 && Gl.value >= 0 ? n.value.bottom : ie.value;
|
|
409
415
|
return a.value >= 0 ? T(c - a.y <= 0 ? 1e-5 : c - a.y) : T(a.y - ie.value <= 0 ? 1e-5 : a.y - ie.value);
|
|
410
416
|
}
|
|
411
417
|
function _a(a) {
|
|
412
418
|
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
419
|
}
|
|
414
420
|
const Z = $(() => ({
|
|
415
|
-
bar: n.value.width /
|
|
416
|
-
plot: n.value.width /
|
|
417
|
-
line: n.value.width /
|
|
421
|
+
bar: n.value.width / b.value / Ce.value.filter((a) => a.type === "bar").filter((a) => !te.value.includes(a.id)).length,
|
|
422
|
+
plot: n.value.width / b.value,
|
|
423
|
+
line: n.value.width / b.value
|
|
418
424
|
}));
|
|
419
425
|
function ke() {
|
|
420
|
-
return f.value.useIndividualScale && f.value.isStacked ? Z.value.line - n.value.width /
|
|
426
|
+
return f.value.useIndividualScale && f.value.isStacked ? Z.value.line - n.value.width / b.value * 0.1 : Z.value.bar;
|
|
421
427
|
}
|
|
422
|
-
function
|
|
423
|
-
return f.value.useIndividualScale && f.value.isStacked ? a.x + n.value.width /
|
|
428
|
+
function Ll(a) {
|
|
429
|
+
return f.value.useIndividualScale && f.value.isStacked ? a.x + n.value.width / b.value * 0.05 : a.x + Z.value.bar / 2;
|
|
424
430
|
}
|
|
425
431
|
function wa(a) {
|
|
426
432
|
return a.value >= 0 ? a.y : [null, void 0, NaN, 1 / 0, -1 / 0].includes(ie.value) ? n.bottom.value : ie.value;
|
|
@@ -429,7 +435,7 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
|
|
|
429
435
|
return a.value >= 0 ? a.y : [null, void 0, NaN, 1 / 0, -1 / 0].includes(a.zeroPosition) ? 0 : a.zeroPosition;
|
|
430
436
|
}
|
|
431
437
|
function kt(a) {
|
|
432
|
-
|
|
438
|
+
Tl(
|
|
433
439
|
"selectX",
|
|
434
440
|
{
|
|
435
441
|
dataset: pe.value.map((c) => ({
|
|
@@ -444,7 +450,7 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
|
|
|
444
450
|
);
|
|
445
451
|
}
|
|
446
452
|
function _t() {
|
|
447
|
-
return
|
|
453
|
+
return Ie.value.map((a) => ({
|
|
448
454
|
values: a.absoluteValues,
|
|
449
455
|
color: a.color,
|
|
450
456
|
name: a.name,
|
|
@@ -467,21 +473,21 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
|
|
|
467
473
|
if (te.value.includes(a.id))
|
|
468
474
|
te.value = te.value.filter((c) => c !== a.id);
|
|
469
475
|
else {
|
|
470
|
-
if (te.value.length + 1 ===
|
|
476
|
+
if (te.value.length + 1 === Ce.value.length) return;
|
|
471
477
|
te.value.push(a.id);
|
|
472
478
|
}
|
|
473
|
-
|
|
479
|
+
Tl("selectLegend", pe.value.map((c) => ({
|
|
474
480
|
name: c.name,
|
|
475
481
|
values: c.absoluteValues,
|
|
476
482
|
color: c.color,
|
|
477
483
|
type: c.type
|
|
478
|
-
}))),
|
|
484
|
+
}))), Bl.value += 1;
|
|
479
485
|
}
|
|
480
486
|
const St = $(() => {
|
|
481
487
|
const a = l.value.chart.title.text || "Chart visualization", c = l.value.chart.title.subtitle.text || "";
|
|
482
488
|
return `${a}. ${c}`;
|
|
483
489
|
}), La = $(() => ({
|
|
484
|
-
linePlot:
|
|
490
|
+
linePlot: b.value > l.value.line.dot.hideAboveMaxSerieLength
|
|
485
491
|
})), $t = $(() => l.value.chart.userOptions.show && (!l.value.chart.title.show || !l.value.chart.title.text)), Lt = $(() => {
|
|
486
492
|
if (Array.isArray(l.value.chart.highlightArea))
|
|
487
493
|
return l.value.chart.highlightArea.map((c) => {
|
|
@@ -496,20 +502,20 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
|
|
|
496
502
|
to: Math.min(l.value.chart.highlightArea.to, Ve.value - 1)
|
|
497
503
|
};
|
|
498
504
|
return [{ ...a, span: a.from === a.to ? 1 : a.to < a.from ? 0 : a.to - a.from + 1 }];
|
|
499
|
-
}), At = $(() => oa.value ?
|
|
505
|
+
}), At = $(() => oa.value ? me.value.map((a, c) => ({
|
|
500
506
|
...a,
|
|
501
507
|
series: Ye({
|
|
502
508
|
data: a.series,
|
|
503
509
|
threshold: l.value.downsample.threshold
|
|
504
510
|
}),
|
|
505
511
|
id: `uniqueId_${c}`
|
|
506
|
-
})) :
|
|
512
|
+
})) : me.value), Mt = $(() => pe.value.map((a) => {
|
|
507
513
|
const c = a.absoluteValues.map((e) => [void 0, null].includes(e) ? 0 : e);
|
|
508
514
|
return {
|
|
509
515
|
id: a.id,
|
|
510
516
|
name: a.name,
|
|
511
517
|
color: a.color,
|
|
512
|
-
values:
|
|
518
|
+
values: mt(b.value, c)
|
|
513
519
|
};
|
|
514
520
|
})), zt = $(() => ({
|
|
515
521
|
responsiveBreakpoint: l.value.table.responsiveBreakpoint,
|
|
@@ -520,7 +526,7 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
|
|
|
520
526
|
fontFamily: l.value.chart.fontFamily,
|
|
521
527
|
prefix: l.value.chart.labels.prefix,
|
|
522
528
|
suffix: l.value.chart.labels.suffix,
|
|
523
|
-
colNames:
|
|
529
|
+
colNames: J.value.map((a) => a.text),
|
|
524
530
|
thead: {
|
|
525
531
|
backgroundColor: l.value.table.th.backgroundColor,
|
|
526
532
|
color: l.value.table.th.color,
|
|
@@ -534,7 +540,7 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
|
|
|
534
540
|
userOptions: {
|
|
535
541
|
show: !1
|
|
536
542
|
}
|
|
537
|
-
})), G = $(() => l.value.chart.grid.position === "middle" ? 0 : n.value.width /
|
|
543
|
+
})), G = $(() => l.value.chart.grid.position === "middle" ? 0 : n.value.width / b.value / 2), De = $(() => qt(Ie.value.filter((a) => !te.value.includes(a.id)))), p = $(() => {
|
|
538
544
|
const a = Object.groupBy(De.value, (e) => e.scaleLabel), c = {};
|
|
539
545
|
for (const [e, s] of Object.entries(a)) {
|
|
540
546
|
const t = s.flatMap((r) => r.absoluteValues);
|
|
@@ -546,9 +552,9 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
|
|
|
546
552
|
}
|
|
547
553
|
return c;
|
|
548
554
|
}), Ct = $(() => {
|
|
549
|
-
const a =
|
|
550
|
-
return n.value.width /
|
|
551
|
-
}),
|
|
555
|
+
const a = Ce.value.filter((c) => c.type === "bar").filter((c) => !te.value.includes(c.id)).length;
|
|
556
|
+
return n.value.width / b.value / a - Te.value * a;
|
|
557
|
+
}), Te = $(() => Z.value.line * l.value.bar.periodGap), It = $(() => {
|
|
552
558
|
if (!l.value.chart.zoom.minimap.show) return [];
|
|
553
559
|
const a = At.value.filter((t) => !te.value.includes(t.id)), c = Math.max(...a.map((t) => t.series.length)), e = [];
|
|
554
560
|
for (let t = 0; t < c; t += 1)
|
|
@@ -582,23 +588,23 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
|
|
|
582
588
|
return t - C * r;
|
|
583
589
|
};
|
|
584
590
|
return c.map((L) => {
|
|
585
|
-
const { yAxis: { yTop: C, yBottom: Y, label: _ } } = L, N = C != null && Y != null && C !== Y, A = C == null ? null : E(C),
|
|
591
|
+
const { yAxis: { yTop: C, yBottom: Y, label: _ } } = L, N = C != null && Y != null && C !== Y, A = C == null ? null : E(C), K = Y == null ? null : E(Y), oe = xt(_.fontSize);
|
|
586
592
|
oe.font = `${_.fontSize}px sans-serif`;
|
|
587
|
-
const D = oe.measureText(_.text).width, ge = _.fontSize,
|
|
593
|
+
const D = oe.measureText(_.text).width, ge = _.fontSize, Le = (_.position === "start" ? e + _.padding.left : s - _.padding.right) + _.offsetX, de = (A != null && K != null ? Math.min(A, K) : A ?? K) - _.fontSize / 3 + _.offsetY - _.padding.top;
|
|
588
594
|
let P;
|
|
589
|
-
_.textAnchor === "middle" ? P =
|
|
595
|
+
_.textAnchor === "middle" ? P = Le - D / 2 - _.padding.left : _.textAnchor === "end" ? P = Le - D - _.padding.right : P = Le - _.padding.left;
|
|
590
596
|
const H = de - ge * 0.75 - _.padding.top;
|
|
591
597
|
return {
|
|
592
|
-
show: ![A,
|
|
598
|
+
show: ![A, K, H].includes(NaN),
|
|
593
599
|
id: `annotation_y_${ea()}`,
|
|
594
600
|
hasArea: N,
|
|
595
|
-
areaHeight: N ? Math.abs(A -
|
|
601
|
+
areaHeight: N ? Math.abs(A - K) : 0,
|
|
596
602
|
yTop: A,
|
|
597
|
-
yBottom:
|
|
603
|
+
yBottom: K,
|
|
598
604
|
config: L.yAxis,
|
|
599
605
|
x1: e,
|
|
600
606
|
x2: s,
|
|
601
|
-
_text: { x:
|
|
607
|
+
_text: { x: Le, y: de },
|
|
602
608
|
_box: {
|
|
603
609
|
x: P,
|
|
604
610
|
y: H,
|
|
@@ -615,7 +621,7 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
|
|
|
615
621
|
}), Pe = $(() => {
|
|
616
622
|
const a = De.value.filter((o) => ["bar", "line", "plot"].includes(o.type)), c = a.length, e = l.value.chart.grid.labels.yAxis.gap, s = f.value.isStacked, t = s ? e * (c - 1) : 0, r = n.value.height - t;
|
|
617
623
|
return a.filter((o) => o.type === "bar").map((o, B) => {
|
|
618
|
-
|
|
624
|
+
Zl(o);
|
|
619
625
|
const F = p.value[o.scaleLabel].min, E = p.value[o.scaleLabel].max;
|
|
620
626
|
o.absoluteValues.filter((V) => ![null, void 0].includes(V)).map((V) => (V - F) / (E - F));
|
|
621
627
|
const L = {
|
|
@@ -624,55 +630,55 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
|
|
|
624
630
|
}, C = {
|
|
625
631
|
max: o.scaleMax || Math.max(...o.absoluteValues) || 1,
|
|
626
632
|
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 ? bl(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 ? bl(L.valueMin, L.valueMax === L.valueMin ? L.valueMax * _ : L.valueMax, Y) : Ke(L.valueMin, L.valueMax === L.valueMin ? L.valueMax * _ : L.valueMax, Y),
|
|
628
|
-
const Re = f.value.useIndividualScale ? (o.absoluteValues[
|
|
633
|
+
}, Y = o.scaleSteps || l.value.chart.grid.labels.yAxis.commonScaleSteps, _ = 1.0000001, N = l.value.chart.grid.labels.yAxis.useNiceScale ? bl(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 ? bl(L.valueMin, L.valueMax === L.valueMin ? L.valueMax * _ : L.valueMax, Y) : Ke(L.valueMin, L.valueMax === L.valueMin ? L.valueMax * _ : L.valueMax, Y), K = N.min >= 0 ? 0 : Math.abs(N.min), oe = 0, D = N.max + K, ge = A.max + Math.abs(oe), Le = o.stackIndex, tl = c - 1 - Le, de = s ? 1 - o.cumulatedStackRatio : 0, P = s ? r * de + e * tl : 0, H = s ? r * o.stackRatio : n.value.height, Q = n.value.bottom - P - H * K / D, he = n.value.bottom - P - H * oe / ge, ne = Ie.value.filter((V) => V.type === "bar").filter((V) => !te.value.includes(V.id)).length, fl = o.series.map((V, ee) => {
|
|
634
|
+
const Re = f.value.useIndividualScale ? (o.absoluteValues[ee] + K) / D : Ge(V), qe = f.value.useIndividualScale && f.value.isStacked ? n.value.left + n.value.width / b.value * ee : n.value.left + Z.value.bar * B + Z.value.bar * ee * ne - Ct.value / 2 - B * Te.value;
|
|
629
635
|
return {
|
|
630
636
|
yOffset: T(P),
|
|
631
637
|
individualHeight: T(H),
|
|
632
638
|
x: T(qe),
|
|
633
639
|
y: n.value.bottom - P - H * Re,
|
|
634
|
-
value: o.absoluteValues[
|
|
635
|
-
zeroPosition: T(
|
|
640
|
+
value: o.absoluteValues[ee],
|
|
641
|
+
zeroPosition: T(Q),
|
|
636
642
|
individualMax: T(D),
|
|
637
|
-
comment: o.comments && o.comments.slice(S.value.start, S.value.end)[
|
|
643
|
+
comment: o.comments && o.comments.slice(S.value.start, S.value.end)[ee] || ""
|
|
638
644
|
};
|
|
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,
|
|
640
|
-
const Re = f.value.useIndividualScale && f.value.isStacked ? n.value.left + n.value.width /
|
|
645
|
+
}), 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, ee) => {
|
|
646
|
+
const Re = f.value.useIndividualScale && f.value.isStacked ? n.value.left + n.value.width / b.value * ee : n.value.left - Z.value.bar / 2 + Z.value.bar * B + Z.value.bar * ee * Ie.value.filter((qe) => qe.type === "bar").filter((qe) => !te.value.includes(qe.id)).length;
|
|
641
647
|
return {
|
|
642
648
|
yOffset: T(P),
|
|
643
649
|
individualHeight: T(H),
|
|
644
650
|
x: T(Re),
|
|
645
|
-
y: T(n.value.bottom - T(P) - (T(H) * ce[
|
|
646
|
-
value: o.absoluteValues[
|
|
647
|
-
zeroPosition: T(
|
|
651
|
+
y: T(n.value.bottom - T(P) - (T(H) * ce[ee] || 0)),
|
|
652
|
+
value: o.absoluteValues[ee],
|
|
653
|
+
zeroPosition: T(Q),
|
|
648
654
|
individualMax: T(D),
|
|
649
|
-
comment: o.comments && o.comments.slice(S.value.start, S.value.end)[
|
|
655
|
+
comment: o.comments && o.comments.slice(S.value.start, S.value.end)[ee] || ""
|
|
650
656
|
};
|
|
651
657
|
}), W = N.ticks.map((V) => ({
|
|
652
|
-
y: V >= 0 ?
|
|
658
|
+
y: V >= 0 ? Q - H * (V / D) : Q + H * Math.abs(V) / D,
|
|
653
659
|
value: V,
|
|
654
660
|
prefix: o.prefix || l.value.chart.labels.prefix,
|
|
655
661
|
suffix: o.suffix || l.value.chart.labels.suffix,
|
|
656
662
|
datapoint: o
|
|
657
|
-
})),
|
|
658
|
-
const
|
|
663
|
+
})), j = A.ticks.map((V) => {
|
|
664
|
+
const ee = (V - A.min) / (A.max - A.min);
|
|
659
665
|
return {
|
|
660
|
-
y: V >= 0 ? he - H *
|
|
666
|
+
y: V >= 0 ? he - H * ee : he + H * ee,
|
|
661
667
|
value: V,
|
|
662
668
|
prefix: o.prefix || l.value.chart.labels.prefix,
|
|
663
669
|
suffix: o.suffix || l.value.chart.labels.suffix,
|
|
664
670
|
datapoint: o
|
|
665
671
|
};
|
|
666
672
|
});
|
|
667
|
-
return p.value[o.scaleLabel].name = o.name, p.value[o.scaleLabel].groupName = o.scaleLabel, p.value[o.scaleLabel].groupColor = l.value.chart.grid.labels.yAxis.groupColor || o.color, p.value[o.scaleLabel].color = o.color, p.value[o.scaleLabel].scaleYLabels = o.autoScaling ?
|
|
673
|
+
return p.value[o.scaleLabel].name = o.name, p.value[o.scaleLabel].groupName = o.scaleLabel, p.value[o.scaleLabel].groupColor = l.value.chart.grid.labels.yAxis.groupColor || o.color, p.value[o.scaleLabel].color = o.color, p.value[o.scaleLabel].scaleYLabels = o.autoScaling ? j : W, p.value[o.scaleLabel].zeroPosition = o.autoScaling ? he : Q, p.value[o.scaleLabel].individualMax = o.autoScaling ? ge : D, p.value[o.scaleLabel].scaleLabel = o.scaleLabel, p.value[o.scaleLabel].id = o.id, p.value[o.scaleLabel].yOffset = P, p.value[o.scaleLabel].individualHeight = H, p.value[o.scaleLabel].autoScaleYLabels = j, p.value[o.scaleLabel].unique = De.value.filter((V) => V.scaleLabel === o.scaleLabel).length === 1, {
|
|
668
674
|
...o,
|
|
669
675
|
yOffset: P,
|
|
670
|
-
autoScaleYLabels:
|
|
676
|
+
autoScaleYLabels: j,
|
|
671
677
|
individualHeight: H,
|
|
672
|
-
scaleYLabels: o.autoScaling ?
|
|
678
|
+
scaleYLabels: o.autoScaling ? j : W,
|
|
673
679
|
individualScale: o.autoScaling ? A : N,
|
|
674
680
|
individualMax: o.autoScaling ? ge : D,
|
|
675
|
-
zeroPosition: o.autoScaling ? he :
|
|
681
|
+
zeroPosition: o.autoScaling ? he : Q,
|
|
676
682
|
plots: o.autoScaling ? He : fl,
|
|
677
683
|
groupId: p.value[o.scaleLabel].groupId
|
|
678
684
|
};
|
|
@@ -680,7 +686,7 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
|
|
|
680
686
|
}), _e = $(() => {
|
|
681
687
|
const a = De.value.filter((o) => ["bar", "line", "plot"].includes(o.type)), c = a.length, e = l.value.chart.grid.labels.yAxis.gap, s = f.value.isStacked, t = s ? e * (c - 1) : 0, r = n.value.height - t;
|
|
682
688
|
return a.filter((o) => o.type === "line").map((o, B) => {
|
|
683
|
-
|
|
689
|
+
Zl(o);
|
|
684
690
|
const F = p.value[o.scaleLabel].min, E = p.value[o.scaleLabel].max;
|
|
685
691
|
o.absoluteValues.filter((I) => ![null, void 0].includes(I)).map((I) => (I - F) / (E - F));
|
|
686
692
|
const L = {
|
|
@@ -689,8 +695,8 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
|
|
|
689
695
|
}, C = {
|
|
690
696
|
max: o.scaleMax || Math.max(...o.absoluteValues) || 1,
|
|
691
697
|
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 ? bl(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 ? bl(L.valueMin, L.valueMax === L.valueMin ? L.valueMax * _ : L.valueMax, Y) : Ke(L.valueMin, L.valueMax === L.valueMin ? L.valueMax * _ : L.valueMax, Y),
|
|
693
|
-
const Ot = f.value.useIndividualScale ? (o.absoluteValues[se] + Math.abs(
|
|
698
|
+
}, Y = o.scaleSteps || l.value.chart.grid.labels.yAxis.commonScaleSteps, _ = 1.0000001, N = l.value.chart.grid.labels.yAxis.useNiceScale ? bl(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 ? bl(L.valueMin, L.valueMax === L.valueMin ? L.valueMax * _ : L.valueMax, Y) : Ke(L.valueMin, L.valueMax === L.valueMin ? L.valueMax * _ : L.valueMax, Y), K = N.min >= 0 ? 0 : Math.abs(N.min), oe = 0, D = N.max + Math.abs(K), ge = A.max + Math.abs(oe), Le = o.stackIndex, tl = c - 1 - Le, de = s ? 1 - o.cumulatedStackRatio : 0, P = s ? r * de + e * tl : 0, H = s ? r * o.stackRatio : n.value.height, Q = n.value.bottom - P - H * K / D, he = n.value.bottom - P - H * oe / ge, ne = o.series.map((I, se) => {
|
|
699
|
+
const Ot = f.value.useIndividualScale ? (o.absoluteValues[se] + Math.abs(K)) / D : Ge(I);
|
|
694
700
|
return {
|
|
695
701
|
x: T(n.value.left + Z.value.line / 2 + Z.value.line * se),
|
|
696
702
|
y: T(n.value.bottom - P - H * Ot),
|
|
@@ -699,7 +705,7 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
|
|
|
699
705
|
};
|
|
700
706
|
}), fl = o.absoluteValues.map((I) => A.min >= 0 ? (I - Math.abs(A.min)) / (A.max - Math.abs(A.min)) : (I + Math.abs(A.min)) / (A.max + Math.abs(A.min))), ce = o.series.map((I, se) => [void 0, null].includes(o.absoluteValues[se]) ? {
|
|
701
707
|
x: T(n.value.left + Z.value.line / 2 + Z.value.line * se),
|
|
702
|
-
y:
|
|
708
|
+
y: Q,
|
|
703
709
|
value: o.absoluteValues[se],
|
|
704
710
|
comment: o.comments && o.comments.slice(S.value.start, S.value.end)[se] || ""
|
|
705
711
|
} : {
|
|
@@ -707,8 +713,8 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
|
|
|
707
713
|
y: T(n.value.bottom - P - (H * fl[se] || 0)),
|
|
708
714
|
value: o.absoluteValues[se],
|
|
709
715
|
comment: o.comments && o.comments.slice(S.value.start, S.value.end)[se] || ""
|
|
710
|
-
}), He = l.value.line.cutNullValues ? Fa(ne) : Ea(ne.filter((I) => I.value !== null)), W = l.value.line.cutNullValues ? Fa(ce) : Ea(ce.filter((I) => I.value !== null)),
|
|
711
|
-
y: I >= 0 ?
|
|
716
|
+
}), He = l.value.line.cutNullValues ? Fa(ne) : Ea(ne.filter((I) => I.value !== null)), W = l.value.line.cutNullValues ? Fa(ce) : Ea(ce.filter((I) => I.value !== null)), j = l.value.line.cutNullValues ? Wa(ne) : Xa(ne.filter((I) => I.value !== null)), V = l.value.line.cutNullValues ? Wa(ce) : Xa(ce.filter((I) => I.value !== null)), ee = N.ticks.map((I) => ({
|
|
717
|
+
y: I >= 0 ? Q - H * (I / D) : Q + H * Math.abs(I) / D,
|
|
712
718
|
value: I,
|
|
713
719
|
prefix: o.prefix || l.value.chart.labels.prefix,
|
|
714
720
|
suffix: o.suffix || l.value.chart.labels.suffix,
|
|
@@ -723,17 +729,17 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
|
|
|
723
729
|
datapoint: o
|
|
724
730
|
};
|
|
725
731
|
});
|
|
726
|
-
p.value[o.scaleLabel].name = o.name, p.value[o.scaleLabel].groupName = o.scaleLabel, p.value[o.scaleLabel].groupColor = l.value.chart.grid.labels.yAxis.groupColor || o.color, p.value[o.scaleLabel].color = o.color, p.value[o.scaleLabel].scaleYLabels = o.autoScaling ? Re :
|
|
727
|
-
const qe = f.value.useIndividualScale ? o.autoScaling ? he :
|
|
732
|
+
p.value[o.scaleLabel].name = o.name, p.value[o.scaleLabel].groupName = o.scaleLabel, p.value[o.scaleLabel].groupColor = l.value.chart.grid.labels.yAxis.groupColor || o.color, p.value[o.scaleLabel].color = o.color, p.value[o.scaleLabel].scaleYLabels = o.autoScaling ? Re : ee, p.value[o.scaleLabel].zeroPosition = o.autoScaling ? he : Q, p.value[o.scaleLabel].individualMax = o.autoScaling ? ge : D, p.value[o.scaleLabel].scaleLabel = o.scaleLabel, p.value[o.scaleLabel].id = o.id, p.value[o.scaleLabel].yOffset = P, p.value[o.scaleLabel].individualHeight = H, p.value[o.scaleLabel].autoScaleYLabels = Re, p.value[o.scaleLabel].unique = De.value.filter((I) => I.scaleLabel === o.scaleLabel).length === 1;
|
|
733
|
+
const qe = f.value.useIndividualScale ? o.autoScaling ? he : Q : ie.value, gl = Math.max(Math.max(o.autoScaling ? he : ee.at(-1) ? ee.at(-1).y : 0, n.value.top), qe);
|
|
728
734
|
return {
|
|
729
735
|
...o,
|
|
730
736
|
yOffset: P,
|
|
731
737
|
autoScaleYLabels: Re,
|
|
732
738
|
individualHeight: H,
|
|
733
|
-
scaleYLabels: o.autoScaling ? Re :
|
|
739
|
+
scaleYLabels: o.autoScaling ? Re : ee,
|
|
734
740
|
individualScale: o.autoScaling ? A : N,
|
|
735
741
|
individualMax: o.autoScaling ? ge : D,
|
|
736
|
-
zeroPosition: o.autoScaling ? he :
|
|
742
|
+
zeroPosition: o.autoScaling ? he : Q,
|
|
737
743
|
curve: o.autoScaling ? W : He,
|
|
738
744
|
plots: o.autoScaling ? ce : ne,
|
|
739
745
|
area: o.useArea ? f.value.useIndividualScale ? l.value.line.cutNullValues ? Ga(
|
|
@@ -748,14 +754,14 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
|
|
|
748
754
|
gl,
|
|
749
755
|
l.value.line.cutNullValues
|
|
750
756
|
) : [],
|
|
751
|
-
straight: o.autoScaling ? V :
|
|
757
|
+
straight: o.autoScaling ? V : j,
|
|
752
758
|
groupId: p.value[o.scaleLabel].groupId
|
|
753
759
|
};
|
|
754
760
|
});
|
|
755
|
-
}),
|
|
761
|
+
}), $e = $(() => {
|
|
756
762
|
const a = De.value.filter((o) => ["bar", "line", "plot"].includes(o.type)), c = a.length, e = l.value.chart.grid.labels.yAxis.gap, s = f.value.isStacked, t = s ? e * (c - 1) : 0, r = n.value.height - t;
|
|
757
763
|
return a.filter((o) => o.type === "plot").map((o) => {
|
|
758
|
-
|
|
764
|
+
Zl(o);
|
|
759
765
|
const B = p.value[o.scaleLabel].min, F = p.value[o.scaleLabel].max;
|
|
760
766
|
o.absoluteValues.filter((W) => ![null, void 0].includes(W)).map((W) => (W - B) / (F - B));
|
|
761
767
|
const E = {
|
|
@@ -764,19 +770,19 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
|
|
|
764
770
|
}, L = {
|
|
765
771
|
max: o.scaleMax || Math.max(...o.absoluteValues) || 1,
|
|
766
772
|
min: o.scaleMin || Math.min(...o.absoluteValues) > 0 ? 0 : Math.min(...o.absoluteValues)
|
|
767
|
-
}, C = o.scaleSteps || l.value.chart.grid.labels.yAxis.commonScaleSteps, Y = 1.0000001, _ = Ke(L.min, L.max === L.min ? L.max * Y : L.max, C), N = Ke(E.valueMin, E.valueMax === E.valueMin ? E.valueMax * Y : E.valueMax, C), A = _.min >= 0 ? 0 : Math.abs(_.min),
|
|
768
|
-
const V = f.value.useIndividualScale ? (o.absoluteValues[
|
|
773
|
+
}, C = o.scaleSteps || l.value.chart.grid.labels.yAxis.commonScaleSteps, Y = 1.0000001, _ = Ke(L.min, L.max === L.min ? L.max * Y : L.max, C), N = Ke(E.valueMin, E.valueMax === E.valueMin ? E.valueMax * Y : E.valueMax, C), A = _.min >= 0 ? 0 : Math.abs(_.min), K = 0, oe = _.max + A, D = N.max + Math.abs(K), ge = o.stackIndex, Le = c - 1 - ge, tl = s ? 1 - o.cumulatedStackRatio : 0, de = s ? r * tl + e * Le : 0, P = s ? r * o.stackRatio : n.value.height, H = n.value.bottom - de - P * A / oe, Q = n.value.bottom - de - P * K / D, he = o.series.map((W, j) => {
|
|
774
|
+
const V = f.value.useIndividualScale ? (o.absoluteValues[j] + Math.abs(A)) / oe : Ge(W);
|
|
769
775
|
return {
|
|
770
|
-
x: T(n.value.left + Z.value.plot / 2 + Z.value.plot *
|
|
776
|
+
x: T(n.value.left + Z.value.plot / 2 + Z.value.plot * j),
|
|
771
777
|
y: T(n.value.bottom - de - P * V),
|
|
772
|
-
value: o.absoluteValues[
|
|
773
|
-
comment: o.comments && o.comments.slice(S.value.start, S.value.end)[
|
|
778
|
+
value: o.absoluteValues[j],
|
|
779
|
+
comment: o.comments && o.comments.slice(S.value.start, S.value.end)[j] || ""
|
|
774
780
|
};
|
|
775
|
-
}), ne = o.absoluteValues.map((W) => N.min >= 0 ? (W - Math.abs(N.min)) / (N.max - Math.abs(N.min)) : (W + Math.abs(N.min)) / (N.max + Math.abs(N.min))), fl = o.series.map((W,
|
|
776
|
-
x: T(n.value.left + Z.value.plot / 2 + Z.value.plot *
|
|
777
|
-
y: T(n.value.bottom - de - (P * ne[
|
|
778
|
-
value: o.absoluteValues[
|
|
779
|
-
comment: o.comments && o.comments.slice(S.value.start, S.value.end)[
|
|
781
|
+
}), ne = o.absoluteValues.map((W) => N.min >= 0 ? (W - Math.abs(N.min)) / (N.max - Math.abs(N.min)) : (W + Math.abs(N.min)) / (N.max + Math.abs(N.min))), fl = o.series.map((W, j) => ({
|
|
782
|
+
x: T(n.value.left + Z.value.plot / 2 + Z.value.plot * j),
|
|
783
|
+
y: T(n.value.bottom - de - (P * ne[j] || 0)),
|
|
784
|
+
value: o.absoluteValues[j],
|
|
785
|
+
comment: o.comments && o.comments.slice(S.value.start, S.value.end)[j] || ""
|
|
780
786
|
})), ce = _.ticks.map((W) => ({
|
|
781
787
|
y: W >= 0 ? H - P * (W / oe) : H + P * Math.abs(W) / oe,
|
|
782
788
|
value: W,
|
|
@@ -784,16 +790,16 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
|
|
|
784
790
|
suffix: o.suffix || l.value.chart.labels.suffix,
|
|
785
791
|
datapoint: o
|
|
786
792
|
})), He = N.ticks.map((W) => {
|
|
787
|
-
const
|
|
793
|
+
const j = (W - N.min) / (N.max - N.min);
|
|
788
794
|
return {
|
|
789
|
-
y: W >= 0 ?
|
|
795
|
+
y: W >= 0 ? Q - P * j : Q + P * j,
|
|
790
796
|
value: W,
|
|
791
797
|
prefix: o.prefix || l.value.chart.labels.prefix,
|
|
792
798
|
suffix: o.suffix || l.value.chart.labels.suffix,
|
|
793
799
|
datapoint: o
|
|
794
800
|
};
|
|
795
801
|
});
|
|
796
|
-
return p.value[o.scaleLabel].name = o.name, p.value[o.scaleLabel].groupName = o.scaleLabel, p.value[o.scaleLabel].groupColor = l.value.chart.grid.labels.yAxis.groupColor || o.color, p.value[o.scaleLabel].color = o.color, p.value[o.scaleLabel].scaleYLabels = o.autoScaling ? He : ce, p.value[o.scaleLabel].zeroPosition = o.autoScaling ?
|
|
802
|
+
return p.value[o.scaleLabel].name = o.name, p.value[o.scaleLabel].groupName = o.scaleLabel, p.value[o.scaleLabel].groupColor = l.value.chart.grid.labels.yAxis.groupColor || o.color, p.value[o.scaleLabel].color = o.color, p.value[o.scaleLabel].scaleYLabels = o.autoScaling ? He : ce, p.value[o.scaleLabel].zeroPosition = o.autoScaling ? Q : H, p.value[o.scaleLabel].individualMax = o.autoScaling ? D : oe, p.value[o.scaleLabel].scaleLabel = o.scaleLabel, p.value[o.scaleLabel].id = o.id, p.value[o.scaleLabel].yOffset = de, p.value[o.scaleLabel].individualHeight = P, p.value[o.scaleLabel].autoScaleYLabels = He, p.value[o.scaleLabel].unique = De.value.filter((W) => W.scaleLabel === o.scaleLabel).length === 1, {
|
|
797
803
|
...o,
|
|
798
804
|
yOffset: de,
|
|
799
805
|
autoScaleYLabels: He,
|
|
@@ -801,7 +807,7 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
|
|
|
801
807
|
scaleYLabels: o.autoScaling ? He : ce,
|
|
802
808
|
individualScale: o.autoScaling ? N : _,
|
|
803
809
|
individualMax: o.autoScaling ? D : oe,
|
|
804
|
-
zeroPosition: o.autoScaling ?
|
|
810
|
+
zeroPosition: o.autoScaling ? Q : H,
|
|
805
811
|
plots: o.autoScaling ? fl : he,
|
|
806
812
|
groupId: p.value[o.scaleLabel].groupId
|
|
807
813
|
};
|
|
@@ -830,7 +836,7 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
|
|
|
830
836
|
id: r.id,
|
|
831
837
|
yOffset: r.yOffset || 0,
|
|
832
838
|
individualHeight: r.individualHeight || n.value.height
|
|
833
|
-
})), e =
|
|
839
|
+
})), e = $e.value.map((r) => ({
|
|
834
840
|
name: r.name,
|
|
835
841
|
color: r.color,
|
|
836
842
|
scale: r.individualScale,
|
|
@@ -872,41 +878,41 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
|
|
|
872
878
|
}), za = $(() => ({
|
|
873
879
|
datapoint: vl.value,
|
|
874
880
|
seriesIndex: k.value,
|
|
875
|
-
series:
|
|
881
|
+
series: Ie.value,
|
|
876
882
|
bars: Pe.value,
|
|
877
883
|
lines: _e.value,
|
|
878
|
-
plots:
|
|
884
|
+
plots: $e.value,
|
|
879
885
|
config: l.value
|
|
880
886
|
})), Tt = $(() => {
|
|
881
|
-
let a = "", c = vl.value.map((t) => t.value).filter((t) =>
|
|
882
|
-
const e =
|
|
887
|
+
let a = "", c = vl.value.map((t) => t.value).filter((t) => Ml(t) && t !== null).reduce((t, r) => Math.abs(t) + Math.abs(r), 0);
|
|
888
|
+
const e = J.value[k.value], s = l.value.chart.tooltip.customFormat;
|
|
883
889
|
return Zt(s) && Jt(() => s({
|
|
884
890
|
absoluteIndex: k.value + S.value.start,
|
|
885
891
|
seriesIndex: k.value,
|
|
886
892
|
datapoint: vl.value,
|
|
887
|
-
series:
|
|
893
|
+
series: Ie.value,
|
|
888
894
|
bars: Pe.value,
|
|
889
895
|
lines: _e.value,
|
|
890
|
-
plots:
|
|
896
|
+
plots: $e.value,
|
|
891
897
|
config: l.value
|
|
892
898
|
})) ? s({
|
|
893
899
|
absoluteIndex: k.value + S.value.start,
|
|
894
900
|
seriesIndex: k.value,
|
|
895
901
|
datapoint: vl.value,
|
|
896
|
-
series:
|
|
902
|
+
series: Ie.value,
|
|
897
903
|
bars: Pe.value,
|
|
898
904
|
lines: _e.value,
|
|
899
|
-
plots:
|
|
905
|
+
plots: $e.value,
|
|
900
906
|
config: l.value
|
|
901
907
|
}) : (e && e.text && l.value.chart.tooltip.showTimeLabel && (a += `<div style="padding-bottom: 6px; margin-bottom: 4px; border-bottom: 1px solid ${l.value.chart.tooltip.borderColor}; width:100%">${e.text}</div>`), vl.value.forEach((t) => {
|
|
902
|
-
if (
|
|
908
|
+
if (Ml(t.value)) {
|
|
903
909
|
let r = "", o = "";
|
|
904
910
|
switch (il.value[t.type]) {
|
|
905
911
|
case "bar":
|
|
906
912
|
r = `<svg viewBox="0 0 40 40" height="14" width="14">${ta.pattern ? `<rect x="0" y="0" rx="1" stroke="none" height="40" width="40" fill="${t.color}" />` : ""}<rect x="0" y="0" rx="1" stroke="none" height="40" width="40" fill="${ta.pattern ? `url(#pattern_${U.value}_${t.slotAbsoluteIndex}` : t.color}" /></svg>`;
|
|
907
913
|
break;
|
|
908
914
|
case "line":
|
|
909
|
-
!t.shape || !["star", "triangle", "square", "diamond", "pentagon", "hexagon"].includes(t.shape) ? o = `<circle cx="10" cy="8" r="4" stroke="${l.value.chart.tooltip.backgroundColor}" stroke-width="0.5" fill="${t.color}" />` : t.shape === "triangle" ? o = `<path d="${
|
|
915
|
+
!t.shape || !["star", "triangle", "square", "diamond", "pentagon", "hexagon"].includes(t.shape) ? o = `<circle cx="10" cy="8" r="4" stroke="${l.value.chart.tooltip.backgroundColor}" stroke-width="0.5" fill="${t.color}" />` : t.shape === "triangle" ? o = `<path d="${Me({ plot: { x: 10, y: 8 }, radius: 4, sides: 3, rotation: 0.52 }).path}" fill="${t.color}" stroke="${l.value.chart.tooltip.backgroundColor}" stroke-width="0.5" />` : t.shape === "square" ? o = `<path d="${Me({ plot: { x: 10, y: 8 }, radius: 4, sides: 4, rotation: 0.8 }).path}" fill="${t.color}" stroke="${l.value.chart.tooltip.backgroundColor}" stroke-width="0.5" />` : t.shape === "diamond" ? o = `<path d="${Me({ plot: { x: 10, y: 8 }, radius: 4, sides: 4, rotation: 0 }).path}" fill="${t.color}" stroke="${l.value.chart.tooltip.backgroundColor}" stroke-width="0.5" />` : t.shape === "pentagon" ? o = `<path d="${Me({ plot: { x: 10, y: 8 }, radius: 4, sides: 5, rotation: 0.95 }).path}" fill="${t.color}" stroke="${l.value.chart.tooltip.backgroundColor}" stroke-width="0.5" />` : t.shape === "hexagon" ? o = `<path d="${Me({ plot: { x: 10, y: 8 }, radius: 4, sides: 6, rotation: 0 }).path}" fill="${t.color}" stroke="${l.value.chart.tooltip.backgroundColor}" stroke-width="0.5" />` : t.shape === "star" && (o = `<polygon stroke="${l.value.chart.tooltip.backgroundColor}" stroke-width="0.5" fill="${t.color}" points="${qa({ plot: { x: 10, y: 8 }, radius: 4 })}" />`), r = `<svg viewBox="0 0 20 12" height="14" width="20"><rect rx="1.5" x="0" y="6.5" stroke="${l.value.chart.tooltip.backgroundColor}" stroke-width="0.5" height="3" width="20" fill="${t.color}" />${o}</svg>`;
|
|
910
916
|
break;
|
|
911
917
|
case "plot":
|
|
912
918
|
if (!t.shape || !["star", "triangle", "square", "diamond", "pentagon", "hexagon"].includes(t.shape)) {
|
|
@@ -918,23 +924,23 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
|
|
|
918
924
|
break;
|
|
919
925
|
}
|
|
920
926
|
if (t.shape === "triangle") {
|
|
921
|
-
r = `<svg viewBox="0 0 12 12" height="14" width="14"><path d="${
|
|
927
|
+
r = `<svg viewBox="0 0 12 12" height="14" width="14"><path d="${Me({ plot: { x: 6, y: 6 }, radius: 6, sides: 3, rotation: 0.52 }).path}" fill="${t.color}" stroke="${l.value.chart.tooltip.backgroundColor}" stroke-width="1" /></svg>`;
|
|
922
928
|
break;
|
|
923
929
|
}
|
|
924
930
|
if (t.shape === "square") {
|
|
925
|
-
r = `<svg viewBox="0 0 12 12" height="14" width="14"><path d="${
|
|
931
|
+
r = `<svg viewBox="0 0 12 12" height="14" width="14"><path d="${Me({ plot: { x: 6, y: 6 }, radius: 6, sides: 4, rotation: 0.8 }).path}" fill="${t.color}" stroke="${l.value.chart.tooltip.backgroundColor}" stroke-width="1" /></svg>`;
|
|
926
932
|
break;
|
|
927
933
|
}
|
|
928
934
|
if (t.shape === "diamond") {
|
|
929
|
-
r = `<svg viewBox="0 0 12 12" height="14" width="14"><path d="${
|
|
935
|
+
r = `<svg viewBox="0 0 12 12" height="14" width="14"><path d="${Me({ plot: { x: 6, y: 6 }, radius: 5, sides: 4, rotation: 0 }).path}" fill="${t.color}" stroke="${l.value.chart.tooltip.backgroundColor}" stroke-width="1" /></svg>`;
|
|
930
936
|
break;
|
|
931
937
|
}
|
|
932
938
|
if (t.shape === "pentagon") {
|
|
933
|
-
r = `<svg viewBox="0 0 12 12" height="14" width="14"><path d="${
|
|
939
|
+
r = `<svg viewBox="0 0 12 12" height="14" width="14"><path d="${Me({ plot: { x: 6, y: 6 }, radius: 5, sides: 5, rotation: 0.95 }).path}" fill="${t.color}" stroke="${l.value.chart.tooltip.backgroundColor}" stroke-width="1" /></svg>`;
|
|
934
940
|
break;
|
|
935
941
|
}
|
|
936
942
|
if (t.shape === "hexagon") {
|
|
937
|
-
r = `<svg viewBox="0 0 12 12" height="14" width="14"><path d="${
|
|
943
|
+
r = `<svg viewBox="0 0 12 12" height="14" width="14"><path d="${Me({ plot: { x: 6, y: 6 }, radius: 5, sides: 6, rotation: 0 }).path}" fill="${t.color}" stroke="${l.value.chart.tooltip.backgroundColor}" stroke-width="1" /></svg>`;
|
|
938
944
|
break;
|
|
939
945
|
}
|
|
940
946
|
}
|
|
@@ -956,28 +962,28 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
|
|
|
956
962
|
}
|
|
957
963
|
}), `<div style="border-radius:4px;padding:12px;font-variant-numeric: tabular-nums;color:${l.value.chart.tooltip.color}">${a}</div>`);
|
|
958
964
|
}), Ca = $(() => {
|
|
959
|
-
if (
|
|
965
|
+
if (Ce.value.length === 0) return { head: [], body: [], config: {}, columnNames: [] };
|
|
960
966
|
const a = pe.value.map((e) => ({
|
|
961
967
|
label: e.name,
|
|
962
968
|
color: e.color,
|
|
963
969
|
type: e.type
|
|
964
970
|
})), c = [];
|
|
965
|
-
return
|
|
971
|
+
return J.value.forEach((e, s) => {
|
|
966
972
|
const t = [e.text];
|
|
967
973
|
pe.value.forEach((r) => {
|
|
968
974
|
t.push(fe(r.absoluteValues[s]) ? Number(r.absoluteValues[s].toFixed(l.value.table.rounding)) : "");
|
|
969
975
|
}), c.push(t);
|
|
970
976
|
}), { head: a, body: c };
|
|
971
|
-
}),
|
|
977
|
+
}), Al = $(() => {
|
|
972
978
|
const a = l.value.table.showSum;
|
|
973
979
|
let c = [""].concat(pe.value.map((r) => r.name));
|
|
974
980
|
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
981
|
let e = [];
|
|
976
|
-
for (let r = 0; r <
|
|
982
|
+
for (let r = 0; r < b.value; r += 1) {
|
|
977
983
|
const o = pe.value.map((B) => B.absoluteValues[r] ?? 0).reduce((B, F) => B + F, 0);
|
|
978
984
|
e.push(
|
|
979
985
|
[
|
|
980
|
-
|
|
986
|
+
J.value[r].text ?? "-"
|
|
981
987
|
].concat(pe.value.map(
|
|
982
988
|
(B) => re(
|
|
983
989
|
B.type === "line" ? l.value.line.labels.formatter : B.type === "bar" ? l.value.bar.labels.formatter : l.value.plot.labels.formatter,
|
|
@@ -1028,7 +1034,7 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
|
|
|
1028
1034
|
}
|
|
1029
1035
|
function Ha() {
|
|
1030
1036
|
if (!l.value.responsiveProportionalSizing) {
|
|
1031
|
-
x.value.dataLabels = l.value.chart.grid.labels.fontSize, x.value.yAxis = l.value.chart.grid.labels.axis.fontSize, x.value.xAxis = l.value.chart.grid.labels.xAxisLabels.fontSize, x.value.plotLabels = l.value.chart.labels.fontSize,
|
|
1037
|
+
x.value.dataLabels = l.value.chart.grid.labels.fontSize, x.value.yAxis = l.value.chart.grid.labels.axis.fontSize, x.value.xAxis = l.value.chart.grid.labels.xAxisLabels.fontSize, x.value.plotLabels = l.value.chart.labels.fontSize, Se.value.plot = l.value.plot.radius, Se.value.line = l.value.line.radius;
|
|
1032
1038
|
return;
|
|
1033
1039
|
}
|
|
1034
1040
|
x.value.dataLabels = ol({
|
|
@@ -1055,13 +1061,13 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
|
|
|
1055
1061
|
source: l.value.chart.labels.fontSize,
|
|
1056
1062
|
threshold: 10,
|
|
1057
1063
|
fallback: 10
|
|
1058
|
-
}),
|
|
1064
|
+
}), Se.value.plot = ol({
|
|
1059
1065
|
relator: ae.value,
|
|
1060
1066
|
adjuster: 800,
|
|
1061
1067
|
source: l.value.plot.radius,
|
|
1062
1068
|
threshold: 1,
|
|
1063
1069
|
fallback: 1
|
|
1064
|
-
}),
|
|
1070
|
+
}), Se.value.line = ol({
|
|
1065
1071
|
relator: ae.value,
|
|
1066
1072
|
adjuster: 800,
|
|
1067
1073
|
source: l.value.line.radius,
|
|
@@ -1071,25 +1077,25 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
|
|
|
1071
1077
|
}
|
|
1072
1078
|
const hl = $(() => !!l.value.debug);
|
|
1073
1079
|
function Ra() {
|
|
1074
|
-
Ua(
|
|
1080
|
+
Ua(m.dataset) ? (la({
|
|
1075
1081
|
componentName: "VueUiXy",
|
|
1076
1082
|
type: "dataset",
|
|
1077
1083
|
debug: hl.value
|
|
1078
|
-
}),
|
|
1084
|
+
}), _l.value = !0) : m.dataset.forEach((c, e) => {
|
|
1079
1085
|
[null, void 0].includes(c.name) && (la({
|
|
1080
1086
|
componentName: "VueUiXy",
|
|
1081
1087
|
type: "datasetSerieAttribute",
|
|
1082
1088
|
property: "name (string)",
|
|
1083
1089
|
index: e,
|
|
1084
1090
|
debug: hl.value
|
|
1085
|
-
}),
|
|
1086
|
-
}), hl.value &&
|
|
1091
|
+
}), _l.value = !0);
|
|
1092
|
+
}), hl.value && m.dataset.forEach((c) => {
|
|
1087
1093
|
c.series.forEach((e, s) => {
|
|
1088
|
-
|
|
1094
|
+
Ml(e) || console.warn(`VueUiXy has detected an unsafe value in your dataset:
|
|
1089
1095
|
-----> The serie '${c.name}' contains the value '${e}' at index ${s}.
|
|
1090
1096
|
'${e}' was converted to null to allow the chart to display.`);
|
|
1091
1097
|
});
|
|
1092
|
-
}), Ua(
|
|
1098
|
+
}), Ua(m.dataset) || (_l.value = l.value.loading), na.value = l.value.chart.userOptions.showOnChartHover, Yl.value = l.value.chart.userOptions.keepStateOnChartLeave, pl.value = !l.value.chart.userOptions.showOnChartHover, f.value = {
|
|
1093
1099
|
dataLabels: {
|
|
1094
1100
|
show: !0
|
|
1095
1101
|
},
|
|
@@ -1101,55 +1107,55 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
|
|
|
1101
1107
|
const a = 12;
|
|
1102
1108
|
if (l.value.responsive) {
|
|
1103
1109
|
const e = je.value.parentNode;
|
|
1104
|
-
We.value && (We.value.unobserve(
|
|
1110
|
+
We.value && (We.value.unobserve(Hl.value), We.value.disconnect());
|
|
1105
1111
|
const { height: s, width: t } = e.getBoundingClientRect();
|
|
1106
1112
|
let r = null, o = 0;
|
|
1107
1113
|
l.value.chart.title.show && sl.value && (r = sl.value, o = r.getBoundingClientRect().height);
|
|
1108
1114
|
let B = null, F = 0;
|
|
1109
|
-
l.value.chart.zoom.show && Ve.value > 6 &&
|
|
1115
|
+
l.value.chart.zoom.show && Ve.value > 6 && El.value && Ne.value && Ne.value.$el && (B = Ne.value.$el, F = B.getBoundingClientRect().height);
|
|
1110
1116
|
let E = null, L = 0;
|
|
1111
1117
|
l.value.chart.legend.show && el.value && (E = el.value, L = E.getBoundingClientRect().height);
|
|
1112
1118
|
let C = 0;
|
|
1113
1119
|
ul.value && (C = ul.value.getBoundingClientRect().height);
|
|
1114
1120
|
let Y = 0;
|
|
1115
|
-
rl.value && (Y = rl.value.getBoundingClientRect().height), ve.value = s - o - L - F - C - Y - a, ae.value = t,
|
|
1121
|
+
rl.value && (Y = rl.value.getBoundingClientRect().height), ve.value = s - o - L - F - C - Y - a, ae.value = t, ml.value = `0 0 ${ae.value < 0 ? 10 : ae.value} ${ve.value < 0 ? 10 : ve.value}`, Ha();
|
|
1116
1122
|
const _ = new ResizeObserver((N) => {
|
|
1117
1123
|
for (const A of N)
|
|
1118
|
-
l.value.chart.title.show && sl.value ? o = sl.value.getBoundingClientRect().height : o = 0,
|
|
1119
|
-
ve.value = A.contentRect.height - o - L - F - C - Y - a, ae.value = A.contentBoxSize[0].inlineSize,
|
|
1124
|
+
l.value.chart.title.show && sl.value ? o = sl.value.getBoundingClientRect().height : o = 0, Ne.value && Ne.value.$el ? F = Ne.value.$el.getBoundingClientRect().height : F = 0, el.value ? L = el.value.getBoundingClientRect().height : L = 0, ul.value ? C = ul.value.getBoundingClientRect().height : C = 0, rl.value ? Y = rl.value.getBoundingClientRect().height : Y = 0, requestAnimationFrame(() => {
|
|
1125
|
+
ve.value = A.contentRect.height - o - L - F - C - Y - a, ae.value = A.contentBoxSize[0].inlineSize, ml.value = `0 0 ${ae.value < 0 ? 10 : ae.value} ${ve.value < 0 ? 10 : ve.value}`, Ha();
|
|
1120
1126
|
});
|
|
1121
1127
|
});
|
|
1122
|
-
We.value = _,
|
|
1128
|
+
We.value = _, Hl.value = e, _.observe(e);
|
|
1123
1129
|
} else
|
|
1124
|
-
ve.value = l.value.chart.height, ae.value = l.value.chart.width, x.value.dataLabels = l.value.chart.grid.labels.fontSize, x.value.yAxis = l.value.chart.grid.labels.axis.fontSize, x.value.xAxis = l.value.chart.grid.labels.xAxisLabels.fontSize, x.value.plotLabels = l.value.chart.labels.fontSize,
|
|
1130
|
+
ve.value = l.value.chart.height, ae.value = l.value.chart.width, x.value.dataLabels = l.value.chart.grid.labels.fontSize, x.value.yAxis = l.value.chart.grid.labels.axis.fontSize, x.value.xAxis = l.value.chart.grid.labels.xAxisLabels.fontSize, x.value.plotLabels = l.value.chart.labels.fontSize, Se.value.plot = l.value.plot.radius, Se.value.line = l.value.line.radius, ml.value = `0 0 ${ae.value} ${ve.value}`;
|
|
1125
1131
|
}
|
|
1126
1132
|
return Ba(() => {
|
|
1127
|
-
Ra(),
|
|
1133
|
+
Ra(), Jl(), document.addEventListener("mousemove", (a) => {
|
|
1128
1134
|
rt.value = {
|
|
1129
1135
|
x: a.clientX,
|
|
1130
1136
|
y: a.clientY
|
|
1131
1137
|
};
|
|
1132
1138
|
}), document.addEventListener("scroll", xa);
|
|
1133
1139
|
}), Ya(() => {
|
|
1134
|
-
document.removeEventListener("scroll", xa), We.value && (We.value.unobserve(
|
|
1140
|
+
document.removeEventListener("scroll", xa), We.value && (We.value.unobserve(Hl.value), We.value.disconnect());
|
|
1135
1141
|
}), oo({
|
|
1136
1142
|
timeLabelsEls: ll,
|
|
1137
|
-
timeLabels:
|
|
1143
|
+
timeLabels: J,
|
|
1138
1144
|
slicer: S,
|
|
1139
1145
|
configRef: l,
|
|
1140
1146
|
rotationPath: ["chart", "grid", "labels", "xAxisLabels", "rotation"],
|
|
1141
1147
|
autoRotatePath: ["chart", "grid", "labels", "xAxisLabels", "autoRotate"],
|
|
1142
1148
|
isAutoSize: ct
|
|
1143
|
-
}),
|
|
1144
|
-
Array.isArray(a) && a.length > 0 && (
|
|
1149
|
+
}), Kl(() => m.dataset, (a) => {
|
|
1150
|
+
Array.isArray(a) && a.length > 0 && (_l.value = !1), Ve.value = Math.max(...me.value.map((c) => Ye({
|
|
1145
1151
|
data: c.series,
|
|
1146
1152
|
threshold: l.value.downsample.threshold
|
|
1147
1153
|
}).length)), S.value = {
|
|
1148
1154
|
start: 0,
|
|
1149
1155
|
end: Ve.value
|
|
1150
|
-
},
|
|
1151
|
-
}, { deep: !0 }),
|
|
1152
|
-
|
|
1156
|
+
}, Rl.value += 1, Bl.value += 1;
|
|
1157
|
+
}, { deep: !0 }), Kl(() => m.config, (a) => {
|
|
1158
|
+
Wl.value || (l.value = Fl()), Ra(), ia.value += 1, ra.value += 1, f.value = {
|
|
1153
1159
|
dataLabels: {
|
|
1154
1160
|
show: !0
|
|
1155
1161
|
},
|
|
@@ -1158,7 +1164,7 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
|
|
|
1158
1164
|
isStacked: l.value.chart.grid.labels.yAxis.stacked,
|
|
1159
1165
|
useIndividualScale: l.value.chart.grid.labels.yAxis.useIndividualScale
|
|
1160
1166
|
};
|
|
1161
|
-
}, { deep: !0 }),
|
|
1167
|
+
}, { deep: !0 }), Kl(l, () => {
|
|
1162
1168
|
f.value = {
|
|
1163
1169
|
dataLabels: {
|
|
1164
1170
|
show: !0
|
|
@@ -1178,7 +1184,7 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
|
|
|
1178
1184
|
toggleTable: Oa,
|
|
1179
1185
|
toggleLabels: Na,
|
|
1180
1186
|
toggleTooltip: Va,
|
|
1181
|
-
toggleAnnotator:
|
|
1187
|
+
toggleAnnotator: Ul,
|
|
1182
1188
|
toggleFullscreen: Pa
|
|
1183
1189
|
}), (a, c) => (u(), i("div", {
|
|
1184
1190
|
id: `vue-ui-xy_${U.value}`,
|
|
@@ -1186,16 +1192,16 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
|
|
|
1186
1192
|
ref_key: "chart",
|
|
1187
1193
|
ref: je,
|
|
1188
1194
|
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] = () =>
|
|
1195
|
+
onMouseenter: c[7] || (c[7] = () => ba(!0)),
|
|
1196
|
+
onMouseleave: c[8] || (c[8] = () => ba(!1))
|
|
1191
1197
|
}, [
|
|
1192
|
-
l.value.chart.userOptions.buttons.annotator &&
|
|
1198
|
+
l.value.chart.userOptions.buttons.annotator && be.value ? (u(), Ae(v(ot), {
|
|
1193
1199
|
key: 0,
|
|
1194
|
-
svgRef:
|
|
1200
|
+
svgRef: be.value,
|
|
1195
1201
|
backgroundColor: l.value.chart.backgroundColor,
|
|
1196
1202
|
color: l.value.chart.color,
|
|
1197
|
-
active:
|
|
1198
|
-
onClose:
|
|
1203
|
+
active: yl.value,
|
|
1204
|
+
onClose: Ul
|
|
1199
1205
|
}, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : d("", !0),
|
|
1200
1206
|
$t.value ? (u(), i("div", {
|
|
1201
1207
|
key: 1,
|
|
@@ -1211,7 +1217,7 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
|
|
|
1211
1217
|
class: "vue-ui-xy-title",
|
|
1212
1218
|
style: z(`font-family:${l.value.chart.fontFamily}`)
|
|
1213
1219
|
}, [
|
|
1214
|
-
(u(),
|
|
1220
|
+
(u(), Ae(uo, {
|
|
1215
1221
|
key: `title_${ia.value}`,
|
|
1216
1222
|
config: {
|
|
1217
1223
|
title: {
|
|
@@ -1225,12 +1231,12 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
|
|
|
1225
1231
|
}
|
|
1226
1232
|
}, null, 8, ["config"]))
|
|
1227
1233
|
], 4)) : d("", !0),
|
|
1228
|
-
l.value.chart.userOptions.show && (
|
|
1234
|
+
l.value.chart.userOptions.show && (Yl.value || pl.value) ? (u(), Ae(v(ja), {
|
|
1229
1235
|
ref: "defails",
|
|
1230
1236
|
key: `user_options_${ua.value}`,
|
|
1231
1237
|
backgroundColor: l.value.chart.backgroundColor,
|
|
1232
1238
|
color: l.value.chart.color,
|
|
1233
|
-
isPrinting: v(
|
|
1239
|
+
isPrinting: v(Xl),
|
|
1234
1240
|
isImaging: v(ca),
|
|
1235
1241
|
uid: U.value,
|
|
1236
1242
|
hasTooltip: l.value.chart.userOptions.buttons.tooltip && l.value.chart.tooltip.show,
|
|
@@ -1239,7 +1245,7 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
|
|
|
1239
1245
|
hasImg: l.value.chart.userOptions.buttons.img,
|
|
1240
1246
|
hasLabel: l.value.chart.userOptions.buttons.labels,
|
|
1241
1247
|
hasTable: l.value.chart.userOptions.buttons.table,
|
|
1242
|
-
hasStack:
|
|
1248
|
+
hasStack: Il.dataset.length > 1 && l.value.chart.userOptions.buttons.stack,
|
|
1243
1249
|
hasFullscreen: l.value.chart.userOptions.buttons.fullscreen,
|
|
1244
1250
|
isStacked: f.value.isStacked,
|
|
1245
1251
|
isFullscreen: al.value,
|
|
@@ -1248,7 +1254,7 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
|
|
|
1248
1254
|
isTooltip: f.value.showTooltip,
|
|
1249
1255
|
titles: { ...l.value.chart.userOptions.buttonTitles },
|
|
1250
1256
|
hasAnnotator: l.value.chart.userOptions.buttons.annotator,
|
|
1251
|
-
isAnnotation:
|
|
1257
|
+
isAnnotation: yl.value,
|
|
1252
1258
|
callbacks: l.value.chart.userOptions.callbacks,
|
|
1253
1259
|
printScale: l.value.chart.userOptions.print.scale,
|
|
1254
1260
|
onToggleFullscreen: Pa,
|
|
@@ -1259,9 +1265,9 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
|
|
|
1259
1265
|
onToggleLabels: Na,
|
|
1260
1266
|
onToggleStack: ya,
|
|
1261
1267
|
onToggleTooltip: Va,
|
|
1262
|
-
onToggleAnnotator:
|
|
1268
|
+
onToggleAnnotator: Ul,
|
|
1263
1269
|
style: z({
|
|
1264
|
-
visibility:
|
|
1270
|
+
visibility: Yl.value ? pl.value ? "visible" : "hidden" : "visible"
|
|
1265
1271
|
})
|
|
1266
1272
|
}, Rt({ _: 2 }, [
|
|
1267
1273
|
a.$slots.menuIcon ? {
|
|
@@ -1337,11 +1343,11 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
|
|
|
1337
1343
|
]), 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
1344
|
(u(), i("svg", {
|
|
1339
1345
|
ref_key: "svgRef",
|
|
1340
|
-
ref:
|
|
1346
|
+
ref: be,
|
|
1341
1347
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1342
1348
|
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
1349
|
width: "100%",
|
|
1344
|
-
viewBox:
|
|
1350
|
+
viewBox: ml.value,
|
|
1345
1351
|
style: z({
|
|
1346
1352
|
background: "transparent",
|
|
1347
1353
|
color: l.value.chart.color,
|
|
@@ -1362,7 +1368,7 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
|
|
|
1362
1368
|
key: 0,
|
|
1363
1369
|
x: n.value.left + G.value < 0 ? 0 : n.value.left + G.value,
|
|
1364
1370
|
y: n.value.top,
|
|
1365
|
-
width: n.value.width - (l.value.chart.grid.position === "middle" ? 0 : n.value.width /
|
|
1371
|
+
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
1372
|
height: n.value.height < 0 ? 0 : n.value.height,
|
|
1367
1373
|
style: {
|
|
1368
1374
|
pointerEvents: "none"
|
|
@@ -1370,8 +1376,8 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
|
|
|
1370
1376
|
}, [
|
|
1371
1377
|
q(a.$slots, "chart-background", {}, void 0, !0)
|
|
1372
1378
|
], 8, xo)) : d("", !0),
|
|
1373
|
-
|
|
1374
|
-
g("g",
|
|
1379
|
+
b.value > 0 ? (u(), i("g", bo, [
|
|
1380
|
+
g("g", mo, [
|
|
1375
1381
|
l.value.chart.grid.labels.xAxis.showBaseline ? (u(), i("line", {
|
|
1376
1382
|
key: 0,
|
|
1377
1383
|
stroke: l.value.chart.grid.stroke,
|
|
@@ -1487,7 +1493,7 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
|
|
|
1487
1493
|
}, null, 8, Po)
|
|
1488
1494
|
], 8, Oo)
|
|
1489
1495
|
]))), 128)),
|
|
1490
|
-
(u(!0), i(h, null, y(
|
|
1496
|
+
(u(!0), i(h, null, y($e.value, (e, s) => (u(), i("defs", {
|
|
1491
1497
|
key: `def_plot_${s}`
|
|
1492
1498
|
}, [
|
|
1493
1499
|
g("radialGradient", {
|
|
@@ -1553,41 +1559,41 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
|
|
|
1553
1559
|
transition: "none",
|
|
1554
1560
|
opacity: e.from + t >= S.value.start && e.from + t <= S.value.end - 1 ? 1 : 0
|
|
1555
1561
|
}),
|
|
1556
|
-
x: n.value.left + n.value.width /
|
|
1562
|
+
x: n.value.left + n.value.width / b.value * (e.from + t - S.value.start),
|
|
1557
1563
|
y: n.value.top,
|
|
1558
1564
|
height: n.value.height < 0 ? 10 : n.value.height,
|
|
1559
|
-
width: n.value.width /
|
|
1565
|
+
width: n.value.width / b.value < 0 ? 1e-5 : n.value.width / b.value,
|
|
1560
1566
|
fill: v(we)(e.color, e.opacity)
|
|
1561
1567
|
}, null, 12, Do)
|
|
1562
1568
|
]))), 256)),
|
|
1563
1569
|
(u(!0), i(h, null, y(e.span, (s, t) => (u(), i("g", null, [
|
|
1564
1570
|
e.caption.text && t === 0 ? (u(), i("foreignObject", {
|
|
1565
1571
|
key: 0,
|
|
1566
|
-
x: n.value.left + n.value.width /
|
|
1572
|
+
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
1573
|
y: n.value.top + e.caption.offsetY,
|
|
1568
1574
|
style: z({
|
|
1569
1575
|
overflow: "visible",
|
|
1570
1576
|
opacity: e.to >= S.value.start && e.from < S.value.end ? 1 : 0
|
|
1571
1577
|
}),
|
|
1572
1578
|
height: "1",
|
|
1573
|
-
width: e.caption.width === "auto" ? n.value.width /
|
|
1579
|
+
width: e.caption.width === "auto" ? n.value.width / b.value * e.span : e.caption.width
|
|
1574
1580
|
}, [
|
|
1575
1581
|
g("div", {
|
|
1576
1582
|
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"}`)
|
|
1577
|
-
},
|
|
1583
|
+
}, le(e.caption.text), 5)
|
|
1578
1584
|
], 12, qo)) : d("", !0)
|
|
1579
1585
|
]))), 256))
|
|
1580
1586
|
], 64)) : d("", !0)
|
|
1581
1587
|
]))), 256)),
|
|
1582
|
-
|
|
1583
|
-
(u(!0), i(h, null, y(
|
|
1588
|
+
ql.value ? (u(), i("g", Uo, [
|
|
1589
|
+
(u(!0), i(h, null, y(b.value, (e, s) => (u(), i("g", {
|
|
1584
1590
|
key: `tooltip_trap_highlighter_${s}`
|
|
1585
1591
|
}, [
|
|
1586
1592
|
g("rect", {
|
|
1587
|
-
x: n.value.left + n.value.width /
|
|
1593
|
+
x: n.value.left + n.value.width / b.value * s,
|
|
1588
1594
|
y: n.value.top,
|
|
1589
1595
|
height: n.value.height < 0 ? 10 : n.value.height,
|
|
1590
|
-
width: n.value.width /
|
|
1596
|
+
width: n.value.width / b.value < 0 ? 1e-5 : n.value.width / b.value,
|
|
1591
1597
|
fill: [O.value, k.value, Xe.value].includes(s) ? v(we)(l.value.chart.highlighter.color, l.value.chart.highlighter.opacity) : "transparent"
|
|
1592
1598
|
}, null, 8, Zo)
|
|
1593
1599
|
]))), 128))
|
|
@@ -1602,22 +1608,22 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
|
|
|
1602
1608
|
}, [
|
|
1603
1609
|
fe(t.value) ? (u(), i("rect", {
|
|
1604
1610
|
key: 0,
|
|
1605
|
-
x:
|
|
1611
|
+
x: Ll(t),
|
|
1606
1612
|
y: f.value.useIndividualScale ? Sa(t) : wa(t),
|
|
1607
1613
|
height: f.value.useIndividualScale ? Math.abs(_a(t)) : Math.abs(ka(t)),
|
|
1608
|
-
width: ke() - (f.value.useIndividualScale && f.value.isStacked ? 0 :
|
|
1614
|
+
width: ke() - (f.value.useIndividualScale && f.value.isStacked ? 0 : Te.value) < 0 ? 1e-5 : ke() - (f.value.useIndividualScale && f.value.isStacked ? 0 : Te.value),
|
|
1609
1615
|
rx: l.value.bar.borderRadius,
|
|
1610
1616
|
fill: l.value.bar.useGradient ? t.value >= 0 ? `url(#rectGradient_pos_${s}_${U.value})` : `url(#rectGradient_neg_${s}_${U.value})` : e.color,
|
|
1611
1617
|
stroke: l.value.bar.border.useSerieColor ? e.color : l.value.bar.border.stroke,
|
|
1612
1618
|
"stroke-width": l.value.bar.border.strokeWidth,
|
|
1613
|
-
style: z(`${v(
|
|
1619
|
+
style: z(`${v(Wl) ? "transition:none !important" : ""}`)
|
|
1614
1620
|
}, null, 12, Jo)) : d("", !0),
|
|
1615
1621
|
fe(t.value) && a.$slots.pattern ? (u(), i("rect", {
|
|
1616
1622
|
key: 1,
|
|
1617
|
-
x:
|
|
1623
|
+
x: Ll(t),
|
|
1618
1624
|
y: f.value.useIndividualScale ? Sa(t) : wa(t),
|
|
1619
1625
|
height: f.value.useIndividualScale ? Math.abs(_a(t)) : Math.abs(ka(t)),
|
|
1620
|
-
width: ke() - (f.value.useIndividualScale && f.value.isStacked ? 0 :
|
|
1626
|
+
width: ke() - (f.value.useIndividualScale && f.value.isStacked ? 0 : Te.value) < 0 ? 1e-5 : ke() - (f.value.useIndividualScale && f.value.isStacked ? 0 : Te.value),
|
|
1621
1627
|
rx: l.value.bar.borderRadius,
|
|
1622
1628
|
fill: `url(#pattern_${U.value}_${e.slotAbsoluteIndex})`,
|
|
1623
1629
|
stroke: l.value.bar.border.useSerieColor ? e.color : l.value.bar.border.stroke,
|
|
@@ -1627,8 +1633,8 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
|
|
|
1627
1633
|
key: 2,
|
|
1628
1634
|
style: { overflow: "visible" },
|
|
1629
1635
|
height: "12",
|
|
1630
|
-
width: (ke() - (f.value.useIndividualScale && f.value.isStacked ? 0 :
|
|
1631
|
-
x:
|
|
1636
|
+
width: (ke() - (f.value.useIndividualScale && f.value.isStacked ? 0 : Te.value) < 0 ? 1e-5 : ke() - (f.value.useIndividualScale && f.value.isStacked ? 0 : Te.value) / 2) + l.value.chart.comments.width,
|
|
1637
|
+
x: Ll(t) - l.value.chart.comments.width / 2 + l.value.chart.comments.offsetX,
|
|
1632
1638
|
y: v(T)(t.y) + l.value.chart.comments.offsetY + 6
|
|
1633
1639
|
}, [
|
|
1634
1640
|
q(a.$slots, "plot-comment", {
|
|
@@ -1670,7 +1676,7 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
|
|
|
1670
1676
|
y: v(X)(e.plots).y2 - 6,
|
|
1671
1677
|
"font-size": x.value.plotLabels,
|
|
1672
1678
|
fill: e.color
|
|
1673
|
-
},
|
|
1679
|
+
}, le(v(xe)({
|
|
1674
1680
|
v: v(X)(e.plots).trend * 100,
|
|
1675
1681
|
s: "%",
|
|
1676
1682
|
r: 2
|
|
@@ -1690,8 +1696,8 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
|
|
|
1690
1696
|
}, null, 8, os)) : d("", !0),
|
|
1691
1697
|
l.value.chart.highlighter.useLine && (![null, void 0].includes(k.value) || ![null, void 0].includes(O.value)) ? (u(), i("g", ss, [
|
|
1692
1698
|
g("line", {
|
|
1693
|
-
x1: n.value.left + n.value.width /
|
|
1694
|
-
x2: n.value.left + n.value.width /
|
|
1699
|
+
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,
|
|
1700
|
+
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
1701
|
y1: v(R)(n.value.top),
|
|
1696
1702
|
y2: v(R)(n.value.bottom),
|
|
1697
1703
|
stroke: l.value.chart.highlighter.color,
|
|
@@ -1706,7 +1712,7 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
|
|
|
1706
1712
|
style: { pointerEvents: "none", transition: "none", animation: "none !important" },
|
|
1707
1713
|
x: n.value.left + G.value < 0 ? 0 : n.value.left + G.value,
|
|
1708
1714
|
y: n.value.top,
|
|
1709
|
-
width: n.value.width - (l.value.chart.grid.position === "middle" ? 0 : n.value.width /
|
|
1715
|
+
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
1716
|
height: n.value.height < 0 ? 0 : n.value.height,
|
|
1711
1717
|
fill: "transparent",
|
|
1712
1718
|
stroke: l.value.chart.grid.frame.stroke,
|
|
@@ -1718,7 +1724,7 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
|
|
|
1718
1724
|
l.value.chart.grid.labels.show ? (u(), i("g", {
|
|
1719
1725
|
key: 5,
|
|
1720
1726
|
ref_key: "scaleLabels",
|
|
1721
|
-
ref:
|
|
1727
|
+
ref: Pl
|
|
1722
1728
|
}, [
|
|
1723
1729
|
f.value.useIndividualScale ? (u(), i(h, { key: 0 }, [
|
|
1724
1730
|
(u(!0), i(h, null, y(dl.value, (e) => (u(), i("g", null, [
|
|
@@ -1741,7 +1747,7 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
|
|
|
1741
1747
|
"font-size": x.value.dataLabels * 0.8,
|
|
1742
1748
|
"text-anchor": "middle",
|
|
1743
1749
|
transform: `translate(${e.x - x.value.dataLabels * 0.8 / 2 + G.value}, ${f.value.isStacked ? n.value.bottom - e.yOffset - e.individualHeight / 2 : n.value.top + n.value.height / 2}) rotate(-90)`
|
|
1744
|
-
},
|
|
1750
|
+
}, le(e.name) + " " + le(e.scaleLabel && e.unique && e.scaleLabel !== e.id ? `-
|
|
1745
1751
|
${e.scaleLabel}` : ""), 9, ns),
|
|
1746
1752
|
(u(!0), i(h, null, y(e.yLabels, (s, t) => (u(), i(h, null, [
|
|
1747
1753
|
l.value.chart.grid.labels.yAxis.showCrosshairs ? (u(), i("line", {
|
|
@@ -1762,7 +1768,7 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
|
|
|
1762
1768
|
"font-size": x.value.dataLabels,
|
|
1763
1769
|
"text-anchor": "end",
|
|
1764
1770
|
fill: e.color
|
|
1765
|
-
},
|
|
1771
|
+
}, le(v(re)(
|
|
1766
1772
|
l.value.chart.grid.labels.yAxis.formatter,
|
|
1767
1773
|
s.value,
|
|
1768
1774
|
v(xe)({
|
|
@@ -1795,7 +1801,7 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
|
|
|
1795
1801
|
"font-size": x.value.dataLabels,
|
|
1796
1802
|
"text-anchor": "end",
|
|
1797
1803
|
fill: l.value.chart.grid.labels.color
|
|
1798
|
-
},
|
|
1804
|
+
}, le(fe(e.value) ? v(re)(
|
|
1799
1805
|
l.value.chart.grid.labels.yAxis.formatter,
|
|
1800
1806
|
e.value,
|
|
1801
1807
|
v(xe)({
|
|
@@ -1807,7 +1813,7 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
|
|
|
1807
1813
|
) : ""), 9, hs)) : d("", !0)
|
|
1808
1814
|
]))), 128))
|
|
1809
1815
|
], 512)) : d("", !0),
|
|
1810
|
-
(u(!0), i(h, null, y(
|
|
1816
|
+
(u(!0), i(h, null, y($e.value, (e, s) => (u(), i("g", {
|
|
1811
1817
|
key: `serie_plot_${s}`,
|
|
1812
1818
|
class: Ue(`serie_plot_${s}`),
|
|
1813
1819
|
style: z(`opacity:${M.value ? M.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
@@ -1815,12 +1821,12 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
|
|
|
1815
1821
|
(u(!0), i(h, null, y(e.plots, (t, r) => (u(), i("g", {
|
|
1816
1822
|
key: `circle_plot_${s}_${r}`
|
|
1817
1823
|
}, [
|
|
1818
|
-
t && fe(t.value) ? (u(),
|
|
1824
|
+
t && fe(t.value) ? (u(), Ae(Cl, {
|
|
1819
1825
|
key: 0,
|
|
1820
1826
|
shape: ["triangle", "square", "diamond", "pentagon", "hexagon", "star"].includes(e.shape) ? e.shape : "circle",
|
|
1821
1827
|
color: l.value.plot.useGradient ? `url(#plotGradient_${s}_${U.value})` : l.value.plot.dot.useSerieColor ? e.color : l.value.plot.dot.fill,
|
|
1822
1828
|
plot: { x: v(T)(t.x), y: v(T)(t.y) },
|
|
1823
|
-
radius: k.value !== null && k.value === r || O.value !== null && O.value === r ? (
|
|
1829
|
+
radius: k.value !== null && k.value === r || O.value !== null && O.value === r ? (Se.value.plot || 6) * 1.5 : Se.value.plot || 6,
|
|
1824
1830
|
stroke: l.value.plot.dot.useSerieColor ? l.value.chart.backgroundColor : e.color,
|
|
1825
1831
|
strokeWidth: l.value.plot.dot.strokeWidth
|
|
1826
1832
|
}, null, 8, ["shape", "color", "plot", "radius", "stroke", "strokeWidth"])) : d("", !0),
|
|
@@ -1852,8 +1858,8 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
|
|
|
1852
1858
|
g("polygon", {
|
|
1853
1859
|
points: `0 0, 7 ${7 / 2}, 0 7`,
|
|
1854
1860
|
fill: e.color
|
|
1855
|
-
}, null, 8,
|
|
1856
|
-
], 8,
|
|
1861
|
+
}, null, 8, ms)
|
|
1862
|
+
], 8, bs)
|
|
1857
1863
|
]),
|
|
1858
1864
|
e.plots.length > 1 ? (u(), i("line", {
|
|
1859
1865
|
key: 0,
|
|
@@ -1873,7 +1879,7 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
|
|
|
1873
1879
|
y: v(X)(e.plots).y2 - 6,
|
|
1874
1880
|
"font-size": x.value.plotLabels,
|
|
1875
1881
|
fill: e.color
|
|
1876
|
-
},
|
|
1882
|
+
}, le(v(xe)({
|
|
1877
1883
|
v: v(X)(e.plots).trend * 100,
|
|
1878
1884
|
s: "%",
|
|
1879
1885
|
r: 2
|
|
@@ -1904,7 +1910,7 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
|
|
|
1904
1910
|
}, null, 8, _s)) : d("", !0)
|
|
1905
1911
|
], 6))), 128)),
|
|
1906
1912
|
a.$slots.pattern ? (u(), i("defs", ws, [
|
|
1907
|
-
(u(!0), i(h, null, y(
|
|
1913
|
+
(u(!0), i(h, null, y(Ce.value, (e, s) => q(a.$slots, "pattern", Ql({
|
|
1908
1914
|
key: `serie_pattern_slot_${s}`
|
|
1909
1915
|
}, { ref_for: !0 }, { ...e, seriesIndex: e.slotAbsoluteIndex, patternId: `pattern_${U.value}_${s}` }), void 0, !0)), 128))
|
|
1910
1916
|
])) : d("", !0),
|
|
@@ -1959,12 +1965,12 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
|
|
|
1959
1965
|
(u(!0), i(h, null, y(e.plots, (t, r) => (u(), i(h, {
|
|
1960
1966
|
key: `circle_line_${s}_${r}`
|
|
1961
1967
|
}, [
|
|
1962
|
-
!La.value.linePlot && t && fe(t.value) || La.value.linePlot && t && fe(t.value) && (k.value !== null && k.value === r || O.value !== null && O.value === r) ? (u(),
|
|
1968
|
+
!La.value.linePlot && t && fe(t.value) || La.value.linePlot && t && fe(t.value) && (k.value !== null && k.value === r || O.value !== null && O.value === r) ? (u(), Ae(Cl, {
|
|
1963
1969
|
key: 0,
|
|
1964
1970
|
shape: ["triangle", "square", "diamond", "pentagon", "hexagon", "star"].includes(e.shape) ? e.shape : "circle",
|
|
1965
1971
|
color: l.value.line.useGradient ? `url(#lineGradient_${s}_${U.value})` : l.value.line.dot.useSerieColor ? e.color : l.value.line.dot.fill,
|
|
1966
1972
|
plot: { x: v(T)(t.x), y: v(T)(t.y) },
|
|
1967
|
-
radius: k.value !== null && k.value === r || O.value !== null && O.value === r ? (
|
|
1973
|
+
radius: k.value !== null && k.value === r || O.value !== null && O.value === r ? (Se.value.line || 6) * 1.5 : Se.value.line || 6,
|
|
1968
1974
|
stroke: l.value.line.dot.useSerieColor ? l.value.chart.backgroundColor : e.color,
|
|
1969
1975
|
strokeWidth: l.value.line.dot.strokeWidth
|
|
1970
1976
|
}, null, 8, ["shape", "color", "plot", "radius", "stroke", "strokeWidth"])) : d("", !0),
|
|
@@ -2017,7 +2023,7 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
|
|
|
2017
2023
|
y: v(X)(e.plots).y2 - 6,
|
|
2018
2024
|
"font-size": x.value.plotLabels,
|
|
2019
2025
|
fill: e.color
|
|
2020
|
-
},
|
|
2026
|
+
}, le(v(xe)({
|
|
2021
2027
|
v: v(X)(e.plots).trend * 100,
|
|
2022
2028
|
s: "%",
|
|
2023
2029
|
r: 2
|
|
@@ -2033,13 +2039,13 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
|
|
|
2033
2039
|
}, [
|
|
2034
2040
|
t && (!Object.hasOwn(e, "dataLabels") || e.dataLabels === !0 || k.value !== null && k.value === r || O.value !== null && O.value === r) && l.value.bar.labels.show ? (u(), i("text", {
|
|
2035
2041
|
key: 0,
|
|
2036
|
-
x: f.value.useIndividualScale && f.value.isStacked ? t.x + Z.value.line / 2 :
|
|
2042
|
+
x: f.value.useIndividualScale && f.value.isStacked ? t.x + Z.value.line / 2 : Ll(t) + ke() / 2 - Te.value / 2,
|
|
2037
2043
|
y: v(T)(t.y) + (t.value >= 0 ? l.value.bar.labels.offsetY : -l.value.bar.labels.offsetY * 3),
|
|
2038
2044
|
"text-anchor": "middle",
|
|
2039
2045
|
"font-size": x.value.plotLabels,
|
|
2040
2046
|
fill: l.value.bar.labels.color,
|
|
2041
2047
|
style: z(`opacity:${M.value ? M.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
2042
|
-
},
|
|
2048
|
+
}, le(fe(t.value) ? v(re)(
|
|
2043
2049
|
l.value.bar.labels.formatter,
|
|
2044
2050
|
t.value,
|
|
2045
2051
|
v(xe)({
|
|
@@ -2062,7 +2068,7 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
|
|
|
2062
2068
|
fill: l.value.bar.serieName.useSerieColor ? e.color : l.value.bar.serieName.color,
|
|
2063
2069
|
"font-weight": l.value.bar.serieName.bold ? "bold" : "normal",
|
|
2064
2070
|
style: z(`opacity:${M.value ? M.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
2065
|
-
},
|
|
2071
|
+
}, le(l.value.bar.serieName.useAbbreviation ? v(Kt)({
|
|
2066
2072
|
source: e.name,
|
|
2067
2073
|
length: l.value.bar.serieName.abbreviationSize
|
|
2068
2074
|
}) : e.name), 13, Ys)) : d("", !0)
|
|
@@ -2070,7 +2076,7 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
|
|
|
2070
2076
|
], 64))), 128))
|
|
2071
2077
|
])) : d("", !0),
|
|
2072
2078
|
l.value.plot.labels.show && f.value.dataLabels.show ? (u(), i("g", Fs, [
|
|
2073
|
-
(u(!0), i(h, null, y(
|
|
2079
|
+
(u(!0), i(h, null, y($e.value, (e, s) => (u(), i(h, {
|
|
2074
2080
|
key: `xLabel_plot_${s}`
|
|
2075
2081
|
}, [
|
|
2076
2082
|
(u(!0), i(h, null, y(e.plots, (t, r) => (u(), i(h, {
|
|
@@ -2084,7 +2090,7 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
|
|
|
2084
2090
|
"font-size": x.value.plotLabels,
|
|
2085
2091
|
fill: l.value.plot.labels.color,
|
|
2086
2092
|
style: z(`opacity:${M.value ? M.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
2087
|
-
},
|
|
2093
|
+
}, le(fe(t.value) ? v(re)(
|
|
2088
2094
|
l.value.plot.labels.formatter,
|
|
2089
2095
|
t.value,
|
|
2090
2096
|
v(xe)({
|
|
@@ -2101,7 +2107,7 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
|
|
|
2101
2107
|
], 64))), 128))
|
|
2102
2108
|
], 64))), 128))
|
|
2103
2109
|
])) : (u(), i("g", Ws, [
|
|
2104
|
-
(u(!0), i(h, null, y(
|
|
2110
|
+
(u(!0), i(h, null, y($e.value, (e, s) => (u(), i(h, {
|
|
2105
2111
|
key: `xLabel_plot_${s}`
|
|
2106
2112
|
}, [
|
|
2107
2113
|
(u(!0), i(h, null, y(e.plots, (t, r) => (u(), i(h, {
|
|
@@ -2184,7 +2190,7 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
|
|
|
2184
2190
|
"font-size": x.value.plotLabels,
|
|
2185
2191
|
fill: l.value.line.labels.color,
|
|
2186
2192
|
style: z(`opacity:${M.value ? M.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
2187
|
-
},
|
|
2193
|
+
}, le(fe(t.value) ? v(re)(
|
|
2188
2194
|
l.value.line.labels.formatter,
|
|
2189
2195
|
t.value,
|
|
2190
2196
|
v(xe)({
|
|
@@ -2282,7 +2288,7 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
|
|
|
2282
2288
|
"font-size": x.value.plotLabels,
|
|
2283
2289
|
"text-anchor": "end",
|
|
2284
2290
|
fill: e.color,
|
|
2285
|
-
innerHTML: v(
|
|
2291
|
+
innerHTML: v(zl)({
|
|
2286
2292
|
content: e.name,
|
|
2287
2293
|
fontSize: x.value.plotLabels,
|
|
2288
2294
|
fill: e.color,
|
|
@@ -2299,7 +2305,7 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
|
|
|
2299
2305
|
"font-size": x.value.plotLabels,
|
|
2300
2306
|
"text-anchor": "start",
|
|
2301
2307
|
fill: e.color,
|
|
2302
|
-
innerHTML: v(
|
|
2308
|
+
innerHTML: v(zl)({
|
|
2303
2309
|
content: e.name,
|
|
2304
2310
|
fontSize: x.value.plotLabels,
|
|
2305
2311
|
fill: e.color,
|
|
@@ -2311,7 +2317,7 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
|
|
|
2311
2317
|
}, null, 12, ou)) : d("", !0)
|
|
2312
2318
|
], 64))), 128))
|
|
2313
2319
|
], 64))), 128)),
|
|
2314
|
-
(u(!0), i(h, null, y(
|
|
2320
|
+
(u(!0), i(h, null, y($e.value, (e, s) => (u(), i(h, {
|
|
2315
2321
|
key: `xLabel_plot_${s}`
|
|
2316
2322
|
}, [
|
|
2317
2323
|
(u(!0), i(h, null, y(e.plots, (t, r) => (u(), i(h, {
|
|
@@ -2324,7 +2330,7 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
|
|
|
2324
2330
|
"font-size": x.value.plotLabels,
|
|
2325
2331
|
"text-anchor": "end",
|
|
2326
2332
|
fill: e.color,
|
|
2327
|
-
innerHTML: v(
|
|
2333
|
+
innerHTML: v(zl)({
|
|
2328
2334
|
content: e.name,
|
|
2329
2335
|
fontSize: x.value.plotLabels,
|
|
2330
2336
|
fill: e.color,
|
|
@@ -2341,7 +2347,7 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
|
|
|
2341
2347
|
"font-size": x.value.plotLabels,
|
|
2342
2348
|
"text-anchor": "start",
|
|
2343
2349
|
fill: e.color,
|
|
2344
|
-
innerHTML: v(
|
|
2350
|
+
innerHTML: v(zl)({
|
|
2345
2351
|
content: e.name,
|
|
2346
2352
|
fontSize: x.value.plotLabels,
|
|
2347
2353
|
fill: e.color,
|
|
@@ -2388,53 +2394,53 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
|
|
|
2388
2394
|
l.value.chart.grid.labels.axis.yLabel && !f.value.useIndividualScale ? (u(), i("text", {
|
|
2389
2395
|
key: 0,
|
|
2390
2396
|
ref_key: "yAxisLabel",
|
|
2391
|
-
ref:
|
|
2397
|
+
ref: Vl,
|
|
2392
2398
|
"font-size": x.value.yAxis,
|
|
2393
2399
|
fill: l.value.chart.grid.labels.color,
|
|
2394
2400
|
transform: `translate(${l.value.chart.grid.labels.axis.fontSize}, ${n.value.top + n.value.height / 2}) rotate(-90)`,
|
|
2395
2401
|
"text-anchor": "middle",
|
|
2396
2402
|
style: { transition: "none" }
|
|
2397
|
-
},
|
|
2403
|
+
}, le(l.value.chart.grid.labels.axis.yLabel), 9, vu)) : d("", !0),
|
|
2398
2404
|
l.value.chart.grid.labels.axis.xLabel ? (u(), i("text", {
|
|
2399
2405
|
key: 1,
|
|
2400
2406
|
ref_key: "xAxisLabel",
|
|
2401
|
-
ref:
|
|
2407
|
+
ref: Nl,
|
|
2402
2408
|
"text-anchor": "middle",
|
|
2403
2409
|
x: ae.value / 2,
|
|
2404
2410
|
y: ve.value - 3,
|
|
2405
2411
|
"font-size": x.value.yAxis,
|
|
2406
2412
|
fill: l.value.chart.grid.labels.color
|
|
2407
|
-
},
|
|
2413
|
+
}, le(l.value.chart.grid.labels.axis.xLabel), 9, du)) : d("", !0)
|
|
2408
2414
|
]),
|
|
2409
2415
|
l.value.chart.grid.labels.xAxisLabels.show ? (u(), i("g", {
|
|
2410
2416
|
key: 13,
|
|
2411
2417
|
ref_key: "timeLabelsEls",
|
|
2412
2418
|
ref: ll
|
|
2413
2419
|
}, [
|
|
2414
|
-
a.$slots["time-label"] ? (u(!0), i(h, { key: 0 }, y(
|
|
2420
|
+
a.$slots["time-label"] ? (u(!0), i(h, { key: 0 }, y(J.value, (e, s) => q(a.$slots, "time-label", Ql({
|
|
2415
2421
|
key: `time_label_${s}`,
|
|
2416
2422
|
ref_for: !0
|
|
2417
2423
|
}, {
|
|
2418
|
-
x: n.value.left + n.value.width /
|
|
2424
|
+
x: n.value.left + n.value.width / b.value * s + n.value.width / b.value / 2,
|
|
2419
2425
|
y: n.value.bottom,
|
|
2420
2426
|
fontSize: x.value.xAxis,
|
|
2421
2427
|
fill: l.value.chart.grid.labels.xAxisLabels.color,
|
|
2422
|
-
transform: `translate(${n.value.left + n.value.width /
|
|
2428
|
+
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
2429
|
absoluteIndex: e.absoluteIndex,
|
|
2424
2430
|
content: e.text,
|
|
2425
2431
|
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 &&
|
|
2427
|
-
}), void 0, !0)), 128)) : (u(!0), i(h, { key: 1 }, y(
|
|
2432
|
+
show: e && l.value.chart.grid.labels.xAxisLabels.showOnlyAtModulo && b.value <= $l.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 === J.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) / $l.value) === 0
|
|
2433
|
+
}), void 0, !0)), 128)) : (u(!0), i(h, { key: 1 }, y(J.value, (e, s) => (u(), i("g", {
|
|
2428
2434
|
key: `time_label_${s}`
|
|
2429
2435
|
}, [
|
|
2430
|
-
e && l.value.chart.grid.labels.xAxisLabels.showOnlyAtModulo &&
|
|
2436
|
+
e && l.value.chart.grid.labels.xAxisLabels.showOnlyAtModulo && b.value <= $l.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 === J.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) / $l.value) === 0 ? (u(), i(h, { key: 0 }, [
|
|
2431
2437
|
String(e.text).includes(`
|
|
2432
2438
|
`) ? (u(), i("text", {
|
|
2433
2439
|
key: 1,
|
|
2434
2440
|
"text-anchor": l.value.chart.grid.labels.xAxisLabels.rotation > 0 ? "start" : l.value.chart.grid.labels.xAxisLabels.rotation < 0 ? "end" : "middle",
|
|
2435
2441
|
"font-size": x.value.xAxis,
|
|
2436
2442
|
fill: l.value.chart.grid.labels.xAxisLabels.color,
|
|
2437
|
-
transform: `translate(${n.value.left + n.value.width /
|
|
2443
|
+
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
2444
|
style: z({
|
|
2439
2445
|
cursor: ga() ? "pointer" : "default"
|
|
2440
2446
|
}),
|
|
@@ -2445,19 +2451,19 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
|
|
|
2445
2451
|
x: 0,
|
|
2446
2452
|
y: 0
|
|
2447
2453
|
}),
|
|
2448
|
-
onClick: () =>
|
|
2454
|
+
onClick: () => ma(e, s)
|
|
2449
2455
|
}, null, 12, fu)) : (u(), i("text", {
|
|
2450
2456
|
key: 0,
|
|
2451
2457
|
class: "vue-data-ui-time-label",
|
|
2452
2458
|
"text-anchor": l.value.chart.grid.labels.xAxisLabels.rotation > 0 ? "start" : l.value.chart.grid.labels.xAxisLabels.rotation < 0 ? "end" : "middle",
|
|
2453
2459
|
"font-size": x.value.xAxis,
|
|
2454
2460
|
fill: l.value.chart.grid.labels.xAxisLabels.color,
|
|
2455
|
-
transform: `translate(${n.value.left + n.value.width /
|
|
2461
|
+
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
2462
|
style: z({
|
|
2457
2463
|
cursor: ga() ? "pointer" : "default"
|
|
2458
2464
|
}),
|
|
2459
|
-
onClick: () =>
|
|
2460
|
-
},
|
|
2465
|
+
onClick: () => ma(e, s)
|
|
2466
|
+
}, le(e.text || ""), 13, hu))
|
|
2461
2467
|
], 64)) : d("", !0)
|
|
2462
2468
|
]))), 128))
|
|
2463
2469
|
], 512)) : d("", !0),
|
|
@@ -2488,7 +2494,7 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
|
|
|
2488
2494
|
"stroke-dasharray": e.config.line.strokeDasharray,
|
|
2489
2495
|
"stroke-linecap": "round",
|
|
2490
2496
|
style: { animation: "none !important" }
|
|
2491
|
-
}, null, 8,
|
|
2497
|
+
}, null, 8, bu)) : d("", !0),
|
|
2492
2498
|
e.hasArea && e.show && isFinite(e.yTop) && isFinite(e.yBottom) ? (u(), i("rect", {
|
|
2493
2499
|
key: 2,
|
|
2494
2500
|
y: Math.min(e.yTop, e.yBottom),
|
|
@@ -2497,8 +2503,8 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
|
|
|
2497
2503
|
height: v(T)(e.areaHeight, 0),
|
|
2498
2504
|
fill: v(we)(e.config.area.fill, e.config.area.opacity),
|
|
2499
2505
|
style: { animation: "none !important" }
|
|
2500
|
-
}, null, 8,
|
|
2501
|
-
e.config.label.text && e.show && isFinite(e._box.y) ? (u(), i("rect",
|
|
2506
|
+
}, null, 8, mu)) : d("", !0),
|
|
2507
|
+
e.config.label.text && e.show && isFinite(e._box.y) ? (u(), i("rect", Ql({
|
|
2502
2508
|
key: 3,
|
|
2503
2509
|
class: "vue-ui-xy-annotation-label-box"
|
|
2504
2510
|
}, { ref_for: !0 }, e._box, { style: { animation: "none !important", transition: "none !important" } }), null, 16)) : d("", !0),
|
|
@@ -2511,16 +2517,16 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
|
|
|
2511
2517
|
"font-size": e.config.label.fontSize,
|
|
2512
2518
|
fill: e.config.label.color,
|
|
2513
2519
|
"text-anchor": e.config.label.textAnchor
|
|
2514
|
-
},
|
|
2520
|
+
}, le(e.config.label.text), 9, yu)) : d("", !0)
|
|
2515
2521
|
]))), 128))
|
|
2516
2522
|
])) : d("", !0),
|
|
2517
|
-
|
|
2518
|
-
(u(!0), i(h, null, y(
|
|
2523
|
+
ql.value ? (u(), i("g", pu, [
|
|
2524
|
+
(u(!0), i(h, null, y(b.value, (e, s) => (u(), i("rect", {
|
|
2519
2525
|
key: `tooltip_trap_${s}`,
|
|
2520
|
-
x: n.value.left + n.value.width /
|
|
2526
|
+
x: n.value.left + n.value.width / b.value * s,
|
|
2521
2527
|
y: n.value.top,
|
|
2522
2528
|
height: n.value.height < 0 ? 10 : n.value.height,
|
|
2523
|
-
width: n.value.width /
|
|
2529
|
+
width: n.value.width / b.value < 0 ? 1e-5 : n.value.width / b.value,
|
|
2524
2530
|
fill: "transparent",
|
|
2525
2531
|
onMouseenter: (t) => Ta(!0, s),
|
|
2526
2532
|
onMouseleave: c[1] || (c[1] = (t) => Ta(!1)),
|
|
@@ -2529,7 +2535,7 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
|
|
|
2529
2535
|
])) : d("", !0),
|
|
2530
2536
|
l.value.chart.timeTag.show && (![null, void 0].includes(k.value) || ![null, void 0].includes(O.value)) ? (u(), i("g", _u, [
|
|
2531
2537
|
(u(), i("foreignObject", {
|
|
2532
|
-
x: n.value.left + n.value.width /
|
|
2538
|
+
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
2539
|
y: n.value.bottom,
|
|
2534
2540
|
width: "200",
|
|
2535
2541
|
height: "40",
|
|
@@ -2538,10 +2544,10 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
|
|
|
2538
2544
|
g("div", {
|
|
2539
2545
|
class: "vue-ui-xy-time-tag",
|
|
2540
2546
|
style: z(`width: fit-content;margin: 0 auto;text-align:center;padding:3px 12px;background:${l.value.chart.timeTag.backgroundColor};color:${l.value.chart.timeTag.color};font-size:${l.value.chart.timeTag.fontSize}px`)
|
|
2541
|
-
},
|
|
2547
|
+
}, le(J.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
2548
|
], 8, wu)),
|
|
2543
2549
|
g("circle", {
|
|
2544
|
-
cx: n.value.left + n.value.width /
|
|
2550
|
+
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
2551
|
cy: n.value.bottom,
|
|
2546
2552
|
r: l.value.chart.timeTag.circleMarker.radius,
|
|
2547
2553
|
fill: l.value.chart.timeTag.circleMarker.color
|
|
@@ -2552,7 +2558,7 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
|
|
|
2552
2558
|
], 512)
|
|
2553
2559
|
], 14, go)),
|
|
2554
2560
|
a.$slots.watermark ? (u(), i("div", $u, [
|
|
2555
|
-
q(a.$slots, "watermark", Ze(Je({ isPrinting: v(
|
|
2561
|
+
q(a.$slots, "watermark", Ze(Je({ isPrinting: v(Xl) || v(ca) })), void 0, !0)
|
|
2556
2562
|
])) : d("", !0),
|
|
2557
2563
|
(u(!0), i(h, null, y(_e.value, (e, s) => (u(), i(h, {
|
|
2558
2564
|
key: `tag_line_${s}`
|
|
@@ -2563,23 +2569,23 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
|
|
|
2563
2569
|
[O.value, k.value, Xe.value].includes(r) && e.useTag && e.useTag === "end" && l.value.line.tag.followValue ? (u(), i("div", {
|
|
2564
2570
|
key: 0,
|
|
2565
2571
|
ref_for: !0,
|
|
2566
|
-
ref: (o) =>
|
|
2572
|
+
ref: (o) => Sl(s, r, o, "right", "line"),
|
|
2567
2573
|
class: "vue-ui-xy-tag",
|
|
2568
2574
|
"data-tag": "right",
|
|
2569
2575
|
style: z({
|
|
2570
2576
|
position: "fixed",
|
|
2571
2577
|
top: v(Ee)({
|
|
2572
|
-
svgElement:
|
|
2578
|
+
svgElement: be.value,
|
|
2573
2579
|
x: n.value.right + l.value.line.tag.fontSize / 1.5,
|
|
2574
2580
|
y: t.y,
|
|
2575
|
-
element:
|
|
2581
|
+
element: ze.value[`${s}_${r}_right_line`],
|
|
2576
2582
|
position: "right"
|
|
2577
2583
|
}).top + "px",
|
|
2578
2584
|
left: v(Ee)({
|
|
2579
|
-
svgElement:
|
|
2585
|
+
svgElement: be.value,
|
|
2580
2586
|
x: n.value.right + l.value.line.tag.fontSize / 1.5,
|
|
2581
2587
|
y: t.y,
|
|
2582
|
-
element:
|
|
2588
|
+
element: ze.value[`${s}_${r}_right_line`],
|
|
2583
2589
|
position: "right"
|
|
2584
2590
|
}).left + "px",
|
|
2585
2591
|
height: "fit-content",
|
|
@@ -2615,23 +2621,23 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
|
|
|
2615
2621
|
[O.value, k.value, Xe.value].includes(r) && e.useTag && e.useTag === "start" && l.value.line.tag.followValue ? (u(), i("div", {
|
|
2616
2622
|
key: 1,
|
|
2617
2623
|
ref_for: !0,
|
|
2618
|
-
ref: (o) =>
|
|
2624
|
+
ref: (o) => Sl(s, r, o, "left", "line"),
|
|
2619
2625
|
class: "vue-ui-xy-tag",
|
|
2620
2626
|
"data-tag": "left",
|
|
2621
2627
|
style: z({
|
|
2622
2628
|
position: "fixed",
|
|
2623
2629
|
top: v(Ee)({
|
|
2624
|
-
svgElement:
|
|
2630
|
+
svgElement: be.value,
|
|
2625
2631
|
x: n.value.left - l.value.line.tag.fontSize / 1.5,
|
|
2626
2632
|
y: t.y,
|
|
2627
|
-
element:
|
|
2633
|
+
element: ze.value[`${s}_${r}_left_line`],
|
|
2628
2634
|
position: "left"
|
|
2629
2635
|
}).top + "px",
|
|
2630
2636
|
left: v(Ee)({
|
|
2631
|
-
svgElement:
|
|
2637
|
+
svgElement: be.value,
|
|
2632
2638
|
x: n.value.left - l.value.line.tag.fontSize / 1.5,
|
|
2633
2639
|
y: t.y,
|
|
2634
|
-
element:
|
|
2640
|
+
element: ze.value[`${s}_${r}_left_line`],
|
|
2635
2641
|
position: "left"
|
|
2636
2642
|
}).left + "px",
|
|
2637
2643
|
height: "fit-content",
|
|
@@ -2666,7 +2672,7 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
|
|
|
2666
2672
|
], 4)) : d("", !0)
|
|
2667
2673
|
], 64))), 128))
|
|
2668
2674
|
], 64))), 128)),
|
|
2669
|
-
(u(!0), i(h, null, y(
|
|
2675
|
+
(u(!0), i(h, null, y($e.value, (e, s) => (u(), i(h, {
|
|
2670
2676
|
key: `tag_plot_${s}`
|
|
2671
2677
|
}, [
|
|
2672
2678
|
(u(!0), i(h, null, y(e.plots, (t, r) => (u(), i(h, {
|
|
@@ -2675,23 +2681,23 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
|
|
|
2675
2681
|
[O.value, k.value, Xe.value].includes(r) && e.useTag && e.useTag === "end" && l.value.plot.tag.followValue ? (u(), i("div", {
|
|
2676
2682
|
key: 0,
|
|
2677
2683
|
ref_for: !0,
|
|
2678
|
-
ref: (o) =>
|
|
2684
|
+
ref: (o) => Sl(s, r, o, "right", "plot"),
|
|
2679
2685
|
class: "vue-ui-xy-tag",
|
|
2680
2686
|
"data-tag": "right",
|
|
2681
2687
|
style: z({
|
|
2682
2688
|
position: "fixed",
|
|
2683
2689
|
top: v(Ee)({
|
|
2684
|
-
svgElement:
|
|
2690
|
+
svgElement: be.value,
|
|
2685
2691
|
x: n.value.right + l.value.plot.tag.fontSize / 1.5,
|
|
2686
2692
|
y: t.y,
|
|
2687
|
-
element:
|
|
2693
|
+
element: ze.value[`${s}_${r}_right_plot`],
|
|
2688
2694
|
position: "right"
|
|
2689
2695
|
}).top + "px",
|
|
2690
2696
|
left: v(Ee)({
|
|
2691
|
-
svgElement:
|
|
2697
|
+
svgElement: be.value,
|
|
2692
2698
|
x: n.value.right + l.value.plot.tag.fontSize / 1.5,
|
|
2693
2699
|
y: t.y,
|
|
2694
|
-
element:
|
|
2700
|
+
element: ze.value[`${s}_${r}_right_plot`],
|
|
2695
2701
|
position: "right"
|
|
2696
2702
|
}).left + "px",
|
|
2697
2703
|
height: "fit-content",
|
|
@@ -2727,23 +2733,23 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
|
|
|
2727
2733
|
[O.value, k.value, Xe.value].includes(r) && e.useTag && e.useTag === "start" && l.value.plot.tag.followValue ? (u(), i("div", {
|
|
2728
2734
|
key: 1,
|
|
2729
2735
|
ref_for: !0,
|
|
2730
|
-
ref: (o) =>
|
|
2736
|
+
ref: (o) => Sl(s, r, o, "left", "plot"),
|
|
2731
2737
|
class: "vue-ui-xy-tag",
|
|
2732
2738
|
"data-tag": "left",
|
|
2733
2739
|
style: z({
|
|
2734
2740
|
position: "fixed",
|
|
2735
2741
|
top: v(Ee)({
|
|
2736
|
-
svgElement:
|
|
2742
|
+
svgElement: be.value,
|
|
2737
2743
|
x: n.value.left - l.value.plot.tag.fontSize / 1.5,
|
|
2738
2744
|
y: t.y,
|
|
2739
|
-
element:
|
|
2745
|
+
element: ze.value[`${s}_${r}_left_plot`],
|
|
2740
2746
|
position: "left"
|
|
2741
2747
|
}).top + "px",
|
|
2742
2748
|
left: v(Ee)({
|
|
2743
|
-
svgElement:
|
|
2749
|
+
svgElement: be.value,
|
|
2744
2750
|
x: n.value.left - l.value.plot.tag.fontSize / 1.5,
|
|
2745
2751
|
y: t.y,
|
|
2746
|
-
element:
|
|
2752
|
+
element: ze.value[`${s}_${r}_left_plot`],
|
|
2747
2753
|
position: "left"
|
|
2748
2754
|
}).left + "px",
|
|
2749
2755
|
height: "fit-content",
|
|
@@ -2778,15 +2784,15 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
|
|
|
2778
2784
|
], 4)) : d("", !0)
|
|
2779
2785
|
], 64))), 128))
|
|
2780
2786
|
], 64))), 128)),
|
|
2781
|
-
l.value.chart.zoom.show && Ve.value > 6 &&
|
|
2787
|
+
l.value.chart.zoom.show && Ve.value > 6 && El.value ? (u(), Ae(so, {
|
|
2782
2788
|
ref_key: "chartSlicer",
|
|
2783
|
-
ref:
|
|
2784
|
-
key: `slicer_${
|
|
2789
|
+
ref: Ne,
|
|
2790
|
+
key: `slicer_${Rl.value}`,
|
|
2785
2791
|
background: l.value.chart.zoom.color,
|
|
2786
2792
|
fontSize: l.value.chart.zoom.fontSize,
|
|
2787
2793
|
useResetSlot: l.value.chart.zoom.useResetSlot,
|
|
2788
|
-
labelLeft:
|
|
2789
|
-
labelRight:
|
|
2794
|
+
labelLeft: J.value[0] ? J.value[0].text : "",
|
|
2795
|
+
labelRight: J.value.at(-1) ? J.value.at(-1).text : "",
|
|
2790
2796
|
textColor: l.value.chart.color,
|
|
2791
2797
|
inputColor: l.value.chart.zoom.color,
|
|
2792
2798
|
selectColor: l.value.chart.zoom.highlightColor,
|
|
@@ -2809,11 +2815,11 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
|
|
|
2809
2815
|
end: S.value.end,
|
|
2810
2816
|
"onUpdate:end": c[3] || (c[3] = (e) => S.value.end = e),
|
|
2811
2817
|
refreshStartPoint: l.value.chart.zoom.startIndex !== null ? l.value.chart.zoom.startIndex : 0,
|
|
2812
|
-
refreshEndPoint: l.value.chart.zoom.endIndex !== null ? l.value.chart.zoom.endIndex + 1 : Math.max(...
|
|
2818
|
+
refreshEndPoint: l.value.chart.zoom.endIndex !== null ? l.value.chart.zoom.endIndex + 1 : Math.max(...Il.dataset.map((e) => v(Ye)({ data: e.series, threshold: l.value.downsample.threshold }).length)),
|
|
2813
2819
|
enableRangeHandles: l.value.chart.zoom.enableRangeHandles,
|
|
2814
2820
|
enableSelectionDrag: l.value.chart.zoom.enableSelectionDrag,
|
|
2815
2821
|
onReset: pt,
|
|
2816
|
-
onTrapMouse:
|
|
2822
|
+
onTrapMouse: bt
|
|
2817
2823
|
}, {
|
|
2818
2824
|
"reset-action": ue(({ reset: e }) => [
|
|
2819
2825
|
q(a.$slots, "reset-action", Ze(Je({ reset: e })), void 0, !0)
|
|
@@ -2827,7 +2833,7 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
|
|
|
2827
2833
|
class: "vue-ui-xy-legend",
|
|
2828
2834
|
style: z(`font-size:${l.value.chart.legend.fontSize}px`)
|
|
2829
2835
|
}, [
|
|
2830
|
-
(u(!0), i(h, null, y(
|
|
2836
|
+
(u(!0), i(h, null, y(Ie.value, (e, s) => (u(), i("div", {
|
|
2831
2837
|
key: `div_legend_item_${s}`,
|
|
2832
2838
|
onClick: (t) => $a(e),
|
|
2833
2839
|
class: Ue({ "vue-ui-xy-legend-item": !0, "vue-ui-xy-legend-item-segregated": te.value.includes(e.id) })
|
|
@@ -2843,7 +2849,7 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
|
|
|
2843
2849
|
width: "20",
|
|
2844
2850
|
fill: e.color
|
|
2845
2851
|
}, null, 8, Yu),
|
|
2846
|
-
xl(
|
|
2852
|
+
xl(Cl, {
|
|
2847
2853
|
plot: { x: 10, y: 9 },
|
|
2848
2854
|
radius: 4,
|
|
2849
2855
|
color: e.color,
|
|
@@ -2873,7 +2879,7 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
|
|
|
2873
2879
|
fill: a.$slots.pattern ? `url(#pattern_${U.value}_${e.slotAbsoluteIndex})` : e.color
|
|
2874
2880
|
}, null, 8, Wu)) : d("", !0)
|
|
2875
2881
|
])) : (u(), i("svg", Xu, [
|
|
2876
|
-
xl(
|
|
2882
|
+
xl(Cl, {
|
|
2877
2883
|
plot: { x: 6, y: 6 },
|
|
2878
2884
|
radius: 5,
|
|
2879
2885
|
color: e.color,
|
|
@@ -2882,14 +2888,14 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
|
|
|
2882
2888
|
])),
|
|
2883
2889
|
g("span", {
|
|
2884
2890
|
style: z(`color:${l.value.chart.legend.color}`)
|
|
2885
|
-
},
|
|
2891
|
+
}, le(e.name), 5)
|
|
2886
2892
|
], 10, Ru))), 128))
|
|
2887
2893
|
], 4)) : (u(), i("div", {
|
|
2888
2894
|
key: 7,
|
|
2889
2895
|
ref_key: "chartLegend",
|
|
2890
2896
|
ref: el
|
|
2891
2897
|
}, [
|
|
2892
|
-
q(a.$slots, "legend", { legend:
|
|
2898
|
+
q(a.$slots, "legend", { legend: Ie.value }, void 0, !0)
|
|
2893
2899
|
], 512)),
|
|
2894
2900
|
a.$slots.source ? (u(), i("div", {
|
|
2895
2901
|
key: 8,
|
|
@@ -2923,7 +2929,7 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
|
|
|
2923
2929
|
]),
|
|
2924
2930
|
_: 3
|
|
2925
2931
|
}, 8, ["show", "backgroundColor", "color", "fontSize", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom"]),
|
|
2926
|
-
|
|
2932
|
+
El.value ? (u(), Ae(v(at), {
|
|
2927
2933
|
key: 9,
|
|
2928
2934
|
hideDetails: "",
|
|
2929
2935
|
config: {
|
|
@@ -2941,7 +2947,7 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
|
|
|
2941
2947
|
}, {
|
|
2942
2948
|
content: ue(() => [
|
|
2943
2949
|
g("div", {
|
|
2944
|
-
style: z(`${v(
|
|
2950
|
+
style: z(`${v(Xl) ? "" : "max-height:400px"};overflow:auto;width:100%;margin-top:48px`)
|
|
2945
2951
|
}, [
|
|
2946
2952
|
g("div", Gu, [
|
|
2947
2953
|
Bt(g("input", {
|
|
@@ -2961,16 +2967,16 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
|
|
|
2961
2967
|
}, null, 8, ["stroke"])
|
|
2962
2968
|
])
|
|
2963
2969
|
]),
|
|
2964
|
-
nl.value ? (u(),
|
|
2965
|
-
key: `sparkline_${
|
|
2970
|
+
nl.value ? (u(), Ae(v(lt), {
|
|
2971
|
+
key: `sparkline_${Bl.value}`,
|
|
2966
2972
|
dataset: Mt.value,
|
|
2967
2973
|
config: zt.value
|
|
2968
|
-
}, null, 8, ["dataset", "config"])) : (u(),
|
|
2974
|
+
}, null, 8, ["dataset", "config"])) : (u(), Ae(v(Ka), {
|
|
2969
2975
|
key: `table_${ra.value}`,
|
|
2970
|
-
colNames:
|
|
2971
|
-
head:
|
|
2972
|
-
body:
|
|
2973
|
-
config:
|
|
2976
|
+
colNames: Al.value.colNames,
|
|
2977
|
+
head: Al.value.head,
|
|
2978
|
+
body: Al.value.body,
|
|
2979
|
+
config: Al.value.config,
|
|
2974
2980
|
title: `${l.value.chart.title.text}${l.value.chart.title.subtitle.text ? ` : ${l.value.chart.title.subtitle.text}` : ""}`,
|
|
2975
2981
|
onClose: c[6] || (c[6] = (e) => f.value.showTable = !1)
|
|
2976
2982
|
}, {
|
|
@@ -2978,7 +2984,7 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
|
|
|
2978
2984
|
g("div", { innerHTML: e }, null, 8, Du)
|
|
2979
2985
|
]),
|
|
2980
2986
|
td: ue(({ td: e }) => [
|
|
2981
|
-
Ft(
|
|
2987
|
+
Ft(le(isNaN(Number(e)) ? e : v(xe)({
|
|
2982
2988
|
p: l.value.chart.labels.prefix,
|
|
2983
2989
|
v: e,
|
|
2984
2990
|
s: l.value.chart.labels.suffix,
|
|
@@ -2991,10 +2997,10 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
|
|
|
2991
2997
|
]),
|
|
2992
2998
|
_: 1
|
|
2993
2999
|
}, 8, ["config"])) : d("", !0),
|
|
2994
|
-
v(
|
|
3000
|
+
v(Wl) ? (u(), Ae(co, { key: 10 })) : d("", !0)
|
|
2995
3001
|
], 46, fo));
|
|
2996
3002
|
}
|
|
2997
|
-
}, rr = /* @__PURE__ */ ho(qu, [["__scopeId", "data-v-
|
|
3003
|
+
}, rr = /* @__PURE__ */ ho(qu, [["__scopeId", "data-v-892e299f"]]);
|
|
2998
3004
|
export {
|
|
2999
3005
|
rr as default
|
|
3000
3006
|
};
|