vue-data-ui 3.15.2 → 3.15.4
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-BlksSfiH.js → Arrow-BusSiqit.js} +1 -1
- package/dist/{BaseDraggableDialog-E33gMvkf.js → BaseDraggableDialog-CcDUyrEz.js} +2 -2
- package/dist/{BaseIcon-UMhVxbLi.js → BaseIcon-D9oV9F4k.js} +1 -1
- package/dist/{BaseLegendToggle-C7HjMSKe.js → BaseLegendToggle-BBqvZhDh.js} +1 -1
- package/dist/{BaseZoomControls-BSKhy9Em.js → BaseZoomControls-D3e4t-5f.js} +2 -2
- package/dist/{ColorPicker-BlmZVMy-.js → ColorPicker--1jDKzvm.js} +2 -2
- package/dist/{DataTable-CetPvrxa.js → DataTable-CQH-FWum.js} +2 -2
- package/dist/{Legend-BmSuOSGO.js → Legend-bchEhOOv.js} +2 -2
- package/dist/{NonSvgPenAndPaper-CxAAQbRx.js → NonSvgPenAndPaper-Dl3QXb9K.js} +3 -3
- package/dist/{PackageVersion-B6IEJQ5U.js → PackageVersion-CQxY6U8v.js} +1 -1
- package/dist/{PenAndPaper-NY4eJxOT.js → PenAndPaper-B51jmZpI.js} +3 -3
- package/dist/{Shape-BJqALJx8.js → Shape-B1p-qP2S.js} +1 -1
- package/dist/{Slicer-Dpw8jgzq.js → Slicer-Bq7AfKc1.js} +2 -2
- package/dist/{SlicerPreview-CmCzvLqB.js → SlicerPreview-B4DP0TOv.js} +175 -170
- package/dist/{SparkTooltip-0RaBXTYZ.js → SparkTooltip-FXQZa3m1.js} +1 -1
- package/dist/{Title-CPGrE3wX.js → Title-B7pGMRI9.js} +1 -1
- package/dist/{Tooltip-CEm9BzOh.js → Tooltip-DOVSgQDu.js} +1 -1
- package/dist/{UserOptions-zrLwMf40.js → UserOptions-X4pTcXzk.js} +2 -2
- package/dist/components/arrow.js +1 -1
- package/dist/components/vue-ui-3d-bar.js +1 -1
- package/dist/components/vue-ui-accordion.js +1 -1
- package/dist/components/vue-ui-age-pyramid.js +1 -1
- package/dist/components/vue-ui-annotator.js +1 -1
- package/dist/components/vue-ui-bullet.js +1 -1
- package/dist/components/vue-ui-bump.js +1 -1
- package/dist/components/vue-ui-candlestick.js +1 -1
- package/dist/components/vue-ui-carousel-table.js +1 -1
- package/dist/components/vue-ui-chestnut.js +1 -1
- package/dist/components/vue-ui-chord.js +1 -1
- package/dist/components/vue-ui-circle-pack.js +1 -1
- package/dist/components/vue-ui-cursor.js +1 -1
- package/dist/components/vue-ui-dag.js +1 -1
- package/dist/components/vue-ui-dashboard.js +1 -1
- package/dist/components/vue-ui-digits.js +1 -1
- package/dist/components/vue-ui-donut-evolution.js +1 -1
- package/dist/components/vue-ui-donut.js +1 -1
- package/dist/components/vue-ui-dumbbell.js +1 -1
- package/dist/components/vue-ui-flow.js +1 -1
- package/dist/components/vue-ui-funnel.js +1 -1
- package/dist/components/vue-ui-galaxy.js +1 -1
- package/dist/components/vue-ui-gauge.js +1 -1
- package/dist/components/vue-ui-geo.js +1 -1
- package/dist/components/vue-ui-gizmo.js +1 -1
- package/dist/components/vue-ui-heatmap.js +1 -1
- package/dist/components/vue-ui-history-plot.js +1 -1
- package/dist/components/vue-ui-horizontal-bar.js +1 -1
- package/dist/components/vue-ui-icon.js +1 -1
- package/dist/components/vue-ui-kpi.js +1 -1
- package/dist/components/vue-ui-mini-loader.js +1 -1
- package/dist/components/vue-ui-molecule.js +1 -1
- package/dist/components/vue-ui-mood-radar.js +1 -1
- package/dist/components/vue-ui-nested-donuts.js +1 -1
- package/dist/components/vue-ui-onion.js +1 -1
- package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
- package/dist/components/vue-ui-quadrant.js +1 -1
- package/dist/components/vue-ui-quick-chart.js +1 -1
- package/dist/components/vue-ui-radar.js +1 -1
- package/dist/components/vue-ui-rating.js +1 -1
- package/dist/components/vue-ui-relation-circle.js +1 -1
- package/dist/components/vue-ui-ridgeline.js +1 -1
- package/dist/components/vue-ui-rings.js +1 -1
- package/dist/components/vue-ui-scatter.js +1 -1
- package/dist/components/vue-ui-skeleton.js +1 -1
- package/dist/components/vue-ui-smiley.js +1 -1
- package/dist/components/vue-ui-spark-trend.js +1 -1
- package/dist/components/vue-ui-sparkbar.js +1 -1
- package/dist/components/vue-ui-sparkgauge.js +1 -1
- package/dist/components/vue-ui-sparkhistogram.js +1 -1
- package/dist/components/vue-ui-sparkline.js +1 -1
- package/dist/components/vue-ui-sparkstackbar.js +1 -1
- package/dist/components/vue-ui-stackbar.js +1 -1
- package/dist/components/vue-ui-stackline.js +1 -1
- package/dist/components/vue-ui-strip-plot.js +1 -1
- package/dist/components/vue-ui-table-heatmap.js +1 -1
- package/dist/components/vue-ui-table-sparkline.js +1 -1
- package/dist/components/vue-ui-table.js +1 -1
- package/dist/components/vue-ui-thermometer.js +1 -1
- package/dist/components/vue-ui-timer.js +1 -1
- package/dist/components/vue-ui-tiremarks.js +1 -1
- package/dist/components/vue-ui-treemap.js +1 -1
- package/dist/components/vue-ui-vertical-bar.js +1 -1
- package/dist/components/vue-ui-waffle.js +1 -1
- package/dist/components/vue-ui-wheel.js +1 -1
- package/dist/components/vue-ui-word-cloud.js +1 -1
- package/dist/components/vue-ui-world.js +1 -1
- package/dist/components/vue-ui-xy-canvas.js +1 -1
- package/dist/components/vue-ui-xy.js +1 -1
- package/dist/{dom-to-png-D6oiYaax.js → dom-to-png-CQ8VHj5N.js} +1 -1
- package/dist/{img-B3Q1YZJp.js → img-CaBQSH60.js} +1 -1
- package/dist/{labelUtils-BhtETZBR.js → labelUtils-JA4-kZX1.js} +1 -1
- package/dist/{lib-swBj76n5.js → lib-CM2Ky_IJ.js} +43 -39
- package/dist/{pdf-C4seG1qk.js → pdf-Dglcm-nl.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.ts +9 -0
- package/dist/{useAutoSizeLabelsInsideViewbox-Bb2gcOS8.js → useAutoSizeLabelsInsideViewbox-BS_9JK8U.js} +1 -1
- package/dist/{useNestedProp-C4DkSVBD.js → useNestedProp-CjM7zaEZ.js} +73 -65
- package/dist/{usePrinter-QiKp5Ju-.js → usePrinter-CFeOnrt8.js} +2 -2
- package/dist/{vue-data-ui-BDNyFPFq.js → vue-data-ui-Ddhb4SpR.js} +68 -68
- package/dist/vue-data-ui.js +73 -73
- package/dist/{vue-ui-3d-bar-DUzNF952.js → vue-ui-3d-bar-BZ3Ynw-V.js} +6 -6
- package/dist/{vue-ui-accordion-BThBDDTd.js → vue-ui-accordion-C5aFnqjM.js} +3 -3
- package/dist/{vue-ui-age-pyramid-r-KmE7L4.js → vue-ui-age-pyramid-CrwcSSty.js} +6 -6
- package/dist/{vue-ui-annotator-DDQwL0bi.js → vue-ui-annotator-DOPfztqh.js} +7 -7
- package/dist/{vue-ui-bullet-DAVzj8Zi.js → vue-ui-bullet-DeftbMcl.js} +7 -7
- package/dist/{vue-ui-bump-B9E1erCP.js → vue-ui-bump-DMdTgGV9.js} +6 -6
- package/dist/{vue-ui-candlestick-CPxzel3w.js → vue-ui-candlestick-C4804pIv.js} +7 -7
- package/dist/{vue-ui-carousel-table-GDTvdXbd.js → vue-ui-carousel-table-DlBno86H.js} +4 -4
- package/dist/{vue-ui-chestnut-iD_E54CN.js → vue-ui-chestnut-f51B2gk7.js} +5 -5
- package/dist/{vue-ui-chord-BC4tguYt.js → vue-ui-chord-Dhx_BrT6.js} +8 -8
- package/dist/{vue-ui-circle-pack-B-CPGgdt.js → vue-ui-circle-pack-CoFUzVFj.js} +6 -6
- package/dist/{vue-ui-cursor-IT1xvbk2.js → vue-ui-cursor-CM0s2RRz.js} +3 -3
- package/dist/{vue-ui-dag-DCdotQVD.js → vue-ui-dag-CPnRzqnH.js} +7 -7
- package/dist/{vue-ui-dashboard-Cq-7-wma.js → vue-ui-dashboard-DC6UslJR.js} +69 -69
- package/dist/{vue-ui-digits-dKBfRE21.js → vue-ui-digits-BK-ucadd.js} +2 -2
- package/dist/{vue-ui-donut-DZEkSIQ1.js → vue-ui-donut-DSNHljTf.js} +10 -10
- package/dist/{vue-ui-donut-evolution-CcrcrKF2.js → vue-ui-donut-evolution-DdnM5ljC.js} +9 -9
- package/dist/{vue-ui-dumbbell-D6rsNu3I.js → vue-ui-dumbbell-C3-9CCkc.js} +7 -7
- package/dist/{vue-ui-flow-CfEK1WcS.js → vue-ui-flow-J_qqij1w.js} +7 -7
- package/dist/{vue-ui-funnel-Cdh7YjHo.js → vue-ui-funnel-CxWDQjMg.js} +6 -6
- package/dist/{vue-ui-galaxy-BV20Wouf.js → vue-ui-galaxy-CA2ZQBis.js} +9 -9
- package/dist/{vue-ui-gauge-CmV6TYbP.js → vue-ui-gauge-D8-NpuZy.js} +7 -7
- package/dist/{vue-ui-geo-Cx8Kl369.js → vue-ui-geo-DEXrYYIa.js} +7 -7
- package/dist/{vue-ui-gizmo-DjW_Zk-I.js → vue-ui-gizmo-CWXqNCBk.js} +3 -3
- package/dist/{vue-ui-heatmap-CmYavjF_.js → vue-ui-heatmap-DEeYIIlB.js} +7 -7
- package/dist/{vue-ui-history-plot-B6RR5_Pr.js → vue-ui-history-plot-BLZAZt2P.js} +8 -8
- package/dist/{vue-ui-horizontal-bar-YurxCHIZ.js → vue-ui-horizontal-bar-BjafvB__.js} +10 -10
- package/dist/{vue-ui-kpi-FS4ErjR6.js → vue-ui-kpi-CVeNlEfp.js} +3 -3
- package/dist/{vue-ui-mini-loader-BJF-5BUy.js → vue-ui-mini-loader-BKSdoGOH.js} +2 -2
- package/dist/{vue-ui-molecule-USv-Zjga.js → vue-ui-molecule-DDQaYmvI.js} +5 -5
- package/dist/{vue-ui-mood-radar-CH7gUd3S.js → vue-ui-mood-radar-DWdNAylt.js} +7 -7
- package/dist/{vue-ui-nested-donuts-FJhK_VCm.js → vue-ui-nested-donuts-BKi0-kMq.js} +30 -30
- package/dist/{vue-ui-onion-BkB7pI6J.js → vue-ui-onion-CkqBxjKJ.js} +10 -10
- package/dist/{vue-ui-parallel-coordinate-plot-BcKuTS5G.js → vue-ui-parallel-coordinate-plot-CJkdtZWR.js} +41 -41
- package/dist/{vue-ui-quadrant-Fa0Ql-oe.js → vue-ui-quadrant-BT7NhKgx.js} +9 -9
- package/dist/{vue-ui-quick-chart-BoZswYC4.js → vue-ui-quick-chart-CFdfRPxe.js} +7 -7
- package/dist/{vue-ui-radar-BVQtbLQl.js → vue-ui-radar-Du3BnjwB.js} +9 -9
- package/dist/{vue-ui-rating-C_53Yh-e.js → vue-ui-rating-ClnZwaHs.js} +2 -2
- package/dist/{vue-ui-relation-circle-BKCKaCiY.js → vue-ui-relation-circle-BgWVcby8.js} +7 -7
- package/dist/{vue-ui-ridgeline-DGVeoRL_.js → vue-ui-ridgeline-Bmc9P-GZ.js} +9 -9
- package/dist/{vue-ui-rings-CzohTeZg.js → vue-ui-rings-BAPbgNSU.js} +10 -10
- package/dist/{vue-ui-scatter-Be9GWl3l.js → vue-ui-scatter-DilXoHPi.js} +9 -9
- package/dist/{vue-ui-skeleton-smOfSmjU.js → vue-ui-skeleton-BxkufqvL.js} +3 -3
- package/dist/{vue-ui-smiley-BfleoYld.js → vue-ui-smiley-_yLSfDOj.js} +2 -2
- package/dist/{vue-ui-spark-trend-_3ELEmlz.js → vue-ui-spark-trend-DzFx3BKG.js} +3 -3
- package/dist/{vue-ui-sparkbar-COFbNvl8.js → vue-ui-sparkbar-YTf_oBBs.js} +3 -3
- package/dist/{vue-ui-sparkgauge-BVj5aBtN.js → vue-ui-sparkgauge-PZODMJtw.js} +3 -3
- package/dist/{vue-ui-sparkhistogram-BpIUtNbm.js → vue-ui-sparkhistogram-DhhbVfgV.js} +4 -4
- package/dist/vue-ui-sparkline-BZECKd2s.js +1285 -0
- package/dist/{vue-ui-sparkstackbar-Di1Z6CpX.js → vue-ui-sparkstackbar-CNvFak4_.js} +4 -4
- package/dist/{vue-ui-stackbar-DfpvPPd1.js → vue-ui-stackbar-DDznm22k.js} +10 -10
- package/dist/{vue-ui-stackline-pnbcfPu2.js → vue-ui-stackline-2TiDmJyE.js} +10 -10
- package/dist/{vue-ui-strip-plot-CO47pgaw.js → vue-ui-strip-plot-wBgBbnlc.js} +7 -7
- package/dist/{vue-ui-table-DuVmmM6H.js → vue-ui-table-C2pmfF95.js} +5 -5
- package/dist/{vue-ui-table-heatmap-DbXrKnjX.js → vue-ui-table-heatmap-pVcj0a3Y.js} +5 -5
- package/dist/{vue-ui-table-sparkline-CuJ7Zsve.js → vue-ui-table-sparkline-CU26h_-B.js} +13 -13
- package/dist/{vue-ui-thermometer-BRcNwZEw.js → vue-ui-thermometer-CTHU_q9y.js} +7 -7
- package/dist/{vue-ui-timer-D7msujhO.js → vue-ui-timer-CJdr8ey6.js} +5 -5
- package/dist/{vue-ui-tiremarks-hx9IfotL.js → vue-ui-tiremarks-DimUVYDm.js} +6 -6
- package/dist/{vue-ui-treemap-DWMchmZj.js → vue-ui-treemap-CG7c5MU9.js} +9 -9
- package/dist/{vue-ui-waffle-MXpJ2_j4.js → vue-ui-waffle-DTl0xzh9.js} +10 -10
- package/dist/{vue-ui-wheel-rw2QWGiJ.js → vue-ui-wheel-BP2GUdHD.js} +6 -6
- package/dist/{vue-ui-word-cloud-COBNp3Nn.js → vue-ui-word-cloud-Co-IErno.js} +7 -7
- package/dist/{vue-ui-world-D3B9gr4m.js → vue-ui-world-sMWLqqq3.js} +7 -7
- package/dist/{vue-ui-xy-canvas-By2yRWCx.js → vue-ui-xy-canvas-D_-gXwit.js} +11 -11
- package/dist/{vue-ui-xy-CnJ3_k9V.js → vue-ui-xy-dHUxRUHR.js} +1014 -998
- package/package.json +4 -3
- package/dist/vue-ui-sparkline-CgYlQI65.js +0 -856
|
@@ -1,34 +1,34 @@
|
|
|
1
|
-
import { defineAsyncComponent as We, useSlots as Rr, getCurrentInstance as Er, ref as g, shallowRef as Hr, computed as m, onMounted as Ol, toRefs as Wr, watch as hl, watchEffect as da, nextTick as Nl, onBeforeUnmount as Ba, createElementBlock as i, openBlock as
|
|
2
|
-
import { c as Oa, g as Na, t as
|
|
1
|
+
import { defineAsyncComponent as We, useSlots as Rr, getCurrentInstance as Er, ref as g, shallowRef as Hr, computed as m, onMounted as Ol, toRefs as Wr, watch as hl, watchEffect as da, nextTick as Nl, onBeforeUnmount as Ba, createElementBlock as i, openBlock as n, normalizeStyle as _, normalizeClass as ll, createBlock as Se, createCommentVNode as h, createElementVNode as p, createVNode as fl, renderSlot as D, unref as v, withCtx as X, normalizeProps as me, guardReactiveProps as be, createSlots as ro, Fragment as d, renderList as y, mergeProps as al, toDisplayString as te, Teleport as Yr, resolveDynamicComponent as Xr, withDirectives as Gr, vModelCheckbox as qr, createTextVNode as so } from "vue";
|
|
2
|
+
import { c as Oa, g as Na, t as uo, k as Ur, N as Pl, O as tl, m as Pa, j as Da, P as ha, Q as W, R as Va, S as Zr, T as Jr, U as P, z as no, A as io, B as co, C as vo, V as Kr, W as Qr, Y as jr, Z as ho, _ as fo, a as ne, $ as es, y as go, a0 as ls, b as mo, e as Ne, d as Pe, h as ol, s as ze, a1 as as, G as ts, x as Ye, H as fa, n as Ae, a2 as os, a3 as Xe, a4 as Dl, i as rs, o as bo, v as ss, r as us, a5 as gl } from "./lib-CM2Ky_IJ.js";
|
|
3
3
|
import { u as po, a as xo, b as ns } from "./useTimeLabels-C-A2uZKi.js";
|
|
4
|
-
import { u as
|
|
5
|
-
import { u as
|
|
6
|
-
import { u as
|
|
7
|
-
import { u as
|
|
8
|
-
import { u as
|
|
9
|
-
import { u as
|
|
10
|
-
import { u as
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import { _ as ga } from "./Shape-
|
|
14
|
-
import { S as
|
|
15
|
-
import
|
|
16
|
-
import { B as
|
|
17
|
-
import { _ as
|
|
18
|
-
const yo = { chart: { userOptions: { show: !1 }, grid: { showVerticalLines: !1, showHorizontalLines: !1 }, legend: { show: !1 }, zoom: { minimap: { show: !0 } } }, line: { useGradient: !1, area: { useGradient: !1 } }, bar: { useGradient: !1 }, plot: { useGradient: !1 } }, ko = { chart: { userOptions: { show: !1 }, backgroundColor: "#1A1A1A", color: "#CCCCCC", zoom: { color: "#4A4A4A", highlightColor: "#9A9A9A", minimap: { show: !0, selectedColor: "#8A8A8A", lineColor: "#424242", indicatorColor: "#CCCCCC" } }, highlighter: { color: "#CCCCCC" }, timeTag: { backgroundColor: "#2A2A2A", color: "#CCCCCC", circleMarker: { color: "#2A2A2A" } }, grid: { stroke: "#5A5A5A", showVerticalLines: !1, labels: { color: "#CCCCCC", xAxisLabels: { color: "#CCCCCC" } } }, legend: { show: !1, color: "#CCCCCC", selectAllToggle: { backgroundColor: "#3A3A3A", color: "#CCCCCC" } }, title: { color: "#CCCCCC", subtitle: { color: "#757575" } }, tooltip: { backgroundColor: "#1A1A1A", backgroundOpacity: 70, color: "#CCCCCC", borderColor: "#3A3A3A" } }, bar: { useGradient: !1, border: { stroke: "#1A1A1A" }, labels: { color: "#CCCCCC" }, serieName: { color: "#CCCCCC" } }, line: { useGradient: !1, labels: { color: "#CCCCCC" }, area: { useGradient: !1 } }, plot: { useGradient: !1, labels: { color: "#CCCCCC" } }, table: { th: { backgroundColor: "#1A1A1A", color: "#CCCCCC" }, td: { backgroundColor: "#1A1A1A", color: "#CCCCCC" } } }, Co = { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", zoom: { color: "#4A4A4A", highlightColor: "#9A9A9A", minimap: { selectedColor: "#8A8A8A", lineColor: "#424242", indicatorColor: "#CCCCCC" } }, highlighter: { color: "#CCCCCC" }, timeTag: { backgroundColor: "#2A2A2A", color: "#CCCCCC", circleMarker: { color: "#2A2A2A" } }, grid: { stroke: "#5A5A5A", showVerticalLines: !1, labels: { color: "#CCCCCC", xAxisLabels: { color: "#CCCCCC" } } }, legend: { color: "#CCCCCC", selectAllToggle: { backgroundColor: "#3A3A3A", color: "#CCCCCC" } }, title: { color: "#CCCCCC", subtitle: { color: "#757575" } }, tooltip: { backgroundColor: "#1A1A1A", backgroundOpacity: 70, color: "#CCCCCC", borderColor: "#5A5A5A" } }, bar: { border: { stroke: "#1A1A1A" }, labels: { color: "#CCCCCC" }, serieName: { color: "#CCCCCC" } }, line: { labels: { color: "#CCCCCC" } }, plot: { labels: { color: "#CCCCCC" } }, table: { th: { backgroundColor: "#1A1A1A", color: "#CCCCCC" }, td: { backgroundColor: "#1A1A1A", color: "#CCCCCC" } } },
|
|
4
|
+
import { u as is, a as Vl } from "./useNestedProp-CjM7zaEZ.js";
|
|
5
|
+
import { u as cs } from "./usePrinter-CFeOnrt8.js";
|
|
6
|
+
import { u as vs, B as ds } from "./BaseScanner-BMpwQAfz.js";
|
|
7
|
+
import { u as hs } from "./useSvgExport-ByUukOZt.js";
|
|
8
|
+
import { u as fs } from "./useThemeCheck-D1ZYXUwG.js";
|
|
9
|
+
import { u as gs } from "./useStableElementSize-DCNs0Tx7.js";
|
|
10
|
+
import { u as ms } from "./useTimeLabelCollider-CIsgDrl9.js";
|
|
11
|
+
import bs from "./img-CaBQSH60.js";
|
|
12
|
+
import ps from "./Title-B7pGMRI9.js";
|
|
13
|
+
import { _ as ga } from "./Shape-B1p-qP2S.js";
|
|
14
|
+
import { S as xs } from "./SlicerPreview-B4DP0TOv.js";
|
|
15
|
+
import ys from "./vue-ui-accordion-C5aFnqjM.js";
|
|
16
|
+
import { B as ks } from "./BaseLegendToggle-BBqvZhDh.js";
|
|
17
|
+
import { _ as Cs } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
18
|
+
const yo = { chart: { userOptions: { show: !1 }, grid: { showVerticalLines: !1, showHorizontalLines: !1 }, legend: { show: !1 }, zoom: { minimap: { show: !0 } } }, line: { useGradient: !1, area: { useGradient: !1 } }, bar: { useGradient: !1 }, plot: { useGradient: !1 } }, ko = { chart: { userOptions: { show: !1 }, backgroundColor: "#1A1A1A", color: "#CCCCCC", zoom: { color: "#4A4A4A", highlightColor: "#9A9A9A", minimap: { show: !0, selectedColor: "#8A8A8A", lineColor: "#424242", indicatorColor: "#CCCCCC" } }, highlighter: { color: "#CCCCCC" }, timeTag: { backgroundColor: "#2A2A2A", color: "#CCCCCC", circleMarker: { color: "#2A2A2A" } }, grid: { stroke: "#5A5A5A", showVerticalLines: !1, labels: { color: "#CCCCCC", xAxisLabels: { color: "#CCCCCC" } } }, legend: { show: !1, color: "#CCCCCC", selectAllToggle: { backgroundColor: "#3A3A3A", color: "#CCCCCC" } }, title: { color: "#CCCCCC", subtitle: { color: "#757575" } }, tooltip: { backgroundColor: "#1A1A1A", backgroundOpacity: 70, color: "#CCCCCC", borderColor: "#3A3A3A" } }, bar: { useGradient: !1, border: { stroke: "#1A1A1A" }, labels: { color: "#CCCCCC" }, serieName: { color: "#CCCCCC" } }, line: { useGradient: !1, labels: { color: "#CCCCCC" }, area: { useGradient: !1 } }, plot: { useGradient: !1, labels: { color: "#CCCCCC" } }, table: { th: { backgroundColor: "#1A1A1A", color: "#CCCCCC" }, td: { backgroundColor: "#1A1A1A", color: "#CCCCCC" } } }, Co = { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", zoom: { color: "#4A4A4A", highlightColor: "#9A9A9A", minimap: { selectedColor: "#8A8A8A", lineColor: "#424242", indicatorColor: "#CCCCCC" } }, highlighter: { color: "#CCCCCC" }, timeTag: { backgroundColor: "#2A2A2A", color: "#CCCCCC", circleMarker: { color: "#2A2A2A" } }, grid: { stroke: "#5A5A5A", showVerticalLines: !1, labels: { color: "#CCCCCC", xAxisLabels: { color: "#CCCCCC" } } }, legend: { color: "#CCCCCC", selectAllToggle: { backgroundColor: "#3A3A3A", color: "#CCCCCC" } }, title: { color: "#CCCCCC", subtitle: { color: "#757575" } }, tooltip: { backgroundColor: "#1A1A1A", backgroundOpacity: 70, color: "#CCCCCC", borderColor: "#5A5A5A" } }, bar: { border: { stroke: "#1A1A1A" }, labels: { color: "#CCCCCC" }, serieName: { color: "#CCCCCC" } }, line: { labels: { color: "#CCCCCC" } }, plot: { labels: { color: "#CCCCCC" } }, table: { th: { backgroundColor: "#1A1A1A", color: "#CCCCCC" }, td: { backgroundColor: "#1A1A1A", color: "#CCCCCC" } } }, _o = { chart: { backgroundColor: "#FFF8E1", color: "#424242", zoom: { color: "#5D4037", highlightColor: "#FF8A65", minimap: { selectedColor: "#FF8A65", lineColor: "#424242", indicatorColor: "#FF8A65" } }, highlighter: { color: "#424242" }, timeTag: { backgroundColor: "#424242", color: "#FFF8E1", circleMarker: { color: "#424242" } }, grid: { stroke: "#5D4037", showVerticalLines: !1, labels: { color: "#424242", xAxisLabels: { color: "#424242" }, xAxis: { showBaseline: !1 } } }, legend: { color: "#424242", selectAllToggle: { backgroundColor: "#5D4037", color: "#FFF8E1" } }, title: { color: "#424242", subtitle: { color: "#757575" } }, tooltip: { backgroundColor: "#FFECB3", backgroundOpacity: 30, color: "#424242", borderColor: "#FF8A65" } }, bar: { borderRadius: 2, border: { stroke: "#FFF8E1" }, labels: { color: "#424242" }, serieName: { color: "#424242" } }, line: { labels: { color: "#424242" } }, plot: { labels: { color: "#424242" } }, table: { th: { backgroundColor: "#FFF8E1", color: "#424242" }, td: { backgroundColor: "#FFF8E1", color: "#424242" } } }, wo = { chart: { backgroundColor: "#1E1E1E", color: "#BDBDBD", zoom: { color: "#5D4037", highlightColor: "#FF8A65", minimap: { selectedColor: "#FF8A65", lineColor: "#FF6B6B", indicatorColor: "#FF8A65" } }, highlighter: { color: "#FFF8E1" }, timeTag: { backgroundColor: "#5D4037", color: "#FFF8E1", circleMarker: { color: "#5D4037" } }, grid: { stroke: "#5D4037", showVerticalLines: !1, labels: { color: "#BDBDBD", xAxisLabels: { color: "#BDBDBD" }, xAxis: { showBaseline: !1 } } }, legend: { color: "#BDBDBD", selectAllToggle: { backgroundColor: "#3A3A3A", color: "#BDBDBD" } }, title: { color: "#FFF8E1", subtitle: { color: "#BDBDBD" } }, tooltip: { backgroundColor: "#1E1E1E", backgroundOpacity: 30, color: "#FFF8E1", borderColor: "#FF8A65" } }, bar: { borderRadius: 2, border: { stroke: "#1E1E1E" }, labels: { color: "#BDBDBD" }, serieName: { color: "#BDBDBD" } }, line: { labels: { color: "#BDBDBD" } }, plot: { labels: { color: "#BDBDBD" } }, table: { th: { backgroundColor: "#1E1E1E", color: "#BDBDBD" }, td: { backgroundColor: "#1E1E1E", color: "#BDBDBD" } } }, So = { chart: { backgroundColor: "#1A1A1A", color: "#99AA99", zoom: { color: "#5F6A5F", highlightColor: "#66CC66" }, highlighter: { color: "#66CC66" }, timeTag: { backgroundColor: "#1A1A1A", color: "#66CC66", circleMarker: { color: "#66CC66" } }, grid: { stroke: "#5F6A5F", showVerticalLines: !1, labels: { color: "#99AA99", xAxisLabels: { color: "#99AA99" }, xAxis: { showBaseline: !1 } } }, legend: { color: "#99AA99", selectAllToggle: { backgroundColor: "#3A3A3A", color: "#99AA99" } }, title: { color: "#66CC66", subtitle: { color: "#99AA99" } }, tooltip: { backgroundColor: "#2A2F2A", color: "#AACCAA", borderColor: "#66CC66" } }, bar: { borderRadius: 0, border: { stroke: "#66CC66" }, labels: { color: "#AACCAA" }, serieName: { color: "#99CC99" } }, line: { labels: { color: "#AACCAA" } }, plot: { labels: { color: "#AACCAA" } }, table: { th: { backgroundColor: "#1A1A1A", color: "#99AA99" }, td: { backgroundColor: "#1A1A1A", color: "#AACCAA" } } }, Ao = { chart: { backgroundColor: "#fbfafa", color: "#8A9892", zoom: { color: "#E0CFC3", highlightColor: "#8F837A" }, highlighter: { color: "#8F837A" }, timeTag: { backgroundColor: "#fbfafa", color: "#8A9892", circleMarker: { color: "#8A9892" } }, grid: { stroke: "transparent", labels: { show: !1, color: "#99AA99", xAxisLabels: { show: !1, color: "#99AA99" }, zeroLine: { show: !1 }, yAxis: { showBaseline: !1 } } }, legend: { backgroundColor: "#fbfafa", color: "#99AA99", selectAllToggle: { backgroundColor: "#E0CFC3", color: "#8F837A" } }, title: { color: "#8A9892", subtitle: { color: "#99AA99" } }, tooltip: { backgroundColor: "#fbfafa", color: "#8A9892" } }, bar: { borderRadius: 4, border: { stroke: "#D7E0D2" }, labels: { color: "#8F837A" }, serieName: { color: "#858480" } }, line: { labels: { color: "#8F837A" } }, plot: { labels: { color: "#8F837A" } }, table: { th: { backgroundColor: "#fbfafa", color: "#8F837A" }, td: { backgroundColor: "#fbfafa", color: "#8F837A" } } }, $o = { chart: { backgroundColor: "#f6f6fb", color: "#50606C", zoom: { color: "#92B0AB", highlightColor: "#50606C" }, highlighter: { color: "#7DA9B5" }, timeTag: { backgroundColor: "#f6f6fb", color: "#50606C", circleMarker: { color: "#50606C" } }, grid: { stroke: "#829C98", showVerticalLines: !0, showHorizontalLines: !0, labels: { color: "#50606C", xAxisLabels: { color: "#50606C" } } }, legend: { backgroundColor: "#f6f6fb", color: "#61747E", selectAllToggle: { backgroundColor: "#50606C", color: "#f6f6fb" } }, title: { color: "#50606C", subtitle: { color: "#718890" } }, tooltip: { backgroundColor: "#f6f6fb", color: "#50606C" } }, bar: { borderRadius: 2, border: { stroke: "#404C4D" }, labels: { color: "#50606C" }, serieName: { color: "#61747E" } }, line: { labels: { color: "#50606C" } }, plot: { labels: { color: "#50606C" } }, table: { th: { backgroundColor: "#f6f6fb", color: "#50606C" }, td: { backgroundColor: "#f6f6fb", color: "#50606C" } } }, Lo = {
|
|
19
19
|
default: {},
|
|
20
20
|
minimal: yo,
|
|
21
21
|
minimalDark: ko,
|
|
22
22
|
dark: Co,
|
|
23
|
-
celebration:
|
|
24
|
-
celebrationNight:
|
|
23
|
+
celebration: _o,
|
|
24
|
+
celebrationNight: wo,
|
|
25
25
|
hack: So,
|
|
26
26
|
zen: Ao,
|
|
27
27
|
concrete: $o
|
|
28
|
-
},
|
|
28
|
+
}, Ci = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
29
29
|
__proto__: null,
|
|
30
|
-
celebration:
|
|
31
|
-
celebrationNight:
|
|
30
|
+
celebration: _o,
|
|
31
|
+
celebrationNight: wo,
|
|
32
32
|
concrete: $o,
|
|
33
33
|
dark: Co,
|
|
34
34
|
default: Lo,
|
|
@@ -36,51 +36,51 @@ const yo = { chart: { userOptions: { show: !1 }, grid: { showVerticalLines: !1,
|
|
|
36
36
|
minimal: yo,
|
|
37
37
|
minimalDark: ko,
|
|
38
38
|
zen: Ao
|
|
39
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
39
|
+
}, Symbol.toStringTag, { value: "Module" })), _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], As = ["x", "y", "width", "height"], $s = { key: 1 }, Ls = { class: "vue-ui-xy-grid" }, Ms = ["stroke", "x1", "x2", "y1", "y2"], Ts = ["stroke", "x1", "x2", "y1", "y2"], zs = { key: 1 }, Is = ["x1", "x2", "y1", "y2", "stroke"], Fs = ["x1", "x2", "y1", "y2", "stroke"], Bs = ["x1", "x2", "y1", "y2", "stroke"], Os = { key: 3 }, Ns = ["d", "stroke"], Ps = { key: 4 }, Ds = ["d", "stroke"], Vs = ["id"], Rs = ["stop-color"], Es = ["stop-color"], Hs = ["stop-color"], Ws = ["id"], Ys = ["stop-color"], Xs = ["stop-color"], Gs = ["stop-color"], qs = ["id"], Us = ["stop-color"], Zs = ["stop-color"], Js = ["id"], Ks = ["stop-color"], Qs = ["stop-color"], js = ["id"], eu = ["stop-color"], lu = ["stop-color"], au = { key: 0 }, tu = ["id"], ou = ["stop-color", "offset"], ru = ["x", "y", "height", "width", "fill"], su = ["x", "y", "width"], uu = { key: 0 }, nu = ["x", "y", "height", "width", "fill"], iu = ["x", "y", "height", "width", "rx", "fill", "stroke", "stroke-width"], cu = ["x", "y", "height", "width", "rx", "fill", "stroke", "stroke-width"], vu = ["width", "x", "y"], du = ["stroke", "x1", "x2", "y1", "y2"], hu = { key: 3 }, fu = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], gu = ["x", "y", "width", "height", "stroke", "stroke-width", "stroke-linecap", "stroke-linejoin", "stroke-dasharray"], mu = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], bu = ["fill", "font-size", "transform"], pu = ["x1", "x2", "y1", "y2", "stroke"], xu = ["x", "y", "font-size", "fill"], yu = ["x1", "x2", "y1", "y2", "stroke"], ku = ["x", "y", "font-size", "fill"], Cu = ["width", "x", "y"], _u = { style: { width: "100%" } }, wu = ["d", "stroke", "stroke-width", "stroke-dasharray"], Su = ["d", "stroke", "stroke-width", "stroke-dasharray"], Au = { key: 6 }, $u = { key: 7 }, Lu = ["d", "fill", "fill-opacity"], Mu = { key: 0 }, Tu = ["d", "fill"], zu = ["d", "fill"], Iu = ["d", "fill"], Fu = ["d", "fill"], Bu = ["d", "stroke", "stroke-width", "stroke-dasharray"], Ou = ["d", "stroke", "stroke-width", "stroke-dasharray"], Nu = ["d", "stroke", "stroke-width", "stroke-dasharray"], Pu = ["d", "stroke", "stroke-width", "stroke-dasharray"], Du = ["width", "x", "y"], Vu = { style: { width: "100%" } }, Ru = { key: 8 }, Eu = ["x", "y", "font-size", "fill"], Hu = ["x", "y", "font-size", "fill", "font-weight"], Wu = { key: 9 }, Yu = ["x", "y", "font-size", "fill"], Xu = { key: 10 }, Gu = ["x", "y"], qu = ["innerHTML"], Uu = ["x", "y"], Zu = ["innerHTML"], Ju = ["x1", "x2", "y1", "y2", "stroke"], Ku = { key: 11 }, Qu = ["x", "y", "font-size", "fill"], ju = { key: 12 }, en = ["x", "y"], ln = ["innerHTML"], an = ["x", "y"], tn = ["innerHTML"], on = ["x1", "x2", "y1", "y2", "stroke"], rn = ["x", "y", "font-size", "fill", "innerHTML"], sn = ["x", "y", "font-size", "fill", "innerHTML"], un = ["x", "y", "font-size", "fill", "innerHTML"], nn = ["x", "y", "font-size", "fill", "innerHTML"], cn = { key: 0 }, vn = ["id"], dn = ["fill", "stroke"], hn = ["x1", "x2", "y1", "y2", "stroke", "marker-end"], fn = ["x1", "x2", "y1", "y2", "stroke", "marker-end"], gn = ["x", "y", "font-size", "fill", "stroke"], mn = ["id"], bn = ["stop-color"], pn = ["stop-color"], xn = ["x", "y", "width", "height", "fill", "onMouseenter"], yn = ["font-size", "fill", "transform"], kn = ["x", "y", "font-size", "fill"], Cn = ["text-anchor", "font-size", "fill", "transform", "onClick"], _n = ["text-anchor", "font-size", "fill", "transform", "innerHTML", "onClick"], wn = { key: 15 }, Sn = ["x1", "y1", "x2", "y2", "stroke", "stroke-width", "stroke-dasharray"], An = ["x1", "y1", "x2", "y2", "stroke", "stroke-width", "stroke-dasharray"], $n = ["y", "x", "width", "height", "fill"], Ln = ["id", "x", "y", "font-size", "fill", "text-anchor"], Mn = {
|
|
40
40
|
key: 16,
|
|
41
41
|
style: { "pointer-events": "none" }
|
|
42
|
-
},
|
|
42
|
+
}, Tn = ["x", "y"], zn = ["innerHTML"], In = ["cx", "cy", "r", "fill"], Fn = ["data-start", "data-end"], Bn = {
|
|
43
43
|
key: 4,
|
|
44
44
|
class: "vue-data-ui-watermark"
|
|
45
|
-
},
|
|
45
|
+
}, On = {
|
|
46
46
|
class: "vue-ui-xy-tag-arrow",
|
|
47
47
|
height: "20",
|
|
48
48
|
viewBox: "0 0 10 20",
|
|
49
49
|
style: { position: "absolute", right: "100%", top: "50%", transform: "translateY(-50%)" }
|
|
50
|
-
},
|
|
50
|
+
}, Nn = ["fill"], Pn = ["innerHTML"], Dn = {
|
|
51
51
|
class: "vue-ui-xy-tag-arrow",
|
|
52
52
|
height: "100%",
|
|
53
53
|
viewBox: "0 0 10 20",
|
|
54
54
|
style: { position: "absolute", left: "100%", top: "50%", transform: "translateY(-50%)" }
|
|
55
|
-
},
|
|
55
|
+
}, Vn = ["fill"], Rn = ["innerHTML"], En = {
|
|
56
56
|
class: "vue-ui-xy-tag-arrow",
|
|
57
57
|
height: "20",
|
|
58
58
|
viewBox: "0 0 10 20",
|
|
59
59
|
style: { position: "absolute", right: "100%", top: "50%", transform: "translateY(-50%)" }
|
|
60
|
-
},
|
|
60
|
+
}, Hn = ["fill"], Wn = ["innerHTML"], Yn = {
|
|
61
61
|
class: "vue-ui-xy-tag-arrow",
|
|
62
62
|
height: "100%",
|
|
63
63
|
viewBox: "0 0 10 20",
|
|
64
64
|
style: { position: "absolute", left: "100%", top: "50%", transform: "translateY(-50%)" }
|
|
65
|
-
},
|
|
65
|
+
}, Xn = ["fill"], Gn = ["innerHTML"], qn = ["id"], Un = ["onClick"], Zn = {
|
|
66
66
|
key: 0,
|
|
67
67
|
viewBox: "0 0 20 12",
|
|
68
68
|
height: "1em",
|
|
69
69
|
width: "1.43em"
|
|
70
|
-
},
|
|
70
|
+
}, Jn = ["stroke", "fill"], Kn = {
|
|
71
71
|
key: 1,
|
|
72
72
|
viewBox: "0 0 40 40",
|
|
73
73
|
height: "1em",
|
|
74
74
|
width: "1em"
|
|
75
|
-
},
|
|
75
|
+
}, Qn = ["fill"], jn = ["fill"], ei = {
|
|
76
76
|
key: 2,
|
|
77
77
|
viewBox: "0 0 12 12",
|
|
78
78
|
height: "1em",
|
|
79
79
|
width: "1em"
|
|
80
|
-
},
|
|
80
|
+
}, li = {
|
|
81
81
|
style: { display: "flex", "flex-direction": "row", gap: "6px", "align-items": "center", "padding-left": "6px" },
|
|
82
82
|
"data-dom-to-png-ignore": ""
|
|
83
|
-
},
|
|
83
|
+
}, ai = ["innerHTML"], ti = {
|
|
84
84
|
__name: "vue-ui-xy",
|
|
85
85
|
props: {
|
|
86
86
|
config: {
|
|
@@ -102,56 +102,56 @@ const yo = { chart: { userOptions: { show: !1 }, grid: { showVerticalLines: !1,
|
|
|
102
102
|
},
|
|
103
103
|
emits: ["selectTimeLabel", "selectX", "selectLegend", "zoomStart", "zoomEnd", "zoomReset", "copyAlt"],
|
|
104
104
|
setup(ma, { expose: Mo, emit: To }) {
|
|
105
|
-
const F = ma, zo = We(() => import("./DataTable-
|
|
106
|
-
elementRef:
|
|
105
|
+
const F = ma, zo = We(() => import("./DataTable-CQH-FWum.js")), Io = We(() => import("./Tooltip-DOVSgQDu.js")), Fo = We(() => import("./UserOptions-X4pTcXzk.js")), Ra = We(() => import("./BaseIcon-D9oV9F4k.js")), Bo = We(() => import("./vue-ui-table-sparkline-CU26h_-B.js").then((a) => a.b)), Oo = We(() => import("./PackageVersion-CQxY6U8v.js")), No = We(() => import("./PenAndPaper-B51jmZpI.js")), Po = We(() => import("./BaseDraggableDialog-CcDUyrEz.js")), Ge = To, Ea = Rr(), Do = Er(), { vue_ui_xy: ml } = is(), { isThemeValid: Vo, warnInvalidTheme: Ro } = fs(), $e = g(null), bl = g(null), Ie = g(null), rl = g(null), pl = g(null), xl = g(null), Eo = g(null), ba = g(null), pa = g(null), Rl = g(null), xa = g(null), ya = g(null), Ve = g(null), ka = g(null), Ho = g(0), I = g(null), Ha = g(!0), ie = g(600), K = g(1e3), El = g("0 0 1000 600"), Wo = g({ x: 0, y: 0 }), yl = g({ line: "line", bar: "bar", plot: "plot" }), kl = g(!1), qe = g(!1), Wa = g(!1), Ue = g(null), q = g([]), O = g(Oa()), Ya = g(0), Xa = g(0), Ga = g(0), Cl = g(!0), Ca = g(0), N = g(null), qa = g(!1), _a = g(!0), Hl = g(!0), ce = g(null), De = g({}), Wl = g(null), Ua = g(!1), sl = g(null), Yl = g(!1), Xl = g(!1), C = g(null), Za = Hr(null), Ja = g(!1), Ka = g(0), Qa = g(0), ja = gs({
|
|
106
|
+
elementRef: Za,
|
|
107
107
|
minimumWidth: 2,
|
|
108
108
|
minimumHeight: 2,
|
|
109
109
|
stableFramesRequired: 2,
|
|
110
110
|
once: !1,
|
|
111
111
|
onSizeAccepted: () => {
|
|
112
|
-
|
|
112
|
+
ul();
|
|
113
113
|
}
|
|
114
114
|
});
|
|
115
|
-
function
|
|
116
|
-
|
|
115
|
+
function _l() {
|
|
116
|
+
Za.value = $e.value?.parentNode ?? null;
|
|
117
117
|
}
|
|
118
|
-
function
|
|
118
|
+
function et() {
|
|
119
119
|
return new Promise((a) => {
|
|
120
120
|
requestAnimationFrame(() => {
|
|
121
121
|
requestAnimationFrame(a);
|
|
122
122
|
});
|
|
123
123
|
});
|
|
124
124
|
}
|
|
125
|
-
async function
|
|
126
|
-
const a = ++
|
|
127
|
-
|
|
125
|
+
async function ul() {
|
|
126
|
+
const a = ++Qa.value;
|
|
127
|
+
Ja.value = !1, await Nl(), await et(), await et(), a === Qa.value && (Ka.value += 1, Ja.value = !0);
|
|
128
128
|
}
|
|
129
129
|
const Yo = m(() => ({
|
|
130
130
|
height: ie.value,
|
|
131
131
|
width: K.value
|
|
132
132
|
}));
|
|
133
|
-
function
|
|
133
|
+
function lt(a) {
|
|
134
134
|
return Number.isFinite(a) ? Math.max(0, Math.floor(a)) : 0;
|
|
135
135
|
}
|
|
136
|
-
function
|
|
136
|
+
function wa(a, r, e = 0) {
|
|
137
137
|
return Number.isFinite(a) && Number.isFinite(r) && Math.abs(r) > 1e-9 ? a / r : e;
|
|
138
138
|
}
|
|
139
|
-
const
|
|
139
|
+
const at = g(!1), x = g({
|
|
140
140
|
xAxis: 18,
|
|
141
141
|
yAxis: 12,
|
|
142
142
|
dataLabels: 20,
|
|
143
143
|
plotLabels: 10
|
|
144
144
|
}), Le = g({ plot: 3, line: 3 });
|
|
145
145
|
Ol(() => {
|
|
146
|
-
|
|
146
|
+
Ua.value = !0, F.dataset.length && F.dataset.forEach((a, r) => {
|
|
147
147
|
[null, void 0].includes(a.series) && Na({
|
|
148
148
|
componentName: "VueUiXy",
|
|
149
149
|
type: "datasetSerieAttribute",
|
|
150
150
|
property: "series (number[])",
|
|
151
151
|
index: r,
|
|
152
|
-
debug:
|
|
152
|
+
debug: wl.value
|
|
153
153
|
});
|
|
154
|
-
}),
|
|
154
|
+
}), _l(), ja.start(), ul();
|
|
155
155
|
});
|
|
156
156
|
function Sa() {
|
|
157
157
|
if (!Object.keys(F.config || {}).length)
|
|
@@ -163,10 +163,10 @@ const yo = { chart: { userOptions: { show: !1 }, grid: { showVerticalLines: !1,
|
|
|
163
163
|
F.config && Dl(F.config, "chart.highlightArea") && (Array.isArray(F.config.chart.highlightArea) ? a.chart.highlightArea = F.config.chart.highlightArea : a.chart.highlightArea = [F.config.chart.highlightArea]), F.config && Dl(F.config, "chart.annotations") && Array.isArray(F.config.chart.annotations) && F.config.chart.annotations.length ? a.chart.annotations = F.config.chart.annotations.map((t) => Vl({
|
|
164
164
|
defaultConfig: ml.chart.annotations[0],
|
|
165
165
|
userConfig: t
|
|
166
|
-
})) : a.chart.annotations = [], F.config && Dl(F.config, "chart.grid.position") && F.config.chart.grid.position === "start" && F.dataset.length && F.dataset.some((t) => t.type === "bar") && (a.chart.grid.position = "middle", Dl(F.config, "debug") && console.warn("Vue Data UI - VueUiXy - config.chart.grid.position was overriden to `middle` because your dataset contains a bar")), F.config && Dl(F.config, "chart.highlightArea") && (Array.isArray(F.config.chart.highlightArea) ? a.chart.highlightArea = F.config.chart.highlightArea.map((t) =>
|
|
166
|
+
})) : a.chart.annotations = [], F.config && Dl(F.config, "chart.grid.position") && F.config.chart.grid.position === "start" && F.dataset.length && F.dataset.some((t) => t.type === "bar") && (a.chart.grid.position = "middle", Dl(F.config, "debug") && console.warn("Vue Data UI - VueUiXy - config.chart.grid.position was overriden to `middle` because your dataset contains a bar")), F.config && Dl(F.config, "chart.highlightArea") && (Array.isArray(F.config.chart.highlightArea) ? a.chart.highlightArea = F.config.chart.highlightArea.map((t) => tt({
|
|
167
167
|
defaultConfig: ml.chart.highlightArea,
|
|
168
168
|
userConfig: t
|
|
169
|
-
})) : a.chart.highlightArea =
|
|
169
|
+
})) : a.chart.highlightArea = tt({
|
|
170
170
|
defaultConfig: ml.chart.highlightArea,
|
|
171
171
|
userConfig: F.config.chart.highlightArea
|
|
172
172
|
}));
|
|
@@ -183,10 +183,10 @@ const yo = { chart: { userOptions: { show: !1 }, grid: { showVerticalLines: !1,
|
|
|
183
183
|
});
|
|
184
184
|
return {
|
|
185
185
|
...s,
|
|
186
|
-
customPalette: s.customPalette.length ? s.customPalette :
|
|
186
|
+
customPalette: s.customPalette.length ? s.customPalette : rs[r] || Da
|
|
187
187
|
};
|
|
188
188
|
}
|
|
189
|
-
function
|
|
189
|
+
function tt({ defaultConfig: a, userConfig: r }) {
|
|
190
190
|
return Vl({
|
|
191
191
|
defaultConfig: a,
|
|
192
192
|
userConfig: r
|
|
@@ -207,15 +207,15 @@ const yo = { chart: { userOptions: { show: !1 }, grid: { showVerticalLines: !1,
|
|
|
207
207
|
useIndividualScale: !1
|
|
208
208
|
});
|
|
209
209
|
function $a() {
|
|
210
|
-
|
|
210
|
+
at.value ? (f.value.isStacked = l.value.chart.grid.labels.yAxis.stacked, f.value.useIndividualScale == null && (f.value.useIndividualScale = l.value.chart.grid.labels.yAxis.useIndividualScale)) : (f.value = {
|
|
211
211
|
dataLabels: { show: !0 },
|
|
212
212
|
showTooltip: l.value.chart.tooltip.show === !0,
|
|
213
213
|
showTable: l.value.showTable === !0,
|
|
214
214
|
isStacked: l.value.chart.grid.labels.yAxis.stacked,
|
|
215
215
|
useIndividualScale: l.value.chart.grid.labels.yAxis.useIndividualScale
|
|
216
|
-
},
|
|
216
|
+
}, at.value = !0);
|
|
217
217
|
}
|
|
218
|
-
const
|
|
218
|
+
const wl = m(() => !!l.value.debug), Xo = m(() => uo({
|
|
219
219
|
defaultConfig: {
|
|
220
220
|
useCssAnimation: !1,
|
|
221
221
|
showTable: !1,
|
|
@@ -285,7 +285,7 @@ const yo = { chart: { userOptions: { show: !1 }, grid: { showVerticalLines: !1,
|
|
|
285
285
|
type: "bar",
|
|
286
286
|
color: "#CACACA"
|
|
287
287
|
}
|
|
288
|
-
]), { loading: oe, FINAL_DATASET: pe, manualLoading: Gl } =
|
|
288
|
+
]), { loading: oe, FINAL_DATASET: pe, manualLoading: Gl } = vs({
|
|
289
289
|
...Wr(F),
|
|
290
290
|
FINAL_CONFIG: l,
|
|
291
291
|
prepareConfig: Sa,
|
|
@@ -295,7 +295,7 @@ const yo = { chart: { userOptions: { show: !1 }, grid: { showVerticalLines: !1,
|
|
|
295
295
|
});
|
|
296
296
|
},
|
|
297
297
|
skeletonDataset: Go.value,
|
|
298
|
-
skeletonConfig:
|
|
298
|
+
skeletonConfig: uo({
|
|
299
299
|
defaultConfig: l.value,
|
|
300
300
|
userConfig: Xo.value
|
|
301
301
|
})
|
|
@@ -304,20 +304,20 @@ const yo = { chart: { userOptions: { show: !1 }, grid: { showVerticalLines: !1,
|
|
|
304
304
|
const r = /* @__PURE__ */ new WeakMap();
|
|
305
305
|
return (e, ...s) => {
|
|
306
306
|
let t = r.get(e);
|
|
307
|
-
const
|
|
308
|
-
if (t && t.has(
|
|
307
|
+
const u = JSON.stringify(s);
|
|
308
|
+
if (t && t.has(u)) return t.get(u);
|
|
309
309
|
const o = a(e, ...s);
|
|
310
|
-
return t || (t = /* @__PURE__ */ new Map(), r.set(e, t)), t.set(
|
|
310
|
+
return t || (t = /* @__PURE__ */ new Map(), r.set(e, t)), t.set(u, o), o;
|
|
311
311
|
};
|
|
312
312
|
}
|
|
313
|
-
const Uo = qo((a, r) =>
|
|
313
|
+
const Uo = qo((a, r) => Va({ data: a, threshold: r })), Re = (a) => Uo(a, l.value.downsample.threshold), Fe = m({
|
|
314
314
|
get: () => Math.max(...pe.value.map((a) => Re(a.series).length)),
|
|
315
315
|
set: (a) => a
|
|
316
|
-
}), b = g({ start: 0, end: Fe.value }), Me = g({ start: 0, end: Fe.value }),
|
|
317
|
-
function
|
|
316
|
+
}), b = g({ start: 0, end: Fe.value }), Me = g({ start: 0, end: Fe.value }), ot = m(() => l.value.chart.zoom.preview.enable && (Me.value.start !== b.value.start || Me.value.end !== b.value.end));
|
|
317
|
+
function rt(a, r) {
|
|
318
318
|
Me.value[a] = r;
|
|
319
319
|
}
|
|
320
|
-
function
|
|
320
|
+
function nl() {
|
|
321
321
|
const a = Math.max(
|
|
322
322
|
1,
|
|
323
323
|
...pe.value.map((s) => Re(s.series).length)
|
|
@@ -326,11 +326,11 @@ const yo = { chart: { userOptions: { show: !1 }, grid: { showVerticalLines: !1,
|
|
|
326
326
|
(!Number.isFinite(r) || !Number.isFinite(e) || e <= r) && (r = 0, e = a), b.value = { start: r, end: e }, Me.value.start = r, Me.value.end = e, Ie.value && (Ie.value.setStartValue(r), Ie.value.setEndValue(e));
|
|
327
327
|
}
|
|
328
328
|
const Zo = m(() => {
|
|
329
|
-
const { left: a, top: r, width: e, height: s } = c.value, t = b.value.start, o = b.value.end - t,
|
|
329
|
+
const { left: a, top: r, width: e, height: s } = c.value, t = b.value.start, o = b.value.end - t, L = e / o, M = Me.value.start - t, B = Me.value.end - t, w = Math.max(0, Math.min(o, M)), T = Math.max(0, Math.min(o, B));
|
|
330
330
|
return {
|
|
331
|
-
x: a +
|
|
331
|
+
x: a + w * L,
|
|
332
332
|
y: r,
|
|
333
|
-
width: (T -
|
|
333
|
+
width: (T - w) * L,
|
|
334
334
|
height: s,
|
|
335
335
|
fill: l.value.chart.zoom.preview.fill,
|
|
336
336
|
stroke: l.value.chart.zoom.preview.stroke,
|
|
@@ -353,8 +353,8 @@ const yo = { chart: { userOptions: { show: !1 }, grid: { showVerticalLines: !1,
|
|
|
353
353
|
const r = a - b.value.start;
|
|
354
354
|
r < 0 || a >= b.value.end ? C.value = null : C.value = r ?? null;
|
|
355
355
|
}, { immediate: !0 });
|
|
356
|
-
const { isPrinting: ql, isImaging: La, generatePdf:
|
|
357
|
-
elementId: `vue-ui-xy_${
|
|
356
|
+
const { isPrinting: ql, isImaging: La, generatePdf: st, generateImage: ut } = cs({
|
|
357
|
+
elementId: `vue-ui-xy_${O.value}`,
|
|
358
358
|
fileName: l.value.chart.title.text || "vue-ui-xy",
|
|
359
359
|
options: l.value.chart.userOptions.print
|
|
360
360
|
}), Jo = g(!1), Ul = m(() => Ur(l.value.customPalette)), il = m(() => {
|
|
@@ -367,40 +367,40 @@ const yo = { chart: { userOptions: { show: !1 }, grid: { showVerticalLines: !1,
|
|
|
367
367
|
if (a == null) return null;
|
|
368
368
|
const r = Number(a);
|
|
369
369
|
return Number.isFinite(r) ? r : null;
|
|
370
|
-
}), nt = m(() => il.value !== null || Sl.value !== null),
|
|
370
|
+
}), nt = m(() => il.value !== null || Sl.value !== null), it = m(() => {
|
|
371
371
|
const a = Ee.value.filter((r) => !q.value.includes(r.id)).flatMap((r) => Array.isArray(r.series) ? r.series : []).filter(Number.isFinite);
|
|
372
372
|
return a.length ? {
|
|
373
373
|
min: Math.min(...a),
|
|
374
374
|
max: Math.max(...a)
|
|
375
375
|
} : { min: 0, max: 1 };
|
|
376
376
|
});
|
|
377
|
-
function
|
|
377
|
+
function ct(a, r) {
|
|
378
378
|
let e = Number.isFinite(a) ? a : 0, s = Number.isFinite(r) ? r : 1;
|
|
379
379
|
return e === s ? s = e + 1 : e > s && ([e, s] = [s, e]), { min: e, max: s };
|
|
380
380
|
}
|
|
381
381
|
const Zl = m(() => {
|
|
382
|
-
const { min: a, max: r } =
|
|
382
|
+
const { min: a, max: r } = it.value;
|
|
383
383
|
if (!nt.value) {
|
|
384
384
|
const o = a;
|
|
385
385
|
return o > 0 ? 0 : o;
|
|
386
386
|
}
|
|
387
|
-
const e = il.value !== null ? il.value : a > 0 ? 0 : a, s = Sl.value !== null ? Sl.value : r, t = a < e ? a : e,
|
|
388
|
-
return
|
|
387
|
+
const e = il.value !== null ? il.value : a > 0 ? 0 : a, s = Sl.value !== null ? Sl.value : r, t = a < e ? a : e, u = r > s ? r : s;
|
|
388
|
+
return ct(t, u).min;
|
|
389
389
|
}), Jl = m(() => {
|
|
390
|
-
const { min: a, max: r } =
|
|
390
|
+
const { min: a, max: r } = it.value;
|
|
391
391
|
if (!nt.value) {
|
|
392
392
|
const o = r;
|
|
393
393
|
return Zl.value === o ? o + 1 : o;
|
|
394
394
|
}
|
|
395
|
-
const e = il.value !== null ? il.value : a > 0 ? 0 : a, s = Sl.value !== null ? Sl.value : r, t = a < e ? a : e,
|
|
396
|
-
return
|
|
397
|
-
}), Te = m(() => l.value.chart.grid.labels.yAxis.useNiceScale ? Pl(Zl.value, Jl.value < 0 ? 0 : Jl.value, l.value.chart.grid.labels.yAxis.commonScaleSteps) : tl(Zl.value, Jl.value < 0 ? 0 : Jl.value, l.value.chart.grid.labels.yAxis.commonScaleSteps)), Al = m(() => [null, void 0].includes(l.value.chart.grid.labels.yAxis.scaleMin) ? Te.value.min >= 0 ? 0 : Math.abs(Te.value.min) : -Te.value.min), Ee = m(() =>
|
|
395
|
+
const e = il.value !== null ? il.value : a > 0 ? 0 : a, s = Sl.value !== null ? Sl.value : r, t = a < e ? a : e, u = r > s ? r : s;
|
|
396
|
+
return ct(t, u).max;
|
|
397
|
+
}), Te = m(() => l.value.chart.grid.labels.yAxis.useNiceScale ? Pl(Zl.value, Jl.value < 0 ? 0 : Jl.value, l.value.chart.grid.labels.yAxis.commonScaleSteps) : tl(Zl.value, Jl.value < 0 ? 0 : Jl.value, l.value.chart.grid.labels.yAxis.commonScaleSteps)), Al = m(() => [null, void 0].includes(l.value.chart.grid.labels.yAxis.scaleMin) ? Te.value.min >= 0 ? 0 : Math.abs(Te.value.min) : -Te.value.min), Ee = m(() => Ha.value ? pe.value.map((a, r) => {
|
|
398
398
|
const e = Re(a.series), s = `uniqueId_${r}`;
|
|
399
399
|
return {
|
|
400
400
|
...a,
|
|
401
401
|
slotAbsoluteIndex: r,
|
|
402
402
|
series: e.map((t) => ha(t) ? t : null).slice(b.value.start, b.value.end),
|
|
403
|
-
color:
|
|
403
|
+
color: Pa(a.color ? a.color : Ul.value[r] ? Ul.value[r] : Da[r]),
|
|
404
404
|
id: s,
|
|
405
405
|
scaleLabel: a.scaleLabel || s
|
|
406
406
|
};
|
|
@@ -411,22 +411,22 @@ const yo = { chart: { userOptions: { show: !1 }, grid: { showVerticalLines: !1,
|
|
|
411
411
|
absoluteValues: a.series,
|
|
412
412
|
segregate: () => oa(a),
|
|
413
413
|
isSegregated: q.value.includes(a.id)
|
|
414
|
-
}))),
|
|
414
|
+
}))), _e = m(() => Ee.value.map((a, r) => ({
|
|
415
415
|
...a,
|
|
416
416
|
series: a.series.map((e) => e + Al.value),
|
|
417
417
|
absoluteValues: a.series
|
|
418
418
|
})).filter((a) => !q.value.includes(a.id))), Qo = m(() => q.value.length === re.value.length);
|
|
419
419
|
function jo() {
|
|
420
420
|
let a = 0;
|
|
421
|
-
xa.value && (a = Array.from(xa.value.querySelectorAll("text")).reduce((t,
|
|
422
|
-
const o =
|
|
421
|
+
xa.value && (a = Array.from(xa.value.querySelectorAll("text")).reduce((t, u) => {
|
|
422
|
+
const o = u.getComputedTextLength();
|
|
423
423
|
return (o > t ? o : t) + l.value.chart.grid.labels.yAxis.scaleValueOffsetX;
|
|
424
424
|
}, 0));
|
|
425
425
|
const r = pa.value ? pa.value.getBoundingClientRect().width + l.value.chart.grid.labels.axis.yLabelOffsetX + x.value.yAxis : 0, e = l.value.chart.grid.labels.yAxis.crosshairSize;
|
|
426
426
|
return a + r + e;
|
|
427
427
|
}
|
|
428
428
|
const $l = g(0), cl = g(0);
|
|
429
|
-
function
|
|
429
|
+
function vt() {
|
|
430
430
|
const a = Rl.value;
|
|
431
431
|
if (!a) {
|
|
432
432
|
$l.value = 0, cl.value = 0;
|
|
@@ -439,7 +439,7 @@ const yo = { chart: { userOptions: { show: !1 }, grid: { showVerticalLines: !1,
|
|
|
439
439
|
$l.value = 0, cl.value = 0;
|
|
440
440
|
}
|
|
441
441
|
}
|
|
442
|
-
const
|
|
442
|
+
const dt = m(() => {
|
|
443
443
|
let a = 0;
|
|
444
444
|
if (ba.value)
|
|
445
445
|
try {
|
|
@@ -449,27 +449,27 @@ const yo = { chart: { userOptions: { show: !1 }, grid: { showVerticalLines: !1,
|
|
|
449
449
|
}
|
|
450
450
|
return a + $l.value + x.value.xAxis;
|
|
451
451
|
}), er = m(() => pe.value.some((a) => a.useProgression)), c = m(() => {
|
|
452
|
-
|
|
452
|
+
Ka.value;
|
|
453
453
|
let a = 0;
|
|
454
454
|
const r = 36;
|
|
455
455
|
l.value.chart.grid.labels.show && (f.value.useIndividualScale && !f.value.isStacked ? a = (pe.value.length - q.value.length) * (l.value.chart.grid.labels.yAxis.labelWidth + r) : f.value.useIndividualScale && f.value.isStacked ? a = l.value.chart.grid.labels.yAxis.labelWidth + r : a = jo());
|
|
456
456
|
const e = l.value.chart.labels.fontSize * 1.1, s = er.value ? 24 : 6;
|
|
457
457
|
Rl.value && cl.value < 0 && (a += Math.abs(cl.value));
|
|
458
|
-
const t = K.value - a - l.value.chart.grid.labels.yAxis.crosshairSize - s - l.value.chart.padding?.left - l.value.chart.padding?.right,
|
|
458
|
+
const t = K.value - a - l.value.chart.grid.labels.yAxis.crosshairSize - s - l.value.chart.padding?.left - l.value.chart.padding?.right, u = l.value.chart.grid.position === "middle" ? 0 : t / S.value / 2;
|
|
459
459
|
return {
|
|
460
460
|
top: l.value.chart.padding?.top + e,
|
|
461
461
|
right: K.value - s - l.value.chart.padding?.right,
|
|
462
|
-
bottom: ie.value -
|
|
463
|
-
left: a + l.value.chart.grid.labels.yAxis.crosshairSize -
|
|
464
|
-
height: ie.value -
|
|
462
|
+
bottom: ie.value - dt.value - l.value.chart.padding?.bottom - l.value.chart.grid.labels.axis.xLabelOffsetY,
|
|
463
|
+
left: a + l.value.chart.grid.labels.yAxis.crosshairSize - u + l.value.chart.padding?.left,
|
|
464
|
+
height: ie.value - dt.value - l.value.chart.padding?.top - l.value.chart.padding?.bottom - e - l.value.chart.grid.labels.axis.xLabelOffsetY,
|
|
465
465
|
width: t,
|
|
466
466
|
scaleLabelX: a,
|
|
467
467
|
individualOffsetX: r
|
|
468
468
|
};
|
|
469
469
|
}), lr = m(() => {
|
|
470
470
|
const a = l.value.chart.grid.position === "middle" ? 1 : 0, r = S.value + a, e = W(c.value?.top), s = W(c.value?.bottom);
|
|
471
|
-
return Array.from({ length: r }).map((t,
|
|
472
|
-
const o = c.value.width / S.value *
|
|
471
|
+
return Array.from({ length: r }).map((t, u) => {
|
|
472
|
+
const o = c.value.width / S.value * u + c.value?.left + U.value;
|
|
473
473
|
return `M${o},${e} L${o},${s}`;
|
|
474
474
|
}).join(" ");
|
|
475
475
|
}), ar = m(() => {
|
|
@@ -477,11 +477,11 @@ const yo = { chart: { userOptions: { show: !1 }, grid: { showVerticalLines: !1,
|
|
|
477
477
|
const a = c.value.width / S.value, r = l.value.chart.grid.labels.xAxis.crosshairSize, e = l.value.chart.grid.labels.xAxis.crosshairsAlwaysAtZero;
|
|
478
478
|
return jl.value.map((s, t) => {
|
|
479
479
|
if (!s || !s.text) return null;
|
|
480
|
-
const
|
|
481
|
-
return `M${
|
|
480
|
+
const u = c.value?.left + a * t + a / 2, o = e ? de.value - (de.value === c.value?.bottom ? 0 : r / 2) : c.value?.bottom, L = e ? de.value + r / (de.value === c.value?.bottom ? 1 : 2) : c.value?.bottom + r;
|
|
481
|
+
return `M${u},${o} L${u},${L}`;
|
|
482
482
|
}).filter(Boolean).join(" ");
|
|
483
483
|
});
|
|
484
|
-
function
|
|
484
|
+
function ht() {
|
|
485
485
|
return !!Do?.vnode.props?.onSelectTimeLabel;
|
|
486
486
|
}
|
|
487
487
|
function tr(a, r, e) {
|
|
@@ -491,28 +491,28 @@ const yo = { chart: { userOptions: { show: !1 }, grid: { showVerticalLines: !1,
|
|
|
491
491
|
}
|
|
492
492
|
return Wl.value.font = `normal ${a}px sans-serif`, Wl.value;
|
|
493
493
|
}
|
|
494
|
-
function
|
|
494
|
+
function ft() {
|
|
495
495
|
const a = $e.value.querySelectorAll(".vue-ui-xy-tag");
|
|
496
496
|
a.length && Array.from(a).forEach((r) => r.style.opacity = "0");
|
|
497
497
|
}
|
|
498
498
|
function Kl(a, r, e, s, t) {
|
|
499
499
|
e && (De.value[`${a}_${r}_${s}_${t}`] = e);
|
|
500
500
|
}
|
|
501
|
-
const
|
|
502
|
-
async function
|
|
503
|
-
await Nl(),
|
|
501
|
+
const gt = g(!1);
|
|
502
|
+
async function mt(a = !1) {
|
|
503
|
+
await Nl(), gt.value = a, qa.value && (Hl.value = a);
|
|
504
504
|
}
|
|
505
505
|
function Ma() {
|
|
506
506
|
kl.value = !kl.value;
|
|
507
507
|
}
|
|
508
508
|
const ve = g([]), Ql = g([]);
|
|
509
|
-
let
|
|
509
|
+
let bt = 0;
|
|
510
510
|
da(() => {
|
|
511
|
-
const a = ++
|
|
511
|
+
const a = ++bt;
|
|
512
512
|
(async () => {
|
|
513
513
|
const r = Math.max(
|
|
514
514
|
...pe.value.map(
|
|
515
|
-
(s) =>
|
|
515
|
+
(s) => Va({
|
|
516
516
|
data: s.series,
|
|
517
517
|
threshold: l.value.downsample.threshold
|
|
518
518
|
}).length
|
|
@@ -524,16 +524,16 @@ const yo = { chart: { userOptions: { show: !1 }, grid: { showVerticalLines: !1,
|
|
|
524
524
|
start: b.value.start,
|
|
525
525
|
end: b.value.end
|
|
526
526
|
});
|
|
527
|
-
a ===
|
|
527
|
+
a === bt && (ve.value = e);
|
|
528
528
|
})();
|
|
529
529
|
});
|
|
530
|
-
let
|
|
530
|
+
let pt = 0;
|
|
531
531
|
da(() => {
|
|
532
|
-
const a = ++
|
|
532
|
+
const a = ++pt;
|
|
533
533
|
(async () => {
|
|
534
534
|
const r = Math.max(
|
|
535
535
|
...pe.value.map(
|
|
536
|
-
(s) =>
|
|
536
|
+
(s) => Va({
|
|
537
537
|
data: s.series,
|
|
538
538
|
threshold: l.value.downsample.threshold
|
|
539
539
|
}).length
|
|
@@ -545,28 +545,28 @@ const yo = { chart: { userOptions: { show: !1 }, grid: { showVerticalLines: !1,
|
|
|
545
545
|
start: 0,
|
|
546
546
|
end: Fe.value
|
|
547
547
|
});
|
|
548
|
-
a ===
|
|
548
|
+
a === pt && (Ql.value = e);
|
|
549
549
|
})();
|
|
550
550
|
});
|
|
551
551
|
const or = m(() => {
|
|
552
552
|
const a = l.value.chart.grid.labels.xAxisLabels.modulo;
|
|
553
553
|
return ve.value.length ? Math.min(a, [...new Set(ve.value.map((r) => r.text))].length) : a;
|
|
554
554
|
}), jl = m(() => {
|
|
555
|
-
const a = l.value.chart.grid.labels.xAxisLabels, r = ve.value || [], e = Ql.value || [], s = b.value.start ?? 0, t = C.value,
|
|
555
|
+
const a = l.value.chart.grid.labels.xAxisLabels, r = ve.value || [], e = Ql.value || [], s = b.value.start ?? 0, t = C.value, u = S.value, o = r.map((M) => M?.text ?? ""), L = e.map((M) => M?.text ?? "");
|
|
556
556
|
return Zr(
|
|
557
557
|
!!a.showOnlyFirstAndLast,
|
|
558
558
|
!!a.showOnlyAtModulo,
|
|
559
559
|
Math.max(1, or.value || 1),
|
|
560
560
|
o,
|
|
561
|
-
|
|
561
|
+
L,
|
|
562
562
|
s,
|
|
563
563
|
t,
|
|
564
|
-
|
|
564
|
+
u
|
|
565
565
|
);
|
|
566
566
|
}), rr = m(() => (jl.value || []).map((a) => a?.text ?? "").join("|"));
|
|
567
567
|
Ol(() => {
|
|
568
568
|
requestAnimationFrame(() => {
|
|
569
|
-
|
|
569
|
+
vt();
|
|
570
570
|
}), hl(
|
|
571
571
|
[
|
|
572
572
|
() => rr.value,
|
|
@@ -577,21 +577,21 @@ const yo = { chart: { userOptions: { show: !1 }, grid: { showVerticalLines: !1,
|
|
|
577
577
|
],
|
|
578
578
|
async () => {
|
|
579
579
|
await Nl(), requestAnimationFrame(() => {
|
|
580
|
-
|
|
580
|
+
vt();
|
|
581
581
|
});
|
|
582
582
|
},
|
|
583
583
|
{ flush: "post" }
|
|
584
584
|
);
|
|
585
585
|
}), Ba(() => {
|
|
586
|
-
$l.value = 0, cl.value = 0,
|
|
586
|
+
$l.value = 0, cl.value = 0, ja.stop();
|
|
587
587
|
});
|
|
588
|
-
function
|
|
589
|
-
const e =
|
|
588
|
+
function xt(a, r) {
|
|
589
|
+
const e = _e.value.map((s) => ({
|
|
590
590
|
shape: s.shape || null,
|
|
591
591
|
name: s.name,
|
|
592
592
|
color: s.color,
|
|
593
593
|
type: s.type,
|
|
594
|
-
value: s.absoluteValues.find((t,
|
|
594
|
+
value: s.absoluteValues.find((t, u) => u === r),
|
|
595
595
|
comments: s.comments || [],
|
|
596
596
|
prefix: s.prefix || l.value.chart.labels.prefix,
|
|
597
597
|
suffix: s.suffix || l.value.chart.labels.suffix
|
|
@@ -603,29 +603,29 @@ const yo = { chart: { userOptions: { show: !1 }, grid: { showVerticalLines: !1,
|
|
|
603
603
|
});
|
|
604
604
|
}
|
|
605
605
|
const S = m(() => {
|
|
606
|
-
const a =
|
|
606
|
+
const a = lt((b.value.end ?? 0) - (b.value.start ?? 0));
|
|
607
607
|
return Math.max(1, a);
|
|
608
608
|
});
|
|
609
609
|
function sr(a) {
|
|
610
|
-
|
|
610
|
+
N.value = a;
|
|
611
611
|
}
|
|
612
|
-
function
|
|
612
|
+
function yt() {
|
|
613
613
|
f.value.isStacked = !f.value.isStacked, f.value.isStacked ? f.value.useIndividualScale = !0 : f.value.useIndividualScale = l.value.chart.grid.labels.yAxis.useIndividualScale;
|
|
614
614
|
}
|
|
615
615
|
function Ta(a) {
|
|
616
|
-
|
|
616
|
+
wl.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`));
|
|
617
617
|
}
|
|
618
|
-
function
|
|
619
|
-
const e =
|
|
618
|
+
function ur(a, r) {
|
|
619
|
+
const e = lt(a), s = Array(e).fill(0);
|
|
620
620
|
for (let t = 0; t < r.length && t < e; t += 1) s[t] = r[t] ?? 0;
|
|
621
621
|
return s;
|
|
622
622
|
}
|
|
623
|
-
function
|
|
623
|
+
function kt(a) {
|
|
624
624
|
const r = Math.max(...pe.value.map((e) => Re(e.series).length));
|
|
625
625
|
return a > r ? r : 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;
|
|
626
626
|
}
|
|
627
|
-
const Ll = g(!1),
|
|
628
|
-
function
|
|
627
|
+
const Ll = g(!1), Ct = g(!1), _t = g(0), wt = g(0);
|
|
628
|
+
function St(a, r) {
|
|
629
629
|
const e = Number(a), s = Number(r);
|
|
630
630
|
return !Number.isFinite(e) || !Number.isFinite(s) ? !1 : !Object.is(e, s);
|
|
631
631
|
}
|
|
@@ -633,10 +633,10 @@ const yo = { chart: { userOptions: { show: !1 }, grid: { showVerticalLines: !1,
|
|
|
633
633
|
if (!Ll.value) {
|
|
634
634
|
Ll.value = !0;
|
|
635
635
|
try {
|
|
636
|
-
const { startIndex: a, endIndex: r } = l.value.chart.zoom, e = Math.max(...pe.value.map((
|
|
637
|
-
|
|
638
|
-
const s = a ?? 0, t = r != null ? Math.min(
|
|
639
|
-
la.value = !0, b.value.start = s, b.value.end = t, Me.value.start = s, Me.value.end = t,
|
|
636
|
+
const { startIndex: a, endIndex: r } = l.value.chart.zoom, e = Math.max(...pe.value.map((u) => Re(u.series).length));
|
|
637
|
+
_t.value = 0, wt.value = e;
|
|
638
|
+
const s = a ?? 0, t = r != null ? Math.min(kt(r + 1), e) : e;
|
|
639
|
+
la.value = !0, b.value.start = s, b.value.end = t, Me.value.start = s, Me.value.end = t, nl(), Ct.value = !0;
|
|
640
640
|
} finally {
|
|
641
641
|
queueMicrotask(() => {
|
|
642
642
|
la.value = !1;
|
|
@@ -645,21 +645,21 @@ const yo = { chart: { userOptions: { show: !1 }, grid: { showVerticalLines: !1,
|
|
|
645
645
|
}
|
|
646
646
|
}
|
|
647
647
|
const la = g(!1);
|
|
648
|
-
function
|
|
648
|
+
function nr(a) {
|
|
649
649
|
if (Ll.value || la.value) return;
|
|
650
650
|
const r = Number(a);
|
|
651
651
|
Ge("zoomStart", {
|
|
652
652
|
index: r,
|
|
653
|
-
isZoom:
|
|
654
|
-
}), Number.isFinite(r) && r !== b.value.start && (b.value.start = r, Me.value.start = r,
|
|
653
|
+
isZoom: St(r, _t.value)
|
|
654
|
+
}), Number.isFinite(r) && r !== b.value.start && (b.value.start = r, Me.value.start = r, nl());
|
|
655
655
|
}
|
|
656
656
|
function ir(a) {
|
|
657
657
|
if (Ll.value || la.value) return;
|
|
658
|
-
const r =
|
|
658
|
+
const r = kt(a);
|
|
659
659
|
Ge("zoomEnd", {
|
|
660
660
|
index: r,
|
|
661
|
-
isZoom:
|
|
662
|
-
}), r !== b.value.end && (b.value.end = r, Me.value.end = r,
|
|
661
|
+
isZoom: St(r, wt.value)
|
|
662
|
+
}), r !== b.value.end && (b.value.end = r, Me.value.end = r, nl());
|
|
663
663
|
}
|
|
664
664
|
async function cr() {
|
|
665
665
|
await ea(), Ge("zoomReset");
|
|
@@ -667,24 +667,24 @@ const yo = { chart: { userOptions: { show: !1 }, grid: { showVerticalLines: !1,
|
|
|
667
667
|
function xe(a) {
|
|
668
668
|
return ![null, void 0, NaN, 1 / 0, -1 / 0].includes(a);
|
|
669
669
|
}
|
|
670
|
-
const
|
|
670
|
+
const At = m(() => Te.value.max + Al.value);
|
|
671
671
|
function Je(a) {
|
|
672
|
-
return a / (xe(
|
|
672
|
+
return a / (xe(At.value) ? At.value : 1);
|
|
673
673
|
}
|
|
674
674
|
const de = m(() => isNaN(Je(Al.value)) ? c.value?.bottom : c.value?.bottom - c.value.height * Je(Al.value));
|
|
675
|
-
function
|
|
675
|
+
function $t(a) {
|
|
676
676
|
const r = ![null, void 0].includes(l.value.chart.grid.labels.yAxis.scaleMin) && l.value.chart.grid.labels.yAxis.scaleMin > 0 && Zl.value >= 0 ? c.value?.bottom : de.value;
|
|
677
|
-
return a.value >= 0 ?
|
|
677
|
+
return a.value >= 0 ? P(r - a.y <= 0 ? 1e-5 : r - a.y) : P(a.y - de.value <= 0 ? 1e-5 : a.y - de.value);
|
|
678
678
|
}
|
|
679
|
-
function
|
|
680
|
-
return a.value >= 0 ?
|
|
679
|
+
function Lt(a) {
|
|
680
|
+
return a.value >= 0 ? P(a.zeroPosition - a.y <= 0 ? 1e-5 : a.zeroPosition - a.y) : P(a.y - a.zeroPosition <= 0 ? 1e-5 : a.zeroPosition - a.y);
|
|
681
681
|
}
|
|
682
682
|
const J = m(() => {
|
|
683
683
|
const a = Math.max(1, S.value), r = Math.max(1, c.value.width), e = Math.max(1, Ee.value.filter((s) => s.type === "bar" && !q.value.includes(s.id)).length);
|
|
684
684
|
return {
|
|
685
|
-
bar:
|
|
686
|
-
plot:
|
|
687
|
-
line:
|
|
685
|
+
bar: wa(r, a * e, 1),
|
|
686
|
+
plot: wa(r, a, 1),
|
|
687
|
+
line: wa(r, a, 1)
|
|
688
688
|
};
|
|
689
689
|
});
|
|
690
690
|
function He() {
|
|
@@ -693,14 +693,14 @@ const yo = { chart: { userOptions: { show: !1 }, grid: { showVerticalLines: !1,
|
|
|
693
693
|
function aa(a) {
|
|
694
694
|
return f.value.useIndividualScale && f.value.isStacked ? a.x + c.value.width / S.value * 0.05 : a.x + J.value.bar / 2;
|
|
695
695
|
}
|
|
696
|
-
function
|
|
696
|
+
function Mt(a) {
|
|
697
697
|
return a.value >= 0 ? a.y : [null, void 0, NaN, 1 / 0, -1 / 0].includes(de.value) ? c?.bottom.value : de.value;
|
|
698
698
|
}
|
|
699
|
-
function
|
|
699
|
+
function Tt(a) {
|
|
700
700
|
return a.value >= 0 ? a.y : [null, void 0, NaN, 1 / 0, -1 / 0].includes(a.zeroPosition) ? 0 : a.zeroPosition;
|
|
701
701
|
}
|
|
702
702
|
const Ml = g(null);
|
|
703
|
-
function
|
|
703
|
+
function zt(a) {
|
|
704
704
|
const r = ce.value;
|
|
705
705
|
if (!r) return null;
|
|
706
706
|
if (r.createSVGPoint && r.getScreenCTM) {
|
|
@@ -708,50 +708,50 @@ const yo = { chart: { userOptions: { show: !1 }, grid: { showVerticalLines: !1,
|
|
|
708
708
|
T.x = a.clientX, T.y = a.clientY;
|
|
709
709
|
const Y = r.getScreenCTM();
|
|
710
710
|
if (Y) {
|
|
711
|
-
const
|
|
712
|
-
return { x:
|
|
711
|
+
const k = T.matrixTransform(Y.inverse());
|
|
712
|
+
return { x: k.x, y: k.y, ok: !0 };
|
|
713
713
|
}
|
|
714
714
|
}
|
|
715
|
-
const e = r.getBoundingClientRect(), s = r.viewBox?.baseVal || { x: 0, y: 0, width: e.width, height: e.height }, t = Math.min(e.width / s.width, e.height / s.height),
|
|
716
|
-
return { x: B, y:
|
|
715
|
+
const e = r.getBoundingClientRect(), s = r.viewBox?.baseVal || { x: 0, y: 0, width: e.width, height: e.height }, t = Math.min(e.width / s.width, e.height / s.height), u = s.width * t, o = s.height * t, L = (e.width - u) / 2, M = (e.height - o) / 2, B = (a.clientX - e?.left - L) / t + s.x, w = (a.clientY - e?.top - M) / t + s.y;
|
|
716
|
+
return { x: B, y: w, ok: !0 };
|
|
717
717
|
}
|
|
718
718
|
let Ke = 0;
|
|
719
719
|
function vr(a) {
|
|
720
720
|
kl.value || (Ke && cancelAnimationFrame(Ke), Ke = requestAnimationFrame(() => {
|
|
721
721
|
Ke = 0;
|
|
722
|
-
const r =
|
|
722
|
+
const r = zt(a);
|
|
723
723
|
if (!r || !ce.value) {
|
|
724
724
|
ta();
|
|
725
725
|
return;
|
|
726
726
|
}
|
|
727
|
-
const { left: e, right: s, top: t, bottom:
|
|
728
|
-
if (r.x < e || r.x > s || r.y < t || r.y >
|
|
727
|
+
const { left: e, right: s, top: t, bottom: u, width: o } = c.value;
|
|
728
|
+
if (r.x < e || r.x > s || r.y < t || r.y > u) {
|
|
729
729
|
ta();
|
|
730
730
|
return;
|
|
731
731
|
}
|
|
732
|
-
const
|
|
733
|
-
B >= 0 && B < S.value ? Ml.value !== B && (Ml.value = B,
|
|
732
|
+
const L = r.x - e, M = o / S.value, B = Math.floor(L / M);
|
|
733
|
+
B >= 0 && B < S.value ? Ml.value !== B && (Ml.value = B, Gt(!0, B)) : ta();
|
|
734
734
|
}));
|
|
735
735
|
}
|
|
736
736
|
function ta() {
|
|
737
|
-
Ke && (cancelAnimationFrame(Ke), Ke = 0), Ml.value = null,
|
|
737
|
+
Ke && (cancelAnimationFrame(Ke), Ke = 0), Ml.value = null, Gt(!1, null);
|
|
738
738
|
}
|
|
739
|
-
function
|
|
740
|
-
const r =
|
|
739
|
+
function It(a) {
|
|
740
|
+
const r = zt(a);
|
|
741
741
|
if (r && ce.value) {
|
|
742
|
-
const { left: e, right: s, top: t, bottom:
|
|
743
|
-
if (r.x >= e && r.x <= s && r.y >= t && r.y <=
|
|
744
|
-
const
|
|
742
|
+
const { left: e, right: s, top: t, bottom: u, width: o } = c.value;
|
|
743
|
+
if (r.x >= e && r.x <= s && r.y >= t && r.y <= u) {
|
|
744
|
+
const L = o / Math.max(1, S.value), M = Math.floor((r.x - e) / L);
|
|
745
745
|
if (M >= 0 && M < S.value) {
|
|
746
|
-
|
|
746
|
+
Ft(M);
|
|
747
747
|
return;
|
|
748
748
|
}
|
|
749
749
|
}
|
|
750
750
|
}
|
|
751
|
-
Ml.value != null &&
|
|
751
|
+
Ml.value != null && Ft(Ml.value);
|
|
752
752
|
}
|
|
753
|
-
function
|
|
754
|
-
const r =
|
|
753
|
+
function Ft(a) {
|
|
754
|
+
const r = _e.value.map((e) => ({
|
|
755
755
|
name: e.name,
|
|
756
756
|
value: [null, void 0, NaN].includes(e.absoluteValues[a]) ? null : e.absoluteValues[a],
|
|
757
757
|
color: e.color,
|
|
@@ -776,10 +776,10 @@ const yo = { chart: { userOptions: { show: !1 }, grid: { showVerticalLines: !1,
|
|
|
776
776
|
}
|
|
777
777
|
async function hr({ scale: a = 2 } = {}) {
|
|
778
778
|
if (!$e.value) return;
|
|
779
|
-
const { width: r, height: e } = $e.value.getBoundingClientRect(), s = r / e, { imageUri: t, base64:
|
|
779
|
+
const { width: r, height: e } = $e.value.getBoundingClientRect(), s = r / e, { imageUri: t, base64: u } = await bs({ domElement: $e.value, base64: !0, img: !0, scale: a });
|
|
780
780
|
return {
|
|
781
781
|
imageUri: t,
|
|
782
|
-
base64:
|
|
782
|
+
base64: u,
|
|
783
783
|
title: l.value.chart.title.text,
|
|
784
784
|
width: r,
|
|
785
785
|
height: e,
|
|
@@ -798,31 +798,31 @@ const yo = { chart: { userOptions: { show: !1 }, grid: { showVerticalLines: !1,
|
|
|
798
798
|
if (q.value.length + 1 === Ee.value.length) return;
|
|
799
799
|
q.value.push(a.id);
|
|
800
800
|
}
|
|
801
|
-
Ge("selectLegend",
|
|
801
|
+
Ge("selectLegend", _e.value.map((r) => ({
|
|
802
802
|
name: r.name,
|
|
803
803
|
values: r.absoluteValues,
|
|
804
804
|
color: r.color,
|
|
805
805
|
type: r.type
|
|
806
806
|
}))), Ca.value += 1;
|
|
807
807
|
}
|
|
808
|
-
function
|
|
808
|
+
function Bt(a) {
|
|
809
809
|
if (!re.value.length)
|
|
810
810
|
return l.value.debug && console.warn("VueUiXy - There are no series to show."), null;
|
|
811
811
|
const r = re.value.find((e) => e.name === a);
|
|
812
812
|
return r || (l.value.debug && console.warn(`VueUiXy - Series name not found "${a}"`), null);
|
|
813
813
|
}
|
|
814
814
|
function gr(a) {
|
|
815
|
-
const r =
|
|
815
|
+
const r = Bt(a);
|
|
816
816
|
r !== null && q.value.includes(r.id) && oa({ id: r.id });
|
|
817
817
|
}
|
|
818
818
|
function mr(a) {
|
|
819
|
-
const r =
|
|
819
|
+
const r = Bt(a);
|
|
820
820
|
r !== null && (q.value.includes(r.id) || oa({ id: r.id }));
|
|
821
821
|
}
|
|
822
822
|
const br = m(() => {
|
|
823
823
|
const a = l.value.chart.title.text || "Chart visualization", r = l.value.chart.title.subtitle.text || "";
|
|
824
824
|
return `${a}. ${r}`;
|
|
825
|
-
}),
|
|
825
|
+
}), Ot = m(() => ({
|
|
826
826
|
linePlot: S.value > l.value.line.dot.hideAboveMaxSerieLength
|
|
827
827
|
})), pr = m(() => l.value.chart.userOptions.show && (!l.value.chart.title.show || !l.value.chart.title.text)), xr = m(() => {
|
|
828
828
|
if (Array.isArray(l.value.chart.highlightArea))
|
|
@@ -838,18 +838,18 @@ const yo = { chart: { userOptions: { show: !1 }, grid: { showVerticalLines: !1,
|
|
|
838
838
|
to: Math.min(l.value.chart.highlightArea.to, Fe.value - 1)
|
|
839
839
|
};
|
|
840
840
|
return [{ ...a, span: a.from === a.to ? 1 : a.to < a.from ? 0 : a.to - a.from + 1 }];
|
|
841
|
-
}),
|
|
841
|
+
}), Nt = m(() => Ha.value ? pe.value.map((a, r) => ({
|
|
842
842
|
...a,
|
|
843
843
|
series: Re(a.series),
|
|
844
844
|
id: `uniqueId_${r}`,
|
|
845
|
-
color:
|
|
846
|
-
})) : pe.value), yr = m(() =>
|
|
845
|
+
color: Pa(a.color ? a.color : Ul.value[r] ? Ul.value[r] : Da[r])
|
|
846
|
+
})) : pe.value), yr = m(() => _e.value.map((a) => {
|
|
847
847
|
const r = a.absoluteValues.map((e) => [void 0, null].includes(e) ? 0 : e);
|
|
848
848
|
return {
|
|
849
849
|
id: a.id,
|
|
850
850
|
name: a.name,
|
|
851
851
|
color: a.color,
|
|
852
|
-
values:
|
|
852
|
+
values: ur(S.value, r)
|
|
853
853
|
};
|
|
854
854
|
})), kr = m(() => ({
|
|
855
855
|
responsiveBreakpoint: l.value.table.responsiveBreakpoint,
|
|
@@ -881,15 +881,15 @@ const yo = { chart: { userOptions: { show: !1 }, grid: { showVerticalLines: !1,
|
|
|
881
881
|
function Cr(a, r) {
|
|
882
882
|
const e = /* @__PURE__ */ Object.create(null);
|
|
883
883
|
for (let s = 0; s < a.length; s += 1) {
|
|
884
|
-
const t = a[s],
|
|
885
|
-
e[
|
|
884
|
+
const t = a[s], u = String(r(t));
|
|
885
|
+
e[u] || (e[u] = []), e[u].push(t);
|
|
886
886
|
}
|
|
887
887
|
return e;
|
|
888
888
|
}
|
|
889
889
|
const A = m(() => {
|
|
890
890
|
const a = Cr(Qe.value, (e) => e.scaleLabel), r = {};
|
|
891
891
|
for (const [e, s] of Object.entries(a)) {
|
|
892
|
-
const t = s.flatMap((
|
|
892
|
+
const t = s.flatMap((u) => u.absoluteValues);
|
|
893
893
|
r[e] = {
|
|
894
894
|
min: Math.min(...t) || 0,
|
|
895
895
|
max: Math.max(...t) || 1,
|
|
@@ -897,20 +897,20 @@ const yo = { chart: { userOptions: { show: !1 }, grid: { showVerticalLines: !1,
|
|
|
897
897
|
};
|
|
898
898
|
}
|
|
899
899
|
return r;
|
|
900
|
-
}),
|
|
900
|
+
}), _r = m(() => {
|
|
901
901
|
const a = Ee.value.filter((r) => r.type === "bar").filter((r) => !q.value.includes(r.id)).length;
|
|
902
902
|
return c.value.width / S.value / a - ra.value * a;
|
|
903
|
-
}), ra = m(() => J.value.line * l.value.bar.periodGap), sa = m(() => Math.max(1e-5, He() - (f.value.useIndividualScale && f.value.isStacked ? 0 : ra.value))),
|
|
903
|
+
}), ra = m(() => J.value.line * l.value.bar.periodGap), sa = m(() => Math.max(1e-5, He() - (f.value.useIndividualScale && f.value.isStacked ? 0 : ra.value))), ua = m(() => sa.value * Math.min(Math.abs(l.value.bar.innerGap), 0.95)), wr = m(() => {
|
|
904
904
|
if (!l.value.chart.zoom.minimap.show) return [];
|
|
905
|
-
const a =
|
|
905
|
+
const a = Nt.value.filter((t) => !q.value.includes(t.id)), r = Math.max(...a.map((t) => t.series.length)), e = [];
|
|
906
906
|
for (let t = 0; t < r; t += 1)
|
|
907
|
-
e.push(a.map((
|
|
907
|
+
e.push(a.map((u) => u.series[t] || 0).reduce((u, o) => (u || 0) + (o || 0), 0));
|
|
908
908
|
const s = Math.min(...e);
|
|
909
909
|
return e.map((t) => t + (s < 0 ? Math.abs(s) : 0));
|
|
910
|
-
}), Sr = m(() => l.value.chart.zoom.minimap.show ?
|
|
910
|
+
}), Sr = m(() => l.value.chart.zoom.minimap.show ? Nt.value.map((r) => ({
|
|
911
911
|
...r,
|
|
912
912
|
isVisible: !q.value.includes(r.id)
|
|
913
|
-
})) : []), je = m(() =>
|
|
913
|
+
})) : []), je = m(() => _e.value.map((a) => ({
|
|
914
914
|
slotAbsoluteIndex: a.slotAbsoluteIndex,
|
|
915
915
|
shape: a.shape || null,
|
|
916
916
|
name: a.name,
|
|
@@ -920,171 +920,171 @@ const yo = { chart: { userOptions: { show: !1 }, grid: { showVerticalLines: !1,
|
|
|
920
920
|
comments: a.comments || [],
|
|
921
921
|
prefix: a.prefix || l.value.chart.labels.prefix,
|
|
922
922
|
suffix: a.suffix || l.value.chart.labels.suffix
|
|
923
|
-
}))),
|
|
923
|
+
}))), Pt = m(() => Te.value.ticks.map((a) => ({
|
|
924
924
|
y: a >= 0 ? de.value - c.value.height * Je(a) : de.value + c.value.height * Je(Math.abs(a)),
|
|
925
925
|
value: a,
|
|
926
926
|
prefix: l.value.chart.labels.prefix,
|
|
927
927
|
suffix: l.value.chart.labels.suffix
|
|
928
|
-
}))),
|
|
928
|
+
}))), Dt = m(() => {
|
|
929
929
|
const a = l.value.chart.annotations;
|
|
930
|
-
if (!a || !Array.isArray(a) || a.every((
|
|
930
|
+
if (!a || !Array.isArray(a) || a.every((w) => !w.show)) return [];
|
|
931
931
|
const r = a.filter(
|
|
932
|
-
(
|
|
932
|
+
(w) => w.show && (w.yAxis.yTop != null || w.yAxis.yBottom != null)
|
|
933
933
|
);
|
|
934
934
|
if (!r.length) return [];
|
|
935
|
-
const { left: e, right: s } = c.value, t = de.value,
|
|
936
|
-
const T = (
|
|
937
|
-
return t - T *
|
|
935
|
+
const { left: e, right: s } = c.value, t = de.value, u = c.value.height, o = Te.value.min, M = Te.value.max - o, B = (w) => {
|
|
936
|
+
const T = (w - 0) / M;
|
|
937
|
+
return t - T * u;
|
|
938
938
|
};
|
|
939
|
-
return r.map((
|
|
940
|
-
const { yAxis: { yTop: T, yBottom: Y, label:
|
|
941
|
-
fe.font = `${
|
|
942
|
-
const Z = fe.measureText(
|
|
943
|
-
let
|
|
944
|
-
|
|
945
|
-
const
|
|
939
|
+
return r.map((w) => {
|
|
940
|
+
const { yAxis: { yTop: T, yBottom: Y, label: k } } = w, V = T != null && Y != null && T !== Y, z = T == null ? null : B(T), ae = Y == null ? null : B(Y), fe = tr(k.fontSize);
|
|
941
|
+
fe.font = `${k.fontSize}px sans-serif`;
|
|
942
|
+
const Z = fe.measureText(k.text).width, we = k.fontSize, Be = (k.position === "start" ? e + k.padding?.left : s - k.padding?.right) + k.offsetX, ke = (z != null && ae != null ? Math.min(z, ae) : z ?? ae) - k.fontSize / 3 + k.offsetY - k.padding?.top;
|
|
943
|
+
let E;
|
|
944
|
+
k.textAnchor === "middle" ? E = Be - Z / 2 - k.padding?.left : k.textAnchor === "end" ? E = Be - Z - k.padding?.right : E = Be - k.padding?.left;
|
|
945
|
+
const H = ke - we * 0.75 - k.padding?.top;
|
|
946
946
|
return {
|
|
947
|
-
show: ![z, ae,
|
|
947
|
+
show: ![z, ae, H].includes(NaN),
|
|
948
948
|
id: `annotation_y_${Oa()}`,
|
|
949
|
-
hasArea:
|
|
950
|
-
areaHeight:
|
|
949
|
+
hasArea: V,
|
|
950
|
+
areaHeight: V ? Math.abs(z - ae) : 0,
|
|
951
951
|
yTop: z,
|
|
952
952
|
yBottom: ae,
|
|
953
|
-
config:
|
|
953
|
+
config: w.yAxis,
|
|
954
954
|
x1: e,
|
|
955
955
|
x2: s,
|
|
956
956
|
_text: { x: Be, y: ke },
|
|
957
957
|
_box: {
|
|
958
|
-
x:
|
|
959
|
-
y:
|
|
960
|
-
width: Z +
|
|
961
|
-
height:
|
|
962
|
-
fill:
|
|
963
|
-
stroke:
|
|
964
|
-
rx:
|
|
965
|
-
ry:
|
|
966
|
-
strokeWidth:
|
|
958
|
+
x: E,
|
|
959
|
+
y: H,
|
|
960
|
+
width: Z + k.padding?.left + k.padding?.right,
|
|
961
|
+
height: we + k.padding?.top + k.padding?.bottom,
|
|
962
|
+
fill: k.backgroundColor,
|
|
963
|
+
stroke: k.border.stroke,
|
|
964
|
+
rx: k.border.rx,
|
|
965
|
+
ry: k.border.ry,
|
|
966
|
+
strokeWidth: k.border.strokeWidth
|
|
967
967
|
}
|
|
968
968
|
};
|
|
969
969
|
});
|
|
970
970
|
});
|
|
971
|
-
function
|
|
971
|
+
function Vt(a, r) {
|
|
972
972
|
const e = a[r - 1], s = a[r + 1];
|
|
973
973
|
let t = !!e && !!s && e.value == null && s.value == null || !e && !!s && s.value == null || !!e && !s && e.value == null;
|
|
974
974
|
return xe(a[r].value) && t && l.value.line.cutNullValues;
|
|
975
975
|
}
|
|
976
976
|
const ye = m(() => {
|
|
977
|
-
const a = Qe.value.filter((o) => ["bar", "line", "plot"].includes(o.type)), r = a.length, e = l.value.chart.grid.labels.yAxis.gap, s = f.value.isStacked, t = s ? e * (r - 1) : 0,
|
|
978
|
-
return a.filter((o) => o.type === "bar").map((o,
|
|
977
|
+
const a = Qe.value.filter((o) => ["bar", "line", "plot"].includes(o.type)), r = a.length, e = l.value.chart.grid.labels.yAxis.gap, s = f.value.isStacked, t = s ? e * (r - 1) : 0, u = c.value.height - t;
|
|
978
|
+
return a.filter((o) => o.type === "bar").map((o, L) => {
|
|
979
979
|
Ta(o);
|
|
980
980
|
const M = A.value[o.scaleLabel].min, B = A.value[o.scaleLabel].max;
|
|
981
|
-
o.absoluteValues.filter((
|
|
982
|
-
const
|
|
981
|
+
o.absoluteValues.filter((R) => ![null, void 0].includes(R)).map((R) => (R - M) / (B - M));
|
|
982
|
+
const w = {
|
|
983
983
|
valueMin: M,
|
|
984
984
|
valueMax: B < 0 ? 0 : B
|
|
985
985
|
}, T = {
|
|
986
986
|
max: o.scaleMax || Math.max(...o.absoluteValues) || 1,
|
|
987
|
-
min: o.scaleMin || Math.min(...o.absoluteValues.filter((
|
|
988
|
-
}, Y = o.scaleSteps || l.value.chart.grid.labels.yAxis.commonScaleSteps,
|
|
989
|
-
const Fl = f.value.useIndividualScale ? (o.absoluteValues[se] + ae) / Z : Je(
|
|
987
|
+
min: o.scaleMin || Math.min(...o.absoluteValues.filter((R) => ![void 0, null].includes(R))) > 0 ? 0 : Math.min(...o.absoluteValues.filter((R) => ![null, void 0].includes(R)))
|
|
988
|
+
}, Y = o.scaleSteps || l.value.chart.grid.labels.yAxis.commonScaleSteps, k = 1.0000001, V = l.value.chart.grid.labels.yAxis.useNiceScale ? Pl(T.min, T.max === T.min ? T.max * k : T.max, Y) : tl(T.min, T.max === T.min ? T.max * k : T.max, Y), z = l.value.chart.grid.labels.yAxis.useNiceScale ? Pl(w.valueMin, w.valueMax === w.valueMin ? w.valueMax * k : w.valueMax, Y) : tl(w.valueMin, w.valueMax === w.valueMin ? w.valueMax * k : w.valueMax, Y), ae = V.min >= 0 ? 0 : Math.abs(V.min), fe = 0, Z = V.max + ae, we = z.max + Math.abs(fe), Be = o.stackIndex, dl = r - 1 - Be, ke = s ? 1 - o.cumulatedStackRatio : 0, E = s ? u * ke + e * dl : 0, H = s ? u * o.stackRatio : c.value.height, Q = c.value?.bottom - E - H * ae / Z, Ce = c.value?.bottom - E - H * fe / we, j = re.value.filter((R) => R.type === "bar").filter((R) => !q.value.includes(R.id)).length, Il = o.series.map((R, se) => {
|
|
989
|
+
const Fl = f.value.useIndividualScale ? (o.absoluteValues[se] + ae) / Z : Je(R), el = f.value.useIndividualScale && f.value.isStacked ? c.value?.left + c.value.width / S.value * se : c.value?.left + J.value.bar * L + J.value.bar * se * j - _r.value / 2 - L * ra.value;
|
|
990
990
|
return {
|
|
991
|
-
yOffset:
|
|
992
|
-
individualHeight:
|
|
993
|
-
x:
|
|
994
|
-
y: c.value?.bottom -
|
|
991
|
+
yOffset: P(E),
|
|
992
|
+
individualHeight: P(H),
|
|
993
|
+
x: P(el),
|
|
994
|
+
y: c.value?.bottom - E - H * Fl,
|
|
995
995
|
value: o.absoluteValues[se],
|
|
996
|
-
zeroPosition:
|
|
997
|
-
individualMax:
|
|
996
|
+
zeroPosition: P(Q),
|
|
997
|
+
individualMax: P(Z),
|
|
998
998
|
comment: o.comments && o.comments.slice(b.value.start, b.value.end)[se] || ""
|
|
999
999
|
};
|
|
1000
|
-
}), ge = o.absoluteValues.map((
|
|
1001
|
-
const Fl = f.value.useIndividualScale && f.value.isStacked ? c.value?.left + c.value.width / S.value * se : c.value?.left - J.value.bar / 2 + J.value.bar *
|
|
1000
|
+
}), ge = o.absoluteValues.map((R) => z.min >= 0 ? (R - Math.abs(z.min)) / (z.max - Math.abs(z.min)) : (R + Math.abs(z.min)) / (z.max + Math.abs(z.min))), Oe = o.series.map((R, se) => {
|
|
1001
|
+
const Fl = f.value.useIndividualScale && f.value.isStacked ? c.value?.left + c.value.width / S.value * se : c.value?.left - J.value.bar / 2 + J.value.bar * L + J.value.bar * se * re.value.filter((el) => el.type === "bar").filter((el) => !q.value.includes(el.id)).length;
|
|
1002
1002
|
return {
|
|
1003
|
-
yOffset:
|
|
1004
|
-
individualHeight:
|
|
1005
|
-
x:
|
|
1006
|
-
y:
|
|
1003
|
+
yOffset: P(E),
|
|
1004
|
+
individualHeight: P(H),
|
|
1005
|
+
x: P(Fl),
|
|
1006
|
+
y: P(c.value?.bottom - P(E) - (P(H) * ge[se] || 0)),
|
|
1007
1007
|
value: o.absoluteValues[se],
|
|
1008
|
-
zeroPosition:
|
|
1009
|
-
individualMax:
|
|
1008
|
+
zeroPosition: P(Q),
|
|
1009
|
+
individualMax: P(Z),
|
|
1010
1010
|
comment: o.comments && o.comments.slice(b.value.start, b.value.end)[se] || ""
|
|
1011
1011
|
};
|
|
1012
|
-
}), G =
|
|
1013
|
-
y:
|
|
1014
|
-
value:
|
|
1012
|
+
}), G = V.ticks.map((R) => ({
|
|
1013
|
+
y: R >= 0 ? Q - H * (R / Z) : Q + H * Math.abs(R) / Z,
|
|
1014
|
+
value: R,
|
|
1015
1015
|
prefix: o.prefix || l.value.chart.labels.prefix,
|
|
1016
1016
|
suffix: o.suffix || l.value.chart.labels.suffix,
|
|
1017
1017
|
datapoint: o
|
|
1018
|
-
})), ee = z.ticks.map((
|
|
1019
|
-
const se = (
|
|
1018
|
+
})), ee = z.ticks.map((R) => {
|
|
1019
|
+
const se = (R - z.min) / (z.max - z.min);
|
|
1020
1020
|
return {
|
|
1021
|
-
y:
|
|
1022
|
-
value:
|
|
1021
|
+
y: R >= 0 ? Ce - H * se : Ce + H * se,
|
|
1022
|
+
value: R,
|
|
1023
1023
|
prefix: o.prefix || l.value.chart.labels.prefix,
|
|
1024
1024
|
suffix: o.suffix || l.value.chart.labels.suffix,
|
|
1025
1025
|
datapoint: o
|
|
1026
1026
|
};
|
|
1027
1027
|
});
|
|
1028
|
-
return A.value[o.scaleLabel].name = o.name, A.value[o.scaleLabel].groupName = o.scaleLabel, A.value[o.scaleLabel].groupColor = l.value.chart.grid.labels.yAxis.groupColor || o.color, A.value[o.scaleLabel].color = o.color, A.value[o.scaleLabel].scaleYLabels = o.autoScaling ? ee : G, A.value[o.scaleLabel].zeroPosition = o.autoScaling ? Ce : Q, A.value[o.scaleLabel].individualMax = o.autoScaling ?
|
|
1028
|
+
return A.value[o.scaleLabel].name = o.name, A.value[o.scaleLabel].groupName = o.scaleLabel, A.value[o.scaleLabel].groupColor = l.value.chart.grid.labels.yAxis.groupColor || o.color, A.value[o.scaleLabel].color = o.color, A.value[o.scaleLabel].scaleYLabels = o.autoScaling ? ee : G, A.value[o.scaleLabel].zeroPosition = o.autoScaling ? Ce : Q, A.value[o.scaleLabel].individualMax = o.autoScaling ? we : Z, A.value[o.scaleLabel].scaleLabel = o.scaleLabel, A.value[o.scaleLabel].id = o.id, A.value[o.scaleLabel].yOffset = E, A.value[o.scaleLabel].individualHeight = H, A.value[o.scaleLabel].autoScaleYLabels = ee, A.value[o.scaleLabel].unique = Qe.value.filter((R) => R.scaleLabel === o.scaleLabel).length === 1, {
|
|
1029
1029
|
...o,
|
|
1030
|
-
yOffset:
|
|
1030
|
+
yOffset: E,
|
|
1031
1031
|
autoScaleYLabels: ee,
|
|
1032
|
-
individualHeight:
|
|
1032
|
+
individualHeight: H,
|
|
1033
1033
|
scaleYLabels: o.autoScaling ? ee : G,
|
|
1034
|
-
individualScale: o.autoScaling ? z :
|
|
1035
|
-
individualMax: o.autoScaling ?
|
|
1034
|
+
individualScale: o.autoScaling ? z : V,
|
|
1035
|
+
individualMax: o.autoScaling ? we : Z,
|
|
1036
1036
|
zeroPosition: o.autoScaling ? Ce : Q,
|
|
1037
1037
|
plots: o.autoScaling ? Oe : Il,
|
|
1038
1038
|
groupId: A.value[o.scaleLabel].groupId
|
|
1039
1039
|
};
|
|
1040
1040
|
});
|
|
1041
1041
|
}), le = m(() => {
|
|
1042
|
-
const a = Qe.value.filter((o) => ["bar", "line", "plot"].includes(o.type)), r = a.length, e = l.value.chart.grid.labels.yAxis.gap, s = f.value.isStacked, t = s ? e * (r - 1) : 0,
|
|
1043
|
-
return a.filter((o) => o.type === "line").map((o,
|
|
1042
|
+
const a = Qe.value.filter((o) => ["bar", "line", "plot"].includes(o.type)), r = a.length, e = l.value.chart.grid.labels.yAxis.gap, s = f.value.isStacked, t = s ? e * (r - 1) : 0, u = c.value.height - t;
|
|
1043
|
+
return a.filter((o) => o.type === "line").map((o, L) => {
|
|
1044
1044
|
Ta(o);
|
|
1045
1045
|
const M = A.value[o.scaleLabel].min, B = A.value[o.scaleLabel].max;
|
|
1046
|
-
o.absoluteValues.filter((
|
|
1047
|
-
const
|
|
1046
|
+
o.absoluteValues.filter(($) => ![null, void 0].includes($)).map(($) => ($ - M) / (B - M));
|
|
1047
|
+
const w = {
|
|
1048
1048
|
valueMin: M,
|
|
1049
1049
|
valueMax: B
|
|
1050
1050
|
}, T = {
|
|
1051
1051
|
max: o.scaleMax || Math.max(...o.absoluteValues) || 1,
|
|
1052
1052
|
min: o.scaleMin || (Math.min(...o.absoluteValues) > 0 ? 0 : Math.min(...o.absoluteValues))
|
|
1053
|
-
}, Y = o.scaleSteps || l.value.chart.grid.labels.yAxis.commonScaleSteps,
|
|
1054
|
-
const Vr = f.value.useIndividualScale ? (o.absoluteValues[
|
|
1053
|
+
}, Y = o.scaleSteps || l.value.chart.grid.labels.yAxis.commonScaleSteps, k = 1.0000001, V = l.value.chart.grid.labels.yAxis.useNiceScale ? Pl(T.min, T.max === T.min ? T.max * k : T.max, Y) : tl(T.min, T.max === T.min ? T.max * k : T.max, Y), z = l.value.chart.grid.labels.yAxis.useNiceScale ? Pl(w.valueMin, w.valueMax === w.valueMin ? w.valueMax * k : w.valueMax, Y) : tl(w.valueMin, w.valueMax === w.valueMin ? w.valueMax * k : w.valueMax, Y), ae = V.min >= 0 ? 0 : Math.abs(V.min), fe = 0, Z = V.max + Math.abs(ae), we = z.max + Math.abs(fe), Be = o.stackIndex, dl = r - 1 - Be, ke = s ? 1 - o.cumulatedStackRatio : 0, E = s ? u * ke + e * dl : 0, H = s ? u * o.stackRatio : c.value.height, Q = c.value?.bottom - E - H * ae / Z, Ce = c.value?.bottom - E - H * fe / we, j = o.series.map(($, ue) => {
|
|
1054
|
+
const Vr = f.value.useIndividualScale ? (o.absoluteValues[ue] + Math.abs(ae)) / Z : Je($);
|
|
1055
1055
|
return {
|
|
1056
|
-
x:
|
|
1057
|
-
y:
|
|
1058
|
-
value: o.absoluteValues[
|
|
1059
|
-
comment: o.comments && o.comments.slice(b.value.start, b.value.end)[
|
|
1056
|
+
x: P(c.value?.left + J.value.line / 2 + J.value.line * ue),
|
|
1057
|
+
y: P(c.value?.bottom - E - H * Vr),
|
|
1058
|
+
value: o.absoluteValues[ue],
|
|
1059
|
+
comment: o.comments && o.comments.slice(b.value.start, b.value.end)[ue] || ""
|
|
1060
1060
|
};
|
|
1061
|
-
}), Il = o.absoluteValues.map((
|
|
1062
|
-
x:
|
|
1061
|
+
}), Il = o.absoluteValues.map(($) => z.min >= 0 ? ($ - Math.abs(z.min)) / (z.max - Math.abs(z.min)) : ($ + Math.abs(z.min)) / (z.max + Math.abs(z.min))), ge = o.series.map(($, ue) => [void 0, null].includes(o.absoluteValues[ue]) ? {
|
|
1062
|
+
x: P(c.value?.left + J.value.line / 2 + J.value.line * ue),
|
|
1063
1063
|
y: Q,
|
|
1064
|
-
value: o.absoluteValues[
|
|
1065
|
-
comment: o.comments && o.comments.slice(b.value.start, b.value.end)[
|
|
1064
|
+
value: o.absoluteValues[ue],
|
|
1065
|
+
comment: o.comments && o.comments.slice(b.value.start, b.value.end)[ue] || ""
|
|
1066
1066
|
} : {
|
|
1067
|
-
x:
|
|
1068
|
-
y:
|
|
1069
|
-
value: o.absoluteValues[
|
|
1070
|
-
comment: o.comments && o.comments.slice(b.value.start, b.value.end)[
|
|
1071
|
-
}), Oe = o.dashIndices && Array.isArray(o.dashIndices) && o?.dashIndices?.length > 0, G = l.value.line.cutNullValues ?
|
|
1072
|
-
y:
|
|
1073
|
-
value:
|
|
1067
|
+
x: P(c.value?.left + J.value.line / 2 + J.value.line * ue),
|
|
1068
|
+
y: P(c.value?.bottom - E - (H * Il[ue] || 0)),
|
|
1069
|
+
value: o.absoluteValues[ue],
|
|
1070
|
+
comment: o.comments && o.comments.slice(b.value.start, b.value.end)[ue] || ""
|
|
1071
|
+
}), Oe = o.dashIndices && Array.isArray(o.dashIndices) && o?.dashIndices?.length > 0, G = l.value.line.cutNullValues ? no(j) : io(j.filter(($) => $.value !== null)), ee = l.value.line.cutNullValues ? no(ge) : io(ge.filter(($) => $.value !== null)), R = l.value.line.cutNullValues ? co(j) : vo(j.filter(($) => $.value !== null)), se = l.value.line.cutNullValues ? co(ge) : vo(ge.filter(($) => $.value !== null)), Fl = Oe ? Kr(l.value.line.cutNullValues ? j : j.filter(($) => $.value !== null), o.dashIndices.map(($) => $ - b.value.start)) : [], el = Oe ? Qr(l.value.line.cutNullValues ? j : j.filter(($) => $.value !== null), o.dashIndices.map(($) => $ - b.value.start)) : [], ca = V.ticks.map(($) => ({
|
|
1072
|
+
y: $ >= 0 ? Q - H * ($ / Z) : Q + H * Math.abs($) / Z,
|
|
1073
|
+
value: $,
|
|
1074
1074
|
prefix: o.prefix || l.value.chart.labels.prefix,
|
|
1075
1075
|
suffix: o.suffix || l.value.chart.labels.suffix,
|
|
1076
1076
|
datapoint: o
|
|
1077
|
-
})), va = z.ticks.map((
|
|
1078
|
-
const
|
|
1077
|
+
})), va = z.ticks.map(($) => {
|
|
1078
|
+
const ue = ($ - z.min) / (z.max - z.min);
|
|
1079
1079
|
return {
|
|
1080
|
-
y:
|
|
1081
|
-
value:
|
|
1080
|
+
y: $ >= 0 ? Ce - H * ue : Ce + H * ue,
|
|
1081
|
+
value: $,
|
|
1082
1082
|
prefix: o.prefix || l.value.chart.labels.prefix,
|
|
1083
1083
|
suffix: o.suffix || l.value.chart.labels.suffix,
|
|
1084
1084
|
datapoint: o
|
|
1085
1085
|
};
|
|
1086
1086
|
});
|
|
1087
|
-
A.value[o.scaleLabel].name = o.name, A.value[o.scaleLabel].groupName = o.scaleLabel, A.value[o.scaleLabel].groupColor = l.value.chart.grid.labels.yAxis.groupColor || o.color, A.value[o.scaleLabel].color = o.color, A.value[o.scaleLabel].scaleYLabels = o.autoScaling ? va : ca, A.value[o.scaleLabel].zeroPosition = o.autoScaling ? Ce : Q, A.value[o.scaleLabel].individualMax = o.autoScaling ?
|
|
1087
|
+
A.value[o.scaleLabel].name = o.name, A.value[o.scaleLabel].groupName = o.scaleLabel, A.value[o.scaleLabel].groupColor = l.value.chart.grid.labels.yAxis.groupColor || o.color, A.value[o.scaleLabel].color = o.color, A.value[o.scaleLabel].scaleYLabels = o.autoScaling ? va : ca, A.value[o.scaleLabel].zeroPosition = o.autoScaling ? Ce : Q, A.value[o.scaleLabel].individualMax = o.autoScaling ? we : Z, A.value[o.scaleLabel].scaleLabel = o.scaleLabel, A.value[o.scaleLabel].id = o.id, A.value[o.scaleLabel].yOffset = E, A.value[o.scaleLabel].individualHeight = H, A.value[o.scaleLabel].autoScaleYLabels = va, A.value[o.scaleLabel].unique = Qe.value.filter(($) => $.scaleLabel === o.scaleLabel).length === 1;
|
|
1088
1088
|
const Dr = f.value.useIndividualScale ? o.autoScaling ? Ce : Q : Ko.value, Bl = Math.max(
|
|
1089
1089
|
Math.max(
|
|
1090
1090
|
o.autoScaling ? Ce : ca.at(-1) ? ca.at(-1).y : 0,
|
|
@@ -1094,12 +1094,13 @@ const yo = { chart: { userOptions: { show: !1 }, grid: { showVerticalLines: !1,
|
|
|
1094
1094
|
);
|
|
1095
1095
|
return {
|
|
1096
1096
|
...o,
|
|
1097
|
-
|
|
1097
|
+
temperatureColors: o.temperatureColors ? o.temperatureColors.map(($) => Pa($)) : null,
|
|
1098
|
+
yOffset: E,
|
|
1098
1099
|
autoScaleYLabels: va,
|
|
1099
|
-
individualHeight:
|
|
1100
|
+
individualHeight: H,
|
|
1100
1101
|
scaleYLabels: o.autoScaling ? va : ca,
|
|
1101
|
-
individualScale: o.autoScaling ? z :
|
|
1102
|
-
individualMax: o.autoScaling ?
|
|
1102
|
+
individualScale: o.autoScaling ? z : V,
|
|
1103
|
+
individualMax: o.autoScaling ? we : Z,
|
|
1103
1104
|
zeroPosition: o.autoScaling ? Ce : Q,
|
|
1104
1105
|
curve: o.autoScaling ? ee : G,
|
|
1105
1106
|
plots: o.autoScaling ? ge : j,
|
|
@@ -1110,159 +1111,159 @@ const yo = { chart: { userOptions: { show: !1 }, grid: { showVerticalLines: !1,
|
|
|
1110
1111
|
o.autoScaling ? ge : j,
|
|
1111
1112
|
Bl
|
|
1112
1113
|
) : fo(
|
|
1113
|
-
o.autoScaling ? ge.filter((
|
|
1114
|
+
o.autoScaling ? ge.filter(($) => $.value !== null) : j.filter(($) => $.value !== null),
|
|
1114
1115
|
Bl
|
|
1115
|
-
) : l.value.line.cutNullValues ? ho(j, Bl) : fo(j.filter((
|
|
1116
|
+
) : l.value.line.cutNullValues ? ho(j, Bl) : fo(j.filter(($) => $.value !== null), Bl) : "",
|
|
1116
1117
|
curveAreas: o.useArea ? jr(
|
|
1117
|
-
o.autoScaling ? l.value.line.cutNullValues ? ge : ge.filter((
|
|
1118
|
+
o.autoScaling ? l.value.line.cutNullValues ? ge : ge.filter(($) => $.value !== null) : l.value.line.cutNullValues ? j : j.filter(($) => $.value !== null),
|
|
1118
1119
|
Bl,
|
|
1119
1120
|
l.value.line.cutNullValues
|
|
1120
1121
|
) : [],
|
|
1121
|
-
straight: o.autoScaling ? se :
|
|
1122
|
+
straight: o.autoScaling ? se : R,
|
|
1122
1123
|
groupId: A.value[o.scaleLabel].groupId
|
|
1123
1124
|
};
|
|
1124
1125
|
});
|
|
1125
1126
|
}), he = m(() => {
|
|
1126
|
-
const a = Qe.value.filter((o) => ["bar", "line", "plot"].includes(o.type)), r = a.length, e = l.value.chart.grid.labels.yAxis.gap, s = f.value.isStacked, t = s ? e * (r - 1) : 0,
|
|
1127
|
+
const a = Qe.value.filter((o) => ["bar", "line", "plot"].includes(o.type)), r = a.length, e = l.value.chart.grid.labels.yAxis.gap, s = f.value.isStacked, t = s ? e * (r - 1) : 0, u = c.value.height - t;
|
|
1127
1128
|
return a.filter((o) => o.type === "plot").map((o) => {
|
|
1128
1129
|
Ta(o);
|
|
1129
|
-
const
|
|
1130
|
-
o.absoluteValues.filter((G) => ![null, void 0].includes(G)).map((G) => (G -
|
|
1130
|
+
const L = A.value[o.scaleLabel].min, M = A.value[o.scaleLabel].max;
|
|
1131
|
+
o.absoluteValues.filter((G) => ![null, void 0].includes(G)).map((G) => (G - L) / (M - L));
|
|
1131
1132
|
const B = {
|
|
1132
|
-
valueMin:
|
|
1133
|
+
valueMin: L,
|
|
1133
1134
|
valueMax: M
|
|
1134
|
-
},
|
|
1135
|
+
}, w = {
|
|
1135
1136
|
max: o.scaleMax || Math.max(...o.absoluteValues) || 1,
|
|
1136
1137
|
min: o.scaleMin || Math.min(...o.absoluteValues) > 0 ? 0 : Math.min(...o.absoluteValues)
|
|
1137
|
-
}, T = o.scaleSteps || l.value.chart.grid.labels.yAxis.commonScaleSteps, Y = 1.0000001,
|
|
1138
|
-
const
|
|
1138
|
+
}, T = o.scaleSteps || l.value.chart.grid.labels.yAxis.commonScaleSteps, Y = 1.0000001, k = tl(w.min, w.max === w.min ? w.max * Y : w.max, T), V = tl(B.valueMin, B.valueMax === B.valueMin ? B.valueMax * Y : B.valueMax, T), z = k.min >= 0 ? 0 : Math.abs(k.min), ae = 0, fe = k.max + z, Z = V.max + Math.abs(ae), we = o.stackIndex, Be = r - 1 - we, dl = s ? 1 - o.cumulatedStackRatio : 0, ke = s ? u * dl + e * Be : 0, E = s ? u * o.stackRatio : c.value.height, H = c.value?.bottom - ke - E * z / fe, Q = c.value?.bottom - ke - E * ae / Z, Ce = o.series.map((G, ee) => {
|
|
1139
|
+
const R = f.value.useIndividualScale ? (o.absoluteValues[ee] + Math.abs(z)) / fe : Je(G);
|
|
1139
1140
|
return {
|
|
1140
|
-
x:
|
|
1141
|
-
y:
|
|
1141
|
+
x: P(c.value?.left + J.value.plot / 2 + J.value.plot * ee),
|
|
1142
|
+
y: P(c.value?.bottom - ke - E * R),
|
|
1142
1143
|
value: o.absoluteValues[ee],
|
|
1143
1144
|
comment: o.comments && o.comments.slice(b.value.start, b.value.end)[ee] || ""
|
|
1144
1145
|
};
|
|
1145
|
-
}), j = o.absoluteValues.map((G) =>
|
|
1146
|
-
x:
|
|
1147
|
-
y:
|
|
1146
|
+
}), j = o.absoluteValues.map((G) => V.min >= 0 ? (G - Math.abs(V.min)) / (V.max - Math.abs(V.min)) : (G + Math.abs(V.min)) / (V.max + Math.abs(V.min))), Il = o.series.map((G, ee) => ({
|
|
1147
|
+
x: P(c.value?.left + J.value.plot / 2 + J.value.plot * ee),
|
|
1148
|
+
y: P(c.value?.bottom - ke - (E * j[ee] || 0)),
|
|
1148
1149
|
value: o.absoluteValues[ee],
|
|
1149
1150
|
comment: o.comments && o.comments.slice(b.value.start, b.value.end)[ee] || ""
|
|
1150
|
-
})), ge =
|
|
1151
|
-
y: G >= 0 ?
|
|
1151
|
+
})), ge = k.ticks.map((G) => ({
|
|
1152
|
+
y: G >= 0 ? H - E * (G / fe) : H + E * Math.abs(G) / fe,
|
|
1152
1153
|
value: G,
|
|
1153
1154
|
prefix: o.prefix || l.value.chart.labels.prefix,
|
|
1154
1155
|
suffix: o.suffix || l.value.chart.labels.suffix,
|
|
1155
1156
|
datapoint: o
|
|
1156
|
-
})), Oe =
|
|
1157
|
-
const ee = (G -
|
|
1157
|
+
})), Oe = V.ticks.map((G) => {
|
|
1158
|
+
const ee = (G - V.min) / (V.max - V.min);
|
|
1158
1159
|
return {
|
|
1159
|
-
y: G >= 0 ? Q -
|
|
1160
|
+
y: G >= 0 ? Q - E * ee : Q + E * ee,
|
|
1160
1161
|
value: G,
|
|
1161
1162
|
prefix: o.prefix || l.value.chart.labels.prefix,
|
|
1162
1163
|
suffix: o.suffix || l.value.chart.labels.suffix,
|
|
1163
1164
|
datapoint: o
|
|
1164
1165
|
};
|
|
1165
1166
|
});
|
|
1166
|
-
return A.value[o.scaleLabel].name = o.name, A.value[o.scaleLabel].groupName = o.scaleLabel, A.value[o.scaleLabel].groupColor = l.value.chart.grid.labels.yAxis.groupColor || o.color, A.value[o.scaleLabel].color = o.color, A.value[o.scaleLabel].scaleYLabels = o.autoScaling ? Oe : ge, A.value[o.scaleLabel].zeroPosition = o.autoScaling ? Q :
|
|
1167
|
+
return A.value[o.scaleLabel].name = o.name, A.value[o.scaleLabel].groupName = o.scaleLabel, A.value[o.scaleLabel].groupColor = l.value.chart.grid.labels.yAxis.groupColor || o.color, A.value[o.scaleLabel].color = o.color, A.value[o.scaleLabel].scaleYLabels = o.autoScaling ? Oe : ge, A.value[o.scaleLabel].zeroPosition = o.autoScaling ? Q : H, A.value[o.scaleLabel].individualMax = o.autoScaling ? Z : fe, A.value[o.scaleLabel].scaleLabel = o.scaleLabel, A.value[o.scaleLabel].id = o.id, A.value[o.scaleLabel].yOffset = ke, A.value[o.scaleLabel].individualHeight = E, A.value[o.scaleLabel].autoScaleYLabels = Oe, A.value[o.scaleLabel].unique = Qe.value.filter((G) => G.scaleLabel === o.scaleLabel).length === 1, {
|
|
1167
1168
|
...o,
|
|
1168
1169
|
yOffset: ke,
|
|
1169
1170
|
autoScaleYLabels: Oe,
|
|
1170
|
-
individualHeight:
|
|
1171
|
+
individualHeight: E,
|
|
1171
1172
|
scaleYLabels: o.autoScaling ? Oe : ge,
|
|
1172
|
-
individualScale: o.autoScaling ?
|
|
1173
|
+
individualScale: o.autoScaling ? V : k,
|
|
1173
1174
|
individualMax: o.autoScaling ? Z : fe,
|
|
1174
|
-
zeroPosition: o.autoScaling ? Q :
|
|
1175
|
+
zeroPosition: o.autoScaling ? Q : H,
|
|
1175
1176
|
plots: o.autoScaling ? Il : Ce,
|
|
1176
1177
|
groupId: A.value[o.scaleLabel].groupId
|
|
1177
1178
|
};
|
|
1178
1179
|
});
|
|
1179
1180
|
}), Tl = m(() => {
|
|
1180
|
-
const a = le.value.map((
|
|
1181
|
-
name:
|
|
1182
|
-
color:
|
|
1183
|
-
scale:
|
|
1184
|
-
scaleYLabels:
|
|
1185
|
-
zero:
|
|
1186
|
-
max:
|
|
1187
|
-
scaleLabel:
|
|
1188
|
-
id:
|
|
1189
|
-
yOffset:
|
|
1190
|
-
individualHeight:
|
|
1191
|
-
autoScaleYLabels:
|
|
1192
|
-
})), r = ye.value.map((
|
|
1193
|
-
name:
|
|
1194
|
-
color:
|
|
1195
|
-
scale:
|
|
1196
|
-
scaleYLabels:
|
|
1197
|
-
zero:
|
|
1198
|
-
max:
|
|
1199
|
-
scaleLabel:
|
|
1200
|
-
id:
|
|
1201
|
-
yOffset:
|
|
1202
|
-
individualHeight:
|
|
1203
|
-
})), e = he.value.map((
|
|
1204
|
-
name:
|
|
1205
|
-
color:
|
|
1206
|
-
scale:
|
|
1207
|
-
scaleYLabels:
|
|
1181
|
+
const a = le.value.map((u) => ({
|
|
1182
|
+
name: u.name,
|
|
1183
|
+
color: u.color,
|
|
1184
|
+
scale: u.individualScale,
|
|
1185
|
+
scaleYLabels: u.scaleYLabels,
|
|
1186
|
+
zero: u.zeroPosition,
|
|
1187
|
+
max: u.individualMax,
|
|
1188
|
+
scaleLabel: u.scaleLabel || "",
|
|
1189
|
+
id: u.id,
|
|
1190
|
+
yOffset: u.yOffset || 0,
|
|
1191
|
+
individualHeight: u.individualHeight || c.value.height,
|
|
1192
|
+
autoScaleYLabels: u.autoScaleYLabels
|
|
1193
|
+
})), r = ye.value.map((u) => ({
|
|
1194
|
+
name: u.name,
|
|
1195
|
+
color: u.color,
|
|
1196
|
+
scale: u.individualScale,
|
|
1197
|
+
scaleYLabels: u.scaleYLabels,
|
|
1198
|
+
zero: u.zeroPosition,
|
|
1199
|
+
max: u.individualMax,
|
|
1200
|
+
scaleLabel: u.scaleLabel || "",
|
|
1201
|
+
id: u.id,
|
|
1202
|
+
yOffset: u.yOffset || 0,
|
|
1203
|
+
individualHeight: u.individualHeight || c.value.height
|
|
1204
|
+
})), e = he.value.map((u) => ({
|
|
1205
|
+
name: u.name,
|
|
1206
|
+
color: u.color,
|
|
1207
|
+
scale: u.individualScale,
|
|
1208
|
+
scaleYLabels: u.scaleYLabels,
|
|
1208
1209
|
// FIX
|
|
1209
|
-
zero:
|
|
1210
|
-
max:
|
|
1211
|
-
scaleLabel:
|
|
1212
|
-
id:
|
|
1213
|
-
yOffset:
|
|
1214
|
-
individualHeight:
|
|
1215
|
-
})), s = f.value.useIndividualScale && !f.value.isStacked ? Object.values(A.value) : [...a, ...r, ...e], t = s.flatMap((
|
|
1216
|
-
return s.flatMap((
|
|
1217
|
-
let
|
|
1218
|
-
|
|
1219
|
-
const M = f.value.useIndividualScale && !f.value.isStacked ?
|
|
1210
|
+
zero: u.zeroPosition,
|
|
1211
|
+
max: u.individualMax,
|
|
1212
|
+
scaleLabel: u.scaleLabel || "",
|
|
1213
|
+
id: u.id,
|
|
1214
|
+
yOffset: u.yOffset || 0,
|
|
1215
|
+
individualHeight: u.individualHeight || c.value.height
|
|
1216
|
+
})), s = f.value.useIndividualScale && !f.value.isStacked ? Object.values(A.value) : [...a, ...r, ...e], t = s.flatMap((u) => u).length;
|
|
1217
|
+
return s.flatMap((u, o) => {
|
|
1218
|
+
let L = 0;
|
|
1219
|
+
L = f.value.isStacked ? c.value?.left : c.value?.left / t * (o + 1);
|
|
1220
|
+
const M = f.value.useIndividualScale && !f.value.isStacked ? u.unique ? u.name : u.groupName : u.name;
|
|
1220
1221
|
return {
|
|
1221
|
-
unique:
|
|
1222
|
-
id:
|
|
1223
|
-
groupId:
|
|
1224
|
-
scaleLabel:
|
|
1225
|
-
name:
|
|
1222
|
+
unique: u.unique,
|
|
1223
|
+
id: u.id,
|
|
1224
|
+
groupId: u.groupId,
|
|
1225
|
+
scaleLabel: u.scaleLabel,
|
|
1226
|
+
name: ne(
|
|
1226
1227
|
l.value.chart.grid.labels.yAxis.serieNameFormatter,
|
|
1227
1228
|
M,
|
|
1228
1229
|
M,
|
|
1229
|
-
|
|
1230
|
+
u
|
|
1230
1231
|
),
|
|
1231
|
-
color: f.value.useIndividualScale && !f.value.isStacked ?
|
|
1232
|
-
scale:
|
|
1233
|
-
yOffset:
|
|
1234
|
-
individualHeight:
|
|
1235
|
-
x:
|
|
1236
|
-
yLabels:
|
|
1237
|
-
y: B >= 0 ?
|
|
1232
|
+
color: f.value.useIndividualScale && !f.value.isStacked ? u.unique ? u.color : u.groupColor : u.color,
|
|
1233
|
+
scale: u.scale,
|
|
1234
|
+
yOffset: u.yOffset,
|
|
1235
|
+
individualHeight: u.individualHeight,
|
|
1236
|
+
x: L,
|
|
1237
|
+
yLabels: u.scaleYLabels || u.scale.ticks.map((B) => ({
|
|
1238
|
+
y: B >= 0 ? u.zero - u.individualHeight * (B / u.max) : u.zero + u.individualHeight * Math.abs(B) / u.max,
|
|
1238
1239
|
value: B
|
|
1239
1240
|
}))
|
|
1240
1241
|
};
|
|
1241
1242
|
});
|
|
1242
|
-
}),
|
|
1243
|
+
}), Rt = m(() => {
|
|
1243
1244
|
const a = l.value.line.interLine || {}, r = a.pairs || [], e = a.colors || [];
|
|
1244
1245
|
if (!r.length) return [];
|
|
1245
1246
|
const s = [];
|
|
1246
|
-
return r.forEach((t,
|
|
1247
|
-
const [o,
|
|
1248
|
-
if (!o ||
|
|
1249
|
-
const M = le.value.find((
|
|
1247
|
+
return r.forEach((t, u) => {
|
|
1248
|
+
const [o, L] = Array.isArray(t) ? t : [t.a, t.b];
|
|
1249
|
+
if (!o || !L) return;
|
|
1250
|
+
const M = le.value.find((k) => k.name === o), B = le.value.find((k) => k.name === L);
|
|
1250
1251
|
if (!M || !B || M.type !== "line" || B.type !== "line") return;
|
|
1251
|
-
const
|
|
1252
|
+
const w = e?.[u]?.[0] ?? M.color, T = e?.[u]?.[1] ?? B.color;
|
|
1252
1253
|
es({
|
|
1253
1254
|
lineA: M.plots,
|
|
1254
1255
|
lineB: B.plots,
|
|
1255
1256
|
smoothA: !!M.smooth,
|
|
1256
1257
|
smoothB: !!B.smooth,
|
|
1257
|
-
colorLineA:
|
|
1258
|
+
colorLineA: w,
|
|
1258
1259
|
colorLineB: T,
|
|
1259
1260
|
sampleStepPx: 2,
|
|
1260
1261
|
cutNullValues: l.value.line.cutNullValues
|
|
1261
|
-
}).forEach((
|
|
1262
|
-
s.push({ ...
|
|
1262
|
+
}).forEach((k, V) => {
|
|
1263
|
+
s.push({ ...k, key: `inter_${o}_${L}_${u}_${V}` });
|
|
1263
1264
|
});
|
|
1264
1265
|
}), s;
|
|
1265
|
-
}),
|
|
1266
|
+
}), Et = m(() => ({
|
|
1266
1267
|
datapoint: je.value,
|
|
1267
1268
|
seriesIndex: C.value,
|
|
1268
1269
|
series: re.value,
|
|
@@ -1270,30 +1271,30 @@ const yo = { chart: { userOptions: { show: !1 }, grid: { showVerticalLines: !1,
|
|
|
1270
1271
|
lines: le.value,
|
|
1271
1272
|
plots: he.value,
|
|
1272
1273
|
config: l.value
|
|
1273
|
-
})),
|
|
1274
|
-
let
|
|
1274
|
+
})), Ht = g({ months: [], shortMonths: [], days: [], shortDays: [] });
|
|
1275
|
+
let Wt = 0;
|
|
1275
1276
|
da(() => {
|
|
1276
|
-
const a = ++
|
|
1277
|
+
const a = ++Wt, r = l.value.chart.grid.labels.xAxisLabels.datetimeFormatter;
|
|
1277
1278
|
(async () => {
|
|
1278
1279
|
const e = await xo(r.locale).catch(() => xo("en"));
|
|
1279
|
-
a ===
|
|
1280
|
+
a === Wt && (Ht.value = e.data);
|
|
1280
1281
|
})();
|
|
1281
1282
|
});
|
|
1282
1283
|
const vl = m(() => {
|
|
1283
1284
|
const a = l.value.chart.grid.labels.xAxisLabels.datetimeFormatter, r = ns({
|
|
1284
1285
|
useUTC: a.useUTC,
|
|
1285
|
-
locale:
|
|
1286
|
+
locale: Ht.value,
|
|
1286
1287
|
januaryAsYear: a.januaryAsYear
|
|
1287
1288
|
});
|
|
1288
1289
|
return (e, s) => {
|
|
1289
|
-
const
|
|
1290
|
-
return
|
|
1290
|
+
const u = l.value.chart.grid.labels.xAxisLabels.values?.[e];
|
|
1291
|
+
return u == null ? "" : r.formatDate(new Date(u), s);
|
|
1291
1292
|
};
|
|
1292
|
-
}),
|
|
1293
|
+
}), Yt = m(() => (l.value.chart.grid.labels.xAxisLabels.values || []).map((r, e) => ({
|
|
1293
1294
|
text: vl.value(e, l.value.chart.zoom.timeFormat),
|
|
1294
1295
|
absoluteIndex: e
|
|
1295
1296
|
}))), Ar = m(() => {
|
|
1296
|
-
let a = "", r = je.value.map((t) => t.value).filter((t) => ha(t) && t !== null).reduce((t,
|
|
1297
|
+
let a = "", r = je.value.map((t) => t.value).filter((t) => ha(t) && t !== null).reduce((t, u) => Math.abs(t) + Math.abs(u), 0);
|
|
1297
1298
|
const e = ve.value[C.value], s = l.value.chart.tooltip.customFormat;
|
|
1298
1299
|
if (go(s) && ls(() => s({
|
|
1299
1300
|
absoluteIndex: C.value + b.value.start,
|
|
@@ -1321,45 +1322,45 @@ const yo = { chart: { userOptions: { show: !1 }, grid: { showVerticalLines: !1,
|
|
|
1321
1322
|
}
|
|
1322
1323
|
return je.value.forEach((t) => {
|
|
1323
1324
|
if (ha(t.value)) {
|
|
1324
|
-
let
|
|
1325
|
+
let u = "", o = "";
|
|
1325
1326
|
switch (yl.value[t.type]) {
|
|
1326
1327
|
case "bar":
|
|
1327
|
-
|
|
1328
|
+
u = `<svg viewBox="0 0 40 40" height="14" width="14">${Ea.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="${Ea.pattern ? `url(#pattern_${O.value}_${t.slotAbsoluteIndex}` : t.color}" /></svg>`;
|
|
1328
1329
|
break;
|
|
1329
1330
|
case "line":
|
|
1330
|
-
!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="${Ne({ 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="${Ne({ 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="${Ne({ 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="${Ne({ 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="${Ne({ 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="${mo({ plot: { x: 10, y: 8 }, radius: 4 })}" />`),
|
|
1331
|
+
!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="${Ne({ 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="${Ne({ 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="${Ne({ 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="${Ne({ 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="${Ne({ 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="${mo({ plot: { x: 10, y: 8 }, radius: 4 })}" />`), u = `<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>`;
|
|
1331
1332
|
break;
|
|
1332
1333
|
case "plot":
|
|
1333
1334
|
if (!t.shape || !["star", "triangle", "square", "diamond", "pentagon", "hexagon"].includes(t.shape)) {
|
|
1334
|
-
|
|
1335
|
+
u = `<svg viewBox="0 0 12 12" height="14" width="14"><circle cx="6" cy="6" r="6" stroke="${l.value.chart.tooltip.backgroundColor}" stroke-width="1" fill="${t.color}" /></svg>`;
|
|
1335
1336
|
break;
|
|
1336
1337
|
}
|
|
1337
1338
|
if (t.shape === "star") {
|
|
1338
|
-
|
|
1339
|
+
u = `<svg viewBox="0 0 12 12" height="14" width="14"><polygon stroke="${l.value.chart.tooltip.backgroundColor}" stroke-width="1" fill="${t.color}" points="${mo({ plot: { x: 6, y: 6 }, radius: 5 })}" /></svg>`;
|
|
1339
1340
|
break;
|
|
1340
1341
|
}
|
|
1341
1342
|
if (t.shape === "triangle") {
|
|
1342
|
-
|
|
1343
|
+
u = `<svg viewBox="0 0 12 12" height="14" width="14"><path d="${Ne({ 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>`;
|
|
1343
1344
|
break;
|
|
1344
1345
|
}
|
|
1345
1346
|
if (t.shape === "square") {
|
|
1346
|
-
|
|
1347
|
+
u = `<svg viewBox="0 0 12 12" height="14" width="14"><path d="${Ne({ 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>`;
|
|
1347
1348
|
break;
|
|
1348
1349
|
}
|
|
1349
1350
|
if (t.shape === "diamond") {
|
|
1350
|
-
|
|
1351
|
+
u = `<svg viewBox="0 0 12 12" height="14" width="14"><path d="${Ne({ 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>`;
|
|
1351
1352
|
break;
|
|
1352
1353
|
}
|
|
1353
1354
|
if (t.shape === "pentagon") {
|
|
1354
|
-
|
|
1355
|
+
u = `<svg viewBox="0 0 12 12" height="14" width="14"><path d="${Ne({ 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>`;
|
|
1355
1356
|
break;
|
|
1356
1357
|
}
|
|
1357
1358
|
if (t.shape === "hexagon") {
|
|
1358
|
-
|
|
1359
|
+
u = `<svg viewBox="0 0 12 12" height="14" width="14"><path d="${Ne({ 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>`;
|
|
1359
1360
|
break;
|
|
1360
1361
|
}
|
|
1361
1362
|
}
|
|
1362
|
-
a += `<div style="display:flex;flex-direction:row; align-items:center;gap:3px;"><div style="width:20px">${
|
|
1363
|
+
a += `<div style="display:flex;flex-direction:row; align-items:center;gap:3px;"><div style="width:20px">${u}</div> ${t.name}: <b>${l.value.chart.tooltip.showValue ? ne(
|
|
1363
1364
|
t.type === "line" ? l.value.line.labels.formatter : t.type === "bar" ? l.value.bar.labels.formatter : l.value.plot.labels.formatter,
|
|
1364
1365
|
t.value,
|
|
1365
1366
|
Pe({
|
|
@@ -1370,43 +1371,43 @@ const yo = { chart: { userOptions: { show: !1 }, grid: { showVerticalLines: !1,
|
|
|
1370
1371
|
}),
|
|
1371
1372
|
{ datapoint: t }
|
|
1372
1373
|
) : ""}</b> ${l.value.chart.tooltip.showPercentage ? `(${Pe({
|
|
1373
|
-
v:
|
|
1374
|
+
v: P(Math.abs(t.value) / r * 100),
|
|
1374
1375
|
s: "%",
|
|
1375
1376
|
r: l.value.chart.tooltip.roundingPercentage
|
|
1376
1377
|
})})` : ""}</div>`, l.value.chart.comments.showInTooltip && t.comments.length && t.comments.slice(b.value.start, b.value.end)[C.value] && (a += `<div class="vue-data-ui-tooltip-comment" style="background:${t.color}20; padding: 6px; margin-bottom: 6px; border-left: 1px solid ${t.color}">${t.comments.slice(b.value.start, b.value.end)[C.value]}</div>`);
|
|
1377
1378
|
}
|
|
1378
1379
|
}), `<div style="border-radius:4px;padding:12px;font-variant-numeric: tabular-nums;color:${l.value.chart.tooltip.color}">${a}</div>`;
|
|
1379
|
-
}),
|
|
1380
|
+
}), Xt = m(() => {
|
|
1380
1381
|
if (Ee.value.length === 0) return { head: [], body: [], config: {}, columnNames: [] };
|
|
1381
|
-
const a =
|
|
1382
|
+
const a = _e.value.map((e) => ({
|
|
1382
1383
|
label: e.name,
|
|
1383
1384
|
color: e.color,
|
|
1384
1385
|
type: e.type
|
|
1385
1386
|
})), r = [];
|
|
1386
1387
|
return ve.value.forEach((e, s) => {
|
|
1387
1388
|
const t = l.value.table.useDefaultTimeFormat ? [e.text] : [vl.value(s + b.value.start, l.value.table.timeFormat)];
|
|
1388
|
-
|
|
1389
|
-
t.push(xe(
|
|
1389
|
+
_e.value.forEach((u) => {
|
|
1390
|
+
t.push(xe(u.absoluteValues[s]) ? Number(u.absoluteValues[s].toFixed(l.value.table.rounding)) : "");
|
|
1390
1391
|
}), r.push(t);
|
|
1391
1392
|
}), { head: a, body: r };
|
|
1392
|
-
}),
|
|
1393
|
+
}), na = m(() => {
|
|
1393
1394
|
const a = l.value.table.showSum;
|
|
1394
|
-
let r = [""].concat(
|
|
1395
|
+
let r = [""].concat(_e.value.map((u) => u.name));
|
|
1395
1396
|
a && (r = r.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>'));
|
|
1396
1397
|
let e = [];
|
|
1397
|
-
for (let
|
|
1398
|
-
const o =
|
|
1398
|
+
for (let u = 0; u < S.value; u += 1) {
|
|
1399
|
+
const o = _e.value.map((L) => L.absoluteValues[u] ?? 0).reduce((L, M) => L + M, 0);
|
|
1399
1400
|
e.push(
|
|
1400
1401
|
[
|
|
1401
|
-
l.value.table.useDefaultTimeFormat ? ve.value[
|
|
1402
|
-
].concat(
|
|
1403
|
-
(
|
|
1404
|
-
|
|
1405
|
-
|
|
1402
|
+
l.value.table.useDefaultTimeFormat ? ve.value[u].text ?? "-" : vl.value(u + b.value.start, l.value.table.timeFormat)
|
|
1403
|
+
].concat(_e.value.map(
|
|
1404
|
+
(L) => ne(
|
|
1405
|
+
L.type === "line" ? l.value.line.labels.formatter : L.type === "bar" ? l.value.bar.labels.formatter : l.value.plot.labels.formatter,
|
|
1406
|
+
L.absoluteValues[u] ?? 0,
|
|
1406
1407
|
Pe({
|
|
1407
|
-
p:
|
|
1408
|
-
v:
|
|
1409
|
-
s:
|
|
1408
|
+
p: L.prefix || l.value.chart.labels.prefix,
|
|
1409
|
+
v: L.absoluteValues[u] ?? 0,
|
|
1410
|
+
s: L.suffix || l.value.chart.labels.suffix,
|
|
1410
1411
|
r: l.value.table.rounding
|
|
1411
1412
|
})
|
|
1412
1413
|
)
|
|
@@ -1425,17 +1426,17 @@ const yo = { chart: { userOptions: { show: !1 }, grid: { showVerticalLines: !1,
|
|
|
1425
1426
|
outline: l.value.table.td.outline
|
|
1426
1427
|
},
|
|
1427
1428
|
breakpoint: l.value.table.responsiveBreakpoint
|
|
1428
|
-
}, t = [l.value.table.columnNames.period].concat(
|
|
1429
|
+
}, t = [l.value.table.columnNames.period].concat(_e.value.map((u) => u.name)).concat(l.value.table.columnNames.total);
|
|
1429
1430
|
return { head: r, body: e, config: s, colNames: t };
|
|
1430
1431
|
});
|
|
1431
1432
|
function za(a = null) {
|
|
1432
|
-
const r = [[l.value.chart.title.text], [l.value.chart.title.subtitle.text], [""]], e = ["", ...
|
|
1433
|
-
a ? a(
|
|
1433
|
+
const r = [[l.value.chart.title.text], [l.value.chart.title.subtitle.text], [""]], e = ["", ...Xt.value.head.map((o) => o.label)], s = Xt.value.body, t = r.concat([e]).concat(s), u = ss(t);
|
|
1434
|
+
a ? a(u) : us({ csvContent: u, title: l.value.chart.title.text || "vue-ui-xy" });
|
|
1434
1435
|
}
|
|
1435
|
-
function
|
|
1436
|
+
function Gt(a, r = null) {
|
|
1436
1437
|
if (Qo.value) return;
|
|
1437
|
-
|
|
1438
|
-
const e =
|
|
1438
|
+
Wa.value = a;
|
|
1439
|
+
const e = _e.value.map((s) => ({
|
|
1439
1440
|
name: s.name,
|
|
1440
1441
|
value: [null, void 0, NaN].includes(s.absoluteValues[r]) ? null : s.absoluteValues[r],
|
|
1441
1442
|
color: s.color,
|
|
@@ -1443,19 +1444,19 @@ const yo = { chart: { userOptions: { show: !1 }, grid: { showVerticalLines: !1,
|
|
|
1443
1444
|
}));
|
|
1444
1445
|
a ? (C.value = r, l.value.events.datapointEnter && l.value.events.datapointEnter({ datapoint: e, seriesIndex: r + b.value.start })) : (C.value = null, l.value.events.datapointLeave && l.value.events.datapointLeave({ datapoint: e, seriesIndex: r + b.value.start }));
|
|
1445
1446
|
}
|
|
1446
|
-
function
|
|
1447
|
+
function qt() {
|
|
1447
1448
|
f.value.showTable = !f.value.showTable;
|
|
1448
1449
|
}
|
|
1449
|
-
function
|
|
1450
|
+
function Ut() {
|
|
1450
1451
|
f.value.dataLabels.show = !f.value.dataLabels.show;
|
|
1451
1452
|
}
|
|
1452
|
-
function
|
|
1453
|
+
function Zt() {
|
|
1453
1454
|
f.value.showTooltip = !f.value.showTooltip;
|
|
1454
1455
|
}
|
|
1455
|
-
function
|
|
1456
|
-
qe.value = a,
|
|
1456
|
+
function Jt(a) {
|
|
1457
|
+
qe.value = a, Ya.value += 1;
|
|
1457
1458
|
}
|
|
1458
|
-
function
|
|
1459
|
+
function Kt() {
|
|
1459
1460
|
if (!l.value.responsiveProportionalSizing) {
|
|
1460
1461
|
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, Le.value.plot = l.value.plot.radius, Le.value.line = l.value.line.radius;
|
|
1461
1462
|
return;
|
|
@@ -1502,59 +1503,59 @@ const yo = { chart: { userOptions: { show: !1 }, grid: { showVerticalLines: !1,
|
|
|
1502
1503
|
bo(F.dataset) ? (Na({
|
|
1503
1504
|
componentName: "VueUiXy",
|
|
1504
1505
|
type: "dataset",
|
|
1505
|
-
debug:
|
|
1506
|
+
debug: wl.value
|
|
1506
1507
|
}), Gl.value = !0) : F.dataset.forEach((r, e) => {
|
|
1507
1508
|
[null, void 0].includes(r.name) && (Na({
|
|
1508
1509
|
componentName: "VueUiXy",
|
|
1509
1510
|
type: "datasetSerieAttribute",
|
|
1510
1511
|
property: "name (string)",
|
|
1511
1512
|
index: e,
|
|
1512
|
-
debug:
|
|
1513
|
+
debug: wl.value
|
|
1513
1514
|
}), Gl.value = !0);
|
|
1514
|
-
}),
|
|
1515
|
+
}), wl.value && F.dataset.forEach((r) => {
|
|
1515
1516
|
r.series.forEach((e, s) => {
|
|
1516
1517
|
ha(e) || console.warn(`VueUiXy has detected an unsafe value in your dataset:
|
|
1517
1518
|
-----> The serie '${r.name}' contains the value '${e}' at index ${s}.
|
|
1518
1519
|
'${e}' was converted to null to allow the chart to display.`);
|
|
1519
1520
|
});
|
|
1520
|
-
}), bo(F.dataset) || (Gl.value = l.value.loading),
|
|
1521
|
+
}), bo(F.dataset) || (Gl.value = l.value.loading), qa.value = l.value.chart.userOptions.showOnChartHover, _a.value = l.value.chart.userOptions.keepStateOnChartLeave, Hl.value = !l.value.chart.userOptions.showOnChartHover, $a();
|
|
1521
1522
|
const a = 12;
|
|
1522
1523
|
if (l.value.responsive) {
|
|
1523
1524
|
const e = $e.value.parentNode;
|
|
1524
1525
|
Ve.value && (Ve.value.unobserve(ka.value), Ve.value.disconnect());
|
|
1525
1526
|
const { height: s, width: t } = e.getBoundingClientRect();
|
|
1526
|
-
let
|
|
1527
|
-
l.value.chart.title.show && bl.value && (
|
|
1528
|
-
let
|
|
1529
|
-
l.value.chart.zoom.show && Fe.value > 6 && Aa.value && Ie.value && Ie.value.$el && (
|
|
1530
|
-
let B = null,
|
|
1531
|
-
l.value.chart.legend.show && rl.value && (B = rl.value,
|
|
1527
|
+
let u = null, o = 0;
|
|
1528
|
+
l.value.chart.title.show && bl.value && (u = bl.value, o = u.getBoundingClientRect().height);
|
|
1529
|
+
let L = null, M = 0;
|
|
1530
|
+
l.value.chart.zoom.show && Fe.value > 6 && Aa.value && Ie.value && Ie.value.$el && (L = Ie.value.$el, M = L.getBoundingClientRect().height);
|
|
1531
|
+
let B = null, w = 0;
|
|
1532
|
+
l.value.chart.legend.show && rl.value && (B = rl.value, w = B.getBoundingClientRect().height);
|
|
1532
1533
|
let T = 0;
|
|
1533
1534
|
pl.value && (T = pl.value.getBoundingClientRect().height);
|
|
1534
1535
|
let Y = 0;
|
|
1535
|
-
xl.value && (Y = xl.value.getBoundingClientRect().height), ie.value = s - o -
|
|
1536
|
-
const
|
|
1537
|
-
for (const z of
|
|
1538
|
-
l.value.chart.title.show && bl.value ? o = bl.value.getBoundingClientRect().height : o = 0, Ie.value && Ie.value.$el ? M = Ie.value.$el.getBoundingClientRect().height : M = 0, rl.value ?
|
|
1539
|
-
ie.value = z.contentRect.height - o -
|
|
1536
|
+
xl.value && (Y = xl.value.getBoundingClientRect().height), ie.value = s - o - w - M - T - Y - a, K.value = t, El.value = `0 0 ${K.value < 0 ? 10 : K.value} ${ie.value < 0 ? 10 : ie.value}`, Kt();
|
|
1537
|
+
const k = new ResizeObserver((V) => {
|
|
1538
|
+
for (const z of V)
|
|
1539
|
+
l.value.chart.title.show && bl.value ? o = bl.value.getBoundingClientRect().height : o = 0, Ie.value && Ie.value.$el ? M = Ie.value.$el.getBoundingClientRect().height : M = 0, rl.value ? w = rl.value.getBoundingClientRect().height : w = 0, pl.value ? T = pl.value.getBoundingClientRect().height : T = 0, xl.value ? Y = xl.value.getBoundingClientRect().height : Y = 0, requestAnimationFrame(() => {
|
|
1540
|
+
ie.value = z.contentRect.height - o - w - M - T - Y - a, K.value = z.contentBoxSize[0].inlineSize ?? z.contentRect.width, El.value = `0 0 ${K.value < 0 ? 10 : K.value} ${ie.value < 0 ? 10 : ie.value}`, Kt(), _l(), ul();
|
|
1540
1541
|
});
|
|
1541
1542
|
});
|
|
1542
|
-
Ve.value =
|
|
1543
|
+
Ve.value = k, ka.value = e, k.observe(e);
|
|
1543
1544
|
} else
|
|
1544
1545
|
ie.value = l.value.chart.height, K.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, Le.value.plot = l.value.plot.radius, Le.value.line = l.value.line.radius, El.value = `0 0 ${K.value} ${ie.value}`;
|
|
1545
|
-
|
|
1546
|
+
_l(), ul();
|
|
1546
1547
|
}
|
|
1547
|
-
function
|
|
1548
|
+
function Qt(a) {
|
|
1548
1549
|
Wo.value = {
|
|
1549
1550
|
x: a.clientX,
|
|
1550
1551
|
y: a.clientY
|
|
1551
1552
|
};
|
|
1552
1553
|
}
|
|
1553
1554
|
Ol(() => {
|
|
1554
|
-
Ia(), ea(), document.addEventListener("mousemove",
|
|
1555
|
+
Ia(), ea(), document.addEventListener("mousemove", Qt, { passive: !0 }), document.addEventListener("scroll", ft, { passive: !0 });
|
|
1555
1556
|
}), Ba(() => {
|
|
1556
|
-
document.removeEventListener("scroll",
|
|
1557
|
-
}),
|
|
1557
|
+
document.removeEventListener("scroll", ft, { passive: !0 }), document.removeEventListener("mousemove", Qt, { passive: !0 }), Ve.value && (Ve.value.unobserve(ka.value), Ve.value.disconnect(), Ve.value = null);
|
|
1558
|
+
}), ms({
|
|
1558
1559
|
timeLabelsEls: Rl,
|
|
1559
1560
|
timeLabels: ve,
|
|
1560
1561
|
slicer: b,
|
|
@@ -1566,31 +1567,31 @@ const yo = { chart: { userOptions: { show: !1 }, grid: { showVerticalLines: !1,
|
|
|
1566
1567
|
width: K,
|
|
1567
1568
|
rotation: l.value.chart.grid.labels.xAxisLabels.autoRotate.angle
|
|
1568
1569
|
});
|
|
1569
|
-
const ia = g(!1),
|
|
1570
|
-
() => C.value ??
|
|
1570
|
+
const ia = g(!1), jt = g(null), eo = g(200), $r = m(
|
|
1571
|
+
() => C.value ?? N.value ?? 0
|
|
1571
1572
|
);
|
|
1572
1573
|
function Lr() {
|
|
1573
|
-
const a = Math.ceil(
|
|
1574
|
+
const a = Math.ceil(eo.value || 200);
|
|
1574
1575
|
return Math.min(Math.max(a, 1), 200);
|
|
1575
1576
|
}
|
|
1576
1577
|
function Mr() {
|
|
1577
|
-
const a = Lr(), r = 200, e = Math.max(1, S.value), s = c.value.width / e,
|
|
1578
|
-
return
|
|
1578
|
+
const a = Lr(), r = 200, e = Math.max(1, S.value), s = c.value.width / e, u = c.value?.left + $r.value * s + s / 2 - a / 2 - (r - a) / 2, o = c.value?.left - (r - a) / 2, L = c.value?.right - (r + a) / 2, M = Math.max(o, Math.min(u, L));
|
|
1579
|
+
return P(M);
|
|
1579
1580
|
}
|
|
1580
1581
|
Ol(() => {
|
|
1581
1582
|
let a = null, r = null;
|
|
1582
|
-
const e = (
|
|
1583
|
+
const e = (u) => {
|
|
1583
1584
|
cancelAnimationFrame(r), r = requestAnimationFrame(() => {
|
|
1584
|
-
|
|
1585
|
+
eo.value = Math.min(Math.max(Math.ceil(u || 0), 1), 200);
|
|
1585
1586
|
});
|
|
1586
|
-
}, s = new ResizeObserver((
|
|
1587
|
-
let o =
|
|
1587
|
+
}, s = new ResizeObserver((u) => {
|
|
1588
|
+
let o = u.find((L) => L.target === a) || u[0];
|
|
1588
1589
|
o && e(o.contentRect.width || 200);
|
|
1589
|
-
}), t = da((
|
|
1590
|
-
const o =
|
|
1590
|
+
}), t = da((u) => {
|
|
1591
|
+
const o = jt.value;
|
|
1591
1592
|
a && a !== o && (s.unobserve(a), a = null), o && o !== a && (Nl(() => {
|
|
1592
1593
|
o.offsetParent !== null && e(o.offsetWidth || o.getBoundingClientRect().width || 200);
|
|
1593
|
-
}), s.observe(o), a = o),
|
|
1594
|
+
}), s.observe(o), a = o), u(() => {
|
|
1594
1595
|
a && (s.unobserve(a), a = null);
|
|
1595
1596
|
});
|
|
1596
1597
|
});
|
|
@@ -1602,8 +1603,8 @@ const yo = { chart: { userOptions: { show: !1 }, grid: { showVerticalLines: !1,
|
|
|
1602
1603
|
});
|
|
1603
1604
|
});
|
|
1604
1605
|
const Tr = m(() => {
|
|
1605
|
-
if ([null, void 0].includes(C.value) && [null, void 0].includes(
|
|
1606
|
-
const a = (C.value != null ? C.value : 0) || (
|
|
1606
|
+
if ([null, void 0].includes(C.value) && [null, void 0].includes(N.value)) return "";
|
|
1607
|
+
const a = (C.value != null ? C.value : 0) || (N.value != null ? N.value : 0), r = l.value.chart.timeTag.customFormat;
|
|
1607
1608
|
if (ia.value = !1, go(r))
|
|
1608
1609
|
try {
|
|
1609
1610
|
const e = r({
|
|
@@ -1627,12 +1628,12 @@ const yo = { chart: { userOptions: { show: !1 }, grid: { showVerticalLines: !1,
|
|
|
1627
1628
|
Array.isArray(a) && a.length > 0 && (Gl.value = !1), Fe.value = Math.max(...pe.value.map((r) => Re(r.series).length)), b.value = {
|
|
1628
1629
|
start: 0,
|
|
1629
1630
|
end: Fe.value
|
|
1630
|
-
}, Ho.value += 1, Ca.value += 1,
|
|
1631
|
+
}, Ho.value += 1, Ca.value += 1, _l(), ul(), nl();
|
|
1631
1632
|
}, { deep: !0 }), hl(() => F.config, (a) => {
|
|
1632
|
-
oe.value || (l.value = Sa()), Ia(),
|
|
1633
|
+
oe.value || (l.value = Sa()), Ia(), Ga.value += 1, Xa.value += 1, $a(), _l(), ul(), nl();
|
|
1633
1634
|
}, { deep: !0 });
|
|
1634
1635
|
const Fa = g(!1);
|
|
1635
|
-
function
|
|
1636
|
+
function lo() {
|
|
1636
1637
|
const a = $e.value?.parentNode;
|
|
1637
1638
|
if (!a) {
|
|
1638
1639
|
Fa.value = !1;
|
|
@@ -1642,9 +1643,9 @@ const yo = { chart: { userOptions: { show: !1 }, grid: { showVerticalLines: !1,
|
|
|
1642
1643
|
Fa.value = r.width > 2 && r.height > 2;
|
|
1643
1644
|
}
|
|
1644
1645
|
Ol(() => {
|
|
1645
|
-
|
|
1646
|
+
lo();
|
|
1646
1647
|
const a = new ResizeObserver(() => {
|
|
1647
|
-
|
|
1648
|
+
lo(), Fa.value && (Ia(), nl(), ea());
|
|
1648
1649
|
});
|
|
1649
1650
|
$e.value?.parentNode && a.observe($e.value.parentNode);
|
|
1650
1651
|
}), hl(l, () => {
|
|
@@ -1653,7 +1654,7 @@ const yo = { chart: { userOptions: { show: !1 }, grid: { showVerticalLines: !1,
|
|
|
1653
1654
|
const zl = m(() => {
|
|
1654
1655
|
const a = l.value.table.useDialog && !l.value.showTable, r = f.value.showTable;
|
|
1655
1656
|
return {
|
|
1656
|
-
component: a ? Po :
|
|
1657
|
+
component: a ? Po : ys,
|
|
1657
1658
|
title: `${l.value.chart.title.text}${l.value.chart.title.subtitle.text ? `: ${l.value.chart.title.subtitle.text}` : ""}`,
|
|
1658
1659
|
props: a ? {
|
|
1659
1660
|
backgroundColor: l.value.table.th.backgroundColor,
|
|
@@ -1683,21 +1684,21 @@ const yo = { chart: { userOptions: { show: !1 }, grid: { showVerticalLines: !1,
|
|
|
1683
1684
|
hl(() => f.value.showTable, (a) => {
|
|
1684
1685
|
l.value.showTable || (a && l.value.table.useDialog && sl.value ? sl.value.open() : sl.value && sl.value.close && sl.value.close());
|
|
1685
1686
|
});
|
|
1686
|
-
function
|
|
1687
|
+
function ao() {
|
|
1687
1688
|
f.value.showTable = !1, ya.value && ya.value.setTableIconState(!1);
|
|
1688
1689
|
}
|
|
1689
1690
|
const zr = m(() => re.value.map((a) => ({
|
|
1690
1691
|
shape: a.type === "bar" ? "square" : a.shape ?? "circle",
|
|
1691
1692
|
color: a.color,
|
|
1692
1693
|
name: a.name
|
|
1693
|
-
}))), Ir = m(() => l.value.chart.backgroundColor), Fr = m(() => l.value.chart.legend), Br = m(() => l.value.chart.title), { exportSvg: Or, getSvg: Nr } =
|
|
1694
|
+
}))), Ir = m(() => l.value.chart.backgroundColor), Fr = m(() => l.value.chart.legend), Br = m(() => l.value.chart.title), { exportSvg: Or, getSvg: Nr } = hs({
|
|
1694
1695
|
svg: ce,
|
|
1695
1696
|
title: Br,
|
|
1696
1697
|
legend: Fr,
|
|
1697
1698
|
legendItems: zr,
|
|
1698
1699
|
backgroundColor: Ir
|
|
1699
1700
|
});
|
|
1700
|
-
async function
|
|
1701
|
+
async function to({ isCb: a }) {
|
|
1701
1702
|
Xl.value = !0, await Nl();
|
|
1702
1703
|
try {
|
|
1703
1704
|
if (a) {
|
|
@@ -1718,9 +1719,9 @@ const yo = { chart: { userOptions: { show: !1 }, grid: { showVerticalLines: !1,
|
|
|
1718
1719
|
Yl.value = !1;
|
|
1719
1720
|
return;
|
|
1720
1721
|
}
|
|
1721
|
-
|
|
1722
|
+
ut();
|
|
1722
1723
|
}
|
|
1723
|
-
async function
|
|
1724
|
+
async function oo() {
|
|
1724
1725
|
if (Ge("copyAlt", {
|
|
1725
1726
|
config: l.value,
|
|
1726
1727
|
dataset: {
|
|
@@ -1744,30 +1745,30 @@ const yo = { chart: { userOptions: { show: !1 }, grid: { showVerticalLines: !1,
|
|
|
1744
1745
|
return Mo({
|
|
1745
1746
|
getData: dr,
|
|
1746
1747
|
getImage: hr,
|
|
1747
|
-
generatePdf:
|
|
1748
|
-
generateImage:
|
|
1749
|
-
generateSvg:
|
|
1748
|
+
generatePdf: st,
|
|
1749
|
+
generateImage: ut,
|
|
1750
|
+
generateSvg: to,
|
|
1750
1751
|
generateCsv: za,
|
|
1751
1752
|
hideSeries: mr,
|
|
1752
1753
|
showSeries: gr,
|
|
1753
|
-
toggleStack:
|
|
1754
|
-
toggleTable:
|
|
1755
|
-
toggleLabels:
|
|
1756
|
-
toggleTooltip:
|
|
1754
|
+
toggleStack: yt,
|
|
1755
|
+
toggleTable: qt,
|
|
1756
|
+
toggleLabels: Ut,
|
|
1757
|
+
toggleTooltip: Zt,
|
|
1757
1758
|
toggleAnnotator: Ma,
|
|
1758
|
-
toggleFullscreen:
|
|
1759
|
-
copyAlt:
|
|
1760
|
-
}), (a, r) => (
|
|
1761
|
-
id: `vue-ui-xy_${
|
|
1759
|
+
toggleFullscreen: Jt,
|
|
1760
|
+
copyAlt: oo
|
|
1761
|
+
}), (a, r) => (n(), i("div", {
|
|
1762
|
+
id: `vue-ui-xy_${O.value}`,
|
|
1762
1763
|
class: ll(`vue-data-ui-component vue-ui-xy ${qe.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${l.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
1763
1764
|
ref_key: "chart",
|
|
1764
1765
|
ref: $e,
|
|
1765
|
-
style:
|
|
1766
|
-
onMouseenter: r[6] || (r[6] = () =>
|
|
1767
|
-
onMouseleave: r[7] || (r[7] = () =>
|
|
1768
|
-
onClick:
|
|
1766
|
+
style: _(`background:${l.value.chart.backgroundColor}; color:${l.value.chart.color};width:100%;font-family:${l.value.chart.fontFamily};${l.value.responsive ? "height: 100%" : ""}`),
|
|
1767
|
+
onMouseenter: r[6] || (r[6] = () => mt(!0)),
|
|
1768
|
+
onMouseleave: r[7] || (r[7] = () => mt(!1)),
|
|
1769
|
+
onClick: It
|
|
1769
1770
|
}, [
|
|
1770
|
-
l.value.chart.userOptions.buttons.annotator && ce.value ? (
|
|
1771
|
+
l.value.chart.userOptions.buttons.annotator && ce.value ? (n(), Se(v(No), {
|
|
1771
1772
|
key: 0,
|
|
1772
1773
|
svgRef: ce.value,
|
|
1773
1774
|
backgroundColor: l.value.chart.backgroundColor,
|
|
@@ -1777,41 +1778,41 @@ const yo = { chart: { userOptions: { show: !1 }, grid: { showVerticalLines: !1,
|
|
|
1777
1778
|
onClose: Ma
|
|
1778
1779
|
}, {
|
|
1779
1780
|
"annotator-action-close": X(() => [
|
|
1780
|
-
|
|
1781
|
+
D(a.$slots, "annotator-action-close", {}, void 0, !0)
|
|
1781
1782
|
]),
|
|
1782
1783
|
"annotator-action-color": X(({ color: e }) => [
|
|
1783
|
-
|
|
1784
|
+
D(a.$slots, "annotator-action-color", me(be({ color: e })), void 0, !0)
|
|
1784
1785
|
]),
|
|
1785
1786
|
"annotator-action-draw": X(({ mode: e }) => [
|
|
1786
|
-
|
|
1787
|
+
D(a.$slots, "annotator-action-draw", me(be({ mode: e })), void 0, !0)
|
|
1787
1788
|
]),
|
|
1788
1789
|
"annotator-action-undo": X(({ disabled: e }) => [
|
|
1789
|
-
|
|
1790
|
+
D(a.$slots, "annotator-action-undo", me(be({ disabled: e })), void 0, !0)
|
|
1790
1791
|
]),
|
|
1791
1792
|
"annotator-action-redo": X(({ disabled: e }) => [
|
|
1792
|
-
|
|
1793
|
+
D(a.$slots, "annotator-action-redo", me(be({ disabled: e })), void 0, !0)
|
|
1793
1794
|
]),
|
|
1794
1795
|
"annotator-action-delete": X(({ disabled: e }) => [
|
|
1795
|
-
|
|
1796
|
+
D(a.$slots, "annotator-action-delete", me(be({ disabled: e })), void 0, !0)
|
|
1796
1797
|
]),
|
|
1797
1798
|
_: 3
|
|
1798
1799
|
}, 8, ["svgRef", "backgroundColor", "color", "active", "isCursorPointer"])) : h("", !0),
|
|
1799
|
-
pr.value ? (
|
|
1800
|
+
pr.value ? (n(), i("div", {
|
|
1800
1801
|
key: 1,
|
|
1801
1802
|
ref_key: "noTitle",
|
|
1802
1803
|
ref: xl,
|
|
1803
1804
|
class: "vue-data-ui-no-title-space",
|
|
1804
1805
|
style: "height:36px; width: 100%; background:transparent"
|
|
1805
1806
|
}, null, 512)) : h("", !0),
|
|
1806
|
-
l.value.chart.title.show ? (
|
|
1807
|
+
l.value.chart.title.show ? (n(), i("div", {
|
|
1807
1808
|
key: 2,
|
|
1808
1809
|
ref_key: "chartTitle",
|
|
1809
1810
|
ref: bl,
|
|
1810
1811
|
class: "vue-ui-xy-title",
|
|
1811
|
-
style:
|
|
1812
|
+
style: _(`font-family:${l.value.chart.fontFamily}`)
|
|
1812
1813
|
}, [
|
|
1813
|
-
(
|
|
1814
|
-
key: `title_${
|
|
1814
|
+
(n(), Se(ps, {
|
|
1815
|
+
key: `title_${Ga.value}`,
|
|
1815
1816
|
config: {
|
|
1816
1817
|
title: {
|
|
1817
1818
|
cy: "xy-div-title",
|
|
@@ -1825,17 +1826,17 @@ const yo = { chart: { userOptions: { show: !1 }, grid: { showVerticalLines: !1,
|
|
|
1825
1826
|
}, null, 8, ["config"]))
|
|
1826
1827
|
], 4)) : h("", !0),
|
|
1827
1828
|
p("div", {
|
|
1828
|
-
id: `legend-top-${
|
|
1829
|
+
id: `legend-top-${O.value}`
|
|
1829
1830
|
}, null, 8, ws),
|
|
1830
|
-
l.value.chart.userOptions.show && (
|
|
1831
|
+
l.value.chart.userOptions.show && (_a.value || Hl.value) ? (n(), Se(v(Fo), {
|
|
1831
1832
|
ref_key: "userOptionsRef",
|
|
1832
1833
|
ref: ya,
|
|
1833
|
-
key: `user_options_${
|
|
1834
|
+
key: `user_options_${Ya.value}`,
|
|
1834
1835
|
backgroundColor: l.value.chart.backgroundColor,
|
|
1835
1836
|
color: l.value.chart.color,
|
|
1836
1837
|
isPrinting: v(ql),
|
|
1837
1838
|
isImaging: v(La),
|
|
1838
|
-
uid:
|
|
1839
|
+
uid: O.value,
|
|
1839
1840
|
hasTooltip: l.value.chart.userOptions.buttons.tooltip && l.value.chart.tooltip.show,
|
|
1840
1841
|
hasPdf: l.value.chart.userOptions.buttons.pdf,
|
|
1841
1842
|
hasXls: l.value.chart.userOptions.buttons.csv,
|
|
@@ -1858,114 +1859,114 @@ const yo = { chart: { userOptions: { show: !1 }, grid: { showVerticalLines: !1,
|
|
|
1858
1859
|
tableDialog: l.value.table.useDialog,
|
|
1859
1860
|
printScale: l.value.chart.userOptions.print.scale,
|
|
1860
1861
|
isCursorPointer: Ze.value,
|
|
1861
|
-
onToggleFullscreen:
|
|
1862
|
-
onGeneratePdf: v(
|
|
1862
|
+
onToggleFullscreen: Jt,
|
|
1863
|
+
onGeneratePdf: v(st),
|
|
1863
1864
|
onGenerateCsv: za,
|
|
1864
1865
|
onGenerateImage: Pr,
|
|
1865
|
-
onGenerateSvg:
|
|
1866
|
-
onToggleTable:
|
|
1867
|
-
onToggleLabels:
|
|
1868
|
-
onToggleStack:
|
|
1869
|
-
onToggleTooltip:
|
|
1866
|
+
onGenerateSvg: to,
|
|
1867
|
+
onToggleTable: qt,
|
|
1868
|
+
onToggleLabels: Ut,
|
|
1869
|
+
onToggleStack: yt,
|
|
1870
|
+
onToggleTooltip: Zt,
|
|
1870
1871
|
onToggleAnnotator: Ma,
|
|
1871
|
-
onCopyAlt:
|
|
1872
|
-
style:
|
|
1873
|
-
visibility:
|
|
1872
|
+
onCopyAlt: oo,
|
|
1873
|
+
style: _({
|
|
1874
|
+
visibility: _a.value ? Hl.value ? "visible" : "hidden" : "visible"
|
|
1874
1875
|
})
|
|
1875
|
-
},
|
|
1876
|
+
}, ro({ _: 2 }, [
|
|
1876
1877
|
a.$slots.menuIcon ? {
|
|
1877
1878
|
name: "menuIcon",
|
|
1878
1879
|
fn: X(({ isOpen: e, color: s }) => [
|
|
1879
|
-
|
|
1880
|
+
D(a.$slots, "menuIcon", me(be({ isOpen: e, color: s })), void 0, !0)
|
|
1880
1881
|
]),
|
|
1881
1882
|
key: "0"
|
|
1882
1883
|
} : void 0,
|
|
1883
1884
|
a.$slots.optionTooltip ? {
|
|
1884
1885
|
name: "optionTooltip",
|
|
1885
1886
|
fn: X(() => [
|
|
1886
|
-
|
|
1887
|
+
D(a.$slots, "optionTooltip", {}, void 0, !0)
|
|
1887
1888
|
]),
|
|
1888
1889
|
key: "1"
|
|
1889
1890
|
} : void 0,
|
|
1890
1891
|
a.$slots.optionPdf ? {
|
|
1891
1892
|
name: "optionPdf",
|
|
1892
1893
|
fn: X(() => [
|
|
1893
|
-
|
|
1894
|
+
D(a.$slots, "optionPdf", {}, void 0, !0)
|
|
1894
1895
|
]),
|
|
1895
1896
|
key: "2"
|
|
1896
1897
|
} : void 0,
|
|
1897
1898
|
a.$slots.optionCsv ? {
|
|
1898
1899
|
name: "optionCsv",
|
|
1899
1900
|
fn: X(() => [
|
|
1900
|
-
|
|
1901
|
+
D(a.$slots, "optionCsv", {}, void 0, !0)
|
|
1901
1902
|
]),
|
|
1902
1903
|
key: "3"
|
|
1903
1904
|
} : void 0,
|
|
1904
1905
|
a.$slots.optionImg ? {
|
|
1905
1906
|
name: "optionImg",
|
|
1906
1907
|
fn: X(() => [
|
|
1907
|
-
|
|
1908
|
+
D(a.$slots, "optionImg", {}, void 0, !0)
|
|
1908
1909
|
]),
|
|
1909
1910
|
key: "4"
|
|
1910
1911
|
} : void 0,
|
|
1911
1912
|
a.$slots.optionSvg ? {
|
|
1912
1913
|
name: "optionSvg",
|
|
1913
1914
|
fn: X(() => [
|
|
1914
|
-
|
|
1915
|
+
D(a.$slots, "optionSvg", {}, void 0, !0)
|
|
1915
1916
|
]),
|
|
1916
1917
|
key: "5"
|
|
1917
1918
|
} : void 0,
|
|
1918
1919
|
a.$slots.optionTable ? {
|
|
1919
1920
|
name: "optionTable",
|
|
1920
1921
|
fn: X(() => [
|
|
1921
|
-
|
|
1922
|
+
D(a.$slots, "optionTable", {}, void 0, !0)
|
|
1922
1923
|
]),
|
|
1923
1924
|
key: "6"
|
|
1924
1925
|
} : void 0,
|
|
1925
1926
|
a.$slots.optionLabels ? {
|
|
1926
1927
|
name: "optionLabels",
|
|
1927
1928
|
fn: X(() => [
|
|
1928
|
-
|
|
1929
|
+
D(a.$slots, "optionLabels", {}, void 0, !0)
|
|
1929
1930
|
]),
|
|
1930
1931
|
key: "7"
|
|
1931
1932
|
} : void 0,
|
|
1932
1933
|
a.$slots.optionStack ? {
|
|
1933
1934
|
name: "optionStack",
|
|
1934
1935
|
fn: X(({ isStack: e }) => [
|
|
1935
|
-
|
|
1936
|
+
D(a.$slots, "optionStack", me(be({ isStack: e })), void 0, !0)
|
|
1936
1937
|
]),
|
|
1937
1938
|
key: "8"
|
|
1938
1939
|
} : void 0,
|
|
1939
1940
|
a.$slots.optionFullscreen ? {
|
|
1940
1941
|
name: "optionFullscreen",
|
|
1941
1942
|
fn: X(({ toggleFullscreen: e, isFullscreen: s }) => [
|
|
1942
|
-
|
|
1943
|
+
D(a.$slots, "optionFullscreen", me(be({ toggleFullscreen: e, isFullscreen: s })), void 0, !0)
|
|
1943
1944
|
]),
|
|
1944
1945
|
key: "9"
|
|
1945
1946
|
} : void 0,
|
|
1946
1947
|
a.$slots.optionAnnotator ? {
|
|
1947
1948
|
name: "optionAnnotator",
|
|
1948
1949
|
fn: X(({ toggleAnnotator: e, isAnnotator: s }) => [
|
|
1949
|
-
|
|
1950
|
+
D(a.$slots, "optionAnnotator", me(be({ toggleAnnotator: e, isAnnotator: s })), void 0, !0)
|
|
1950
1951
|
]),
|
|
1951
1952
|
key: "10"
|
|
1952
1953
|
} : void 0,
|
|
1953
1954
|
a.$slots.optionAltCopy ? {
|
|
1954
1955
|
name: "optionAltCopy",
|
|
1955
1956
|
fn: X(({ altCopy: e }) => [
|
|
1956
|
-
|
|
1957
|
+
D(a.$slots, "optionAltCopy", me(be({ altCopy: e })), void 0, !0)
|
|
1957
1958
|
]),
|
|
1958
1959
|
key: "11"
|
|
1959
1960
|
} : void 0
|
|
1960
1961
|
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasXls", "hasImg", "hasSvg", "hasLabel", "hasTable", "hasStack", "hasFullscreen", "hasAltCopy", "isStacked", "isFullscreen", "chartElement", "position", "isTooltip", "titles", "hasAnnotator", "isAnnotation", "callbacks", "tableDialog", "printScale", "isCursorPointer", "onGeneratePdf", "style"])) : h("", !0),
|
|
1961
|
-
(
|
|
1962
|
+
(n(), i("svg", {
|
|
1962
1963
|
ref_key: "svgRef",
|
|
1963
1964
|
ref: ce,
|
|
1964
1965
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1965
1966
|
class: ll([{ "vue-data-ui-fullscreen--on": qe.value, "vue-data-ui-fulscreen--off": !qe.value }, "vue-ui-xy-svg vue-data-ui-svg"]),
|
|
1966
1967
|
width: "100%",
|
|
1967
1968
|
viewBox: El.value,
|
|
1968
|
-
style:
|
|
1969
|
+
style: _({
|
|
1969
1970
|
background: "transparent",
|
|
1970
1971
|
color: l.value.chart.color,
|
|
1971
1972
|
fontFamily: l.value.chart.fontFamily
|
|
@@ -1976,7 +1977,7 @@ const yo = { chart: { userOptions: { show: !1 }, grid: { showVerticalLines: !1,
|
|
|
1976
1977
|
preserveAspectRatio: "xMidYMid",
|
|
1977
1978
|
onMousemove: vr,
|
|
1978
1979
|
onMouseleave: ta,
|
|
1979
|
-
onClick:
|
|
1980
|
+
onClick: It
|
|
1980
1981
|
}, [
|
|
1981
1982
|
p("g", {
|
|
1982
1983
|
ref_key: "G",
|
|
@@ -1984,7 +1985,7 @@ const yo = { chart: { userOptions: { show: !1 }, grid: { showVerticalLines: !1,
|
|
|
1984
1985
|
class: "vue-data-ui-g"
|
|
1985
1986
|
}, [
|
|
1986
1987
|
fl(v(Oo)),
|
|
1987
|
-
a.$slots["chart-background"] ? (
|
|
1988
|
+
a.$slots["chart-background"] ? (n(), i("foreignObject", {
|
|
1988
1989
|
key: 0,
|
|
1989
1990
|
x: c.value?.left + U.value < 0 ? 0 : c.value?.left + U.value,
|
|
1990
1991
|
y: c.value?.top,
|
|
@@ -1994,11 +1995,11 @@ const yo = { chart: { userOptions: { show: !1 }, grid: { showVerticalLines: !1,
|
|
|
1994
1995
|
pointerEvents: "none"
|
|
1995
1996
|
}
|
|
1996
1997
|
}, [
|
|
1997
|
-
|
|
1998
|
-
], 8,
|
|
1999
|
-
S.value > 0 ? (
|
|
2000
|
-
p("g",
|
|
2001
|
-
l.value.chart.grid.labels.xAxis.showBaseline ? (
|
|
1998
|
+
D(a.$slots, "chart-background", {}, void 0, !0)
|
|
1999
|
+
], 8, As)) : h("", !0),
|
|
2000
|
+
S.value > 0 ? (n(), i("g", $s, [
|
|
2001
|
+
p("g", Ls, [
|
|
2002
|
+
l.value.chart.grid.labels.xAxis.showBaseline ? (n(), i("line", {
|
|
2002
2003
|
key: 0,
|
|
2003
2004
|
stroke: l.value.chart.grid.stroke,
|
|
2004
2005
|
"stroke-width": "1",
|
|
@@ -2008,9 +2009,9 @@ const yo = { chart: { userOptions: { show: !1 }, grid: { showVerticalLines: !1,
|
|
|
2008
2009
|
y2: v(W)(c.value?.bottom),
|
|
2009
2010
|
"stroke-linecap": "round",
|
|
2010
2011
|
style: { animation: "none !important" }
|
|
2011
|
-
}, null, 8,
|
|
2012
|
-
f.value.useIndividualScale ? l.value.chart.grid.showHorizontalLines ? (
|
|
2013
|
-
e.id === I.value && e.yLabels.length ? (
|
|
2012
|
+
}, null, 8, Ms)) : h("", !0),
|
|
2013
|
+
f.value.useIndividualScale ? l.value.chart.grid.showHorizontalLines ? (n(!0), i(d, { key: 2 }, y(Tl.value, (e) => (n(), i("g", null, [
|
|
2014
|
+
e.id === I.value && e.yLabels.length ? (n(!0), i(d, { key: 0 }, y(e.yLabels, (s) => (n(), i("line", {
|
|
2014
2015
|
x1: c.value?.left + U.value,
|
|
2015
2016
|
x2: c.value?.right - U.value,
|
|
2016
2017
|
y1: v(W)(s.y),
|
|
@@ -2019,7 +2020,7 @@ const yo = { chart: { userOptions: { show: !1 }, grid: { showVerticalLines: !1,
|
|
|
2019
2020
|
"stroke-width": 0.5,
|
|
2020
2021
|
"stroke-linecap": "round",
|
|
2021
2022
|
style: { animation: "none !important" }
|
|
2022
|
-
}, null, 8,
|
|
2023
|
+
}, null, 8, Fs))), 256)) : e.yLabels.length ? (n(!0), i(d, { key: 1 }, y(e.yLabels, (s) => (n(), i("line", {
|
|
2023
2024
|
x1: c.value?.left + U.value,
|
|
2024
2025
|
x2: c.value?.right - U.value,
|
|
2025
2026
|
y1: v(W)(s.y),
|
|
@@ -2028,9 +2029,9 @@ const yo = { chart: { userOptions: { show: !1 }, grid: { showVerticalLines: !1,
|
|
|
2028
2029
|
"stroke-width": 0.5,
|
|
2029
2030
|
"stroke-linecap": "round",
|
|
2030
2031
|
style: { animation: "none !important" }
|
|
2031
|
-
}, null, 8,
|
|
2032
|
-
]))), 256)) : h("", !0) : (
|
|
2033
|
-
l.value.chart.grid.labels.yAxis.showBaseline ? (
|
|
2032
|
+
}, null, 8, Bs))), 256)) : h("", !0)
|
|
2033
|
+
]))), 256)) : h("", !0) : (n(), i(d, { key: 1 }, [
|
|
2034
|
+
l.value.chart.grid.labels.yAxis.showBaseline ? (n(), i("line", {
|
|
2034
2035
|
key: 0,
|
|
2035
2036
|
stroke: l.value.chart.grid.stroke,
|
|
2036
2037
|
"stroke-width": "1",
|
|
@@ -2040,9 +2041,9 @@ const yo = { chart: { userOptions: { show: !1 }, grid: { showVerticalLines: !1,
|
|
|
2040
2041
|
y2: v(W)(c.value?.bottom),
|
|
2041
2042
|
"stroke-linecap": "round",
|
|
2042
2043
|
style: { animation: "none !important" }
|
|
2043
|
-
}, null, 8,
|
|
2044
|
-
l.value.chart.grid.showHorizontalLines ? (
|
|
2045
|
-
(
|
|
2044
|
+
}, null, 8, Ts)) : h("", !0),
|
|
2045
|
+
l.value.chart.grid.showHorizontalLines ? (n(), i("g", zs, [
|
|
2046
|
+
(n(!0), i(d, null, y(Pt.value, (e) => (n(), i("line", {
|
|
2046
2047
|
x1: c.value?.left + U.value,
|
|
2047
2048
|
x2: c.value?.right,
|
|
2048
2049
|
y1: v(W)(e.y),
|
|
@@ -2051,78 +2052,78 @@ const yo = { chart: { userOptions: { show: !1 }, grid: { showVerticalLines: !1,
|
|
|
2051
2052
|
"stroke-width": 0.5,
|
|
2052
2053
|
"stroke-linecap": "round",
|
|
2053
2054
|
style: { animation: "none !important" }
|
|
2054
|
-
}, null, 8,
|
|
2055
|
+
}, null, 8, Is))), 256))
|
|
2055
2056
|
])) : h("", !0)
|
|
2056
2057
|
], 64)),
|
|
2057
|
-
l.value.chart.grid.showVerticalLines ? (
|
|
2058
|
+
l.value.chart.grid.showVerticalLines ? (n(), i("g", Os, [
|
|
2058
2059
|
p("path", {
|
|
2059
2060
|
d: lr.value,
|
|
2060
2061
|
"stroke-width": 0.5,
|
|
2061
2062
|
stroke: l.value.chart.grid.stroke,
|
|
2062
2063
|
"stroke-linecap": "round",
|
|
2063
2064
|
style: { animation: "none !important" }
|
|
2064
|
-
}, null, 8,
|
|
2065
|
+
}, null, 8, Ns)
|
|
2065
2066
|
])) : h("", !0),
|
|
2066
|
-
l.value.chart.grid.labels.xAxisLabels.show ? (
|
|
2067
|
+
l.value.chart.grid.labels.xAxisLabels.show ? (n(), i("g", Ps, [
|
|
2067
2068
|
p("path", {
|
|
2068
2069
|
d: ar.value,
|
|
2069
2070
|
stroke: l.value.chart.grid.stroke,
|
|
2070
2071
|
"stroke-width": 1,
|
|
2071
2072
|
"stroke-linecap": "round",
|
|
2072
2073
|
style: { animation: "none !important" }
|
|
2073
|
-
}, null, 8,
|
|
2074
|
+
}, null, 8, Ds)
|
|
2074
2075
|
])) : h("", !0)
|
|
2075
2076
|
]),
|
|
2076
|
-
(
|
|
2077
|
+
(n(!0), i(d, null, y(ye.value, (e, s) => (n(), i("defs", {
|
|
2077
2078
|
key: `def_rect_${s}`
|
|
2078
2079
|
}, [
|
|
2079
|
-
a.$slots["bar-gradient"] ?
|
|
2080
|
+
a.$slots["bar-gradient"] ? D(a.$slots, "bar-gradient", al({
|
|
2080
2081
|
key: 0,
|
|
2081
2082
|
ref_for: !0
|
|
2082
|
-
}, { series: e, positiveId: `rectGradient_pos_${s}_${
|
|
2083
|
+
}, { series: e, positiveId: `rectGradient_pos_${s}_${O.value}`, negativeId: `rectGradient_neg_${s}_${O.value}` }), void 0, !0) : (n(), i(d, { key: 1 }, [
|
|
2083
2084
|
p("linearGradient", {
|
|
2084
|
-
id: `rectGradient_pos_${s}_${
|
|
2085
|
+
id: `rectGradient_pos_${s}_${O.value}`,
|
|
2085
2086
|
x2: "0%",
|
|
2086
2087
|
y2: "100%"
|
|
2087
2088
|
}, [
|
|
2088
2089
|
p("stop", {
|
|
2089
2090
|
offset: "0%",
|
|
2090
2091
|
"stop-color": e.color
|
|
2091
|
-
}, null, 8,
|
|
2092
|
+
}, null, 8, Rs),
|
|
2092
2093
|
p("stop", {
|
|
2093
2094
|
offset: "62%",
|
|
2094
2095
|
"stop-color": `${v(ol)(e.color, 0.02)}`
|
|
2095
|
-
}, null, 8,
|
|
2096
|
+
}, null, 8, Es),
|
|
2096
2097
|
p("stop", {
|
|
2097
2098
|
offset: "100%",
|
|
2098
2099
|
"stop-color": `${v(ol)(e.color, 0.05)}`
|
|
2099
|
-
}, null, 8,
|
|
2100
|
-
], 8,
|
|
2100
|
+
}, null, 8, Hs)
|
|
2101
|
+
], 8, Vs),
|
|
2101
2102
|
p("linearGradient", {
|
|
2102
|
-
id: `rectGradient_neg_${s}_${
|
|
2103
|
+
id: `rectGradient_neg_${s}_${O.value}`,
|
|
2103
2104
|
x2: "0%",
|
|
2104
2105
|
y2: "100%"
|
|
2105
2106
|
}, [
|
|
2106
2107
|
p("stop", {
|
|
2107
2108
|
offset: "0%",
|
|
2108
2109
|
"stop-color": `${v(ol)(e.color, 0.05)}`
|
|
2109
|
-
}, null, 8,
|
|
2110
|
+
}, null, 8, Ys),
|
|
2110
2111
|
p("stop", {
|
|
2111
2112
|
offset: "38%",
|
|
2112
2113
|
"stop-color": `${v(ol)(e.color, 0.02)}`
|
|
2113
|
-
}, null, 8,
|
|
2114
|
+
}, null, 8, Xs),
|
|
2114
2115
|
p("stop", {
|
|
2115
2116
|
offset: "100%",
|
|
2116
2117
|
"stop-color": e.color
|
|
2117
|
-
}, null, 8,
|
|
2118
|
-
], 8,
|
|
2118
|
+
}, null, 8, Gs)
|
|
2119
|
+
], 8, Ws)
|
|
2119
2120
|
], 64))
|
|
2120
2121
|
]))), 128)),
|
|
2121
|
-
(
|
|
2122
|
+
(n(!0), i(d, null, y(he.value, (e, s) => (n(), i("defs", {
|
|
2122
2123
|
key: `def_plot_${s}`
|
|
2123
2124
|
}, [
|
|
2124
2125
|
p("radialGradient", {
|
|
2125
|
-
id: `plotGradient_${s}_${
|
|
2126
|
+
id: `plotGradient_${s}_${O.value}`,
|
|
2126
2127
|
cx: "50%",
|
|
2127
2128
|
cy: "50%",
|
|
2128
2129
|
r: "50%",
|
|
@@ -2132,59 +2133,73 @@ const yo = { chart: { userOptions: { show: !1 }, grid: { showVerticalLines: !1,
|
|
|
2132
2133
|
p("stop", {
|
|
2133
2134
|
offset: "0%",
|
|
2134
2135
|
"stop-color": `${v(ol)(e.color, 0.05)}`
|
|
2135
|
-
}, null, 8,
|
|
2136
|
+
}, null, 8, Us),
|
|
2136
2137
|
p("stop", {
|
|
2137
2138
|
offset: "100%",
|
|
2138
2139
|
"stop-color": e.color
|
|
2139
|
-
}, null, 8,
|
|
2140
|
-
], 8,
|
|
2140
|
+
}, null, 8, Zs)
|
|
2141
|
+
], 8, qs)
|
|
2141
2142
|
]))), 128)),
|
|
2142
|
-
(
|
|
2143
|
+
(n(!0), i(d, null, y(le.value, (e, s) => (n(), i(d, {
|
|
2143
2144
|
key: `def_line_${e.id}`
|
|
2144
2145
|
}, [
|
|
2145
|
-
p("
|
|
2146
|
-
|
|
2147
|
-
|
|
2148
|
-
|
|
2149
|
-
|
|
2150
|
-
|
|
2151
|
-
|
|
2152
|
-
|
|
2153
|
-
|
|
2154
|
-
|
|
2155
|
-
|
|
2156
|
-
|
|
2157
|
-
|
|
2158
|
-
|
|
2159
|
-
|
|
2160
|
-
|
|
2161
|
-
|
|
2162
|
-
|
|
2163
|
-
|
|
2164
|
-
|
|
2165
|
-
|
|
2166
|
-
|
|
2167
|
-
|
|
2168
|
-
|
|
2169
|
-
|
|
2170
|
-
|
|
2171
|
-
|
|
2172
|
-
|
|
2173
|
-
|
|
2174
|
-
|
|
2175
|
-
|
|
2176
|
-
|
|
2177
|
-
|
|
2178
|
-
|
|
2179
|
-
|
|
2180
|
-
|
|
2181
|
-
|
|
2182
|
-
|
|
2183
|
-
|
|
2184
|
-
e.
|
|
2185
|
-
(
|
|
2146
|
+
p("defs", null, [
|
|
2147
|
+
p("radialGradient", {
|
|
2148
|
+
id: `lineGradient_${s}_${O.value}`,
|
|
2149
|
+
cx: "50%",
|
|
2150
|
+
cy: "50%",
|
|
2151
|
+
r: "50%",
|
|
2152
|
+
fx: "50%",
|
|
2153
|
+
fy: "50%"
|
|
2154
|
+
}, [
|
|
2155
|
+
p("stop", {
|
|
2156
|
+
offset: "0%",
|
|
2157
|
+
"stop-color": `${v(ol)(e.color, 0.05)}`
|
|
2158
|
+
}, null, 8, Ks),
|
|
2159
|
+
p("stop", {
|
|
2160
|
+
offset: "100%",
|
|
2161
|
+
"stop-color": e.color
|
|
2162
|
+
}, null, 8, Qs)
|
|
2163
|
+
], 8, Js),
|
|
2164
|
+
a.$slots["area-gradient"] ? D(a.$slots, "area-gradient", al({
|
|
2165
|
+
key: 0,
|
|
2166
|
+
ref_for: !0
|
|
2167
|
+
}, { series: e, id: `areaGradient_${s}_${O.value}` }), void 0, !0) : (n(), i("linearGradient", {
|
|
2168
|
+
key: 1,
|
|
2169
|
+
id: `areaGradient_${s}_${O.value}`,
|
|
2170
|
+
x1: "0%",
|
|
2171
|
+
x2: "100%",
|
|
2172
|
+
y1: "0%",
|
|
2173
|
+
y2: "0%"
|
|
2174
|
+
}, [
|
|
2175
|
+
p("stop", {
|
|
2176
|
+
offset: "0%",
|
|
2177
|
+
"stop-color": `${v(ze)(v(ol)(e.color, 0.03), l.value.line.area.opacity)}`
|
|
2178
|
+
}, null, 8, eu),
|
|
2179
|
+
p("stop", {
|
|
2180
|
+
offset: "100%",
|
|
2181
|
+
"stop-color": `${v(ze)(e.color, l.value.line.area.opacity)}`
|
|
2182
|
+
}, null, 8, lu)
|
|
2183
|
+
], 8, js))
|
|
2184
|
+
]),
|
|
2185
|
+
e.temperatureColors ? (n(), i("defs", au, [
|
|
2186
|
+
p("linearGradient", {
|
|
2187
|
+
id: `temperature_grad_line_${s}_${O.value}`,
|
|
2188
|
+
gradientTransform: "rotate(90)"
|
|
2189
|
+
}, [
|
|
2190
|
+
(n(!0), i(d, null, y(e.temperatureColors, (t, u) => (n(), i("stop", {
|
|
2191
|
+
key: `temperature_grad_stop_${s}_${u}_${O.value}`,
|
|
2192
|
+
"stop-color": t,
|
|
2193
|
+
offset: v(as)(u, e.temperatureColors.length)
|
|
2194
|
+
}, null, 8, ou))), 128))
|
|
2195
|
+
], 8, tu)
|
|
2196
|
+
])) : h("", !0)
|
|
2197
|
+
], 64))), 128)),
|
|
2198
|
+
(n(!0), i(d, null, y(xr.value, (e) => (n(), i("g", null, [
|
|
2199
|
+
e.show ? (n(), i(d, { key: 0 }, [
|
|
2200
|
+
(n(!0), i(d, null, y(e.span, (s, t) => (n(), i("g", null, [
|
|
2186
2201
|
p("rect", {
|
|
2187
|
-
style:
|
|
2202
|
+
style: _({
|
|
2188
2203
|
transition: "none",
|
|
2189
2204
|
opacity: e.from + t >= b.value.start && e.from + t <= b.value.end - 1 ? 1 : 0
|
|
2190
2205
|
}),
|
|
@@ -2193,14 +2208,14 @@ const yo = { chart: { userOptions: { show: !1 }, grid: { showVerticalLines: !1,
|
|
|
2193
2208
|
height: c.value.height < 0 ? 10 : c.value.height,
|
|
2194
2209
|
width: c.value.width / S.value < 0 ? 1e-5 : c.value.width / S.value,
|
|
2195
2210
|
fill: v(ze)(e.color, e.opacity)
|
|
2196
|
-
}, null, 12,
|
|
2211
|
+
}, null, 12, ru)
|
|
2197
2212
|
]))), 256)),
|
|
2198
|
-
(
|
|
2199
|
-
e.caption.text && t === 0 ? (
|
|
2213
|
+
(n(!0), i(d, null, y(e.span, (s, t) => (n(), i("g", null, [
|
|
2214
|
+
e.caption.text && t === 0 ? (n(), i("foreignObject", {
|
|
2200
2215
|
key: 0,
|
|
2201
2216
|
x: c.value?.left + c.value.width / S.value * (e.from + t - b.value.start) - (e.caption.width === "auto" ? 0 : e.caption.width / 2 - c.value.width / S.value * e.span / 2),
|
|
2202
2217
|
y: c.value?.top + e.caption.offsetY,
|
|
2203
|
-
style:
|
|
2218
|
+
style: _({
|
|
2204
2219
|
overflow: "visible",
|
|
2205
2220
|
opacity: e.to >= b.value.start && e.from < b.value.end ? 1 : 0
|
|
2206
2221
|
}),
|
|
@@ -2208,14 +2223,14 @@ const yo = { chart: { userOptions: { show: !1 }, grid: { showVerticalLines: !1,
|
|
|
2208
2223
|
width: e.caption.width === "auto" ? c.value.width / S.value * e.span : e.caption.width
|
|
2209
2224
|
}, [
|
|
2210
2225
|
p("div", {
|
|
2211
|
-
style:
|
|
2226
|
+
style: _(`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"}`)
|
|
2212
2227
|
}, te(e.caption.text), 5)
|
|
2213
|
-
], 12,
|
|
2228
|
+
], 12, su)) : h("", !0)
|
|
2214
2229
|
]))), 256))
|
|
2215
2230
|
], 64)) : h("", !0)
|
|
2216
2231
|
]))), 256)),
|
|
2217
|
-
|
|
2218
|
-
(
|
|
2232
|
+
gt.value ? (n(), i("g", uu, [
|
|
2233
|
+
(n(!0), i(d, null, y(S.value, (e, s) => (n(), i("g", {
|
|
2219
2234
|
key: `tooltip_trap_highlighter_${s}`
|
|
2220
2235
|
}, [
|
|
2221
2236
|
p("rect", {
|
|
@@ -2223,60 +2238,60 @@ const yo = { chart: { userOptions: { show: !1 }, grid: { showVerticalLines: !1,
|
|
|
2223
2238
|
y: c.value?.top,
|
|
2224
2239
|
height: c.value.height < 0 ? 10 : c.value.height,
|
|
2225
2240
|
width: c.value.width / S.value < 0 ? 1e-5 : c.value.width / S.value,
|
|
2226
|
-
fill: [
|
|
2241
|
+
fill: [N.value, C.value, Ue.value].includes(s) ? v(ze)(l.value.chart.highlighter.color, l.value.chart.highlighter.opacity) : "transparent",
|
|
2227
2242
|
style: { transition: "none !important", animation: "none !important" }
|
|
2228
|
-
}, null, 8,
|
|
2243
|
+
}, null, 8, nu)
|
|
2229
2244
|
]))), 128))
|
|
2230
2245
|
])) : h("", !0),
|
|
2231
|
-
ye.value.length ? (
|
|
2246
|
+
ye.value.length ? (n(!0), i(d, { key: 1 }, y(ye.value, (e, s) => (n(), i("g", {
|
|
2232
2247
|
key: `serie_bar_${e.id}`,
|
|
2233
2248
|
class: ll(`serie_bar_${s}`),
|
|
2234
|
-
style:
|
|
2249
|
+
style: _(`opacity:${I.value ? I.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
2235
2250
|
}, [
|
|
2236
|
-
(
|
|
2237
|
-
key: `bar_plot_${s}_${
|
|
2251
|
+
(n(!0), i(d, null, y(e.plots, (t, u) => (n(), i("g", {
|
|
2252
|
+
key: `bar_plot_${s}_${u}`
|
|
2238
2253
|
}, [
|
|
2239
|
-
xe(t.value) ? (
|
|
2254
|
+
xe(t.value) ? (n(), i("rect", {
|
|
2240
2255
|
key: 0,
|
|
2241
|
-
x: aa(t) +
|
|
2242
|
-
y: f.value.useIndividualScale ?
|
|
2243
|
-
height: f.value.useIndividualScale ? Math.abs(
|
|
2244
|
-
width: sa.value -
|
|
2256
|
+
x: aa(t) + ua.value / 2,
|
|
2257
|
+
y: f.value.useIndividualScale ? Tt(t) : Mt(t),
|
|
2258
|
+
height: f.value.useIndividualScale ? Math.abs(Lt(t)) : Math.abs($t(t)),
|
|
2259
|
+
width: sa.value - ua.value,
|
|
2245
2260
|
rx: l.value.bar.borderRadius,
|
|
2246
|
-
fill: l.value.bar.useGradient ? t.value >= 0 ? `url(#rectGradient_pos_${s}_${
|
|
2261
|
+
fill: l.value.bar.useGradient ? t.value >= 0 ? `url(#rectGradient_pos_${s}_${O.value})` : `url(#rectGradient_neg_${s}_${O.value})` : e.color,
|
|
2247
2262
|
stroke: l.value.bar.border.useSerieColor ? e.color : l.value.bar.border.stroke,
|
|
2248
2263
|
"stroke-width": l.value.bar.border.strokeWidth,
|
|
2249
|
-
style:
|
|
2264
|
+
style: _({
|
|
2250
2265
|
transition: v(oe) || !l.value.bar.showTransition ? void 0 : `all ${l.value.bar.transitionDurationMs}ms ease-in-out`
|
|
2251
2266
|
})
|
|
2252
|
-
}, null, 12,
|
|
2253
|
-
xe(t.value) && a.$slots.pattern ? (
|
|
2267
|
+
}, null, 12, iu)) : h("", !0),
|
|
2268
|
+
xe(t.value) && a.$slots.pattern ? (n(), i("rect", {
|
|
2254
2269
|
key: 1,
|
|
2255
|
-
x: aa(t) -
|
|
2256
|
-
y: f.value.useIndividualScale ?
|
|
2257
|
-
height: f.value.useIndividualScale ? Math.abs(
|
|
2258
|
-
width: sa.value -
|
|
2270
|
+
x: aa(t) - ua.value / 2,
|
|
2271
|
+
y: f.value.useIndividualScale ? Tt(t) : Mt(t),
|
|
2272
|
+
height: f.value.useIndividualScale ? Math.abs(Lt(t)) : Math.abs($t(t)),
|
|
2273
|
+
width: sa.value - ua.value,
|
|
2259
2274
|
rx: l.value.bar.borderRadius,
|
|
2260
|
-
fill: `url(#pattern_${
|
|
2275
|
+
fill: `url(#pattern_${O.value}_${e.slotAbsoluteIndex})`,
|
|
2261
2276
|
stroke: l.value.bar.border.useSerieColor ? e.color : l.value.bar.border.stroke,
|
|
2262
2277
|
"stroke-width": l.value.bar.border.strokeWidth,
|
|
2263
|
-
style:
|
|
2264
|
-
}, null, 12,
|
|
2265
|
-
t.comment && l.value.chart.comments.show ? (
|
|
2278
|
+
style: _({ transition: v(oe) || !l.value.bar.showTransition ? void 0 : `all ${l.value.bar.transitionDurationMs}ms ease-in-out` })
|
|
2279
|
+
}, null, 12, cu)) : h("", !0),
|
|
2280
|
+
t.comment && l.value.chart.comments.show ? (n(), i("foreignObject", {
|
|
2266
2281
|
key: 2,
|
|
2267
2282
|
style: { overflow: "visible" },
|
|
2268
2283
|
height: "12",
|
|
2269
2284
|
width: sa.value + l.value.chart.comments.width,
|
|
2270
2285
|
x: aa(t) - l.value.chart.comments.width / 2 + l.value.chart.comments.offsetX,
|
|
2271
|
-
y: v(
|
|
2286
|
+
y: v(P)(t.y) + l.value.chart.comments.offsetY + 6
|
|
2272
2287
|
}, [
|
|
2273
|
-
|
|
2274
|
-
plot: { ...t, color: e.color, seriesIndex: s, datapointIndex:
|
|
2288
|
+
D(a.$slots, "plot-comment", {
|
|
2289
|
+
plot: { ...t, color: e.color, seriesIndex: s, datapointIndex: u }
|
|
2275
2290
|
}, void 0, !0)
|
|
2276
|
-
], 8,
|
|
2291
|
+
], 8, vu)) : h("", !0)
|
|
2277
2292
|
]))), 128))
|
|
2278
2293
|
], 6))), 128)) : h("", !0),
|
|
2279
|
-
!f.value.useIndividualScale && l.value.chart.grid.labels.zeroLine.show ? (
|
|
2294
|
+
!f.value.useIndividualScale && l.value.chart.grid.labels.zeroLine.show ? (n(), i("line", {
|
|
2280
2295
|
key: 2,
|
|
2281
2296
|
stroke: l.value.chart.grid.stroke,
|
|
2282
2297
|
"stroke-width": "1",
|
|
@@ -2286,11 +2301,11 @@ const yo = { chart: { userOptions: { show: !1 }, grid: { showVerticalLines: !1,
|
|
|
2286
2301
|
y2: v(W)(de.value),
|
|
2287
2302
|
"stroke-linecap": "round",
|
|
2288
2303
|
style: { animation: "none !important" }
|
|
2289
|
-
}, null, 8,
|
|
2290
|
-
l.value.chart.highlighter.useLine && (![null, void 0].includes(C.value) || ![null, void 0].includes(
|
|
2304
|
+
}, null, 8, du)) : h("", !0),
|
|
2305
|
+
l.value.chart.highlighter.useLine && (![null, void 0].includes(C.value) || ![null, void 0].includes(N.value)) ? (n(), i("g", hu, [
|
|
2291
2306
|
p("line", {
|
|
2292
|
-
x1: c.value?.left + c.value.width / S.value * ((C.value !== null ? C.value : 0) || (
|
|
2293
|
-
x2: c.value?.left + c.value.width / S.value * ((C.value !== null ? C.value : 0) || (
|
|
2307
|
+
x1: c.value?.left + c.value.width / S.value * ((C.value !== null ? C.value : 0) || (N.value !== null ? N.value : 0)) + c.value.width / S.value / 2,
|
|
2308
|
+
x2: c.value?.left + c.value.width / S.value * ((C.value !== null ? C.value : 0) || (N.value !== null ? N.value : 0)) + c.value.width / S.value / 2,
|
|
2294
2309
|
y1: v(W)(c.value?.top),
|
|
2295
2310
|
y2: v(W)(c.value?.bottom),
|
|
2296
2311
|
stroke: l.value.chart.highlighter.color,
|
|
@@ -2298,9 +2313,9 @@ const yo = { chart: { userOptions: { show: !1 }, grid: { showVerticalLines: !1,
|
|
|
2298
2313
|
"stroke-dasharray": l.value.chart.highlighter.lineDasharray,
|
|
2299
2314
|
"stroke-linecap": "round",
|
|
2300
2315
|
style: { transition: "none !important", animation: "none !important", "pointer-events": "none" }
|
|
2301
|
-
}, null, 8,
|
|
2316
|
+
}, null, 8, fu)
|
|
2302
2317
|
])) : h("", !0),
|
|
2303
|
-
l.value.chart.grid.frame.show ? (
|
|
2318
|
+
l.value.chart.grid.frame.show ? (n(), i("rect", {
|
|
2304
2319
|
key: 4,
|
|
2305
2320
|
style: { pointerEvents: "none", transition: "none", animation: "none !important" },
|
|
2306
2321
|
x: c.value?.left + U.value < 0 ? 0 : c.value?.left + U.value,
|
|
@@ -2313,14 +2328,14 @@ const yo = { chart: { userOptions: { show: !1 }, grid: { showVerticalLines: !1,
|
|
|
2313
2328
|
"stroke-linecap": l.value.chart.grid.frame.strokeLinecap,
|
|
2314
2329
|
"stroke-linejoin": l.value.chart.grid.frame.strokeLinejoin,
|
|
2315
2330
|
"stroke-dasharray": l.value.chart.grid.frame.strokeDasharray
|
|
2316
|
-
}, null, 8,
|
|
2317
|
-
l.value.chart.grid.labels.show ? (
|
|
2331
|
+
}, null, 8, gu)) : h("", !0),
|
|
2332
|
+
l.value.chart.grid.labels.show ? (n(), i("g", {
|
|
2318
2333
|
key: 5,
|
|
2319
2334
|
ref_key: "scaleLabels",
|
|
2320
2335
|
ref: xa
|
|
2321
2336
|
}, [
|
|
2322
|
-
f.value.useIndividualScale ? (
|
|
2323
|
-
(
|
|
2337
|
+
f.value.useIndividualScale ? (n(), i(d, { key: 0 }, [
|
|
2338
|
+
(n(!0), i(d, null, y(Tl.value, (e) => (n(), i("g", null, [
|
|
2324
2339
|
p("line", {
|
|
2325
2340
|
x1: e.x + U.value - c.value.individualOffsetX,
|
|
2326
2341
|
x2: e.x + U.value - c.value.individualOffsetX,
|
|
@@ -2329,11 +2344,11 @@ const yo = { chart: { userOptions: { show: !1 }, grid: { showVerticalLines: !1,
|
|
|
2329
2344
|
stroke: e.color,
|
|
2330
2345
|
"stroke-width": l.value.chart.grid.stroke,
|
|
2331
2346
|
"stroke-linecap": "round",
|
|
2332
|
-
style:
|
|
2333
|
-
}, null, 12,
|
|
2347
|
+
style: _(`opacity:${I.value ? I.value === e.groupId ? 1 : 0.3 : 1};transition:opacity 0.2s ease-in-out; animation: none !important`)
|
|
2348
|
+
}, null, 12, mu)
|
|
2334
2349
|
]))), 256)),
|
|
2335
|
-
(
|
|
2336
|
-
style:
|
|
2350
|
+
(n(!0), i(d, null, y(Tl.value, (e) => (n(), i("g", {
|
|
2351
|
+
style: _(`opacity:${I.value ? I.value === e.groupId ? 1 : 0.3 : 1};transition:opacity 0.2s ease-in-out`)
|
|
2337
2352
|
}, [
|
|
2338
2353
|
p("text", {
|
|
2339
2354
|
fill: e.color,
|
|
@@ -2341,9 +2356,9 @@ const yo = { chart: { userOptions: { show: !1 }, grid: { showVerticalLines: !1,
|
|
|
2341
2356
|
"text-anchor": "middle",
|
|
2342
2357
|
transform: `translate(${e.x - x.value.dataLabels * 0.8 / 2 + U.value}, ${f.value.isStacked ? c.value?.bottom - e.yOffset - e.individualHeight / 2 : c.value?.top + c.value.height / 2}) rotate(-90)`
|
|
2343
2358
|
}, te(e.name) + " " + te(e.scaleLabel && e.unique && e.scaleLabel !== e.id ? `-
|
|
2344
|
-
${e.scaleLabel}` : ""), 9,
|
|
2345
|
-
(
|
|
2346
|
-
l.value.chart.grid.labels.yAxis.showCrosshairs ? (
|
|
2359
|
+
${e.scaleLabel}` : ""), 9, bu),
|
|
2360
|
+
(n(!0), i(d, null, y(e.yLabels, (s, t) => (n(), i(d, null, [
|
|
2361
|
+
l.value.chart.grid.labels.yAxis.showCrosshairs ? (n(), i("line", {
|
|
2347
2362
|
key: 0,
|
|
2348
2363
|
x1: e.x + 3 + U.value - l.value.chart.grid.labels.yAxis.crosshairSize - c.value.individualOffsetX,
|
|
2349
2364
|
x2: e.x + U.value - c.value.individualOffsetX,
|
|
@@ -2353,15 +2368,15 @@ const yo = { chart: { userOptions: { show: !1 }, grid: { showVerticalLines: !1,
|
|
|
2353
2368
|
"stroke-width": 1,
|
|
2354
2369
|
"stroke-linecap": "round",
|
|
2355
2370
|
style: { animation: "none !important" }
|
|
2356
|
-
}, null, 8,
|
|
2371
|
+
}, null, 8, pu)) : h("", !0)
|
|
2357
2372
|
], 64))), 256)),
|
|
2358
|
-
(
|
|
2373
|
+
(n(!0), i(d, null, y(e.yLabels, (s, t) => (n(), i("text", {
|
|
2359
2374
|
x: e.x - 5 + U.value - c.value.individualOffsetX,
|
|
2360
2375
|
y: v(W)(s.y) + x.value.dataLabels / 3,
|
|
2361
2376
|
"font-size": x.value.dataLabels,
|
|
2362
2377
|
"text-anchor": "end",
|
|
2363
2378
|
fill: e.color
|
|
2364
|
-
}, te(v(
|
|
2379
|
+
}, te(v(ne)(
|
|
2365
2380
|
l.value.chart.grid.labels.yAxis.formatter,
|
|
2366
2381
|
s.value,
|
|
2367
2382
|
v(Pe)({
|
|
@@ -2371,12 +2386,12 @@ const yo = { chart: { userOptions: { show: !1 }, grid: { showVerticalLines: !1,
|
|
|
2371
2386
|
r: l.value.chart.grid.labels.yAxis.rounding
|
|
2372
2387
|
}),
|
|
2373
2388
|
{ datapoint: s.datapoint, seriesIndex: t }
|
|
2374
|
-
)), 9,
|
|
2389
|
+
)), 9, xu))), 256))
|
|
2375
2390
|
], 4))), 256))
|
|
2376
|
-
], 64)) : (
|
|
2391
|
+
], 64)) : (n(!0), i(d, { key: 1 }, y(Pt.value, (e, s) => (n(), i("g", {
|
|
2377
2392
|
key: `yLabel_${s}`
|
|
2378
2393
|
}, [
|
|
2379
|
-
xe(e) && e.value >= Te.value.min && e.value <= Te.value.max && l.value.chart.grid.labels.yAxis.showCrosshairs ? (
|
|
2394
|
+
xe(e) && e.value >= Te.value.min && e.value <= Te.value.max && l.value.chart.grid.labels.yAxis.showCrosshairs ? (n(), i("line", {
|
|
2380
2395
|
key: 0,
|
|
2381
2396
|
x1: c.value?.left + U.value,
|
|
2382
2397
|
x2: c.value?.left + U.value - l.value.chart.grid.labels.yAxis.crosshairSize,
|
|
@@ -2386,15 +2401,15 @@ const yo = { chart: { userOptions: { show: !1 }, grid: { showVerticalLines: !1,
|
|
|
2386
2401
|
"stroke-width": "1",
|
|
2387
2402
|
"stroke-linecap": "round",
|
|
2388
2403
|
style: { animation: "none !important" }
|
|
2389
|
-
}, null, 8,
|
|
2390
|
-
e.value >= Te.value.min && e.value <= Te.value.max ? (
|
|
2404
|
+
}, null, 8, yu)) : h("", !0),
|
|
2405
|
+
e.value >= Te.value.min && e.value <= Te.value.max ? (n(), i("text", {
|
|
2391
2406
|
key: 1,
|
|
2392
2407
|
x: c.value.scaleLabelX - l.value.chart.grid.labels.yAxis.crosshairSize,
|
|
2393
|
-
y: v(
|
|
2408
|
+
y: v(P)(e.y + x.value.dataLabels / 3),
|
|
2394
2409
|
"font-size": x.value.dataLabels,
|
|
2395
2410
|
"text-anchor": "end",
|
|
2396
2411
|
fill: l.value.chart.grid.labels.color
|
|
2397
|
-
}, te(xe(e.value) ? v(
|
|
2412
|
+
}, te(xe(e.value) ? v(ne)(
|
|
2398
2413
|
l.value.chart.grid.labels.yAxis.formatter,
|
|
2399
2414
|
e.value,
|
|
2400
2415
|
v(Pe)({
|
|
@@ -2403,28 +2418,28 @@ const yo = { chart: { userOptions: { show: !1 }, grid: { showVerticalLines: !1,
|
|
|
2403
2418
|
s: e.suffix,
|
|
2404
2419
|
r: l.value.chart.grid.labels.yAxis.rounding
|
|
2405
2420
|
})
|
|
2406
|
-
) : ""), 9,
|
|
2421
|
+
) : ""), 9, ku)) : h("", !0)
|
|
2407
2422
|
]))), 128))
|
|
2408
2423
|
], 512)) : h("", !0),
|
|
2409
|
-
(
|
|
2424
|
+
(n(!0), i(d, null, y(he.value, (e, s) => (n(), i("g", {
|
|
2410
2425
|
key: `serie_plot_${e.id}`,
|
|
2411
2426
|
class: ll(`serie_plot_${s}`),
|
|
2412
|
-
style:
|
|
2427
|
+
style: _(`opacity:${I.value ? I.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
2413
2428
|
}, [
|
|
2414
|
-
(
|
|
2415
|
-
key: `circle_plot_${s}_${
|
|
2429
|
+
(n(!0), i(d, null, y(e.plots, (t, u) => (n(), i("g", {
|
|
2430
|
+
key: `circle_plot_${s}_${u}`
|
|
2416
2431
|
}, [
|
|
2417
|
-
t && xe(t.value) ? (
|
|
2432
|
+
t && xe(t.value) ? (n(), Se(ga, {
|
|
2418
2433
|
key: 0,
|
|
2419
2434
|
shape: ["triangle", "square", "diamond", "pentagon", "hexagon", "star"].includes(e.shape) ? e.shape : "circle",
|
|
2420
|
-
color: l.value.plot.useGradient ? `url(#plotGradient_${s}_${
|
|
2421
|
-
plot: { x: v(
|
|
2422
|
-
radius: C.value !== null && C.value ===
|
|
2435
|
+
color: l.value.plot.useGradient ? `url(#plotGradient_${s}_${O.value})` : l.value.plot.dot.useSerieColor ? e.color : l.value.plot.dot.fill,
|
|
2436
|
+
plot: { x: v(P)(t.x), y: v(P)(t.y) },
|
|
2437
|
+
radius: C.value !== null && C.value === u || N.value !== null && N.value === u ? (Le.value.plot || 6) * 1.5 : Le.value.plot || 6,
|
|
2423
2438
|
stroke: l.value.plot.dot.useSerieColor ? l.value.chart.backgroundColor : e.color,
|
|
2424
2439
|
strokeWidth: l.value.plot.dot.strokeWidth,
|
|
2425
|
-
transition: v(oe) || !l.value.plot.showTransition || C.value !== null && C.value ===
|
|
2440
|
+
transition: v(oe) || !l.value.plot.showTransition || C.value !== null && C.value === u || N.value !== null && N.value === u ? void 0 : `all ${l.value.plot.transitionDurationMs}ms ease-in-out`
|
|
2426
2441
|
}, null, 8, ["shape", "color", "plot", "radius", "stroke", "strokeWidth", "transition"])) : h("", !0),
|
|
2427
|
-
t.comment && l.value.chart.comments.show ? (
|
|
2442
|
+
t.comment && l.value.chart.comments.show ? (n(), i("foreignObject", {
|
|
2428
2443
|
key: 1,
|
|
2429
2444
|
style: { overflow: "visible" },
|
|
2430
2445
|
height: "12",
|
|
@@ -2432,28 +2447,28 @@ const yo = { chart: { userOptions: { show: !1 }, grid: { showVerticalLines: !1,
|
|
|
2432
2447
|
x: t.x - l.value.chart.comments.width / 2 + l.value.chart.comments.offsetX,
|
|
2433
2448
|
y: t.y + l.value.chart.comments.offsetY + 6
|
|
2434
2449
|
}, [
|
|
2435
|
-
p("div",
|
|
2436
|
-
|
|
2437
|
-
plot: { ...t, color: e.color, seriesIndex: s, datapointIndex:
|
|
2450
|
+
p("div", _u, [
|
|
2451
|
+
D(a.$slots, "plot-comment", {
|
|
2452
|
+
plot: { ...t, color: e.color, seriesIndex: s, datapointIndex: u }
|
|
2438
2453
|
}, void 0, !0)
|
|
2439
2454
|
])
|
|
2440
|
-
], 8,
|
|
2455
|
+
], 8, Cu)) : h("", !0)
|
|
2441
2456
|
]))), 128))
|
|
2442
2457
|
], 6))), 128)),
|
|
2443
|
-
(
|
|
2458
|
+
(n(!0), i(d, null, y(le.value, (e, s) => (n(), i("g", {
|
|
2444
2459
|
key: `serie_line_${e.id}`,
|
|
2445
2460
|
class: ll(`serie_line_${s}`),
|
|
2446
|
-
style:
|
|
2461
|
+
style: _(`opacity:${I.value ? I.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
2447
2462
|
}, [
|
|
2448
|
-
e.smooth && e.plots.length > 1 && e.curve ? (
|
|
2463
|
+
e.smooth && e.plots.length > 1 && e.curve ? (n(), i("path", {
|
|
2449
2464
|
key: 0,
|
|
2450
2465
|
d: `M${e.curve}`,
|
|
2451
2466
|
stroke: l.value.chart.backgroundColor,
|
|
2452
2467
|
"stroke-width": l.value.line.strokeWidth + 1,
|
|
2453
2468
|
"stroke-dasharray": e.dashed ? l.value.line.strokeWidth * 2 : 0,
|
|
2454
2469
|
fill: "none",
|
|
2455
|
-
style:
|
|
2456
|
-
}, null, 12,
|
|
2470
|
+
style: _({ transition: v(oe) || !l.value.line.showTransition ? void 0 : `all ${l.value.line.transitionDurationMs}ms ease-in-out` })
|
|
2471
|
+
}, null, 12, wu)) : e.plots.length > 1 && e.straight ? (n(), i("path", {
|
|
2457
2472
|
key: 1,
|
|
2458
2473
|
d: `M${e.straight}`,
|
|
2459
2474
|
stroke: l.value.chart.backgroundColor,
|
|
@@ -2462,113 +2477,113 @@ const yo = { chart: { userOptions: { show: !1 }, grid: { showVerticalLines: !1,
|
|
|
2462
2477
|
fill: "none",
|
|
2463
2478
|
"stroke-linecap": "round",
|
|
2464
2479
|
"stroke-linejoin": "round",
|
|
2465
|
-
style:
|
|
2466
|
-
}, null, 12,
|
|
2480
|
+
style: _({ transition: v(oe) || !l.value.line.showTransition ? void 0 : `all ${l.value.line.transitionDurationMs}ms ease-in-out` })
|
|
2481
|
+
}, null, 12, Su)) : h("", !0)
|
|
2467
2482
|
], 6))), 128)),
|
|
2468
|
-
a.$slots.pattern ? (
|
|
2469
|
-
(
|
|
2483
|
+
a.$slots.pattern ? (n(), i("defs", Au, [
|
|
2484
|
+
(n(!0), i(d, null, y(Ee.value, (e, s) => D(a.$slots, "pattern", al({
|
|
2470
2485
|
key: `serie_pattern_slot_${e.id}`
|
|
2471
|
-
}, { ref_for: !0 }, { ...e, seriesIndex: e.slotAbsoluteIndex, patternId: `pattern_${
|
|
2486
|
+
}, { ref_for: !0 }, { ...e, seriesIndex: e.slotAbsoluteIndex, patternId: `pattern_${O.value}_${s}` }), void 0, !0)), 128))
|
|
2472
2487
|
])) : h("", !0),
|
|
2473
|
-
|
|
2474
|
-
(
|
|
2488
|
+
Rt.value.length && !f.value.isStacked ? (n(), i("g", $u, [
|
|
2489
|
+
(n(!0), i(d, null, y(Rt.value, (e) => (n(), i("path", {
|
|
2475
2490
|
key: e.key,
|
|
2476
2491
|
d: e.d,
|
|
2477
2492
|
fill: e.color,
|
|
2478
2493
|
"fill-opacity": l.value.line.interLine.fillOpacity,
|
|
2479
2494
|
stroke: "none",
|
|
2480
2495
|
"pointer-events": "none",
|
|
2481
|
-
style:
|
|
2482
|
-
}, null, 12,
|
|
2496
|
+
style: _({ transition: v(oe) || !l.value.line.showTransition ? void 0 : `all ${l.value.line.transitionDurationMs}ms ease-in-out` })
|
|
2497
|
+
}, null, 12, Lu))), 128))
|
|
2483
2498
|
])) : h("", !0),
|
|
2484
|
-
(
|
|
2499
|
+
(n(!0), i(d, null, y(le.value, (e, s) => (n(), i("g", {
|
|
2485
2500
|
key: `serie_line_above_${e.id}`,
|
|
2486
2501
|
class: ll(`serie_line_${s}`),
|
|
2487
|
-
style:
|
|
2502
|
+
style: _(`opacity:${I.value ? I.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
2488
2503
|
}, [
|
|
2489
|
-
e.useArea && e.plots.length > 1 ? (
|
|
2490
|
-
e.smooth ? (
|
|
2491
|
-
t ? (
|
|
2504
|
+
e.useArea && e.plots.length > 1 ? (n(), i("g", Mu, [
|
|
2505
|
+
e.smooth ? (n(!0), i(d, { key: 0 }, y(e.curveAreas, (t, u) => (n(), i(d, { key: u }, [
|
|
2506
|
+
t ? (n(), i("path", {
|
|
2492
2507
|
key: 0,
|
|
2493
2508
|
d: t,
|
|
2494
|
-
fill: l.value.line.area.useGradient ? `url(#areaGradient_${s}_${
|
|
2495
|
-
style:
|
|
2496
|
-
}, null, 12,
|
|
2497
|
-
a.$slots.pattern && t ? (
|
|
2509
|
+
fill: l.value.line.area.useGradient ? `url(#areaGradient_${s}_${O.value})` : v(ze)(e.color, l.value.line.area.opacity),
|
|
2510
|
+
style: _({ transition: v(oe) || !l.value.line.showTransition ? void 0 : `all ${l.value.line.transitionDurationMs}ms ease-in-out` })
|
|
2511
|
+
}, null, 12, Tu)) : h("", !0),
|
|
2512
|
+
a.$slots.pattern && t ? (n(), i("path", {
|
|
2498
2513
|
key: 1,
|
|
2499
2514
|
d: t,
|
|
2500
|
-
fill: `url(#pattern_${
|
|
2501
|
-
style:
|
|
2502
|
-
}, null, 12,
|
|
2503
|
-
], 64))), 128)) : (
|
|
2504
|
-
t ? (
|
|
2515
|
+
fill: `url(#pattern_${O.value}_${e.slotAbsoluteIndex})`,
|
|
2516
|
+
style: _({ transition: v(oe) || !l.value.line.showTransition ? void 0 : `all ${l.value.line.transitionDurationMs}ms ease-in-out` })
|
|
2517
|
+
}, null, 12, zu)) : h("", !0)
|
|
2518
|
+
], 64))), 128)) : (n(!0), i(d, { key: 1 }, y(e.area.split(";"), (t, u) => (n(), i(d, { key: u }, [
|
|
2519
|
+
t ? (n(), i("path", {
|
|
2505
2520
|
key: 0,
|
|
2506
2521
|
d: `M${t}Z`,
|
|
2507
|
-
fill: l.value.line.area.useGradient ? `url(#areaGradient_${s}_${
|
|
2508
|
-
style:
|
|
2509
|
-
}, null, 12,
|
|
2510
|
-
a.$slots.pattern && t ? (
|
|
2522
|
+
fill: l.value.line.area.useGradient ? `url(#areaGradient_${s}_${O.value})` : v(ze)(e.color, l.value.line.area.opacity),
|
|
2523
|
+
style: _({ transition: v(oe) || !l.value.line.showTransition ? void 0 : `all ${l.value.line.transitionDurationMs}ms ease-in-out` })
|
|
2524
|
+
}, null, 12, Iu)) : h("", !0),
|
|
2525
|
+
a.$slots.pattern && t ? (n(), i("path", {
|
|
2511
2526
|
key: 1,
|
|
2512
2527
|
d: `M${t}Z`,
|
|
2513
|
-
fill: `url(#pattern_${
|
|
2514
|
-
style:
|
|
2515
|
-
}, null, 12,
|
|
2528
|
+
fill: `url(#pattern_${O.value}_${e.slotAbsoluteIndex})`,
|
|
2529
|
+
style: _({ transition: v(oe) || !l.value.line.showTransition ? void 0 : `all ${l.value.line.transitionDurationMs}ms ease-in-out` })
|
|
2530
|
+
}, null, 12, Fu)) : h("", !0)
|
|
2516
2531
|
], 64))), 128))
|
|
2517
2532
|
])) : h("", !0),
|
|
2518
|
-
!e.hasDashedSegments && e.smooth && e.plots.length > 1 && e.curve ? (
|
|
2533
|
+
!e.hasDashedSegments && e.smooth && e.plots.length > 1 && e.curve ? (n(), i("path", {
|
|
2519
2534
|
key: 1,
|
|
2520
2535
|
d: `M${e.curve}`,
|
|
2521
|
-
stroke: e.color,
|
|
2536
|
+
stroke: e.temperatureColors ? `url(#temperature_grad_line_${s}_${O.value})` : e.color,
|
|
2522
2537
|
"stroke-width": l.value.line.strokeWidth,
|
|
2523
2538
|
"stroke-dasharray": e.dashed ? l.value.line.strokeWidth * 2 : 0,
|
|
2524
2539
|
fill: "none",
|
|
2525
2540
|
"stroke-linecap": "round",
|
|
2526
|
-
style:
|
|
2527
|
-
}, null, 12,
|
|
2528
|
-
e.smooth ? (
|
|
2541
|
+
style: _({ transition: v(oe) || !l.value.line.showTransition ? void 0 : `all ${l.value.line.transitionDurationMs}ms ease-in-out` })
|
|
2542
|
+
}, null, 12, Bu)) : e.hasDashedSegments ? (n(), i(d, { key: 2 }, [
|
|
2543
|
+
e.smooth ? (n(!0), i(d, { key: 0 }, y(e.dashedSmooth, (t) => (n(), i("path", {
|
|
2529
2544
|
key: t.path,
|
|
2530
2545
|
fill: "none",
|
|
2531
2546
|
"stroke-linecap": "round",
|
|
2532
2547
|
"stroke-linejoin": "round",
|
|
2533
2548
|
d: `M ${t.path}`,
|
|
2534
|
-
stroke: e.color,
|
|
2549
|
+
stroke: e.temperatureColors ? `url(#temperature_grad_line_${s}_${O.value})` : e.color,
|
|
2535
2550
|
"stroke-width": l.value.line.strokeWidth,
|
|
2536
2551
|
"stroke-dasharray": t.dashed ? l.value.line.strokeWidth * 2 : 0
|
|
2537
|
-
}, null, 8,
|
|
2552
|
+
}, null, 8, Ou))), 128)) : (n(!0), i(d, { key: 1 }, y(e.dashedStraight, (t) => (n(), i("path", {
|
|
2538
2553
|
key: t.path,
|
|
2539
2554
|
fill: "none",
|
|
2540
2555
|
"stroke-linecap": "round",
|
|
2541
2556
|
"stroke-linejoin": "round",
|
|
2542
2557
|
d: `M ${t.path}`,
|
|
2543
|
-
stroke: e.color,
|
|
2558
|
+
stroke: e.temperatureColors ? `url(#temperature_grad_line_${s}_${O.value})` : e.color,
|
|
2544
2559
|
"stroke-width": l.value.line.strokeWidth,
|
|
2545
2560
|
"stroke-dasharray": t.dashed ? l.value.line.strokeWidth * 2 : 0
|
|
2546
|
-
}, null, 8,
|
|
2547
|
-
], 64)) : e.plots.length > 1 && e.straight ? (
|
|
2561
|
+
}, null, 8, Nu))), 128))
|
|
2562
|
+
], 64)) : e.plots.length > 1 && e.straight ? (n(), i("path", {
|
|
2548
2563
|
key: 3,
|
|
2549
2564
|
d: `M${e.straight}`,
|
|
2550
|
-
stroke: e.color,
|
|
2565
|
+
stroke: e.temperatureColors ? `url(#temperature_grad_line_${s}_${O.value})` : e.color,
|
|
2551
2566
|
"stroke-width": l.value.line.strokeWidth,
|
|
2552
2567
|
"stroke-dasharray": e.dashed ? l.value.line.strokeWidth * 2 : 0,
|
|
2553
2568
|
fill: "none",
|
|
2554
2569
|
"stroke-linecap": "round",
|
|
2555
2570
|
"stroke-linejoin": "round",
|
|
2556
|
-
style:
|
|
2557
|
-
}, null, 12,
|
|
2558
|
-
(
|
|
2559
|
-
key: `circle_line_${s}_${
|
|
2571
|
+
style: _({ transition: v(oe) || !l.value.line.showTransition ? void 0 : `all ${l.value.line.transitionDurationMs}ms ease-in-out` })
|
|
2572
|
+
}, null, 12, Pu)) : h("", !0),
|
|
2573
|
+
(n(!0), i(d, null, y(e.plots, (t, u) => (n(), i(d, {
|
|
2574
|
+
key: `circle_line_${s}_${u}`
|
|
2560
2575
|
}, [
|
|
2561
|
-
!
|
|
2576
|
+
!Ot.value.linePlot && t && xe(t.value) || Ot.value.linePlot && t && xe(t.value) && (C.value !== null && C.value === u || N.value !== null && N.value === u) || Vt(e.plots, u) ? (n(), Se(ga, {
|
|
2562
2577
|
key: 0,
|
|
2563
2578
|
shape: ["triangle", "square", "diamond", "pentagon", "hexagon", "star"].includes(e.shape) ? e.shape : "circle",
|
|
2564
|
-
color: l.value.line.useGradient ? `url(#lineGradient_${s}_${
|
|
2565
|
-
plot: { x: v(
|
|
2566
|
-
radius: C.value !== null && C.value ===
|
|
2579
|
+
color: l.value.line.useGradient ? `url(#lineGradient_${s}_${O.value})` : l.value.line.dot.useSerieColor ? e.color : l.value.line.dot.fill,
|
|
2580
|
+
plot: { x: v(P)(t.x), y: v(P)(t.y) },
|
|
2581
|
+
radius: C.value !== null && C.value === u || N.value !== null && N.value === u ? (Le.value.line || 6) * 1.5 : (Vt(e.plots, u), Le.value.line || 6),
|
|
2567
2582
|
stroke: l.value.line.dot.useSerieColor ? l.value.chart.backgroundColor : e.color,
|
|
2568
2583
|
strokeWidth: l.value.line.dot.strokeWidth,
|
|
2569
|
-
transition: v(oe) || !l.value.line.showTransition || C.value !== null && C.value ===
|
|
2584
|
+
transition: v(oe) || !l.value.line.showTransition || C.value !== null && C.value === u || N.value !== null && N.value === u ? void 0 : `all ${l.value.line.transitionDurationMs}ms ease-in-out`
|
|
2570
2585
|
}, null, 8, ["shape", "color", "plot", "radius", "stroke", "strokeWidth", "transition"])) : h("", !0),
|
|
2571
|
-
t.comment && l.value.chart.comments.show ? (
|
|
2586
|
+
t.comment && l.value.chart.comments.show ? (n(), i("foreignObject", {
|
|
2572
2587
|
key: 1,
|
|
2573
2588
|
style: { overflow: "visible" },
|
|
2574
2589
|
height: "12",
|
|
@@ -2576,30 +2591,30 @@ const yo = { chart: { userOptions: { show: !1 }, grid: { showVerticalLines: !1,
|
|
|
2576
2591
|
x: t.x - l.value.chart.comments.width / 2 + l.value.chart.comments.offsetX,
|
|
2577
2592
|
y: t.y + l.value.chart.comments.offsetY + 6
|
|
2578
2593
|
}, [
|
|
2579
|
-
p("div",
|
|
2580
|
-
|
|
2581
|
-
plot: { ...t, color: e.color, seriesIndex: s, datapointIndex:
|
|
2594
|
+
p("div", Vu, [
|
|
2595
|
+
D(a.$slots, "plot-comment", {
|
|
2596
|
+
plot: { ...t, color: e.color, seriesIndex: s, datapointIndex: u }
|
|
2582
2597
|
}, void 0, !0)
|
|
2583
2598
|
])
|
|
2584
|
-
], 8,
|
|
2599
|
+
], 8, Du)) : h("", !0)
|
|
2585
2600
|
], 64))), 128))
|
|
2586
2601
|
], 6))), 128)),
|
|
2587
|
-
(l.value.bar.labels.show || l.value.bar.serieName.show) && f.value.dataLabels.show ? (
|
|
2588
|
-
(
|
|
2602
|
+
(l.value.bar.labels.show || l.value.bar.serieName.show) && f.value.dataLabels.show ? (n(), i("g", Ru, [
|
|
2603
|
+
(n(!0), i(d, null, y(ye.value, (e, s) => (n(), i(d, {
|
|
2589
2604
|
key: `xLabel_bar_${e.id}`
|
|
2590
2605
|
}, [
|
|
2591
|
-
(
|
|
2592
|
-
key: `xLabel_bar_${s}_${
|
|
2606
|
+
(n(!0), i(d, null, y(e.plots, (t, u) => (n(), i(d, {
|
|
2607
|
+
key: `xLabel_bar_${s}_${u}`
|
|
2593
2608
|
}, [
|
|
2594
|
-
t && (!Object.hasOwn(e, "dataLabels") || e.dataLabels === !0 || C.value !== null && C.value ===
|
|
2609
|
+
t && (!Object.hasOwn(e, "dataLabels") || e.dataLabels === !0 || C.value !== null && C.value === u || N.value !== null && N.value === u) && l.value.bar.labels.show ? (n(), i("text", {
|
|
2595
2610
|
key: 0,
|
|
2596
2611
|
x: f.value.useIndividualScale && f.value.isStacked ? t.x + J.value.line / 2 : aa(t) + He() / 2 - ra.value / 2,
|
|
2597
|
-
y: v(
|
|
2612
|
+
y: v(P)(t.y) + (t.value >= 0 ? l.value.bar.labels.offsetY : -l.value.bar.labels.offsetY * 3),
|
|
2598
2613
|
"text-anchor": "middle",
|
|
2599
2614
|
"font-size": x.value.plotLabels,
|
|
2600
2615
|
fill: l.value.bar.labels.color,
|
|
2601
|
-
style:
|
|
2602
|
-
}, te(xe(t.value) ? v(
|
|
2616
|
+
style: _(`opacity:${I.value ? I.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
2617
|
+
}, te(xe(t.value) ? v(ne)(
|
|
2603
2618
|
l.value.bar.labels.formatter,
|
|
2604
2619
|
t.value,
|
|
2605
2620
|
v(Pe)({
|
|
@@ -2612,8 +2627,8 @@ const yo = { chart: { userOptions: { show: !1 }, grid: { showVerticalLines: !1,
|
|
|
2612
2627
|
datapoint: t,
|
|
2613
2628
|
serie: e
|
|
2614
2629
|
}
|
|
2615
|
-
) : ""), 13,
|
|
2616
|
-
t && l.value.bar.serieName.show ? (
|
|
2630
|
+
) : ""), 13, Eu)) : h("", !0),
|
|
2631
|
+
t && l.value.bar.serieName.show ? (n(), i("text", {
|
|
2617
2632
|
key: 1,
|
|
2618
2633
|
x: f.value.useIndividualScale && f.value.isStacked ? t.x + J.value.line / 2 : t.x + He() * 1.1,
|
|
2619
2634
|
y: t.y + (t.value > 0 ? l.value.bar.serieName.offsetY : -l.value.bar.serieName.offsetY * 3),
|
|
@@ -2621,30 +2636,30 @@ const yo = { chart: { userOptions: { show: !1 }, grid: { showVerticalLines: !1,
|
|
|
2621
2636
|
"font-size": x.value.plotLabels,
|
|
2622
2637
|
fill: l.value.bar.serieName.useSerieColor ? e.color : l.value.bar.serieName.color,
|
|
2623
2638
|
"font-weight": l.value.bar.serieName.bold ? "bold" : "normal",
|
|
2624
|
-
style:
|
|
2625
|
-
}, te(l.value.bar.serieName.useAbbreviation ? v(
|
|
2639
|
+
style: _(`opacity:${I.value ? I.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
2640
|
+
}, te(l.value.bar.serieName.useAbbreviation ? v(ts)({
|
|
2626
2641
|
source: e.name,
|
|
2627
2642
|
length: l.value.bar.serieName.abbreviationSize
|
|
2628
|
-
}) : e.name), 13,
|
|
2643
|
+
}) : e.name), 13, Hu)) : h("", !0)
|
|
2629
2644
|
], 64))), 128))
|
|
2630
2645
|
], 64))), 128))
|
|
2631
2646
|
])) : h("", !0),
|
|
2632
|
-
l.value.plot.labels.show && f.value.dataLabels.show ? (
|
|
2633
|
-
(
|
|
2647
|
+
l.value.plot.labels.show && f.value.dataLabels.show ? (n(), i("g", Wu, [
|
|
2648
|
+
(n(!0), i(d, null, y(he.value, (e, s) => (n(), i(d, {
|
|
2634
2649
|
key: `xLabel_plot_${e.id}`
|
|
2635
2650
|
}, [
|
|
2636
|
-
(
|
|
2637
|
-
key: `xLabel_plot_${s}_${
|
|
2651
|
+
(n(!0), i(d, null, y(e.plots, (t, u) => (n(), i(d, {
|
|
2652
|
+
key: `xLabel_plot_${s}_${u}`
|
|
2638
2653
|
}, [
|
|
2639
|
-
t && !Object.hasOwn(e, "dataLabels") || e.dataLabels === !0 || C.value !== null && C.value ===
|
|
2654
|
+
t && !Object.hasOwn(e, "dataLabels") || e.dataLabels === !0 || C.value !== null && C.value === u || N.value !== null && N.value === u ? (n(), i("text", {
|
|
2640
2655
|
key: 0,
|
|
2641
2656
|
x: t.x,
|
|
2642
2657
|
y: t.y + l.value.plot.labels.offsetY,
|
|
2643
2658
|
"text-anchor": "middle",
|
|
2644
2659
|
"font-size": x.value.plotLabels,
|
|
2645
2660
|
fill: l.value.plot.labels.color,
|
|
2646
|
-
style:
|
|
2647
|
-
}, te(xe(t.value) ? v(
|
|
2661
|
+
style: _(`opacity:${I.value ? I.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
2662
|
+
}, te(xe(t.value) ? v(ne)(
|
|
2648
2663
|
l.value.plot.labels.formatter,
|
|
2649
2664
|
t.value,
|
|
2650
2665
|
v(Pe)({
|
|
@@ -2657,18 +2672,18 @@ const yo = { chart: { userOptions: { show: !1 }, grid: { showVerticalLines: !1,
|
|
|
2657
2672
|
datapoint: t,
|
|
2658
2673
|
serie: e
|
|
2659
2674
|
}
|
|
2660
|
-
) : ""), 13,
|
|
2675
|
+
) : ""), 13, Yu)) : h("", !0)
|
|
2661
2676
|
], 64))), 128))
|
|
2662
2677
|
], 64))), 128))
|
|
2663
|
-
])) : (
|
|
2664
|
-
(
|
|
2678
|
+
])) : (n(), i("g", Xu, [
|
|
2679
|
+
(n(!0), i(d, null, y(he.value, (e, s) => (n(), i(d, {
|
|
2665
2680
|
key: `xLabel_plot_${e.id}`
|
|
2666
2681
|
}, [
|
|
2667
|
-
(
|
|
2668
|
-
key: `xLabel_plot_${s}_${
|
|
2682
|
+
(n(!0), i(d, null, y(e.plots, (t, u) => (n(), i(d, {
|
|
2683
|
+
key: `xLabel_plot_${s}_${u}`
|
|
2669
2684
|
}, [
|
|
2670
|
-
l.value.plot.tag.followValue ? (
|
|
2671
|
-
[
|
|
2685
|
+
l.value.plot.tag.followValue ? (n(), i(d, { key: 1 }, [
|
|
2686
|
+
[N.value, C.value, Ue.value].includes(u) && e.useTag ? (n(), i("line", {
|
|
2672
2687
|
key: 0,
|
|
2673
2688
|
class: "vue-ui-xy-tag-plot",
|
|
2674
2689
|
x1: c.value?.left,
|
|
@@ -2679,72 +2694,72 @@ const yo = { chart: { userOptions: { show: !1 }, grid: { showVerticalLines: !1,
|
|
|
2679
2694
|
"stroke-linecap": "round",
|
|
2680
2695
|
"stroke-dasharray": "2",
|
|
2681
2696
|
stroke: e.color
|
|
2682
|
-
}, null, 8,
|
|
2683
|
-
], 64)) : (
|
|
2684
|
-
t &&
|
|
2697
|
+
}, null, 8, Ju)) : h("", !0)
|
|
2698
|
+
], 64)) : (n(), i(d, { key: 0 }, [
|
|
2699
|
+
t && u === 0 && e.useTag && e.useTag === "start" ? (n(), i("foreignObject", {
|
|
2685
2700
|
key: 0,
|
|
2686
2701
|
x: t.x,
|
|
2687
2702
|
y: t.y - 20,
|
|
2688
2703
|
height: 24,
|
|
2689
2704
|
width: "150",
|
|
2690
|
-
style:
|
|
2705
|
+
style: _(`overflow: visible; opacity:${I.value ? I.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
2691
2706
|
}, [
|
|
2692
2707
|
p("div", {
|
|
2693
|
-
style:
|
|
2694
|
-
innerHTML: v(
|
|
2708
|
+
style: _(`padding: 3px; background:${v(ze)(e.color, 80)};color:${v(Ye)(e.color)};width:fit-content;font-size:${x.value.plotLabels}px;border-radius: 2px;`),
|
|
2709
|
+
innerHTML: v(ne)(
|
|
2695
2710
|
l.value.plot.tag.formatter,
|
|
2696
2711
|
t.value,
|
|
2697
2712
|
e.name,
|
|
2698
2713
|
{
|
|
2699
2714
|
datapoint: t,
|
|
2700
|
-
seriesIndex:
|
|
2715
|
+
seriesIndex: u,
|
|
2701
2716
|
serieName: e.name
|
|
2702
2717
|
}
|
|
2703
2718
|
)
|
|
2704
|
-
}, null, 12,
|
|
2705
|
-
], 12,
|
|
2706
|
-
t &&
|
|
2719
|
+
}, null, 12, qu)
|
|
2720
|
+
], 12, Gu)) : h("", !0),
|
|
2721
|
+
t && u === e.plots.length - 1 && e.useTag && e.useTag === "end" ? (n(), i("foreignObject", {
|
|
2707
2722
|
key: 1,
|
|
2708
2723
|
x: t.x - e.name.length * (x.value.plotLabels / 2),
|
|
2709
2724
|
y: t.y - 20,
|
|
2710
2725
|
height: 24,
|
|
2711
2726
|
width: "150",
|
|
2712
|
-
style:
|
|
2727
|
+
style: _(`overflow: visible; opacity:${I.value ? I.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
2713
2728
|
}, [
|
|
2714
2729
|
p("div", {
|
|
2715
|
-
style:
|
|
2716
|
-
innerHTML: v(
|
|
2730
|
+
style: _(`padding: 3px; background:${v(ze)(e.color, 80)};color:${v(Ye)(e.color)};width:fit-content;font-size:${x.value.plotLabels}px;border-radius: 2px;`),
|
|
2731
|
+
innerHTML: v(ne)(
|
|
2717
2732
|
l.value.plot.tag.formatter,
|
|
2718
2733
|
t.value,
|
|
2719
2734
|
e.name,
|
|
2720
2735
|
{
|
|
2721
2736
|
datapoint: t,
|
|
2722
|
-
seriesIndex:
|
|
2737
|
+
seriesIndex: u,
|
|
2723
2738
|
serieName: e.name
|
|
2724
2739
|
}
|
|
2725
2740
|
)
|
|
2726
|
-
}, null, 12,
|
|
2727
|
-
], 12,
|
|
2741
|
+
}, null, 12, Zu)
|
|
2742
|
+
], 12, Uu)) : h("", !0)
|
|
2728
2743
|
], 64))
|
|
2729
2744
|
], 64))), 128))
|
|
2730
2745
|
], 64))), 128))
|
|
2731
2746
|
])),
|
|
2732
|
-
l.value.line.labels.show && f.value.dataLabels.show ? (
|
|
2733
|
-
(
|
|
2747
|
+
l.value.line.labels.show && f.value.dataLabels.show ? (n(), i("g", Ku, [
|
|
2748
|
+
(n(!0), i(d, null, y(le.value, (e, s) => (n(), i(d, {
|
|
2734
2749
|
key: `xLabel_line_${e.id}`
|
|
2735
2750
|
}, [
|
|
2736
|
-
(
|
|
2737
|
-
key: `xLabel_line_${s}_${
|
|
2751
|
+
(n(!0), i(d, null, y(e.plots, (t, u) => (n(), i(d, {
|
|
2752
|
+
key: `xLabel_line_${s}_${u}`
|
|
2738
2753
|
}, [
|
|
2739
|
-
t && !Object.hasOwn(e, "dataLabels") || e.dataLabels === !0 || C.value !== null && C.value ===
|
|
2754
|
+
t && !Object.hasOwn(e, "dataLabels") || e.dataLabels === !0 || C.value !== null && C.value === u || N.value !== null && N.value === u ? (n(), i("text", {
|
|
2740
2755
|
key: 0,
|
|
2741
2756
|
x: t.x,
|
|
2742
2757
|
y: t.y + (t.value >= 0 ? l.value.line.labels.offsetY : -l.value.line.labels.offsetY * 3),
|
|
2743
2758
|
"text-anchor": "middle",
|
|
2744
2759
|
"font-size": x.value.plotLabels,
|
|
2745
2760
|
fill: l.value.line.labels.color,
|
|
2746
|
-
style:
|
|
2747
|
-
}, te(xe(t.value) ? v(
|
|
2761
|
+
style: _(`opacity:${I.value ? I.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
2762
|
+
}, te(xe(t.value) ? v(ne)(
|
|
2748
2763
|
l.value.line.labels.formatter,
|
|
2749
2764
|
t.value,
|
|
2750
2765
|
v(Pe)({
|
|
@@ -2757,18 +2772,18 @@ const yo = { chart: { userOptions: { show: !1 }, grid: { showVerticalLines: !1,
|
|
|
2757
2772
|
datapoint: t,
|
|
2758
2773
|
serie: e
|
|
2759
2774
|
}
|
|
2760
|
-
) : ""), 13,
|
|
2775
|
+
) : ""), 13, Qu)) : h("", !0)
|
|
2761
2776
|
], 64))), 128))
|
|
2762
2777
|
], 64))), 128))
|
|
2763
|
-
])) : (
|
|
2764
|
-
(
|
|
2778
|
+
])) : (n(), i("g", ju, [
|
|
2779
|
+
(n(!0), i(d, null, y(le.value, (e, s) => (n(), i(d, {
|
|
2765
2780
|
key: `xLabel_line_${e.id}`
|
|
2766
2781
|
}, [
|
|
2767
|
-
(
|
|
2768
|
-
key: `xLabel_line_${s}_${
|
|
2782
|
+
(n(!0), i(d, null, y(e.plots, (t, u) => (n(), i(d, {
|
|
2783
|
+
key: `xLabel_line_${s}_${u}`
|
|
2769
2784
|
}, [
|
|
2770
|
-
l.value.line.tag.followValue ? (
|
|
2771
|
-
[
|
|
2785
|
+
l.value.line.tag.followValue ? (n(), i(d, { key: 1 }, [
|
|
2786
|
+
[N.value, C.value, Ue.value].includes(u) && e.useTag ? (n(), i("line", {
|
|
2772
2787
|
key: 0,
|
|
2773
2788
|
class: "vue-ui-xy-tag-line",
|
|
2774
2789
|
x1: c.value?.left,
|
|
@@ -2779,63 +2794,63 @@ const yo = { chart: { userOptions: { show: !1 }, grid: { showVerticalLines: !1,
|
|
|
2779
2794
|
"stroke-linecap": "round",
|
|
2780
2795
|
"stroke-dasharray": "2",
|
|
2781
2796
|
stroke: e.color
|
|
2782
|
-
}, null, 8,
|
|
2783
|
-
], 64)) : (
|
|
2784
|
-
t &&
|
|
2797
|
+
}, null, 8, on)) : h("", !0)
|
|
2798
|
+
], 64)) : (n(), i(d, { key: 0 }, [
|
|
2799
|
+
t && u === 0 && e.useTag && e.useTag === "start" ? (n(), i("foreignObject", {
|
|
2785
2800
|
key: 0,
|
|
2786
2801
|
x: t.x,
|
|
2787
2802
|
y: t.y - 20,
|
|
2788
2803
|
height: 24,
|
|
2789
2804
|
width: "150",
|
|
2790
|
-
style:
|
|
2805
|
+
style: _(`overflow: visible; opacity:${I.value ? I.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
2791
2806
|
}, [
|
|
2792
2807
|
p("div", {
|
|
2793
|
-
style:
|
|
2794
|
-
innerHTML: v(
|
|
2808
|
+
style: _(`padding: 3px; background:${v(ze)(e.color, 80)};color:${v(Ye)(e.color)};width:fit-content;font-size:${x.value.plotLabels}px;border-radius: 2px;`),
|
|
2809
|
+
innerHTML: v(ne)(
|
|
2795
2810
|
l.value.line.tag.formatter,
|
|
2796
2811
|
t.value,
|
|
2797
2812
|
e.name,
|
|
2798
2813
|
{
|
|
2799
2814
|
datapoint: t,
|
|
2800
|
-
seriesIndex:
|
|
2815
|
+
seriesIndex: u,
|
|
2801
2816
|
serieName: e.name
|
|
2802
2817
|
}
|
|
2803
2818
|
)
|
|
2804
|
-
}, null, 12,
|
|
2805
|
-
], 12,
|
|
2806
|
-
t &&
|
|
2819
|
+
}, null, 12, ln)
|
|
2820
|
+
], 12, en)) : h("", !0),
|
|
2821
|
+
t && u === e.plots.length - 1 && e.useTag && e.useTag === "end" ? (n(), i("foreignObject", {
|
|
2807
2822
|
key: 1,
|
|
2808
2823
|
x: t.x,
|
|
2809
2824
|
y: t.y - 20,
|
|
2810
2825
|
height: 24,
|
|
2811
2826
|
width: "150",
|
|
2812
|
-
style:
|
|
2827
|
+
style: _(`overflow: visible; opacity:${I.value ? I.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
2813
2828
|
}, [
|
|
2814
2829
|
p("div", {
|
|
2815
|
-
style:
|
|
2816
|
-
innerHTML: v(
|
|
2830
|
+
style: _(`padding: 3px; background:${v(ze)(e.color, 80)};color:${v(Ye)(e.color)};width:fit-content;font-size:${x.value.plotLabels}px;border-radius: 2px;`),
|
|
2831
|
+
innerHTML: v(ne)(
|
|
2817
2832
|
l.value.line.tag.formatter,
|
|
2818
2833
|
t.value,
|
|
2819
2834
|
e.name,
|
|
2820
2835
|
{
|
|
2821
2836
|
datapoint: t,
|
|
2822
|
-
seriesIndex:
|
|
2837
|
+
seriesIndex: u,
|
|
2823
2838
|
serieName: e.name
|
|
2824
2839
|
}
|
|
2825
2840
|
)
|
|
2826
|
-
}, null, 12,
|
|
2827
|
-
], 12,
|
|
2841
|
+
}, null, 12, tn)
|
|
2842
|
+
], 12, an)) : h("", !0)
|
|
2828
2843
|
], 64))
|
|
2829
2844
|
], 64))), 128))
|
|
2830
2845
|
], 64))), 128))
|
|
2831
2846
|
])),
|
|
2832
|
-
(
|
|
2847
|
+
(n(!0), i(d, null, y(le.value, (e, s) => (n(), i(d, {
|
|
2833
2848
|
key: `xLabel_line_${e.id}`
|
|
2834
2849
|
}, [
|
|
2835
|
-
(
|
|
2836
|
-
key: `xLabel_line_${s}_${
|
|
2850
|
+
(n(!0), i(d, null, y(e.plots, (t, u) => (n(), i(d, {
|
|
2851
|
+
key: `xLabel_line_${s}_${u}`
|
|
2837
2852
|
}, [
|
|
2838
|
-
t &&
|
|
2853
|
+
t && u === 0 && e.showSerieName && e.showSerieName === "start" ? (n(), i("text", {
|
|
2839
2854
|
key: 0,
|
|
2840
2855
|
x: t.x - x.value.plotLabels,
|
|
2841
2856
|
y: t.y,
|
|
@@ -2850,9 +2865,9 @@ const yo = { chart: { userOptions: { show: !1 }, grid: { showVerticalLines: !1,
|
|
|
2850
2865
|
y: t.y,
|
|
2851
2866
|
maxWords: 2
|
|
2852
2867
|
}),
|
|
2853
|
-
style:
|
|
2854
|
-
}, null, 12,
|
|
2855
|
-
t &&
|
|
2868
|
+
style: _(`opacity:${I.value ? I.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
2869
|
+
}, null, 12, rn)) : h("", !0),
|
|
2870
|
+
t && u === e.plots.length - 1 && e.showSerieName && e.showSerieName === "end" ? (n(), i("text", {
|
|
2856
2871
|
key: 1,
|
|
2857
2872
|
x: t.x + x.value.plotLabels,
|
|
2858
2873
|
y: t.y,
|
|
@@ -2867,17 +2882,17 @@ const yo = { chart: { userOptions: { show: !1 }, grid: { showVerticalLines: !1,
|
|
|
2867
2882
|
y: t.y,
|
|
2868
2883
|
maxWords: 2
|
|
2869
2884
|
}),
|
|
2870
|
-
style:
|
|
2871
|
-
}, null, 12,
|
|
2885
|
+
style: _(`opacity:${I.value ? I.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
2886
|
+
}, null, 12, sn)) : h("", !0)
|
|
2872
2887
|
], 64))), 128))
|
|
2873
2888
|
], 64))), 128)),
|
|
2874
|
-
(
|
|
2889
|
+
(n(!0), i(d, null, y(he.value, (e, s) => (n(), i(d, {
|
|
2875
2890
|
key: `xLabel_plot_${e.id}`
|
|
2876
2891
|
}, [
|
|
2877
|
-
(
|
|
2878
|
-
key: `xLabel_plot_${s}_${
|
|
2892
|
+
(n(!0), i(d, null, y(e.plots, (t, u) => (n(), i(d, {
|
|
2893
|
+
key: `xLabel_plot_${s}_${u}`
|
|
2879
2894
|
}, [
|
|
2880
|
-
t &&
|
|
2895
|
+
t && u === 0 && e.showSerieName && e.showSerieName === "start" ? (n(), i("text", {
|
|
2881
2896
|
key: 0,
|
|
2882
2897
|
x: t.x - x.value.plotLabels,
|
|
2883
2898
|
y: t.y,
|
|
@@ -2892,9 +2907,9 @@ const yo = { chart: { userOptions: { show: !1 }, grid: { showVerticalLines: !1,
|
|
|
2892
2907
|
y: t.y,
|
|
2893
2908
|
maxWords: 2
|
|
2894
2909
|
}),
|
|
2895
|
-
style:
|
|
2896
|
-
}, null, 12,
|
|
2897
|
-
t &&
|
|
2910
|
+
style: _(`opacity:${I.value ? I.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
2911
|
+
}, null, 12, un)) : h("", !0),
|
|
2912
|
+
t && u === e.plots.length - 1 && e.showSerieName && e.showSerieName === "end" ? (n(), i("text", {
|
|
2898
2913
|
key: 1,
|
|
2899
2914
|
x: t.x + x.value.plotLabels,
|
|
2900
2915
|
y: t.y,
|
|
@@ -2909,14 +2924,14 @@ const yo = { chart: { userOptions: { show: !1 }, grid: { showVerticalLines: !1,
|
|
|
2909
2924
|
y: t.y,
|
|
2910
2925
|
maxWords: 2
|
|
2911
2926
|
}),
|
|
2912
|
-
style:
|
|
2913
|
-
}, null, 12,
|
|
2927
|
+
style: _(`opacity:${I.value ? I.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
2928
|
+
}, null, 12, nn)) : h("", !0)
|
|
2914
2929
|
], 64))), 128))
|
|
2915
2930
|
], 64))), 128)),
|
|
2916
|
-
(
|
|
2931
|
+
(n(!0), i(d, null, y([...he.value, ...le.value, ...ye.value], (e, s) => (n(), i(d, {
|
|
2917
2932
|
key: `progression-${s}`
|
|
2918
2933
|
}, [
|
|
2919
|
-
Object.hasOwn(e, "useProgression") && e.useProgression === !0 && !isNaN(v(Ae)(e.plots).trend) ? (
|
|
2934
|
+
Object.hasOwn(e, "useProgression") && e.useProgression === !0 && !isNaN(v(Ae)(e.plots).trend) ? (n(), i("g", cn, [
|
|
2920
2935
|
p("defs", null, [
|
|
2921
2936
|
p("marker", {
|
|
2922
2937
|
id: `progression_arrow_${s}`,
|
|
@@ -2935,10 +2950,10 @@ const yo = { chart: { userOptions: { show: !1 }, grid: { showVerticalLines: !1,
|
|
|
2935
2950
|
stroke: l.value.chart.backgroundColor,
|
|
2936
2951
|
"stroke-width": "1",
|
|
2937
2952
|
"stroke-linejoin": "round"
|
|
2938
|
-
}, null, 8,
|
|
2939
|
-
], 8,
|
|
2953
|
+
}, null, 8, dn)
|
|
2954
|
+
], 8, vn)
|
|
2940
2955
|
]),
|
|
2941
|
-
e.plots.length > 1 ? (
|
|
2956
|
+
e.plots.length > 1 ? (n(), i("line", {
|
|
2942
2957
|
key: 0,
|
|
2943
2958
|
x1: v(Ae)(e.plots).x1 + (e.type === "bar" ? He() : 0),
|
|
2944
2959
|
x2: v(Ae)(e.plots).x2 + (e.type === "bar" ? He() : 0),
|
|
@@ -2950,8 +2965,8 @@ const yo = { chart: { userOptions: { show: !1 }, grid: { showVerticalLines: !1,
|
|
|
2950
2965
|
"stroke-linecap": "round",
|
|
2951
2966
|
"stroke-linejoin": "round",
|
|
2952
2967
|
"marker-end": `url(#progression_arrow_${s})`
|
|
2953
|
-
}, null, 8,
|
|
2954
|
-
e.plots.length > 1 ? (
|
|
2968
|
+
}, null, 8, hn)) : h("", !0),
|
|
2969
|
+
e.plots.length > 1 ? (n(), i("line", {
|
|
2955
2970
|
key: 1,
|
|
2956
2971
|
x1: v(Ae)(e.plots).x1 + (e.type === "bar" ? He() : 0),
|
|
2957
2972
|
x2: v(Ae)(e.plots).x2 + (e.type === "bar" ? He() : 0),
|
|
@@ -2963,8 +2978,8 @@ const yo = { chart: { userOptions: { show: !1 }, grid: { showVerticalLines: !1,
|
|
|
2963
2978
|
"stroke-linecap": "round",
|
|
2964
2979
|
"stroke-linejoin": "round",
|
|
2965
2980
|
"marker-end": `url(#progression_arrow_${s})`
|
|
2966
|
-
}, null, 8,
|
|
2967
|
-
e.plots.length > 1 ? (
|
|
2981
|
+
}, null, 8, fn)) : h("", !0),
|
|
2982
|
+
e.plots.length > 1 ? (n(), i("text", {
|
|
2968
2983
|
key: 2,
|
|
2969
2984
|
"text-anchor": "middle",
|
|
2970
2985
|
x: v(Ae)(e.plots).x2 + (e.type === "bar" ? He() : 0),
|
|
@@ -2980,13 +2995,13 @@ const yo = { chart: { userOptions: { show: !1 }, grid: { showVerticalLines: !1,
|
|
|
2980
2995
|
v: v(Ae)(e.plots).trend * 100,
|
|
2981
2996
|
s: "%",
|
|
2982
2997
|
r: 2
|
|
2983
|
-
})), 9,
|
|
2998
|
+
})), 9, gn)) : h("", !0)
|
|
2984
2999
|
])) : h("", !0)
|
|
2985
3000
|
], 64))), 128)),
|
|
2986
|
-
f.value.useIndividualScale && !f.value.isStacked ? (
|
|
3001
|
+
f.value.useIndividualScale && !f.value.isStacked ? (n(), i(d, { key: 13 }, [
|
|
2987
3002
|
p("defs", null, [
|
|
2988
|
-
(
|
|
2989
|
-
id: `individual_scale_gradient_${
|
|
3003
|
+
(n(!0), i(d, null, y(Tl.value, (e, s) => (n(), i("linearGradient", {
|
|
3004
|
+
id: `individual_scale_gradient_${O.value}_${s}`,
|
|
2990
3005
|
x1: "0%",
|
|
2991
3006
|
x2: "100%",
|
|
2992
3007
|
y1: "0%",
|
|
@@ -2996,26 +3011,26 @@ const yo = { chart: { userOptions: { show: !1 }, grid: { showVerticalLines: !1,
|
|
|
2996
3011
|
offset: "0%",
|
|
2997
3012
|
"stop-color": l.value.chart.backgroundColor,
|
|
2998
3013
|
"stop-opacity": "0"
|
|
2999
|
-
}, null, 8,
|
|
3014
|
+
}, null, 8, bn),
|
|
3000
3015
|
p("stop", {
|
|
3001
3016
|
offset: "100%",
|
|
3002
3017
|
"stop-color": e.color,
|
|
3003
3018
|
"stop-opacity": "0.2"
|
|
3004
|
-
}, null, 8,
|
|
3005
|
-
], 8,
|
|
3019
|
+
}, null, 8, pn)
|
|
3020
|
+
], 8, mn))), 256))
|
|
3006
3021
|
]),
|
|
3007
|
-
(
|
|
3022
|
+
(n(!0), i(d, null, y(Tl.value, (e, s) => (n(), i("rect", {
|
|
3008
3023
|
x: e.x - l.value.chart.grid.labels.yAxis.labelWidth + U.value - c.value.individualOffsetX,
|
|
3009
3024
|
y: c.value?.top,
|
|
3010
3025
|
width: l.value.chart.grid.labels.yAxis.labelWidth + c.value.individualOffsetX,
|
|
3011
3026
|
height: c.value.height < 0 ? 10 : c.value.height,
|
|
3012
|
-
fill: I.value === e.groupId ? `url(#individual_scale_gradient_${
|
|
3027
|
+
fill: I.value === e.groupId ? `url(#individual_scale_gradient_${O.value}_${s})` : "transparent",
|
|
3013
3028
|
onMouseenter: (t) => I.value = e.groupId,
|
|
3014
3029
|
onMouseleave: r[0] || (r[0] = (t) => I.value = null)
|
|
3015
|
-
}, null, 40,
|
|
3030
|
+
}, null, 40, xn))), 256))
|
|
3016
3031
|
], 64)) : h("", !0),
|
|
3017
3032
|
p("g", null, [
|
|
3018
|
-
l.value.chart.grid.labels.axis.yLabel && !f.value.useIndividualScale ? (
|
|
3033
|
+
l.value.chart.grid.labels.axis.yLabel && !f.value.useIndividualScale ? (n(), i("text", {
|
|
3019
3034
|
key: 0,
|
|
3020
3035
|
ref_key: "yAxisLabel",
|
|
3021
3036
|
ref: pa,
|
|
@@ -3024,8 +3039,8 @@ const yo = { chart: { userOptions: { show: !1 }, grid: { showVerticalLines: !1,
|
|
|
3024
3039
|
transform: `translate(${l.value.chart.grid.labels.axis.fontSize}, ${c.value?.top + c.value.height / 2}) rotate(-90)`,
|
|
3025
3040
|
"text-anchor": "middle",
|
|
3026
3041
|
style: { transition: "none" }
|
|
3027
|
-
}, te(l.value.chart.grid.labels.axis.yLabel), 9,
|
|
3028
|
-
l.value.chart.grid.labels.axis.xLabel ? (
|
|
3042
|
+
}, te(l.value.chart.grid.labels.axis.yLabel), 9, yn)) : h("", !0),
|
|
3043
|
+
l.value.chart.grid.labels.axis.xLabel ? (n(), i("text", {
|
|
3029
3044
|
key: 1,
|
|
3030
3045
|
ref_key: "xAxisLabel",
|
|
3031
3046
|
ref: ba,
|
|
@@ -3034,14 +3049,14 @@ const yo = { chart: { userOptions: { show: !1 }, grid: { showVerticalLines: !1,
|
|
|
3034
3049
|
y: ie.value - 3,
|
|
3035
3050
|
"font-size": x.value.yAxis,
|
|
3036
3051
|
fill: l.value.chart.grid.labels.color
|
|
3037
|
-
}, te(l.value.chart.grid.labels.axis.xLabel), 9,
|
|
3052
|
+
}, te(l.value.chart.grid.labels.axis.xLabel), 9, kn)) : h("", !0)
|
|
3038
3053
|
]),
|
|
3039
|
-
l.value.chart.grid.labels.xAxisLabels.show ? (
|
|
3054
|
+
l.value.chart.grid.labels.xAxisLabels.show ? (n(), i("g", {
|
|
3040
3055
|
key: 14,
|
|
3041
3056
|
ref_key: "timeLabelsEls",
|
|
3042
3057
|
ref: Rl
|
|
3043
3058
|
}, [
|
|
3044
|
-
a.$slots["time-label"] ? (
|
|
3059
|
+
a.$slots["time-label"] ? (n(!0), i(d, { key: 0 }, y(jl.value, (e, s) => D(a.$slots, "time-label", al({
|
|
3045
3060
|
key: `time_label_${e.id}`,
|
|
3046
3061
|
ref_for: !0
|
|
3047
3062
|
}, {
|
|
@@ -3054,49 +3069,49 @@ const yo = { chart: { userOptions: { show: !1 }, grid: { showVerticalLines: !1,
|
|
|
3054
3069
|
content: e.text,
|
|
3055
3070
|
textAnchor: l.value.chart.grid.labels.xAxisLabels.rotation > 0 ? "start" : l.value.chart.grid.labels.xAxisLabels.rotation < 0 ? "end" : "middle",
|
|
3056
3071
|
show: e && e.text
|
|
3057
|
-
}), void 0, !0)), 128)) : (
|
|
3072
|
+
}), void 0, !0)), 128)) : (n(!0), i(d, { key: 1 }, y(jl.value, (e, s) => (n(), i("g", {
|
|
3058
3073
|
key: `time_label_${s}`
|
|
3059
3074
|
}, [
|
|
3060
|
-
e && e.text ? (
|
|
3075
|
+
e && e.text ? (n(), i(d, { key: 0 }, [
|
|
3061
3076
|
String(e.text).includes(`
|
|
3062
|
-
`) ? (
|
|
3077
|
+
`) ? (n(), i("text", {
|
|
3063
3078
|
key: 1,
|
|
3064
3079
|
class: "vue-data-ui-time-label",
|
|
3065
3080
|
"text-anchor": l.value.chart.grid.labels.xAxisLabels.rotation > 0 ? "start" : l.value.chart.grid.labels.xAxisLabels.rotation < 0 ? "end" : "middle",
|
|
3066
3081
|
"font-size": x.value.xAxis,
|
|
3067
3082
|
fill: l.value.chart.grid.labels.xAxisLabels.color,
|
|
3068
3083
|
transform: `translate(${c.value?.left + c.value.width / S.value * s + c.value.width / S.value / 2}, ${c.value?.bottom + x.value.xAxis * 1.5}), rotate(${l.value.chart.grid.labels.xAxisLabels.rotation})`,
|
|
3069
|
-
style:
|
|
3070
|
-
cursor:
|
|
3084
|
+
style: _({
|
|
3085
|
+
cursor: ht() && Ze.value ? "pointer" : "default"
|
|
3071
3086
|
}),
|
|
3072
|
-
innerHTML: v(
|
|
3087
|
+
innerHTML: v(os)({
|
|
3073
3088
|
content: String(e.text),
|
|
3074
3089
|
fontSize: x.value.xAxis,
|
|
3075
3090
|
fill: l.value.chart.grid.labels.xAxisLabels.color,
|
|
3076
3091
|
x: 0,
|
|
3077
3092
|
y: 0
|
|
3078
3093
|
}),
|
|
3079
|
-
onClick: () =>
|
|
3080
|
-
}, null, 12,
|
|
3094
|
+
onClick: () => xt(e, s)
|
|
3095
|
+
}, null, 12, _n)) : (n(), i("text", {
|
|
3081
3096
|
key: 0,
|
|
3082
3097
|
class: "vue-data-ui-time-label",
|
|
3083
3098
|
"text-anchor": l.value.chart.grid.labels.xAxisLabels.rotation > 0 ? "start" : l.value.chart.grid.labels.xAxisLabels.rotation < 0 ? "end" : "middle",
|
|
3084
3099
|
"font-size": x.value.xAxis,
|
|
3085
3100
|
fill: l.value.chart.grid.labels.xAxisLabels.color,
|
|
3086
3101
|
transform: `translate(${c.value?.left + c.value.width / S.value * s + c.value.width / S.value / 2}, ${c.value?.bottom + x.value.xAxis * 1.5}), rotate(${l.value.chart.grid.labels.xAxisLabels.rotation})`,
|
|
3087
|
-
style:
|
|
3088
|
-
cursor:
|
|
3102
|
+
style: _({
|
|
3103
|
+
cursor: ht() && Ze.value ? "pointer" : "default"
|
|
3089
3104
|
}),
|
|
3090
|
-
onClick: () =>
|
|
3091
|
-
}, te(e.text || ""), 13,
|
|
3105
|
+
onClick: () => xt(e, s)
|
|
3106
|
+
}, te(e.text || ""), 13, Cn))
|
|
3092
3107
|
], 64)) : h("", !0)
|
|
3093
3108
|
]))), 128))
|
|
3094
3109
|
], 512)) : h("", !0),
|
|
3095
|
-
|
|
3096
|
-
(
|
|
3110
|
+
Dt.value.length && !f.value.isStacked ? (n(), i("g", wn, [
|
|
3111
|
+
(n(!0), i(d, null, y(Dt.value, (e) => (n(), i("g", {
|
|
3097
3112
|
key: e.uid
|
|
3098
3113
|
}, [
|
|
3099
|
-
e.yTop && e.show && isFinite(e.yTop) ? (
|
|
3114
|
+
e.yTop && e.show && isFinite(e.yTop) ? (n(), i("line", {
|
|
3100
3115
|
key: 0,
|
|
3101
3116
|
x1: e.x1,
|
|
3102
3117
|
y1: e.yTop,
|
|
@@ -3107,8 +3122,8 @@ const yo = { chart: { userOptions: { show: !1 }, grid: { showVerticalLines: !1,
|
|
|
3107
3122
|
"stroke-dasharray": e.config.line.strokeDasharray,
|
|
3108
3123
|
"stroke-linecap": "round",
|
|
3109
3124
|
style: { animation: "none !important" }
|
|
3110
|
-
}, null, 8,
|
|
3111
|
-
e.yBottom && e.show && isFinite(e.yBottom) ? (
|
|
3125
|
+
}, null, 8, Sn)) : h("", !0),
|
|
3126
|
+
e.yBottom && e.show && isFinite(e.yBottom) ? (n(), i("line", {
|
|
3112
3127
|
key: 1,
|
|
3113
3128
|
x1: e.x1,
|
|
3114
3129
|
y1: e.yBottom,
|
|
@@ -3119,21 +3134,21 @@ const yo = { chart: { userOptions: { show: !1 }, grid: { showVerticalLines: !1,
|
|
|
3119
3134
|
"stroke-dasharray": e.config.line.strokeDasharray,
|
|
3120
3135
|
"stroke-linecap": "round",
|
|
3121
3136
|
style: { animation: "none !important" }
|
|
3122
|
-
}, null, 8,
|
|
3123
|
-
e.hasArea && e.show && isFinite(e.yTop) && isFinite(e.yBottom) ? (
|
|
3137
|
+
}, null, 8, An)) : h("", !0),
|
|
3138
|
+
e.hasArea && e.show && isFinite(e.yTop) && isFinite(e.yBottom) ? (n(), i("rect", {
|
|
3124
3139
|
key: 2,
|
|
3125
3140
|
y: Math.min(e.yTop, e.yBottom),
|
|
3126
3141
|
x: e.x1,
|
|
3127
3142
|
width: c.value.width,
|
|
3128
|
-
height: v(
|
|
3143
|
+
height: v(P)(e.areaHeight, 0),
|
|
3129
3144
|
fill: v(ze)(e.config.area.fill, e.config.area.opacity),
|
|
3130
3145
|
style: { animation: "none !important" }
|
|
3131
|
-
}, null, 8,
|
|
3132
|
-
e.config.label.text && e.show && isFinite(e._box.y) ? (
|
|
3146
|
+
}, null, 8, $n)) : h("", !0),
|
|
3147
|
+
e.config.label.text && e.show && isFinite(e._box.y) ? (n(), i("rect", al({
|
|
3133
3148
|
key: 3,
|
|
3134
3149
|
class: "vue-ui-xy-annotation-label-box"
|
|
3135
3150
|
}, { ref_for: !0 }, e._box, { style: { animation: "none !important", transition: "none !important" } }), null, 16)) : h("", !0),
|
|
3136
|
-
e.config.label.text && e.show && isFinite(e._text.y) ? (
|
|
3151
|
+
e.config.label.text && e.show && isFinite(e._text.y) ? (n(), i("text", {
|
|
3137
3152
|
key: 4,
|
|
3138
3153
|
id: e.id,
|
|
3139
3154
|
class: "vue-ui-xy-annotation-label",
|
|
@@ -3142,11 +3157,11 @@ const yo = { chart: { userOptions: { show: !1 }, grid: { showVerticalLines: !1,
|
|
|
3142
3157
|
"font-size": e.config.label.fontSize,
|
|
3143
3158
|
fill: e.config.label.color,
|
|
3144
3159
|
"text-anchor": e.config.label.textAnchor
|
|
3145
|
-
}, te(e.config.label.text), 9,
|
|
3160
|
+
}, te(e.config.label.text), 9, Ln)) : h("", !0)
|
|
3146
3161
|
]))), 128))
|
|
3147
3162
|
])) : h("", !0),
|
|
3148
|
-
l.value.chart.timeTag.show && (![null, void 0].includes(C.value) || ![null, void 0].includes(
|
|
3149
|
-
(
|
|
3163
|
+
l.value.chart.timeTag.show && (![null, void 0].includes(C.value) || ![null, void 0].includes(N.value)) ? (n(), i("g", Mn, [
|
|
3164
|
+
(n(), i("foreignObject", {
|
|
3150
3165
|
x: Mr(),
|
|
3151
3166
|
y: c.value?.bottom,
|
|
3152
3167
|
width: "200",
|
|
@@ -3155,25 +3170,25 @@ const yo = { chart: { userOptions: { show: !1 }, grid: { showVerticalLines: !1,
|
|
|
3155
3170
|
}, [
|
|
3156
3171
|
p("div", {
|
|
3157
3172
|
ref_key: "timeTagEl",
|
|
3158
|
-
ref:
|
|
3173
|
+
ref: jt,
|
|
3159
3174
|
class: "vue-ui-xy-time-tag",
|
|
3160
|
-
style:
|
|
3175
|
+
style: _(`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`),
|
|
3161
3176
|
innerHTML: Tr.value
|
|
3162
|
-
}, null, 12,
|
|
3163
|
-
], 8,
|
|
3177
|
+
}, null, 12, zn)
|
|
3178
|
+
], 8, Tn)),
|
|
3164
3179
|
p("circle", {
|
|
3165
|
-
cx: c.value?.left + c.value.width / S.value * ((C.value !== null ? C.value : 0) || (
|
|
3180
|
+
cx: c.value?.left + c.value.width / S.value * ((C.value !== null ? C.value : 0) || (N.value !== null ? N.value : 0)) + c.value.width / S.value / 2,
|
|
3166
3181
|
cy: c.value?.bottom,
|
|
3167
3182
|
r: l.value.chart.timeTag.circleMarker.radius,
|
|
3168
3183
|
fill: l.value.chart.timeTag.circleMarker.color
|
|
3169
|
-
}, null, 8,
|
|
3184
|
+
}, null, 8, In)
|
|
3170
3185
|
])) : h("", !0)
|
|
3171
3186
|
])) : h("", !0),
|
|
3172
|
-
|
|
3187
|
+
ot.value ? (n(), i("rect", al({ key: 2 }, Zo.value, {
|
|
3173
3188
|
"data-start": b.value.start,
|
|
3174
3189
|
"data-end": b.value.end
|
|
3175
|
-
}), null, 16,
|
|
3176
|
-
|
|
3190
|
+
}), null, 16, Fn)) : h("", !0),
|
|
3191
|
+
D(a.$slots, "svg", {
|
|
3177
3192
|
svg: {
|
|
3178
3193
|
...Yo.value,
|
|
3179
3194
|
isPrintingImg: v(ql) | v(La) | Yl.value,
|
|
@@ -3183,36 +3198,36 @@ const yo = { chart: { userOptions: { show: !1 }, grid: { showVerticalLines: !1,
|
|
|
3183
3198
|
}
|
|
3184
3199
|
}, void 0, !0)
|
|
3185
3200
|
], 512)
|
|
3186
|
-
], 46,
|
|
3187
|
-
a.$slots.watermark ? (
|
|
3188
|
-
|
|
3201
|
+
], 46, Ss)),
|
|
3202
|
+
a.$slots.watermark ? (n(), i("div", Bn, [
|
|
3203
|
+
D(a.$slots, "watermark", me(be({ isPrinting: v(ql) || v(La) || Yl.value || Xl.value })), void 0, !0)
|
|
3189
3204
|
])) : h("", !0),
|
|
3190
|
-
(
|
|
3205
|
+
(n(!0), i(d, null, y(le.value, (e, s) => (n(), i(d, {
|
|
3191
3206
|
key: `tag_line_${e.id}`
|
|
3192
3207
|
}, [
|
|
3193
|
-
(
|
|
3194
|
-
key: `tag_line_${s}_${
|
|
3208
|
+
(n(!0), i(d, null, y(e.plots, (t, u) => (n(), i(d, {
|
|
3209
|
+
key: `tag_line_${s}_${u}`
|
|
3195
3210
|
}, [
|
|
3196
|
-
[
|
|
3211
|
+
[N.value, C.value, Ue.value].includes(u) && e.useTag && e.useTag === "end" && l.value.line.tag.followValue ? (n(), i("div", {
|
|
3197
3212
|
key: 0,
|
|
3198
3213
|
ref_for: !0,
|
|
3199
|
-
ref: (o) => Kl(s,
|
|
3214
|
+
ref: (o) => Kl(s, u, o, "right", "line"),
|
|
3200
3215
|
class: "vue-ui-xy-tag",
|
|
3201
3216
|
"data-tag": "right",
|
|
3202
|
-
style:
|
|
3217
|
+
style: _({
|
|
3203
3218
|
position: "fixed",
|
|
3204
3219
|
top: v(Xe)({
|
|
3205
3220
|
svgElement: ce.value,
|
|
3206
3221
|
x: c.value?.right + l.value.line.tag.fontSize / 1.5,
|
|
3207
3222
|
y: t.y,
|
|
3208
|
-
element: De.value[`${s}_${
|
|
3223
|
+
element: De.value[`${s}_${u}_right_line`],
|
|
3209
3224
|
position: "right"
|
|
3210
3225
|
})?.top + "px",
|
|
3211
3226
|
left: v(Xe)({
|
|
3212
3227
|
svgElement: ce.value,
|
|
3213
3228
|
x: c.value?.right + l.value.line.tag.fontSize / 1.5,
|
|
3214
3229
|
y: t.y,
|
|
3215
|
-
element: De.value[`${s}_${
|
|
3230
|
+
element: De.value[`${s}_${u}_right_line`],
|
|
3216
3231
|
position: "right"
|
|
3217
3232
|
})?.left + "px",
|
|
3218
3233
|
height: "fit-content",
|
|
@@ -3224,47 +3239,47 @@ const yo = { chart: { userOptions: { show: !1 }, grid: { showVerticalLines: !1,
|
|
|
3224
3239
|
opacity: 1
|
|
3225
3240
|
})
|
|
3226
3241
|
}, [
|
|
3227
|
-
(
|
|
3242
|
+
(n(), i("svg", On, [
|
|
3228
3243
|
p("path", {
|
|
3229
3244
|
d: "M 0,10 10,0 10,20 Z",
|
|
3230
3245
|
fill: e.color,
|
|
3231
3246
|
stroke: "none"
|
|
3232
|
-
}, null, 8,
|
|
3247
|
+
}, null, 8, Nn)
|
|
3233
3248
|
])),
|
|
3234
3249
|
p("div", {
|
|
3235
3250
|
class: "vue-ui-xy-tag-content",
|
|
3236
|
-
innerHTML: v(
|
|
3251
|
+
innerHTML: v(ne)(
|
|
3237
3252
|
l.value.line.tag.formatter,
|
|
3238
3253
|
t.value,
|
|
3239
3254
|
e.name,
|
|
3240
3255
|
{
|
|
3241
3256
|
datapoint: t,
|
|
3242
|
-
seriesIndex:
|
|
3257
|
+
seriesIndex: u,
|
|
3243
3258
|
serieName: e.name
|
|
3244
3259
|
}
|
|
3245
3260
|
)
|
|
3246
|
-
}, null, 8,
|
|
3261
|
+
}, null, 8, Pn)
|
|
3247
3262
|
], 4)) : h("", !0),
|
|
3248
|
-
[
|
|
3263
|
+
[N.value, C.value, Ue.value].includes(u) && e.useTag && e.useTag === "start" && l.value.line.tag.followValue ? (n(), i("div", {
|
|
3249
3264
|
key: 1,
|
|
3250
3265
|
ref_for: !0,
|
|
3251
|
-
ref: (o) => Kl(s,
|
|
3266
|
+
ref: (o) => Kl(s, u, o, "left", "line"),
|
|
3252
3267
|
class: "vue-ui-xy-tag",
|
|
3253
3268
|
"data-tag": "left",
|
|
3254
|
-
style:
|
|
3269
|
+
style: _({
|
|
3255
3270
|
position: "fixed",
|
|
3256
3271
|
top: v(Xe)({
|
|
3257
3272
|
svgElement: ce.value,
|
|
3258
3273
|
x: c.value?.left - l.value.line.tag.fontSize / 1.5,
|
|
3259
3274
|
y: t.y,
|
|
3260
|
-
element: De.value[`${s}_${
|
|
3275
|
+
element: De.value[`${s}_${u}_left_line`],
|
|
3261
3276
|
position: "left"
|
|
3262
3277
|
})?.top + "px",
|
|
3263
3278
|
left: v(Xe)({
|
|
3264
3279
|
svgElement: ce.value,
|
|
3265
3280
|
x: c.value?.left - l.value.line.tag.fontSize / 1.5,
|
|
3266
3281
|
y: t.y,
|
|
3267
|
-
element: De.value[`${s}_${
|
|
3282
|
+
element: De.value[`${s}_${u}_left_line`],
|
|
3268
3283
|
position: "left"
|
|
3269
3284
|
})?.left + "px",
|
|
3270
3285
|
height: "fit-content",
|
|
@@ -3276,55 +3291,55 @@ const yo = { chart: { userOptions: { show: !1 }, grid: { showVerticalLines: !1,
|
|
|
3276
3291
|
opacity: 1
|
|
3277
3292
|
})
|
|
3278
3293
|
}, [
|
|
3279
|
-
(
|
|
3294
|
+
(n(), i("svg", Dn, [
|
|
3280
3295
|
p("path", {
|
|
3281
3296
|
d: "M 0,0 10,10 0,20 Z",
|
|
3282
3297
|
fill: e.color,
|
|
3283
3298
|
stroke: "none"
|
|
3284
|
-
}, null, 8,
|
|
3299
|
+
}, null, 8, Vn)
|
|
3285
3300
|
])),
|
|
3286
3301
|
p("div", {
|
|
3287
3302
|
class: "vue-ui-xy-tag-content",
|
|
3288
|
-
innerHTML: v(
|
|
3303
|
+
innerHTML: v(ne)(
|
|
3289
3304
|
l.value.line.tag.formatter,
|
|
3290
3305
|
t.value,
|
|
3291
3306
|
e.name,
|
|
3292
3307
|
{
|
|
3293
3308
|
datapoint: t,
|
|
3294
|
-
seriesIndex:
|
|
3309
|
+
seriesIndex: u,
|
|
3295
3310
|
serieName: e.name
|
|
3296
3311
|
}
|
|
3297
3312
|
)
|
|
3298
|
-
}, null, 8,
|
|
3313
|
+
}, null, 8, Rn)
|
|
3299
3314
|
], 4)) : h("", !0)
|
|
3300
3315
|
], 64))), 128))
|
|
3301
3316
|
], 64))), 128)),
|
|
3302
|
-
(
|
|
3317
|
+
(n(!0), i(d, null, y(he.value, (e, s) => (n(), i(d, {
|
|
3303
3318
|
key: `tag_plot_${e.id}`
|
|
3304
3319
|
}, [
|
|
3305
|
-
(
|
|
3306
|
-
key: `tag_plot_${s}_${
|
|
3320
|
+
(n(!0), i(d, null, y(e.plots, (t, u) => (n(), i(d, {
|
|
3321
|
+
key: `tag_plot_${s}_${u}`
|
|
3307
3322
|
}, [
|
|
3308
|
-
[
|
|
3323
|
+
[N.value, C.value, Ue.value].includes(u) && e.useTag && e.useTag === "end" && l.value.plot.tag.followValue ? (n(), i("div", {
|
|
3309
3324
|
key: 0,
|
|
3310
3325
|
ref_for: !0,
|
|
3311
|
-
ref: (o) => Kl(s,
|
|
3326
|
+
ref: (o) => Kl(s, u, o, "right", "plot"),
|
|
3312
3327
|
class: "vue-ui-xy-tag",
|
|
3313
3328
|
"data-tag": "right",
|
|
3314
|
-
style:
|
|
3329
|
+
style: _({
|
|
3315
3330
|
position: "fixed",
|
|
3316
3331
|
top: v(Xe)({
|
|
3317
3332
|
svgElement: ce.value,
|
|
3318
3333
|
x: c.value?.right + l.value.plot.tag.fontSize / 1.5,
|
|
3319
3334
|
y: t.y,
|
|
3320
|
-
element: De.value[`${s}_${
|
|
3335
|
+
element: De.value[`${s}_${u}_right_plot`],
|
|
3321
3336
|
position: "right"
|
|
3322
3337
|
})?.top + "px",
|
|
3323
3338
|
left: v(Xe)({
|
|
3324
3339
|
svgElement: ce.value,
|
|
3325
3340
|
x: c.value?.right + l.value.plot.tag.fontSize / 1.5,
|
|
3326
3341
|
y: t.y,
|
|
3327
|
-
element: De.value[`${s}_${
|
|
3342
|
+
element: De.value[`${s}_${u}_right_plot`],
|
|
3328
3343
|
position: "right"
|
|
3329
3344
|
})?.left + "px",
|
|
3330
3345
|
height: "fit-content",
|
|
@@ -3336,47 +3351,47 @@ const yo = { chart: { userOptions: { show: !1 }, grid: { showVerticalLines: !1,
|
|
|
3336
3351
|
opacity: 1
|
|
3337
3352
|
})
|
|
3338
3353
|
}, [
|
|
3339
|
-
(
|
|
3354
|
+
(n(), i("svg", En, [
|
|
3340
3355
|
p("path", {
|
|
3341
3356
|
d: "M 0,10 10,0 10,20 Z",
|
|
3342
3357
|
fill: e.color,
|
|
3343
3358
|
stroke: "none"
|
|
3344
|
-
}, null, 8,
|
|
3359
|
+
}, null, 8, Hn)
|
|
3345
3360
|
])),
|
|
3346
3361
|
p("div", {
|
|
3347
3362
|
class: "vue-ui-xy-tag-content",
|
|
3348
|
-
innerHTML: v(
|
|
3363
|
+
innerHTML: v(ne)(
|
|
3349
3364
|
l.value.plot.tag.formatter,
|
|
3350
3365
|
t.value,
|
|
3351
3366
|
e.name,
|
|
3352
3367
|
{
|
|
3353
3368
|
datapoint: t,
|
|
3354
|
-
seriesIndex:
|
|
3369
|
+
seriesIndex: u,
|
|
3355
3370
|
serieName: e.name
|
|
3356
3371
|
}
|
|
3357
3372
|
)
|
|
3358
|
-
}, null, 8,
|
|
3373
|
+
}, null, 8, Wn)
|
|
3359
3374
|
], 4)) : h("", !0),
|
|
3360
|
-
[
|
|
3375
|
+
[N.value, C.value, Ue.value].includes(u) && e.useTag && e.useTag === "start" && l.value.plot.tag.followValue ? (n(), i("div", {
|
|
3361
3376
|
key: 1,
|
|
3362
3377
|
ref_for: !0,
|
|
3363
|
-
ref: (o) => Kl(s,
|
|
3378
|
+
ref: (o) => Kl(s, u, o, "left", "plot"),
|
|
3364
3379
|
class: "vue-ui-xy-tag",
|
|
3365
3380
|
"data-tag": "left",
|
|
3366
|
-
style:
|
|
3381
|
+
style: _({
|
|
3367
3382
|
position: "fixed",
|
|
3368
3383
|
top: v(Xe)({
|
|
3369
3384
|
svgElement: ce.value,
|
|
3370
3385
|
x: c.value?.left - l.value.plot.tag.fontSize / 1.5,
|
|
3371
3386
|
y: t.y,
|
|
3372
|
-
element: De.value[`${s}_${
|
|
3387
|
+
element: De.value[`${s}_${u}_left_plot`],
|
|
3373
3388
|
position: "left"
|
|
3374
3389
|
})?.top + "px",
|
|
3375
3390
|
left: v(Xe)({
|
|
3376
3391
|
svgElement: ce.value,
|
|
3377
3392
|
x: c.value?.left - l.value.plot.tag.fontSize / 1.5,
|
|
3378
3393
|
y: t.y,
|
|
3379
|
-
element: De.value[`${s}_${
|
|
3394
|
+
element: De.value[`${s}_${u}_left_plot`],
|
|
3380
3395
|
position: "left"
|
|
3381
3396
|
})?.left + "px",
|
|
3382
3397
|
height: "fit-content",
|
|
@@ -3388,33 +3403,34 @@ const yo = { chart: { userOptions: { show: !1 }, grid: { showVerticalLines: !1,
|
|
|
3388
3403
|
opacity: 1
|
|
3389
3404
|
})
|
|
3390
3405
|
}, [
|
|
3391
|
-
(
|
|
3406
|
+
(n(), i("svg", Yn, [
|
|
3392
3407
|
p("path", {
|
|
3393
3408
|
d: "M 0,0 10,10 0,20 Z",
|
|
3394
3409
|
fill: e.color,
|
|
3395
3410
|
stroke: "none"
|
|
3396
|
-
}, null, 8,
|
|
3411
|
+
}, null, 8, Xn)
|
|
3397
3412
|
])),
|
|
3398
3413
|
p("div", {
|
|
3399
3414
|
class: "vue-ui-xy-tag-content",
|
|
3400
|
-
innerHTML: v(
|
|
3415
|
+
innerHTML: v(ne)(
|
|
3401
3416
|
l.value.plot.tag.formatter,
|
|
3402
3417
|
t.value,
|
|
3403
3418
|
e.name,
|
|
3404
3419
|
{
|
|
3405
3420
|
datapoint: t,
|
|
3406
|
-
seriesIndex:
|
|
3421
|
+
seriesIndex: u,
|
|
3407
3422
|
serieName: e.name
|
|
3408
3423
|
}
|
|
3409
3424
|
)
|
|
3410
|
-
}, null, 8,
|
|
3425
|
+
}, null, 8, Gn)
|
|
3411
3426
|
], 4)) : h("", !0)
|
|
3412
3427
|
], 64))), 128))
|
|
3413
3428
|
], 64))), 128)),
|
|
3414
|
-
l.value.chart.zoom.show && Fe.value > 6 && Aa.value &&
|
|
3429
|
+
l.value.chart.zoom.show && Fe.value > 6 && Aa.value && Ct.value ? (n(), Se(xs, {
|
|
3415
3430
|
key: 5,
|
|
3416
3431
|
ref_key: "chartSlicer",
|
|
3417
3432
|
ref: Ie,
|
|
3433
|
+
uuid: O.value,
|
|
3418
3434
|
allMinimaps: Sr.value,
|
|
3419
3435
|
background: l.value.chart.zoom.color,
|
|
3420
3436
|
borderColor: l.value.chart.backgroundColor,
|
|
@@ -3429,12 +3445,12 @@ const yo = { chart: { userOptions: { show: !1 }, grid: { showVerticalLines: !1,
|
|
|
3429
3445
|
useResetSlot: l.value.chart.zoom.useResetSlot,
|
|
3430
3446
|
immediate: !l.value.chart.zoom.preview.enable,
|
|
3431
3447
|
inputColor: l.value.chart.zoom.color,
|
|
3432
|
-
isPreview:
|
|
3448
|
+
isPreview: ot.value,
|
|
3433
3449
|
labelLeft: ve.value[0] ? ve.value[0].text : "",
|
|
3434
3450
|
labelRight: ve.value.at(-1) ? ve.value.at(-1).text : "",
|
|
3435
3451
|
max: Fe.value,
|
|
3436
3452
|
min: 0,
|
|
3437
|
-
minimap:
|
|
3453
|
+
minimap: wr.value,
|
|
3438
3454
|
minimapCompact: l.value.chart.zoom.minimap.compact,
|
|
3439
3455
|
minimapFrameColor: l.value.chart.zoom.minimap.frameColor,
|
|
3440
3456
|
minimapIndicatorColor: l.value.chart.zoom.minimap.indicatorColor,
|
|
@@ -3444,7 +3460,7 @@ const yo = { chart: { userOptions: { show: !1 }, grid: { showVerticalLines: !1,
|
|
|
3444
3460
|
minimapSelectedColorOpacity: l.value.chart.zoom.minimap.selectedColorOpacity,
|
|
3445
3461
|
minimapSelectedIndex: C.value,
|
|
3446
3462
|
minimapSelectionRadius: l.value.chart.zoom.minimap.selectionRadius,
|
|
3447
|
-
preciseLabels:
|
|
3463
|
+
preciseLabels: Yt.value.length ? Yt.value : Ql.value,
|
|
3448
3464
|
refreshEndPoint: l.value.chart.zoom.endIndex !== null ? l.value.chart.zoom.endIndex + 1 : Math.max(...ma.dataset.map((e) => Re(e.series).length)),
|
|
3449
3465
|
refreshStartPoint: l.value.chart.zoom.startIndex !== null ? l.value.chart.zoom.startIndex : 0,
|
|
3450
3466
|
selectColor: l.value.chart.zoom.highlightColor,
|
|
@@ -3468,35 +3484,35 @@ const yo = { chart: { userOptions: { show: !1 }, grid: { showVerticalLines: !1,
|
|
|
3468
3484
|
handleFill: l.value.chart.zoom.minimap.handleFill,
|
|
3469
3485
|
handleWidth: l.value.chart.zoom.minimap.handleWidth,
|
|
3470
3486
|
isCursorPointer: Ze.value,
|
|
3471
|
-
onFutureEnd: r[1] || (r[1] = (e) =>
|
|
3472
|
-
onFutureStart: r[2] || (r[2] = (e) =>
|
|
3487
|
+
onFutureEnd: r[1] || (r[1] = (e) => rt("end", e)),
|
|
3488
|
+
onFutureStart: r[2] || (r[2] = (e) => rt("start", e)),
|
|
3473
3489
|
onReset: cr,
|
|
3474
3490
|
onTrapMouse: sr,
|
|
3475
3491
|
"onUpdate:end": ir,
|
|
3476
|
-
"onUpdate:start":
|
|
3492
|
+
"onUpdate:start": nr
|
|
3477
3493
|
}, {
|
|
3478
3494
|
"reset-action": X(({ reset: e }) => [
|
|
3479
|
-
|
|
3495
|
+
D(a.$slots, "reset-action", me(be({ reset: e })), void 0, !0)
|
|
3480
3496
|
]),
|
|
3481
3497
|
_: 3
|
|
3482
|
-
}, 8, ["allMinimaps", "background", "borderColor", "customFormat", "cutNullValues", "enableRangeHandles", "enableSelectionDrag", "end", "focusOnDrag", "focusRangeRatio", "fontSize", "useResetSlot", "immediate", "inputColor", "isPreview", "labelLeft", "labelRight", "max", "minimap", "minimapCompact", "minimapFrameColor", "minimapIndicatorColor", "minimapLineColor", "minimapMerged", "minimapSelectedColor", "minimapSelectedColorOpacity", "minimapSelectedIndex", "minimapSelectionRadius", "preciseLabels", "refreshEndPoint", "refreshStartPoint", "selectColor", "selectedSeries", "smoothMinimap", "start", "textColor", "timeLabels", "usePreciseLabels", "valueEnd", "valueStart", "verticalHandles", "minScale", "maxScale", "maxWidth", "additionalMinimapHeight", "handleType", "handleIconColor", "handleBorderWidth", "handleBorderColor", "handleFill", "handleWidth", "isCursorPointer"])) : h("", !0),
|
|
3498
|
+
}, 8, ["uuid", "allMinimaps", "background", "borderColor", "customFormat", "cutNullValues", "enableRangeHandles", "enableSelectionDrag", "end", "focusOnDrag", "focusRangeRatio", "fontSize", "useResetSlot", "immediate", "inputColor", "isPreview", "labelLeft", "labelRight", "max", "minimap", "minimapCompact", "minimapFrameColor", "minimapIndicatorColor", "minimapLineColor", "minimapMerged", "minimapSelectedColor", "minimapSelectedColorOpacity", "minimapSelectedIndex", "minimapSelectionRadius", "preciseLabels", "refreshEndPoint", "refreshStartPoint", "selectColor", "selectedSeries", "smoothMinimap", "start", "textColor", "timeLabels", "usePreciseLabels", "valueEnd", "valueStart", "verticalHandles", "minScale", "maxScale", "maxWidth", "additionalMinimapHeight", "handleType", "handleIconColor", "handleBorderWidth", "handleBorderColor", "handleFill", "handleWidth", "isCursorPointer"])) : h("", !0),
|
|
3483
3499
|
p("div", {
|
|
3484
|
-
id: `legend-bottom-${
|
|
3485
|
-
}, null, 8,
|
|
3486
|
-
|
|
3500
|
+
id: `legend-bottom-${O.value}`
|
|
3501
|
+
}, null, 8, qn),
|
|
3502
|
+
Ua.value ? (n(), Se(Yr, {
|
|
3487
3503
|
key: 6,
|
|
3488
|
-
to: l.value.chart.legend.position === "top" ? `#legend-top-${
|
|
3504
|
+
to: l.value.chart.legend.position === "top" ? `#legend-top-${O.value}` : `#legend-bottom-${O.value}`
|
|
3489
3505
|
}, [
|
|
3490
|
-
l.value.chart.legend.show ? (
|
|
3506
|
+
l.value.chart.legend.show ? (n(), i("div", {
|
|
3491
3507
|
key: 0,
|
|
3492
3508
|
ref_key: "chartLegend",
|
|
3493
3509
|
ref: rl,
|
|
3494
3510
|
class: "vue-ui-xy-legend",
|
|
3495
|
-
style:
|
|
3511
|
+
style: _({
|
|
3496
3512
|
fontSize: `var(--legend-font-size, ${l.value.chart.legend.fontSize ?? 14}px)`
|
|
3497
3513
|
})
|
|
3498
3514
|
}, [
|
|
3499
|
-
l.value.chart.legend.selectAllToggle.show && re.value.length > 2 && !v(oe) ? (
|
|
3515
|
+
l.value.chart.legend.selectAllToggle.show && re.value.length > 2 && !v(oe) ? (n(), Se(ks, {
|
|
3500
3516
|
key: 0,
|
|
3501
3517
|
backgroundColor: l.value.chart.legend.selectAllToggle.backgroundColor,
|
|
3502
3518
|
color: l.value.chart.legend.selectAllToggle.color,
|
|
@@ -3504,7 +3520,7 @@ const yo = { chart: { userOptions: { show: !1 }, grid: { showVerticalLines: !1,
|
|
|
3504
3520
|
checked: q.value.length > 0,
|
|
3505
3521
|
onToggle: fr
|
|
3506
3522
|
}, null, 8, ["backgroundColor", "color", "fontSize", "checked"])) : h("", !0),
|
|
3507
|
-
(
|
|
3523
|
+
(n(!0), i(d, null, y(re.value, (e, s) => (n(), i("div", {
|
|
3508
3524
|
key: `div_legend_item_${s}`,
|
|
3509
3525
|
onClick: (t) => oa(e),
|
|
3510
3526
|
class: ll({
|
|
@@ -3512,11 +3528,11 @@ const yo = { chart: { userOptions: { show: !1 }, grid: { showVerticalLines: !1,
|
|
|
3512
3528
|
"vue-ui-xy-legend-item": !0,
|
|
3513
3529
|
"vue-ui-xy-legend-item-segregated": q.value.includes(e.id)
|
|
3514
3530
|
}),
|
|
3515
|
-
style:
|
|
3531
|
+
style: _({
|
|
3516
3532
|
cursor: Ze.value ? "pointer" : "default"
|
|
3517
3533
|
})
|
|
3518
3534
|
}, [
|
|
3519
|
-
yl.value[e.type] === "line" ? (
|
|
3535
|
+
yl.value[e.type] === "line" ? (n(), i("svg", Zn, [
|
|
3520
3536
|
p("rect", {
|
|
3521
3537
|
x: "0",
|
|
3522
3538
|
y: "7.5",
|
|
@@ -3526,7 +3542,7 @@ const yo = { chart: { userOptions: { show: !1 }, grid: { showVerticalLines: !1,
|
|
|
3526
3542
|
height: "3",
|
|
3527
3543
|
width: "20",
|
|
3528
3544
|
fill: e.color
|
|
3529
|
-
}, null, 8,
|
|
3545
|
+
}, null, 8, Jn),
|
|
3530
3546
|
fl(ga, {
|
|
3531
3547
|
plot: { x: 10, y: 9 },
|
|
3532
3548
|
radius: 4,
|
|
@@ -3535,8 +3551,8 @@ const yo = { chart: { userOptions: { show: !1 }, grid: { showVerticalLines: !1,
|
|
|
3535
3551
|
stroke: l.value.chart.backgroundColor,
|
|
3536
3552
|
strokeWidth: 0.5
|
|
3537
3553
|
}, null, 8, ["color", "shape", "stroke"])
|
|
3538
|
-
])) : yl.value[e.type] === "bar" ? (
|
|
3539
|
-
yl.value[e.type] === "bar" && a.$slots.pattern ? (
|
|
3554
|
+
])) : yl.value[e.type] === "bar" ? (n(), i("svg", Kn, [
|
|
3555
|
+
yl.value[e.type] === "bar" && a.$slots.pattern ? (n(), i("rect", {
|
|
3540
3556
|
key: 0,
|
|
3541
3557
|
x: "4",
|
|
3542
3558
|
y: "4",
|
|
@@ -3545,8 +3561,8 @@ const yo = { chart: { userOptions: { show: !1 }, grid: { showVerticalLines: !1,
|
|
|
3545
3561
|
width: "32",
|
|
3546
3562
|
stroke: "none",
|
|
3547
3563
|
fill: e.color
|
|
3548
|
-
}, null, 8,
|
|
3549
|
-
yl.value[e.type] === "bar" ? (
|
|
3564
|
+
}, null, 8, Qn)) : h("", !0),
|
|
3565
|
+
yl.value[e.type] === "bar" ? (n(), i("rect", {
|
|
3550
3566
|
key: 1,
|
|
3551
3567
|
x: "4",
|
|
3552
3568
|
y: "4",
|
|
@@ -3554,9 +3570,9 @@ const yo = { chart: { userOptions: { show: !1 }, grid: { showVerticalLines: !1,
|
|
|
3554
3570
|
height: "32",
|
|
3555
3571
|
width: "32",
|
|
3556
3572
|
stroke: "none",
|
|
3557
|
-
fill: a.$slots.pattern ? `url(#pattern_${
|
|
3558
|
-
}, null, 8,
|
|
3559
|
-
])) : (
|
|
3573
|
+
fill: a.$slots.pattern ? `url(#pattern_${O.value}_${e.slotAbsoluteIndex})` : e.color
|
|
3574
|
+
}, null, 8, jn)) : h("", !0)
|
|
3575
|
+
])) : (n(), i("svg", ei, [
|
|
3560
3576
|
fl(ga, {
|
|
3561
3577
|
plot: { x: 6, y: 6 },
|
|
3562
3578
|
radius: 5,
|
|
@@ -3565,28 +3581,28 @@ const yo = { chart: { userOptions: { show: !1 }, grid: { showVerticalLines: !1,
|
|
|
3565
3581
|
}, null, 8, ["color", "shape"])
|
|
3566
3582
|
])),
|
|
3567
3583
|
p("span", {
|
|
3568
|
-
style:
|
|
3584
|
+
style: _(`color:${l.value.chart.legend.color}`)
|
|
3569
3585
|
}, te(e.name), 5)
|
|
3570
|
-
], 14,
|
|
3571
|
-
], 4)) : (
|
|
3586
|
+
], 14, Un))), 128))
|
|
3587
|
+
], 4)) : (n(), i("div", {
|
|
3572
3588
|
key: 1,
|
|
3573
3589
|
ref_key: "chartLegend",
|
|
3574
3590
|
ref: rl
|
|
3575
3591
|
}, [
|
|
3576
|
-
|
|
3592
|
+
D(a.$slots, "legend", { legend: re.value }, void 0, !0)
|
|
3577
3593
|
], 512))
|
|
3578
3594
|
], 8, ["to"])) : h("", !0),
|
|
3579
|
-
a.$slots.source ? (
|
|
3595
|
+
a.$slots.source ? (n(), i("div", {
|
|
3580
3596
|
key: 7,
|
|
3581
3597
|
ref_key: "source",
|
|
3582
3598
|
ref: pl,
|
|
3583
3599
|
dir: "auto"
|
|
3584
3600
|
}, [
|
|
3585
|
-
|
|
3601
|
+
D(a.$slots, "source", {}, void 0, !0)
|
|
3586
3602
|
], 512)) : h("", !0),
|
|
3587
3603
|
fl(v(Io), {
|
|
3588
3604
|
teleportTo: l.value.chart.tooltip.teleportTo,
|
|
3589
|
-
show: f.value.showTooltip &&
|
|
3605
|
+
show: f.value.showTooltip && Wa.value,
|
|
3590
3606
|
backgroundColor: l.value.chart.tooltip.backgroundColor,
|
|
3591
3607
|
color: l.value.chart.tooltip.color,
|
|
3592
3608
|
fontSize: l.value.chart.tooltip.fontSize,
|
|
@@ -3606,23 +3622,23 @@ const yo = { chart: { userOptions: { show: !1 }, grid: { showVerticalLines: !1,
|
|
|
3606
3622
|
smoothSnapThreshold: l.value.chart.tooltip.smoothSnapThreshold
|
|
3607
3623
|
}, {
|
|
3608
3624
|
"tooltip-before": X(() => [
|
|
3609
|
-
|
|
3625
|
+
D(a.$slots, "tooltip-before", me(be({ ...Et.value })), void 0, !0)
|
|
3610
3626
|
]),
|
|
3611
3627
|
"tooltip-after": X(() => [
|
|
3612
|
-
|
|
3628
|
+
D(a.$slots, "tooltip-after", me(be({ ...Et.value })), void 0, !0)
|
|
3613
3629
|
]),
|
|
3614
3630
|
_: 3
|
|
3615
3631
|
}, 8, ["teleportTo", "show", "backgroundColor", "color", "fontSize", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom", "smooth", "backdropFilter", "smoothForce", "smoothSnapThreshold"]),
|
|
3616
|
-
Aa.value && l.value.chart.userOptions.buttons.table ? (
|
|
3632
|
+
Aa.value && l.value.chart.userOptions.buttons.table ? (n(), Se(Xr(zl.value.component), al({ key: 8 }, zl.value.props, {
|
|
3617
3633
|
ref_key: "tableUnit",
|
|
3618
3634
|
ref: sl,
|
|
3619
|
-
onClose:
|
|
3620
|
-
}),
|
|
3635
|
+
onClose: ao
|
|
3636
|
+
}), ro({
|
|
3621
3637
|
content: X(() => [
|
|
3622
3638
|
p("div", {
|
|
3623
|
-
style:
|
|
3639
|
+
style: _(`${v(ql) || l.value.table.useDialog ? "" : "max-height:400px"};${l.value.table.useDialog ? "height: fit-content; " : ""};overflow:auto;width:100%;${l.value.table.useDialog ? "" : "margin-top:48px"}`)
|
|
3624
3640
|
}, [
|
|
3625
|
-
p("div",
|
|
3641
|
+
p("div", li, [
|
|
3626
3642
|
Gr(p("input", {
|
|
3627
3643
|
type: "checkbox",
|
|
3628
3644
|
"onUpdate:modelValue": r[4] || (r[4] = (e) => Cl.value = e)
|
|
@@ -3631,36 +3647,36 @@ const yo = { chart: { userOptions: { show: !1 }, grid: { showVerticalLines: !1,
|
|
|
3631
3647
|
]),
|
|
3632
3648
|
p("div", {
|
|
3633
3649
|
onClick: r[5] || (r[5] = (e) => Cl.value = !Cl.value),
|
|
3634
|
-
style:
|
|
3650
|
+
style: _({
|
|
3635
3651
|
cursor: Ze.value ? "pointer" : "default"
|
|
3636
3652
|
})
|
|
3637
3653
|
}, [
|
|
3638
|
-
fl(v(
|
|
3654
|
+
fl(v(Ra), {
|
|
3639
3655
|
name: "chartLine",
|
|
3640
3656
|
size: 20,
|
|
3641
3657
|
stroke: l.value.chart.color
|
|
3642
3658
|
}, null, 8, ["stroke"])
|
|
3643
3659
|
], 4)
|
|
3644
3660
|
]),
|
|
3645
|
-
Cl.value ? (
|
|
3661
|
+
Cl.value ? (n(), Se(v(Bo), {
|
|
3646
3662
|
key: `sparkline_${Ca.value}`,
|
|
3647
3663
|
dataset: yr.value,
|
|
3648
3664
|
config: kr.value
|
|
3649
|
-
}, null, 8, ["dataset", "config"])) : (
|
|
3650
|
-
key: `table_${
|
|
3651
|
-
colNames:
|
|
3652
|
-
head:
|
|
3653
|
-
body:
|
|
3654
|
-
config:
|
|
3665
|
+
}, null, 8, ["dataset", "config"])) : (n(), Se(v(zo), {
|
|
3666
|
+
key: `table_${Xa.value}`,
|
|
3667
|
+
colNames: na.value.colNames,
|
|
3668
|
+
head: na.value.head,
|
|
3669
|
+
body: na.value.body,
|
|
3670
|
+
config: na.value.config,
|
|
3655
3671
|
title: l.value.table.useDialog ? "" : zl.value.title,
|
|
3656
3672
|
withCloseButton: !l.value.table.useDialog,
|
|
3657
|
-
onClose:
|
|
3673
|
+
onClose: ao
|
|
3658
3674
|
}, {
|
|
3659
3675
|
th: X(({ th: e }) => [
|
|
3660
|
-
p("div", { innerHTML: e }, null, 8,
|
|
3676
|
+
p("div", { innerHTML: e }, null, 8, ai)
|
|
3661
3677
|
]),
|
|
3662
3678
|
td: X(({ td: e }) => [
|
|
3663
|
-
|
|
3679
|
+
so(te(isNaN(Number(e)) ? e : v(Pe)({
|
|
3664
3680
|
p: l.value.chart.labels.prefix,
|
|
3665
3681
|
v: e,
|
|
3666
3682
|
s: l.value.chart.labels.suffix,
|
|
@@ -3676,7 +3692,7 @@ const yo = { chart: { userOptions: { show: !1 }, grid: { showVerticalLines: !1,
|
|
|
3676
3692
|
l.value.table.useDialog ? {
|
|
3677
3693
|
name: "title",
|
|
3678
3694
|
fn: X(() => [
|
|
3679
|
-
|
|
3695
|
+
so(te(zl.value.title), 1)
|
|
3680
3696
|
]),
|
|
3681
3697
|
key: "0"
|
|
3682
3698
|
} : void 0,
|
|
@@ -3688,7 +3704,7 @@ const yo = { chart: { userOptions: { show: !1 }, grid: { showVerticalLines: !1,
|
|
|
3688
3704
|
class: "vue-ui-user-options-button",
|
|
3689
3705
|
onClick: r[3] || (r[3] = (e) => za(l.value.chart.userOptions.callbacks.csv))
|
|
3690
3706
|
}, [
|
|
3691
|
-
fl(v(
|
|
3707
|
+
fl(v(Ra), {
|
|
3692
3708
|
name: "fileCsv",
|
|
3693
3709
|
stroke: zl.value.props.color
|
|
3694
3710
|
}, null, 8, ["stroke"])
|
|
@@ -3697,17 +3713,17 @@ const yo = { chart: { userOptions: { show: !1 }, grid: { showVerticalLines: !1,
|
|
|
3697
3713
|
key: "1"
|
|
3698
3714
|
} : void 0
|
|
3699
3715
|
]), 1040)) : h("", !0),
|
|
3700
|
-
|
|
3701
|
-
v(oe) ? (
|
|
3716
|
+
D(a.$slots, "skeleton", {}, () => [
|
|
3717
|
+
v(oe) ? (n(), Se(ds, { key: 0 })) : h("", !0)
|
|
3702
3718
|
], !0)
|
|
3703
|
-
], 46,
|
|
3719
|
+
], 46, _s));
|
|
3704
3720
|
}
|
|
3705
|
-
},
|
|
3721
|
+
}, oi = /* @__PURE__ */ Cs(ti, [["__scopeId", "data-v-04698dfd"]]), _i = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3706
3722
|
__proto__: null,
|
|
3707
|
-
default:
|
|
3723
|
+
default: oi
|
|
3708
3724
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
3709
3725
|
export {
|
|
3710
|
-
|
|
3711
|
-
|
|
3712
|
-
|
|
3726
|
+
oi as V,
|
|
3727
|
+
_i as a,
|
|
3728
|
+
Ci as v
|
|
3713
3729
|
};
|