vue-data-ui 3.10.0 → 3.10.2
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-ChEFq9U7.js → Arrow-DWr41GRU.js} +1 -1
- package/dist/{BaseDraggableDialog-O2XSymlZ.js → BaseDraggableDialog-BQYfVNu8.js} +2 -2
- package/dist/{BaseIcon-B9bGT7HU.js → BaseIcon-4uOct8re.js} +18 -18
- package/dist/{BaseZoomControls-B4rpv4Kk.js → BaseZoomControls-Cb-Qq9_R.js} +2 -2
- package/dist/{ColorPicker-VKEPgk58.js → ColorPicker-Culsjrcr.js} +2 -2
- package/dist/{DataTable-DEwh__D8.js → DataTable-DyoDzNNY.js} +2 -2
- package/dist/{Legend-D2xmnFPH.js → Legend-DN5UJOBH.js} +2 -2
- package/dist/{NonSvgPenAndPaper-CxbOhI52.js → NonSvgPenAndPaper-CNMLfAk3.js} +3 -3
- package/dist/{PackageVersion-C-JOGZBL.js → PackageVersion-CQxJyGQr.js} +1 -1
- package/dist/{PenAndPaper-CulSakut.js → PenAndPaper-LTuSTmWE.js} +3 -3
- package/dist/{Shape-12_eh8zD.js → Shape-PzdCMGsP.js} +1 -1
- package/dist/{Slicer-EQH4YKwe.js → Slicer-DckZxvyx.js} +2 -2
- package/dist/{SlicerPreview-Ddfxn6es.js → SlicerPreview-CSc_cazO.js} +2 -2
- package/dist/{SparkTooltip-D_OsZuuE.js → SparkTooltip-BLTVhvm2.js} +1 -1
- package/dist/{Title-B5L2jweB.js → Title-NgeRXqRA.js} +1 -1
- package/dist/{Tooltip-DpfUZbt7.js → Tooltip-B6qvABDL.js} +1 -1
- package/dist/{UserOptions-5pXc4J-c.js → UserOptions-CX7Xsusk.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-WXGPkYro.js → dom-to-png-CzjUUVZt.js} +1 -1
- package/dist/{img-CqYIrJ8I.js → img-6fNF_rG0.js} +1 -1
- package/dist/{labelUtils-B3mOOEke.js → labelUtils-D6Y-n7cD.js} +1 -1
- package/dist/{lib-2iaAPQ_c.js → lib-CVHM9FhP.js} +188 -140
- package/dist/{pdf-Q5BpWMSa.js → pdf-Dd_6HF9L.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.ts +3 -1
- package/dist/{useAutoSizeLabelsInsideViewbox-DmpzKQ9i.js → useAutoSizeLabelsInsideViewbox-CqeJ1kZA.js} +1 -1
- package/dist/{useNestedProp-BCt4DMkT.js → useNestedProp-Ckf_2P_V.js} +1 -1
- package/dist/{usePrinter-ChVMpU2f.js → usePrinter-1NmjuP-i.js} +2 -2
- package/dist/{useThemeCheck-DGJ31Vi5.js → useThemeCheck-D1ZYXUwG.js} +5 -3
- package/dist/{vue-data-ui-CwfD22m4.js → vue-data-ui-GAruO_UT.js} +68 -68
- package/dist/vue-data-ui.js +73 -73
- package/dist/{vue-ui-3d-bar-DAr11NEe.js → vue-ui-3d-bar-t_E9saCp.js} +222 -218
- package/dist/{vue-ui-accordion-CAXPDm31.js → vue-ui-accordion-DFKaB_05.js} +3 -3
- package/dist/{vue-ui-age-pyramid-KApqwR11.js → vue-ui-age-pyramid-DKlTGZ6m.js} +177 -173
- package/dist/{vue-ui-annotator-D-x-F49X.js → vue-ui-annotator-CNkhGqqn.js} +7 -7
- package/dist/{vue-ui-bullet-D3ZOexko.js → vue-ui-bullet-C4FXVy8_.js} +135 -131
- package/dist/{vue-ui-bump-BJUb7fNz.js → vue-ui-bump-BJZrexv4.js} +264 -260
- package/dist/{vue-ui-candlestick-BBwYtV1-.js → vue-ui-candlestick-P7w1YVT6.js} +304 -300
- package/dist/{vue-ui-carousel-table-DrzQReuc.js → vue-ui-carousel-table-DQk4RoWo.js} +4 -4
- package/dist/{vue-ui-chestnut-ByqOYfmS.js → vue-ui-chestnut-Co8x4We0.js} +326 -322
- package/dist/{vue-ui-chord-3k3MxDxL.js → vue-ui-chord-NjSRzToa.js} +171 -167
- package/dist/{vue-ui-circle-pack-U-fW2dBh.js → vue-ui-circle-pack-CwrgCRKX.js} +162 -158
- package/dist/{vue-ui-cursor-PxyKLKT4.js → vue-ui-cursor-Bh5-9JWm.js} +3 -3
- package/dist/{vue-ui-dag-BgB4pBHg.js → vue-ui-dag-BBGpjSzH.js} +451 -447
- package/dist/{vue-ui-dashboard-Bb0qmaCv.js → vue-ui-dashboard-ekbwnmce.js} +68 -68
- package/dist/{vue-ui-digits-DWt_f5c-.js → vue-ui-digits-DnsDASGD.js} +2 -2
- package/dist/{vue-ui-donut-Ce4aLPAr.js → vue-ui-donut-DvLh8qa2.js} +467 -463
- package/dist/{vue-ui-donut-evolution-Dn8sOIr-.js → vue-ui-donut-evolution-BiLhAVY8.js} +354 -350
- package/dist/{vue-ui-dumbbell-Bu8opmEM.js → vue-ui-dumbbell-C2OWcZvr.js} +240 -236
- package/dist/{vue-ui-flow-CavJTxRY.js → vue-ui-flow-Cp2le1ur.js} +171 -167
- package/dist/{vue-ui-funnel-CWSmOHEt.js → vue-ui-funnel-ClGo8z4y.js} +133 -129
- package/dist/{vue-ui-galaxy-CqeQVqG-.js → vue-ui-galaxy-DTAl_-40.js} +146 -142
- package/dist/{vue-ui-gauge-DnU9JZ0v.js → vue-ui-gauge-DOG6-lgt.js} +175 -171
- package/dist/{vue-ui-geo-Dg8W127k.js → vue-ui-geo-BpWyHXwd.js} +123 -119
- package/dist/{vue-ui-gizmo-BfyTXxBY.js → vue-ui-gizmo-BMq5dzK4.js} +3 -3
- package/dist/{vue-ui-heatmap-D_JOEm4-.js → vue-ui-heatmap-Bp9HI0Zo.js} +231 -227
- package/dist/{vue-ui-history-plot-DgMc6-9X.js → vue-ui-history-plot-CVM1jz1X.js} +252 -248
- package/dist/{vue-ui-horizontal-bar-BPX7YBdV.js → vue-ui-horizontal-bar-B0UY6b-O.js} +325 -321
- package/dist/{vue-ui-kpi-BqCS6onP.js → vue-ui-kpi-DgSmfw2q.js} +3 -3
- package/dist/{vue-ui-mini-loader-CcXuJ3iD.js → vue-ui-mini-loader-D8z1PwRZ.js} +2 -2
- package/dist/{vue-ui-molecule-CX-pPp0u.js → vue-ui-molecule-CUppdL5f.js} +183 -179
- package/dist/{vue-ui-mood-radar-3nHlZfrB.js → vue-ui-mood-radar-QN25VSAw.js} +162 -158
- package/dist/{vue-ui-nested-donuts-cz79gQlJ.js → vue-ui-nested-donuts-ywWUDYjT.js} +178 -174
- package/dist/{vue-ui-onion-yseOpPeu.js → vue-ui-onion-DmwZ1gg_.js} +185 -181
- package/dist/{vue-ui-parallel-coordinate-plot-Dqg_vJCM.js → vue-ui-parallel-coordinate-plot-Bz2ROYRD.js} +195 -191
- package/dist/{vue-ui-quadrant-D4UDUZoN.js → vue-ui-quadrant-CUpWOWF2.js} +243 -239
- package/dist/{vue-ui-quick-chart-BMDrPkAJ.js → vue-ui-quick-chart-CXrm_rzI.js} +295 -291
- package/dist/{vue-ui-radar-B_wSZVDb.js → vue-ui-radar-BqLjOOnJ.js} +168 -164
- package/dist/{vue-ui-rating-CBedYtOp.js → vue-ui-rating-W6I6pacT.js} +2 -2
- package/dist/{vue-ui-relation-circle-DydZv4Pf.js → vue-ui-relation-circle-CrYmJHLI.js} +185 -181
- package/dist/vue-ui-ridgeline-ZbmQXJxt.js +1306 -0
- package/dist/{vue-ui-rings-BdYnuNS7.js → vue-ui-rings-BxYoBfvT.js} +299 -295
- package/dist/{vue-ui-scatter-QISpPygj.js → vue-ui-scatter-BhJkoRBS.js} +354 -350
- package/dist/{vue-ui-skeleton-CdpD_Zjk.js → vue-ui-skeleton-Bg1akQqn.js} +3 -3
- package/dist/{vue-ui-smiley-CTeSlfZa.js → vue-ui-smiley-B23r7AWp.js} +2 -2
- package/dist/{vue-ui-spark-trend-Jgho2QgC.js → vue-ui-spark-trend-CJtfXMSj.js} +120 -116
- package/dist/{vue-ui-sparkbar-CLqcdko6.js → vue-ui-sparkbar-DHJdmNDm.js} +84 -80
- package/dist/{vue-ui-sparkgauge-BA3NDOhA.js → vue-ui-sparkgauge-ANfPLNuD.js} +81 -77
- package/dist/{vue-ui-sparkhistogram-fb8hGuCn.js → vue-ui-sparkhistogram-CIfYUXVZ.js} +109 -105
- package/dist/{vue-ui-sparkline-BWdvoOYj.js → vue-ui-sparkline-Bm0OmFUB.js} +184 -174
- package/dist/{vue-ui-sparkstackbar-DbbdPqIp.js → vue-ui-sparkstackbar-CCnnfsqG.js} +99 -95
- package/dist/{vue-ui-stackbar-MYly9iMc.js → vue-ui-stackbar-CK5is5H7.js} +376 -372
- package/dist/{vue-ui-stackline-L0q_GsYv.js → vue-ui-stackline-CFv2OUCL.js} +349 -345
- package/dist/{vue-ui-strip-plot-B7W1EZdY.js → vue-ui-strip-plot-CJ1Zkrhq.js} +248 -244
- package/dist/{vue-ui-table-WSRRp_nE.js → vue-ui-table-CMyYl8lE.js} +5 -5
- package/dist/{vue-ui-table-heatmap-Bqr4Eubg.js → vue-ui-table-heatmap-8kBdXO2V.js} +6 -6
- package/dist/{vue-ui-table-sparkline-UhaEz2jD.js → vue-ui-table-sparkline-Bo4nuBEx.js} +174 -170
- package/dist/{vue-ui-thermometer-BFwmgdMO.js → vue-ui-thermometer-h3voYVGJ.js} +133 -129
- package/dist/{vue-ui-timer-CoLOwKwP.js → vue-ui-timer-CazY_Z4R.js} +5 -5
- package/dist/{vue-ui-tiremarks-CvXOa3z4.js → vue-ui-tiremarks-CTa_gpit.js} +156 -152
- package/dist/{vue-ui-treemap-C8HbMbin.js → vue-ui-treemap-B6AuOtaA.js} +161 -157
- package/dist/{vue-ui-waffle-rS6LRZNV.js → vue-ui-waffle-DnEBC07H.js} +185 -181
- package/dist/{vue-ui-wheel-BGle0ni9.js → vue-ui-wheel-DFU2vMsP.js} +125 -121
- package/dist/{vue-ui-word-cloud-Dj1lJdtL.js → vue-ui-word-cloud-DgY58NEj.js} +179 -175
- package/dist/{vue-ui-world-C7d5vM6d.js → vue-ui-world-xEUaTJDk.js} +6 -6
- package/dist/{vue-ui-xy-canvas-CoBMpLeE.js → vue-ui-xy-canvas-eHl--9m7.js} +213 -209
- package/dist/{vue-ui-xy-De-FDHwh.js → vue-ui-xy-spqKboQb.js} +697 -693
- package/package.json +1 -1
- package/dist/vue-ui-ridgeline-BGerPYkY.js +0 -1302
|
@@ -1,81 +1,85 @@
|
|
|
1
|
-
import { defineAsyncComponent as Xe, useSlots as
|
|
2
|
-
import { c as
|
|
3
|
-
import { t as
|
|
4
|
-
import { u as
|
|
5
|
-
import { u as
|
|
6
|
-
import { u as
|
|
7
|
-
import { u as Ht, a as
|
|
8
|
-
import { u as
|
|
9
|
-
import { u as
|
|
10
|
-
import { u as
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import { _ as Kl } from "./Shape-
|
|
14
|
-
import { S as
|
|
15
|
-
import
|
|
16
|
-
import { _ as
|
|
17
|
-
const Yt = { 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" }, 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" } } },
|
|
1
|
+
import { defineAsyncComponent as Xe, useSlots as ar, getCurrentInstance as tr, ref as x, computed as b, onMounted as Zl, toRefs as or, watch as Ll, watchEffect as Lt, onBeforeUnmount as ka, nextTick as Mt, createElementBlock as u, openBlock as n, normalizeStyle as S, normalizeClass as ll, createBlock as Te, createCommentVNode as h, createElementVNode as p, createVNode as vl, unref as v, withCtx as G, renderSlot as P, normalizeProps as ke, guardReactiveProps as Ce, createSlots as Tt, Fragment as d, renderList as _, mergeProps as al, toDisplayString as ae, Teleport as rr, resolveDynamicComponent as sr, withDirectives as ir, vModelCheckbox as nr, createTextVNode as zt } from "vue";
|
|
2
|
+
import { c as Ca, g as _a, t as ur, k as cr, N as Ml, O as tl, m as It, j as wa, P as Jl, Q as Y, R as Sa, S as vr, T as dr, U as N, z as Ft, A as Ot, B as Bt, C as Nt, V as hr, W as Vt, Y as Dt, a as re, Z as fr, y as Pt, _ as gr, b as Et, e as Ne, d as Ve, h as ol, s as ze, G as mr, x as Ge, H as Ql, n as Se, $ as br, a0 as Ue, a1 as fe, i as xr, o as Rt, v as pr, r as yr, a2 as dl } from "./lib-CVHM9FhP.js";
|
|
3
|
+
import { t as kr } from "./useResponsive-DfdjqQps.js";
|
|
4
|
+
import { u as Cr, a as Tl } from "./useNestedProp-Ckf_2P_V.js";
|
|
5
|
+
import { u as _r } from "./usePrinter-1NmjuP-i.js";
|
|
6
|
+
import { u as wr, B as Sr } from "./BaseScanner-BMpwQAfz.js";
|
|
7
|
+
import { u as Ht, a as Ar, l as $r } from "./useTimeLabels-DKoynYae.js";
|
|
8
|
+
import { u as Lr } from "./useSvgExport-ByUukOZt.js";
|
|
9
|
+
import { u as Mr } from "./useThemeCheck-D1ZYXUwG.js";
|
|
10
|
+
import { u as Tr } from "./useTimeLabelCollider-CIsgDrl9.js";
|
|
11
|
+
import zr from "./img-6fNF_rG0.js";
|
|
12
|
+
import Ir from "./Title-NgeRXqRA.js";
|
|
13
|
+
import { _ as Kl } from "./Shape-PzdCMGsP.js";
|
|
14
|
+
import { S as Fr } from "./SlicerPreview-CSc_cazO.js";
|
|
15
|
+
import Or from "./vue-ui-accordion-DFKaB_05.js";
|
|
16
|
+
import { _ as Br } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
17
|
+
const Yt = { 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 } }, Wt = { 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" }, 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" } } }, Xt = { 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" }, 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" } } }, Gt = { 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" }, 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" } } }, Ut = { 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" }, 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" } } }, qt = { 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" }, 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" } } }, Zt = { 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" }, 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" } } }, Jt = { 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" }, 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" } } }, Qt = {
|
|
18
18
|
default: {},
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
19
|
+
minimal: Yt,
|
|
20
|
+
minimalDark: Wt,
|
|
21
|
+
dark: Xt,
|
|
22
|
+
celebration: Gt,
|
|
23
|
+
celebrationNight: Ut,
|
|
24
|
+
hack: qt,
|
|
25
|
+
zen: Zt,
|
|
26
|
+
concrete: Jt
|
|
27
|
+
}, Mn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
26
28
|
__proto__: null,
|
|
27
|
-
celebration:
|
|
28
|
-
celebrationNight:
|
|
29
|
-
concrete:
|
|
30
|
-
dark:
|
|
31
|
-
default:
|
|
32
|
-
hack:
|
|
33
|
-
|
|
34
|
-
|
|
29
|
+
celebration: Gt,
|
|
30
|
+
celebrationNight: Ut,
|
|
31
|
+
concrete: Jt,
|
|
32
|
+
dark: Xt,
|
|
33
|
+
default: Qt,
|
|
34
|
+
hack: qt,
|
|
35
|
+
minimal: Yt,
|
|
36
|
+
minimalDark: Wt,
|
|
37
|
+
zen: Zt
|
|
38
|
+
}, Symbol.toStringTag, { value: "Module" })), Nr = ["id"], Vr = ["id"], Dr = ["viewBox", "aria-label"], Pr = ["x", "y", "width", "height"], Er = { key: 1 }, Rr = { class: "vue-ui-xy-grid" }, Hr = ["stroke", "x1", "x2", "y1", "y2"], Yr = ["stroke", "x1", "x2", "y1", "y2"], Wr = { key: 1 }, Xr = ["x1", "x2", "y1", "y2", "stroke"], Gr = ["x1", "x2", "y1", "y2", "stroke"], Ur = ["x1", "x2", "y1", "y2", "stroke"], qr = { key: 3 }, Zr = ["d", "stroke"], Jr = { key: 4 }, Qr = ["d", "stroke"], Kr = ["id"], jr = ["stop-color"], es = ["stop-color"], ls = ["stop-color"], as = ["id"], ts = ["stop-color"], os = ["stop-color"], rs = ["stop-color"], ss = ["id"], is = ["stop-color"], ns = ["stop-color"], us = ["id"], cs = ["stop-color"], vs = ["stop-color"], ds = ["id"], hs = ["stop-color"], fs = ["stop-color"], gs = ["x", "y", "height", "width", "fill"], ms = ["x", "y", "width"], bs = { key: 0 }, xs = ["x", "y", "height", "width", "fill"], ps = ["x", "y", "height", "width", "rx", "fill", "stroke", "stroke-width"], ys = ["x", "y", "height", "width", "rx", "fill", "stroke", "stroke-width"], ks = ["width", "x", "y"], Cs = ["stroke", "x1", "x2", "y1", "y2"], _s = { key: 3 }, ws = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], Ss = ["x", "y", "width", "height", "stroke", "stroke-width", "stroke-linecap", "stroke-linejoin", "stroke-dasharray"], As = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], $s = ["fill", "font-size", "transform"], Ls = ["x1", "x2", "y1", "y2", "stroke"], Ms = ["x", "y", "font-size", "fill"], Ts = ["x1", "x2", "y1", "y2", "stroke"], zs = ["x", "y", "font-size", "fill"], Is = ["width", "x", "y"], Fs = { style: { width: "100%" } }, Os = ["d", "stroke", "stroke-width", "stroke-dasharray"], Bs = ["d", "stroke", "stroke-width", "stroke-dasharray"], Ns = { key: 6 }, Vs = { key: 7 }, Ds = ["d", "fill", "fill-opacity"], Ps = { key: 0 }, Es = ["d", "fill"], Rs = ["d", "fill"], Hs = ["d", "fill"], Ys = ["d", "fill"], Ws = ["d", "stroke", "stroke-width", "stroke-dasharray"], Xs = ["d", "stroke", "stroke-width", "stroke-dasharray"], Gs = ["width", "x", "y"], Us = { style: { width: "100%" } }, qs = { key: 8 }, Zs = ["x", "y", "font-size", "fill"], Js = ["x", "y", "font-size", "fill", "font-weight"], Qs = { key: 9 }, Ks = ["x", "y", "font-size", "fill"], js = { key: 10 }, ei = ["x", "y"], li = ["innerHTML"], ai = ["x", "y"], ti = ["innerHTML"], oi = ["x1", "x2", "y1", "y2", "stroke"], ri = { key: 11 }, si = ["x", "y", "font-size", "fill"], ii = { key: 12 }, ni = ["x", "y"], ui = ["innerHTML"], ci = ["x", "y"], vi = ["innerHTML"], di = ["x1", "x2", "y1", "y2", "stroke"], hi = ["x", "y", "font-size", "fill", "innerHTML"], fi = ["x", "y", "font-size", "fill", "innerHTML"], gi = ["x", "y", "font-size", "fill", "innerHTML"], mi = ["x", "y", "font-size", "fill", "innerHTML"], bi = { key: 0 }, xi = ["id"], pi = ["fill", "stroke"], yi = ["x1", "x2", "y1", "y2", "stroke", "marker-end"], ki = ["x1", "x2", "y1", "y2", "stroke", "marker-end"], Ci = ["x", "y", "font-size", "fill", "stroke"], _i = ["id"], wi = ["stop-color"], Si = ["stop-color"], Ai = ["x", "y", "width", "height", "fill", "onMouseenter"], $i = ["font-size", "fill", "transform"], Li = ["x", "y", "font-size", "fill"], Mi = ["text-anchor", "font-size", "fill", "transform", "onClick"], Ti = ["text-anchor", "font-size", "fill", "transform", "innerHTML", "onClick"], zi = { key: 15 }, Ii = ["x1", "y1", "x2", "y2", "stroke", "stroke-width", "stroke-dasharray"], Fi = ["x1", "y1", "x2", "y2", "stroke", "stroke-width", "stroke-dasharray"], Oi = ["y", "x", "width", "height", "fill"], Bi = ["id", "x", "y", "font-size", "fill", "text-anchor"], Ni = {
|
|
35
39
|
key: 16,
|
|
36
40
|
style: { "pointer-events": "none" }
|
|
37
|
-
},
|
|
41
|
+
}, Vi = ["x", "y"], Di = ["innerHTML"], Pi = ["cx", "cy", "r", "fill"], Ei = ["data-start", "data-end"], Ri = {
|
|
38
42
|
key: 4,
|
|
39
43
|
class: "vue-data-ui-watermark"
|
|
40
|
-
},
|
|
44
|
+
}, Hi = {
|
|
41
45
|
class: "vue-ui-xy-tag-arrow",
|
|
42
46
|
height: "20",
|
|
43
47
|
viewBox: "0 0 10 20",
|
|
44
48
|
style: { position: "absolute", right: "100%", top: "50%", transform: "translateY(-50%)" }
|
|
45
|
-
},
|
|
49
|
+
}, Yi = ["fill"], Wi = ["innerHTML"], Xi = {
|
|
46
50
|
class: "vue-ui-xy-tag-arrow",
|
|
47
51
|
height: "100%",
|
|
48
52
|
viewBox: "0 0 10 20",
|
|
49
53
|
style: { position: "absolute", left: "100%", top: "50%", transform: "translateY(-50%)" }
|
|
50
|
-
},
|
|
54
|
+
}, Gi = ["fill"], Ui = ["innerHTML"], qi = {
|
|
51
55
|
class: "vue-ui-xy-tag-arrow",
|
|
52
56
|
height: "20",
|
|
53
57
|
viewBox: "0 0 10 20",
|
|
54
58
|
style: { position: "absolute", right: "100%", top: "50%", transform: "translateY(-50%)" }
|
|
55
|
-
},
|
|
59
|
+
}, Zi = ["fill"], Ji = ["innerHTML"], Qi = {
|
|
56
60
|
class: "vue-ui-xy-tag-arrow",
|
|
57
61
|
height: "100%",
|
|
58
62
|
viewBox: "0 0 10 20",
|
|
59
63
|
style: { position: "absolute", left: "100%", top: "50%", transform: "translateY(-50%)" }
|
|
60
|
-
},
|
|
64
|
+
}, Ki = ["fill"], ji = ["innerHTML"], en = ["id"], ln = ["onClick"], an = {
|
|
61
65
|
key: 0,
|
|
62
66
|
viewBox: "0 0 20 12",
|
|
63
67
|
height: "1em",
|
|
64
68
|
width: "1.43em"
|
|
65
|
-
},
|
|
69
|
+
}, tn = ["stroke", "fill"], on = {
|
|
66
70
|
key: 1,
|
|
67
71
|
viewBox: "0 0 40 40",
|
|
68
72
|
height: "1em",
|
|
69
73
|
width: "1em"
|
|
70
|
-
},
|
|
74
|
+
}, rn = ["fill"], sn = ["fill"], nn = {
|
|
71
75
|
key: 2,
|
|
72
76
|
viewBox: "0 0 12 12",
|
|
73
77
|
height: "1em",
|
|
74
78
|
width: "1em"
|
|
75
|
-
},
|
|
79
|
+
}, un = {
|
|
76
80
|
style: { display: "flex", "flex-direction": "row", gap: "6px", "align-items": "center", "padding-left": "6px" },
|
|
77
81
|
"data-dom-to-png-ignore": ""
|
|
78
|
-
},
|
|
82
|
+
}, cn = ["innerHTML"], vn = {
|
|
79
83
|
__name: "vue-ui-xy",
|
|
80
84
|
props: {
|
|
81
85
|
config: {
|
|
@@ -96,15 +100,15 @@ const Yt = { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", zoom: { colo
|
|
|
96
100
|
}
|
|
97
101
|
},
|
|
98
102
|
emits: ["selectTimeLabel", "selectX", "selectLegend"],
|
|
99
|
-
setup(jl, { expose:
|
|
100
|
-
const g = jl,
|
|
103
|
+
setup(jl, { expose: Kt, emit: jt }) {
|
|
104
|
+
const g = jl, eo = Xe(() => import("./DataTable-DyoDzNNY.js")), lo = Xe(() => import("./Tooltip-B6qvABDL.js")), ao = Xe(() => import("./UserOptions-CX7Xsusk.js")), Aa = Xe(() => import("./BaseIcon-4uOct8re.js")), to = Xe(() => import("./vue-ui-table-sparkline-Bo4nuBEx.js").then((a) => a.b)), oo = Xe(() => import("./PackageVersion-CQxJyGQr.js")), ro = Xe(() => import("./PenAndPaper-LTuSTmWE.js")), so = Xe(() => import("./BaseDraggableDialog-BQYfVNu8.js")), ea = jt, $a = ar(), io = tr(), { vue_ui_xy: hl } = Cr(), { isThemeValid: no, warnInvalidTheme: uo } = Mr(), Ie = x(null), fl = x(null), Fe = x(null), rl = x(null), gl = x(null), ml = x(null), co = x(null), la = x(null), aa = x(null), sl = x(null), ta = x(null), oa = x(null), Ee = x(null), ra = x(null), vo = x(0), I = x(null), La = x(!0), ve = x(600), ee = x(1e3), zl = x("0 0 1000 600"), ho = x({ x: 0, y: 0 }), bl = x({ line: "line", bar: "bar", plot: "plot" }), xl = x(!1), qe = x(!1), Ma = x(!1), Ze = x(null), J = x([]), H = x(Ca()), Ta = x(0), za = x(0), Ia = x(0), pl = x(!0), sa = x(0), B = x(null), Fa = x(!1), ia = x(!0), Il = x(!0), se = x(null), De = x({}), Fl = x(null), Oa = x(!1), il = x(null), C = x(null), fo = b(() => ({
|
|
101
105
|
height: ve.value,
|
|
102
106
|
width: ee.value
|
|
103
107
|
}));
|
|
104
108
|
function Ba(a) {
|
|
105
109
|
return Number.isFinite(a) ? Math.max(0, Math.floor(a)) : 0;
|
|
106
110
|
}
|
|
107
|
-
function
|
|
111
|
+
function na(a, r, e = 0) {
|
|
108
112
|
return Number.isFinite(a) && Number.isFinite(r) && Math.abs(r) > 1e-9 ? a / r : e;
|
|
109
113
|
}
|
|
110
114
|
const Na = x(!1), y = x({
|
|
@@ -112,10 +116,10 @@ const Yt = { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", zoom: { colo
|
|
|
112
116
|
yAxis: 12,
|
|
113
117
|
dataLabels: 20,
|
|
114
118
|
plotLabels: 10
|
|
115
|
-
}),
|
|
119
|
+
}), Ae = x({ plot: 3, line: 3 });
|
|
116
120
|
Zl(() => {
|
|
117
121
|
Oa.value = !0, g.dataset.length && g.dataset.forEach((a, r) => {
|
|
118
|
-
[null, void 0].includes(a.series) &&
|
|
122
|
+
[null, void 0].includes(a.series) && _a({
|
|
119
123
|
componentName: "VueUiXy",
|
|
120
124
|
type: "datasetSerieAttribute",
|
|
121
125
|
property: "series (number[])",
|
|
@@ -124,7 +128,7 @@ const Yt = { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", zoom: { colo
|
|
|
124
128
|
});
|
|
125
129
|
});
|
|
126
130
|
});
|
|
127
|
-
function
|
|
131
|
+
function ua() {
|
|
128
132
|
if (!Object.keys(g.config || {}).length)
|
|
129
133
|
return hl;
|
|
130
134
|
const a = Tl({
|
|
@@ -143,10 +147,10 @@ const Yt = { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", zoom: { colo
|
|
|
143
147
|
}));
|
|
144
148
|
const r = a.theme;
|
|
145
149
|
if (!r) return a;
|
|
146
|
-
if (!
|
|
147
|
-
return
|
|
150
|
+
if (!no.value(a))
|
|
151
|
+
return uo(a), a;
|
|
148
152
|
const e = Tl({
|
|
149
|
-
userConfig:
|
|
153
|
+
userConfig: Qt[r] || g.config,
|
|
150
154
|
defaultConfig: a
|
|
151
155
|
}), s = Tl({
|
|
152
156
|
userConfig: g.config,
|
|
@@ -154,7 +158,7 @@ const Yt = { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", zoom: { colo
|
|
|
154
158
|
});
|
|
155
159
|
return {
|
|
156
160
|
...s,
|
|
157
|
-
customPalette: s.customPalette.length ? s.customPalette :
|
|
161
|
+
customPalette: s.customPalette.length ? s.customPalette : xr[r] || wa
|
|
158
162
|
};
|
|
159
163
|
}
|
|
160
164
|
function Va({ defaultConfig: a, userConfig: r }) {
|
|
@@ -170,7 +174,7 @@ const Yt = { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", zoom: { colo
|
|
|
170
174
|
set(a) {
|
|
171
175
|
return a;
|
|
172
176
|
}
|
|
173
|
-
}), l = x(
|
|
177
|
+
}), l = x(ua()), f = x({
|
|
174
178
|
dataLabels: { show: !0 },
|
|
175
179
|
showTooltip: !0,
|
|
176
180
|
showTable: !1,
|
|
@@ -186,10 +190,10 @@ const Yt = { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", zoom: { colo
|
|
|
186
190
|
useIndividualScale: l.value.chart.grid.labels.yAxis.useIndividualScale
|
|
187
191
|
}, Na.value = !0);
|
|
188
192
|
}
|
|
189
|
-
const yl = b(() => !!l.value.debug), { loading: ie, FINAL_DATASET: ge, manualLoading: Ol } =
|
|
190
|
-
...
|
|
193
|
+
const yl = b(() => !!l.value.debug), { loading: ie, FINAL_DATASET: ge, manualLoading: Ol } = wr({
|
|
194
|
+
...or(g),
|
|
191
195
|
FINAL_CONFIG: l,
|
|
192
|
-
prepareConfig:
|
|
196
|
+
prepareConfig: ua,
|
|
193
197
|
callback: () => {
|
|
194
198
|
Promise.resolve().then(async () => {
|
|
195
199
|
await Pl(), f.value.showTable = l.value.showTable;
|
|
@@ -210,7 +214,7 @@ const Yt = { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", zoom: { colo
|
|
|
210
214
|
color: "#CACACA"
|
|
211
215
|
}
|
|
212
216
|
],
|
|
213
|
-
skeletonConfig:
|
|
217
|
+
skeletonConfig: ur({
|
|
214
218
|
defaultConfig: l.value,
|
|
215
219
|
userConfig: {
|
|
216
220
|
useCssAnimation: !1,
|
|
@@ -268,7 +272,7 @@ const Yt = { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", zoom: { colo
|
|
|
268
272
|
}
|
|
269
273
|
})
|
|
270
274
|
});
|
|
271
|
-
function
|
|
275
|
+
function go(a) {
|
|
272
276
|
const r = /* @__PURE__ */ new WeakMap();
|
|
273
277
|
return (e, ...s) => {
|
|
274
278
|
let t = r.get(e);
|
|
@@ -278,27 +282,27 @@ const Yt = { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", zoom: { colo
|
|
|
278
282
|
return t || (t = /* @__PURE__ */ new Map(), r.set(e, t)), t.set(i, o), o;
|
|
279
283
|
};
|
|
280
284
|
}
|
|
281
|
-
const
|
|
285
|
+
const mo = go((a, r) => Sa({ data: a, threshold: r })), Re = (a) => mo(a, l.value.downsample.threshold), Oe = b({
|
|
282
286
|
get: () => Math.max(...ge.value.map((a) => Re(a.series).length)),
|
|
283
287
|
set: (a) => a
|
|
284
|
-
}), m = x({ start: 0, end: Oe.value }),
|
|
288
|
+
}), m = x({ start: 0, end: Oe.value }), $e = x({ start: 0, end: Oe.value }), Da = b(() => l.value.chart.zoom.preview.enable && ($e.value.start !== m.value.start || $e.value.end !== m.value.end));
|
|
285
289
|
function Pa(a, r) {
|
|
286
|
-
|
|
290
|
+
$e.value[a] = r;
|
|
287
291
|
}
|
|
288
|
-
function
|
|
292
|
+
function nl() {
|
|
289
293
|
const a = Math.max(
|
|
290
294
|
1,
|
|
291
295
|
...ge.value.map((s) => Re(s.series).length)
|
|
292
296
|
);
|
|
293
297
|
let r = Math.max(0, Math.min(m.value.start ?? 0, a - 1)), e = Math.max(r + 1, Math.min(m.value.end ?? a, a));
|
|
294
|
-
(!Number.isFinite(r) || !Number.isFinite(e) || e <= r) && (r = 0, e = a), m.value = { start: r, end: e },
|
|
298
|
+
(!Number.isFinite(r) || !Number.isFinite(e) || e <= r) && (r = 0, e = a), m.value = { start: r, end: e }, $e.value.start = r, $e.value.end = e, Fe.value && (Fe.value.setStartValue(r), Fe.value.setEndValue(e));
|
|
295
299
|
}
|
|
296
|
-
const
|
|
297
|
-
const { left: a, top: r, width: e, height: s } = c.value, t = m.value.start, o = m.value.end - t, L = e / o, M =
|
|
300
|
+
const bo = b(() => {
|
|
301
|
+
const { left: a, top: r, width: e, height: s } = c.value, t = m.value.start, o = m.value.end - t, L = e / o, M = $e.value.start - t, F = $e.value.end - t, w = Math.max(0, Math.min(o, M)), T = Math.max(0, Math.min(o, F));
|
|
298
302
|
return {
|
|
299
|
-
x: a +
|
|
303
|
+
x: a + w * L,
|
|
300
304
|
y: r,
|
|
301
|
-
width: (T -
|
|
305
|
+
width: (T - w) * L,
|
|
302
306
|
height: s,
|
|
303
307
|
fill: l.value.chart.zoom.preview.fill,
|
|
304
308
|
stroke: l.value.chart.zoom.preview.stroke,
|
|
@@ -315,17 +319,17 @@ const Yt = { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", zoom: { colo
|
|
|
315
319
|
});
|
|
316
320
|
Ll(() => g.selectedXIndex, (a) => {
|
|
317
321
|
if ([null, void 0].includes(g.selectedXIndex)) {
|
|
318
|
-
|
|
322
|
+
C.value = null;
|
|
319
323
|
return;
|
|
320
324
|
}
|
|
321
325
|
const r = a - m.value.start;
|
|
322
|
-
r < 0 || a >= m.value.end ?
|
|
326
|
+
r < 0 || a >= m.value.end ? C.value = null : C.value = r ?? null;
|
|
323
327
|
}, { immediate: !0 });
|
|
324
|
-
const { isPrinting: da, isImaging: Ea, generatePdf: Ra, generateImage: Ha } =
|
|
328
|
+
const { isPrinting: da, isImaging: Ea, generatePdf: Ra, generateImage: Ha } = _r({
|
|
325
329
|
elementId: `vue-ui-xy_${H.value}`,
|
|
326
330
|
fileName: l.value.chart.title.text || "vue-ui-xy",
|
|
327
331
|
options: l.value.chart.userOptions.print
|
|
328
|
-
}),
|
|
332
|
+
}), xo = x(!1), Bl = b(() => cr(l.value.customPalette)), Nl = b(() => {
|
|
329
333
|
if (l.value.chart.grid.labels.yAxis.scaleMin !== null)
|
|
330
334
|
return l.value.chart.grid.labels.yAxis.scaleMin;
|
|
331
335
|
const a = Math.min(...Pe.value.filter((r) => !J.value.includes(r.id)).map((r) => Math.min(...r.series)));
|
|
@@ -341,7 +345,7 @@ const Yt = { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", zoom: { colo
|
|
|
341
345
|
...a,
|
|
342
346
|
slotAbsoluteIndex: r,
|
|
343
347
|
series: e.map((t) => Jl(t) ? t : null).slice(m.value.start, m.value.end),
|
|
344
|
-
color: It(a.color ? a.color : Bl.value[r] ? Bl.value[r] :
|
|
348
|
+
color: It(a.color ? a.color : Bl.value[r] ? Bl.value[r] : wa[r]),
|
|
345
349
|
id: s,
|
|
346
350
|
scaleLabel: a.scaleLabel || s
|
|
347
351
|
};
|
|
@@ -352,12 +356,12 @@ const Yt = { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", zoom: { colo
|
|
|
352
356
|
absoluteValues: a.series,
|
|
353
357
|
segregate: () => Yl(a),
|
|
354
358
|
isSegregated: J.value.includes(a.id)
|
|
355
|
-
}))),
|
|
359
|
+
}))), _e = b(() => Pe.value.map((a, r) => ({
|
|
356
360
|
...a,
|
|
357
361
|
series: a.series.map((e) => e + kl.value),
|
|
358
362
|
absoluteValues: a.series
|
|
359
363
|
})).filter((a) => !J.value.includes(a.id)));
|
|
360
|
-
function
|
|
364
|
+
function po() {
|
|
361
365
|
let a = 0;
|
|
362
366
|
ta.value && (a = Array.from(ta.value.querySelectorAll("text")).reduce((t, i) => {
|
|
363
367
|
const o = i.getComputedTextLength();
|
|
@@ -366,14 +370,14 @@ const Yt = { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", zoom: { colo
|
|
|
366
370
|
const r = aa.value ? aa.value.getBoundingClientRect().width + l.value.chart.grid.labels.axis.yLabelOffsetX + y.value.yAxis : 0, e = l.value.chart.grid.labels.yAxis.crosshairSize;
|
|
367
371
|
return a + r + e;
|
|
368
372
|
}
|
|
369
|
-
const ha = x(0),
|
|
373
|
+
const ha = x(0), yo = kr((a) => {
|
|
370
374
|
ha.value = a;
|
|
371
375
|
}, 100);
|
|
372
376
|
Lt((a) => {
|
|
373
377
|
const r = sl.value;
|
|
374
378
|
if (!r) return;
|
|
375
379
|
const e = new ResizeObserver((s) => {
|
|
376
|
-
|
|
380
|
+
yo(s[0].contentRect.height);
|
|
377
381
|
});
|
|
378
382
|
e.observe(r), a(() => e.disconnect());
|
|
379
383
|
}), ka(() => {
|
|
@@ -384,16 +388,16 @@ const Yt = { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", zoom: { colo
|
|
|
384
388
|
la.value && (a = la.value.getBBox().height);
|
|
385
389
|
let r = 0;
|
|
386
390
|
return sl.value && (r = ha.value), a + r + y.value.xAxis;
|
|
387
|
-
}),
|
|
391
|
+
}), ko = b(() => ge.value.some((a) => a.useProgression)), c = b(() => {
|
|
388
392
|
let a = 0;
|
|
389
393
|
const r = 36;
|
|
390
|
-
l.value.chart.grid.labels.show && (f.value.useIndividualScale && !f.value.isStacked ? a = (ge.value.length - J.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 =
|
|
391
|
-
const e = l.value.chart.labels.fontSize * 1.1, s =
|
|
394
|
+
l.value.chart.grid.labels.show && (f.value.useIndividualScale && !f.value.isStacked ? a = (ge.value.length - J.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 = po());
|
|
395
|
+
const e = l.value.chart.labels.fontSize * 1.1, s = ko.value ? 24 : 6;
|
|
392
396
|
if (sl.value) {
|
|
393
397
|
const o = sl.value.getBBox().x;
|
|
394
398
|
o < 0 && (a += Math.abs(o));
|
|
395
399
|
}
|
|
396
|
-
const t = ee.value - a - l.value.chart.grid.labels.yAxis.crosshairSize - s - l.value.chart.padding?.left - l.value.chart.padding?.right, i = l.value.chart.grid.position === "middle" ? 0 : t /
|
|
400
|
+
const t = ee.value - a - l.value.chart.grid.labels.yAxis.crosshairSize - s - l.value.chart.padding?.left - l.value.chart.padding?.right, i = l.value.chart.grid.position === "middle" ? 0 : t / A.value / 2;
|
|
397
401
|
return {
|
|
398
402
|
top: l.value.chart.padding?.top + e,
|
|
399
403
|
right: ee.value - s - l.value.chart.padding?.right,
|
|
@@ -404,25 +408,25 @@ const Yt = { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", zoom: { colo
|
|
|
404
408
|
scaleLabelX: a,
|
|
405
409
|
individualOffsetX: r
|
|
406
410
|
};
|
|
407
|
-
}),
|
|
408
|
-
const a = l.value.chart.grid.position === "middle" ? 1 : 0, r =
|
|
411
|
+
}), Co = b(() => {
|
|
412
|
+
const a = l.value.chart.grid.position === "middle" ? 1 : 0, r = A.value + a, e = Y(c.value?.top), s = Y(c.value?.bottom);
|
|
409
413
|
return Array.from({ length: r }).map((t, i) => {
|
|
410
|
-
const o = c.value.width /
|
|
414
|
+
const o = c.value.width / A.value * i + c.value?.left + U.value;
|
|
411
415
|
return `M${o},${e} L${o},${s}`;
|
|
412
416
|
}).join(" ");
|
|
413
|
-
}),
|
|
417
|
+
}), _o = b(() => {
|
|
414
418
|
if (!l.value.chart.grid.labels.xAxis.showCrosshairs) return "";
|
|
415
|
-
const a = c.value.width /
|
|
419
|
+
const a = c.value.width / A.value, r = l.value.chart.grid.labels.xAxis.crosshairSize, e = l.value.chart.grid.labels.xAxis.crosshairsAlwaysAtZero;
|
|
416
420
|
return ma.value.map((s, t) => {
|
|
417
421
|
if (!s || !s.text) return null;
|
|
418
|
-
const i = c.value?.left + a * t + a / 2, o = e ?
|
|
422
|
+
const i = c.value?.left + a * t + a / 2, o = e ? ne.value - (ne.value === c.value?.bottom ? 0 : r / 2) : c.value?.bottom, L = e ? ne.value + r / (ne.value === c.value?.bottom ? 1 : 2) : c.value?.bottom + r;
|
|
419
423
|
return `M${i},${o} L${i},${L}`;
|
|
420
424
|
}).filter(Boolean).join(" ");
|
|
421
425
|
});
|
|
422
426
|
function Wa() {
|
|
423
|
-
return !!
|
|
427
|
+
return !!io?.vnode.props?.onSelectTimeLabel;
|
|
424
428
|
}
|
|
425
|
-
function
|
|
429
|
+
function wo(a, r, e) {
|
|
426
430
|
if (!Fl.value) {
|
|
427
431
|
const s = document.createElement("canvas");
|
|
428
432
|
Fl.value = s.getContext("2d");
|
|
@@ -444,7 +448,7 @@ const Yt = { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", zoom: { colo
|
|
|
444
448
|
xl.value = !xl.value;
|
|
445
449
|
}
|
|
446
450
|
const de = b(() => {
|
|
447
|
-
const a = Math.max(...ge.value.map((r) =>
|
|
451
|
+
const a = Math.max(...ge.value.map((r) => Sa({ data: r.series, threshold: l.value.downsample.threshold }).length));
|
|
448
452
|
return Ht({
|
|
449
453
|
values: l.value.chart.grid.labels.xAxisLabels.values,
|
|
450
454
|
maxDatapoints: a,
|
|
@@ -453,7 +457,7 @@ const Yt = { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", zoom: { colo
|
|
|
453
457
|
end: m.value.end
|
|
454
458
|
});
|
|
455
459
|
}), ga = b(() => {
|
|
456
|
-
const a = Math.max(...ge.value.map((r) =>
|
|
460
|
+
const a = Math.max(...ge.value.map((r) => Sa({ data: r.series, threshold: l.value.downsample.threshold }).length));
|
|
457
461
|
return Ht({
|
|
458
462
|
values: l.value.chart.grid.labels.xAxisLabels.values,
|
|
459
463
|
maxDatapoints: a,
|
|
@@ -461,15 +465,15 @@ const Yt = { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", zoom: { colo
|
|
|
461
465
|
start: 0,
|
|
462
466
|
end: Oe.value
|
|
463
467
|
});
|
|
464
|
-
}),
|
|
468
|
+
}), So = b(() => {
|
|
465
469
|
const a = l.value.chart.grid.labels.xAxisLabels.modulo;
|
|
466
470
|
return de.value.length ? Math.min(a, [...new Set(de.value.map((r) => r.text))].length) : a;
|
|
467
471
|
}), ma = b(() => {
|
|
468
|
-
const a = l.value.chart.grid.labels.xAxisLabels, r = de.value || [], e = ga.value || [], s = m.value.start ?? 0, t =
|
|
469
|
-
return
|
|
472
|
+
const a = l.value.chart.grid.labels.xAxisLabels, r = de.value || [], e = ga.value || [], s = m.value.start ?? 0, t = C.value, i = A.value, o = r.map((M) => M?.text ?? ""), L = e.map((M) => M?.text ?? "");
|
|
473
|
+
return vr(
|
|
470
474
|
!!a.showOnlyFirstAndLast,
|
|
471
475
|
!!a.showOnlyAtModulo,
|
|
472
|
-
Math.max(1,
|
|
476
|
+
Math.max(1, So.value || 1),
|
|
473
477
|
o,
|
|
474
478
|
L,
|
|
475
479
|
s,
|
|
@@ -478,7 +482,7 @@ const Yt = { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", zoom: { colo
|
|
|
478
482
|
);
|
|
479
483
|
});
|
|
480
484
|
function qa(a, r) {
|
|
481
|
-
const e =
|
|
485
|
+
const e = _e.value.map((s) => ({
|
|
482
486
|
shape: s.shape || null,
|
|
483
487
|
name: s.name,
|
|
484
488
|
color: s.color,
|
|
@@ -494,11 +498,11 @@ const Yt = { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", zoom: { colo
|
|
|
494
498
|
label: a.text
|
|
495
499
|
});
|
|
496
500
|
}
|
|
497
|
-
const
|
|
501
|
+
const A = b(() => {
|
|
498
502
|
const a = Ba((m.value.end ?? 0) - (m.value.start ?? 0));
|
|
499
503
|
return Math.max(1, a);
|
|
500
504
|
});
|
|
501
|
-
function
|
|
505
|
+
function Ao(a) {
|
|
502
506
|
B.value = a;
|
|
503
507
|
}
|
|
504
508
|
function Za() {
|
|
@@ -507,7 +511,7 @@ const Yt = { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", zoom: { colo
|
|
|
507
511
|
function ba(a) {
|
|
508
512
|
yl.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`));
|
|
509
513
|
}
|
|
510
|
-
function
|
|
514
|
+
function $o(a, r) {
|
|
511
515
|
const e = Ba(a), s = Array(e).fill(0);
|
|
512
516
|
for (let t = 0; t < r.length && t < e; t += 1) s[t] = r[t] ?? 0;
|
|
513
517
|
return s;
|
|
@@ -516,30 +520,30 @@ const Yt = { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", zoom: { colo
|
|
|
516
520
|
const r = Math.max(...ge.value.map((e) => Re(e.series).length));
|
|
517
521
|
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;
|
|
518
522
|
}
|
|
519
|
-
const
|
|
523
|
+
const Cl = x(!1), Qa = x(!1);
|
|
520
524
|
function Pl() {
|
|
521
|
-
if (!
|
|
522
|
-
|
|
525
|
+
if (!Cl.value) {
|
|
526
|
+
Cl.value = !0;
|
|
523
527
|
try {
|
|
524
528
|
const { startIndex: a, endIndex: r } = l.value.chart.zoom, e = Math.max(...ge.value.map((i) => Re(i.series).length)), s = a ?? 0, t = r != null ? Math.min(Ja(r + 1), e) : e;
|
|
525
|
-
El.value = !0, m.value.start = s, m.value.end = t,
|
|
529
|
+
El.value = !0, m.value.start = s, m.value.end = t, $e.value.start = s, $e.value.end = t, nl(), Qa.value = !0;
|
|
526
530
|
} finally {
|
|
527
531
|
queueMicrotask(() => {
|
|
528
532
|
El.value = !1;
|
|
529
|
-
}),
|
|
533
|
+
}), Cl.value = !1;
|
|
530
534
|
}
|
|
531
535
|
}
|
|
532
536
|
}
|
|
533
537
|
const El = x(!1);
|
|
534
|
-
function
|
|
535
|
-
|
|
538
|
+
function Lo(a) {
|
|
539
|
+
Cl.value || El.value || a !== m.value.start && (m.value.start = a, $e.value.start = a, nl());
|
|
536
540
|
}
|
|
537
|
-
function
|
|
538
|
-
if (
|
|
541
|
+
function Mo(a) {
|
|
542
|
+
if (Cl.value || El.value) return;
|
|
539
543
|
const r = Ja(a);
|
|
540
|
-
r !== m.value.end && (m.value.end = r,
|
|
544
|
+
r !== m.value.end && (m.value.end = r, $e.value.end = r, nl());
|
|
541
545
|
}
|
|
542
|
-
async function
|
|
546
|
+
async function To() {
|
|
543
547
|
await Pl();
|
|
544
548
|
}
|
|
545
549
|
function be(a) {
|
|
@@ -549,35 +553,35 @@ const Yt = { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", zoom: { colo
|
|
|
549
553
|
function Je(a) {
|
|
550
554
|
return a / (be(Ka.value) ? Ka.value : 1);
|
|
551
555
|
}
|
|
552
|
-
const
|
|
556
|
+
const ne = b(() => isNaN(Je(kl.value)) ? c.value?.bottom : c.value?.bottom - c.value.height * Je(kl.value));
|
|
553
557
|
function ja(a) {
|
|
554
|
-
const r = ![null, void 0].includes(l.value.chart.grid.labels.yAxis.scaleMin) && l.value.chart.grid.labels.yAxis.scaleMin > 0 && Nl.value >= 0 ? c.value?.bottom :
|
|
555
|
-
return a.value >= 0 ? N(r - a.y <= 0 ? 1e-5 : r - a.y) : N(a.y -
|
|
558
|
+
const r = ![null, void 0].includes(l.value.chart.grid.labels.yAxis.scaleMin) && l.value.chart.grid.labels.yAxis.scaleMin > 0 && Nl.value >= 0 ? c.value?.bottom : ne.value;
|
|
559
|
+
return a.value >= 0 ? N(r - a.y <= 0 ? 1e-5 : r - a.y) : N(a.y - ne.value <= 0 ? 1e-5 : a.y - ne.value);
|
|
556
560
|
}
|
|
557
561
|
function et(a) {
|
|
558
562
|
return a.value >= 0 ? N(a.zeroPosition - a.y <= 0 ? 1e-5 : a.zeroPosition - a.y) : N(a.y - a.zeroPosition <= 0 ? 1e-5 : a.zeroPosition - a.y);
|
|
559
563
|
}
|
|
560
564
|
const Z = b(() => {
|
|
561
|
-
const a = Math.max(1,
|
|
565
|
+
const a = Math.max(1, A.value), r = Math.max(1, c.value.width), e = Math.max(1, Pe.value.filter((s) => s.type === "bar" && !J.value.includes(s.id)).length);
|
|
562
566
|
return {
|
|
563
|
-
bar:
|
|
564
|
-
plot:
|
|
565
|
-
line:
|
|
567
|
+
bar: na(r, a * e, 1),
|
|
568
|
+
plot: na(r, a, 1),
|
|
569
|
+
line: na(r, a, 1)
|
|
566
570
|
};
|
|
567
571
|
});
|
|
568
572
|
function He() {
|
|
569
|
-
return f.value.useIndividualScale && f.value.isStacked ? Z.value.line - c.value.width /
|
|
573
|
+
return f.value.useIndividualScale && f.value.isStacked ? Z.value.line - c.value.width / A.value * 0.1 : Z.value.bar;
|
|
570
574
|
}
|
|
571
575
|
function Rl(a) {
|
|
572
|
-
return f.value.useIndividualScale && f.value.isStacked ? a.x + c.value.width /
|
|
576
|
+
return f.value.useIndividualScale && f.value.isStacked ? a.x + c.value.width / A.value * 0.05 : a.x + Z.value.bar / 2;
|
|
573
577
|
}
|
|
574
578
|
function lt(a) {
|
|
575
|
-
return a.value >= 0 ? a.y : [null, void 0, NaN, 1 / 0, -1 / 0].includes(
|
|
579
|
+
return a.value >= 0 ? a.y : [null, void 0, NaN, 1 / 0, -1 / 0].includes(ne.value) ? c?.bottom.value : ne.value;
|
|
576
580
|
}
|
|
577
581
|
function at(a) {
|
|
578
582
|
return a.value >= 0 ? a.y : [null, void 0, NaN, 1 / 0, -1 / 0].includes(a.zeroPosition) ? 0 : a.zeroPosition;
|
|
579
583
|
}
|
|
580
|
-
const
|
|
584
|
+
const _l = x(null);
|
|
581
585
|
function tt(a) {
|
|
582
586
|
const r = se.value;
|
|
583
587
|
if (!r) return null;
|
|
@@ -590,11 +594,11 @@ const Yt = { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", zoom: { colo
|
|
|
590
594
|
return { x: k.x, y: k.y, ok: !0 };
|
|
591
595
|
}
|
|
592
596
|
}
|
|
593
|
-
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), i = s.width * t, o = s.height * t, L = (e.width - i) / 2, M = (e.height - o) / 2, F = (a.clientX - e?.left - L) / t + s.x,
|
|
594
|
-
return { x: F, y:
|
|
597
|
+
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), i = s.width * t, o = s.height * t, L = (e.width - i) / 2, M = (e.height - o) / 2, F = (a.clientX - e?.left - L) / t + s.x, w = (a.clientY - e?.top - M) / t + s.y;
|
|
598
|
+
return { x: F, y: w, ok: !0 };
|
|
595
599
|
}
|
|
596
600
|
let Qe = 0;
|
|
597
|
-
function
|
|
601
|
+
function zo(a) {
|
|
598
602
|
xl.value || (Qe && cancelAnimationFrame(Qe), Qe = requestAnimationFrame(() => {
|
|
599
603
|
Qe = 0;
|
|
600
604
|
const r = tt(a);
|
|
@@ -607,29 +611,29 @@ const Yt = { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", zoom: { colo
|
|
|
607
611
|
Hl();
|
|
608
612
|
return;
|
|
609
613
|
}
|
|
610
|
-
const L = r.x - e, M = o /
|
|
611
|
-
F >= 0 && F <
|
|
614
|
+
const L = r.x - e, M = o / A.value, F = Math.floor(L / M);
|
|
615
|
+
F >= 0 && F < A.value ? _l.value !== F && (_l.value = F, mt(!0, F)) : Hl();
|
|
612
616
|
}));
|
|
613
617
|
}
|
|
614
618
|
function Hl() {
|
|
615
|
-
Qe && (cancelAnimationFrame(Qe), Qe = 0),
|
|
619
|
+
Qe && (cancelAnimationFrame(Qe), Qe = 0), _l.value = null, mt(!1, null);
|
|
616
620
|
}
|
|
617
621
|
function ot(a) {
|
|
618
622
|
const r = tt(a);
|
|
619
623
|
if (r && se.value) {
|
|
620
624
|
const { left: e, right: s, top: t, bottom: i, width: o } = c.value;
|
|
621
625
|
if (r.x >= e && r.x <= s && r.y >= t && r.y <= i) {
|
|
622
|
-
const L = o / Math.max(1,
|
|
623
|
-
if (M >= 0 && M <
|
|
626
|
+
const L = o / Math.max(1, A.value), M = Math.floor((r.x - e) / L);
|
|
627
|
+
if (M >= 0 && M < A.value) {
|
|
624
628
|
rt(M);
|
|
625
629
|
return;
|
|
626
630
|
}
|
|
627
631
|
}
|
|
628
632
|
}
|
|
629
|
-
|
|
633
|
+
_l.value != null && rt(_l.value);
|
|
630
634
|
}
|
|
631
635
|
function rt(a) {
|
|
632
|
-
const r =
|
|
636
|
+
const r = _e.value.map((e) => ({
|
|
633
637
|
name: e.name,
|
|
634
638
|
value: [null, void 0, NaN].includes(e.absoluteValues[a]) ? null : e.absoluteValues[a],
|
|
635
639
|
color: e.color,
|
|
@@ -644,7 +648,7 @@ const Yt = { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", zoom: { colo
|
|
|
644
648
|
}
|
|
645
649
|
), l.value.events.datapointClick && l.value.events.datapointClick({ datapoint: r, seriesIndex: a + m.value.start });
|
|
646
650
|
}
|
|
647
|
-
function
|
|
651
|
+
function Io() {
|
|
648
652
|
return me.value.map((a) => ({
|
|
649
653
|
values: a.absoluteValues,
|
|
650
654
|
color: a.color,
|
|
@@ -652,9 +656,9 @@ const Yt = { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", zoom: { colo
|
|
|
652
656
|
type: a.type
|
|
653
657
|
}));
|
|
654
658
|
}
|
|
655
|
-
async function
|
|
659
|
+
async function Fo({ scale: a = 2 } = {}) {
|
|
656
660
|
if (!Ie.value) return;
|
|
657
|
-
const { width: r, height: e } = Ie.value.getBoundingClientRect(), s = r / e, { imageUri: t, base64: i } = await
|
|
661
|
+
const { width: r, height: e } = Ie.value.getBoundingClientRect(), s = r / e, { imageUri: t, base64: i } = await zr({ domElement: Ie.value, base64: !0, img: !0, scale: a });
|
|
658
662
|
return {
|
|
659
663
|
imageUri: t,
|
|
660
664
|
base64: i,
|
|
@@ -671,7 +675,7 @@ const Yt = { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", zoom: { colo
|
|
|
671
675
|
if (J.value.length + 1 === Pe.value.length) return;
|
|
672
676
|
J.value.push(a.id);
|
|
673
677
|
}
|
|
674
|
-
ea("selectLegend",
|
|
678
|
+
ea("selectLegend", _e.value.map((r) => ({
|
|
675
679
|
name: r.name,
|
|
676
680
|
values: r.absoluteValues,
|
|
677
681
|
color: r.color,
|
|
@@ -684,20 +688,20 @@ const Yt = { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", zoom: { colo
|
|
|
684
688
|
const r = me.value.find((e) => e.name === a);
|
|
685
689
|
return r || (l.value.debug && console.warn(`VueUiXy - Series name not found "${a}"`), null);
|
|
686
690
|
}
|
|
687
|
-
function
|
|
691
|
+
function Oo(a) {
|
|
688
692
|
const r = st(a);
|
|
689
693
|
r !== null && J.value.includes(r.id) && Yl({ id: r.id });
|
|
690
694
|
}
|
|
691
|
-
function
|
|
695
|
+
function Bo(a) {
|
|
692
696
|
const r = st(a);
|
|
693
697
|
r !== null && (J.value.includes(r.id) || Yl({ id: r.id }));
|
|
694
698
|
}
|
|
695
|
-
const
|
|
699
|
+
const No = b(() => {
|
|
696
700
|
const a = l.value.chart.title.text || "Chart visualization", r = l.value.chart.title.subtitle.text || "";
|
|
697
701
|
return `${a}. ${r}`;
|
|
698
702
|
}), it = b(() => ({
|
|
699
|
-
linePlot:
|
|
700
|
-
})),
|
|
703
|
+
linePlot: A.value > l.value.line.dot.hideAboveMaxSerieLength
|
|
704
|
+
})), Vo = b(() => l.value.chart.userOptions.show && (!l.value.chart.title.show || !l.value.chart.title.text)), Do = b(() => {
|
|
701
705
|
if (Array.isArray(l.value.chart.highlightArea))
|
|
702
706
|
return l.value.chart.highlightArea.map((r) => {
|
|
703
707
|
const e = Math.min(r.to, Oe.value - 1);
|
|
@@ -711,20 +715,20 @@ const Yt = { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", zoom: { colo
|
|
|
711
715
|
to: Math.min(l.value.chart.highlightArea.to, Oe.value - 1)
|
|
712
716
|
};
|
|
713
717
|
return [{ ...a, span: a.from === a.to ? 1 : a.to < a.from ? 0 : a.to - a.from + 1 }];
|
|
714
|
-
}),
|
|
718
|
+
}), nt = b(() => La.value ? ge.value.map((a, r) => ({
|
|
715
719
|
...a,
|
|
716
720
|
series: Re(a.series),
|
|
717
721
|
id: `uniqueId_${r}`,
|
|
718
|
-
color: It(a.color ? a.color : Bl.value[r] ? Bl.value[r] :
|
|
719
|
-
})) : ge.value),
|
|
722
|
+
color: It(a.color ? a.color : Bl.value[r] ? Bl.value[r] : wa[r])
|
|
723
|
+
})) : ge.value), Po = b(() => _e.value.map((a) => {
|
|
720
724
|
const r = a.absoluteValues.map((e) => [void 0, null].includes(e) ? 0 : e);
|
|
721
725
|
return {
|
|
722
726
|
id: a.id,
|
|
723
727
|
name: a.name,
|
|
724
728
|
color: a.color,
|
|
725
|
-
values:
|
|
729
|
+
values: $o(A.value, r)
|
|
726
730
|
};
|
|
727
|
-
})),
|
|
731
|
+
})), Eo = b(() => ({
|
|
728
732
|
responsiveBreakpoint: l.value.table.responsiveBreakpoint,
|
|
729
733
|
roundingValues: l.value.table.rounding,
|
|
730
734
|
showAverage: !1,
|
|
@@ -733,7 +737,7 @@ const Yt = { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", zoom: { colo
|
|
|
733
737
|
fontFamily: l.value.chart.fontFamily,
|
|
734
738
|
prefix: l.value.chart.labels.prefix,
|
|
735
739
|
suffix: l.value.chart.labels.suffix,
|
|
736
|
-
colNames: de.value.map((a, r) => l.value.table.useDefaultTimeFormat ? a.text :
|
|
740
|
+
colNames: de.value.map((a, r) => l.value.table.useDefaultTimeFormat ? a.text : ul.value(r + m.value.start, l.value.table.timeFormat)),
|
|
737
741
|
thead: {
|
|
738
742
|
backgroundColor: l.value.table.th.backgroundColor,
|
|
739
743
|
color: l.value.table.th.color,
|
|
@@ -750,71 +754,71 @@ const Yt = { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", zoom: { colo
|
|
|
750
754
|
sparkline: {
|
|
751
755
|
animation: { show: !1 }
|
|
752
756
|
}
|
|
753
|
-
})), U = b(() => l.value.chart.grid.position === "middle" ? 0 : c.value.width /
|
|
757
|
+
})), U = b(() => l.value.chart.grid.position === "middle" ? 0 : c.value.width / A.value / 2), Ke = b(() => dr(me.value.filter((a) => !J.value.includes(a.id)))), $ = b(() => {
|
|
754
758
|
const a = Object.groupBy(Ke.value, (e) => e.scaleLabel), r = {};
|
|
755
759
|
for (const [e, s] of Object.entries(a)) {
|
|
756
760
|
const t = s.flatMap((i) => i.absoluteValues);
|
|
757
761
|
r[e] = {
|
|
758
762
|
min: Math.min(...t) || 0,
|
|
759
763
|
max: Math.max(...t) || 1,
|
|
760
|
-
groupId: `scale_group_${
|
|
764
|
+
groupId: `scale_group_${Ca()}`
|
|
761
765
|
};
|
|
762
766
|
}
|
|
763
767
|
return r;
|
|
764
|
-
}),
|
|
768
|
+
}), Ro = b(() => {
|
|
765
769
|
const a = Pe.value.filter((r) => r.type === "bar").filter((r) => !J.value.includes(r.id)).length;
|
|
766
|
-
return c.value.width /
|
|
767
|
-
}), Wl = b(() => Z.value.line * l.value.bar.periodGap), Xl = b(() => Math.max(1e-5, He() - (f.value.useIndividualScale && f.value.isStacked ? 0 : Wl.value))), Gl = b(() => Xl.value * Math.min(Math.abs(l.value.bar.innerGap), 0.95)),
|
|
770
|
+
return c.value.width / A.value / a - Wl.value * a;
|
|
771
|
+
}), Wl = b(() => Z.value.line * l.value.bar.periodGap), Xl = b(() => Math.max(1e-5, He() - (f.value.useIndividualScale && f.value.isStacked ? 0 : Wl.value))), Gl = b(() => Xl.value * Math.min(Math.abs(l.value.bar.innerGap), 0.95)), Ho = b(() => {
|
|
768
772
|
if (!l.value.chart.zoom.minimap.show) return [];
|
|
769
|
-
const a =
|
|
773
|
+
const a = nt.value.filter((t) => !J.value.includes(t.id)), r = Math.max(...a.map((t) => t.series.length)), e = [];
|
|
770
774
|
for (let t = 0; t < r; t += 1)
|
|
771
775
|
e.push(a.map((i) => i.series[t] || 0).reduce((i, o) => (i || 0) + (o || 0), 0));
|
|
772
776
|
const s = Math.min(...e);
|
|
773
777
|
return e.map((t) => t + (s < 0 ? Math.abs(s) : 0));
|
|
774
|
-
}),
|
|
778
|
+
}), Yo = b(() => l.value.chart.zoom.minimap.show ? nt.value.map((r) => ({
|
|
775
779
|
...r,
|
|
776
780
|
isVisible: !J.value.includes(r.id)
|
|
777
|
-
})) : []), je = b(() =>
|
|
781
|
+
})) : []), je = b(() => _e.value.map((a) => ({
|
|
778
782
|
slotAbsoluteIndex: a.slotAbsoluteIndex,
|
|
779
783
|
shape: a.shape || null,
|
|
780
784
|
name: a.name,
|
|
781
785
|
color: a.color,
|
|
782
786
|
type: a.type,
|
|
783
|
-
value: a.absoluteValues.find((r, e) => e ===
|
|
787
|
+
value: a.absoluteValues.find((r, e) => e === C.value),
|
|
784
788
|
comments: a.comments || [],
|
|
785
789
|
prefix: a.prefix || l.value.chart.labels.prefix,
|
|
786
790
|
suffix: a.suffix || l.value.chart.labels.suffix
|
|
787
|
-
}))),
|
|
788
|
-
y: a >= 0 ?
|
|
791
|
+
}))), ut = b(() => Le.value.ticks.map((a) => ({
|
|
792
|
+
y: a >= 0 ? ne.value - c.value.height * Je(a) : ne.value + c.value.height * Je(Math.abs(a)),
|
|
789
793
|
value: a,
|
|
790
794
|
prefix: l.value.chart.labels.prefix,
|
|
791
795
|
suffix: l.value.chart.labels.suffix
|
|
792
796
|
}))), ct = b(() => {
|
|
793
797
|
const a = l.value.chart.annotations;
|
|
794
|
-
if (!a || !Array.isArray(a) || a.every((
|
|
798
|
+
if (!a || !Array.isArray(a) || a.every((w) => !w.show)) return [];
|
|
795
799
|
const r = a.filter(
|
|
796
|
-
(
|
|
800
|
+
(w) => w.show && (w.yAxis.yTop != null || w.yAxis.yBottom != null)
|
|
797
801
|
);
|
|
798
802
|
if (!r.length) return [];
|
|
799
|
-
const { left: e, right: s } = c.value, t =
|
|
800
|
-
const T = (
|
|
803
|
+
const { left: e, right: s } = c.value, t = ne.value, i = c.value.height, o = Le.value.min, M = Le.value.max - o, F = (w) => {
|
|
804
|
+
const T = (w - 0) / M;
|
|
801
805
|
return t - T * i;
|
|
802
806
|
};
|
|
803
|
-
return r.map((
|
|
804
|
-
const { yAxis: { yTop: T, yBottom: W, label: k } } =
|
|
805
|
-
|
|
806
|
-
const q =
|
|
807
|
+
return r.map((w) => {
|
|
808
|
+
const { yAxis: { yTop: T, yBottom: W, label: k } } = w, V = T != null && W != null && T !== W, z = T == null ? null : F(T), le = W == null ? null : F(W), ue = wo(k.fontSize);
|
|
809
|
+
ue.font = `${k.fontSize}px sans-serif`;
|
|
810
|
+
const q = ue.measureText(k.text).width, we = k.fontSize, Be = (k.position === "start" ? e + k.padding?.left : s - k.padding?.right) + k.offsetX, pe = (z != null && le != null ? Math.min(z, le) : z ?? le) - k.fontSize / 3 + k.offsetY - k.padding?.top;
|
|
807
811
|
let E;
|
|
808
812
|
k.textAnchor === "middle" ? E = Be - q / 2 - k.padding?.left : k.textAnchor === "end" ? E = Be - q - k.padding?.right : E = Be - k.padding?.left;
|
|
809
|
-
const R = pe -
|
|
813
|
+
const R = pe - we * 0.75 - k.padding?.top;
|
|
810
814
|
return {
|
|
811
815
|
show: ![z, le, R].includes(NaN),
|
|
812
|
-
id: `annotation_y_${
|
|
816
|
+
id: `annotation_y_${Ca()}`,
|
|
813
817
|
hasArea: V,
|
|
814
818
|
areaHeight: V ? Math.abs(z - le) : 0,
|
|
815
819
|
yTop: z,
|
|
816
820
|
yBottom: le,
|
|
817
|
-
config:
|
|
821
|
+
config: w.yAxis,
|
|
818
822
|
x1: e,
|
|
819
823
|
x2: s,
|
|
820
824
|
_text: { x: Be, y: pe },
|
|
@@ -822,7 +826,7 @@ const Yt = { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", zoom: { colo
|
|
|
822
826
|
x: E,
|
|
823
827
|
y: R,
|
|
824
828
|
width: q + k.padding?.left + k.padding?.right,
|
|
825
|
-
height:
|
|
829
|
+
height: we + k.padding?.top + k.padding?.bottom,
|
|
826
830
|
fill: k.backgroundColor,
|
|
827
831
|
stroke: k.border.stroke,
|
|
828
832
|
rx: k.border.rx,
|
|
@@ -841,16 +845,16 @@ const Yt = { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", zoom: { colo
|
|
|
841
845
|
const a = Ke.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, i = c.value.height - t;
|
|
842
846
|
return a.filter((o) => o.type === "bar").map((o, L) => {
|
|
843
847
|
ba(o);
|
|
844
|
-
const M =
|
|
848
|
+
const M = $.value[o.scaleLabel].min, F = $.value[o.scaleLabel].max;
|
|
845
849
|
o.absoluteValues.filter((D) => ![null, void 0].includes(D)).map((D) => (D - M) / (F - M));
|
|
846
|
-
const
|
|
850
|
+
const w = {
|
|
847
851
|
valueMin: M,
|
|
848
852
|
valueMax: F < 0 ? 0 : F
|
|
849
853
|
}, T = {
|
|
850
854
|
max: o.scaleMax || Math.max(...o.absoluteValues) || 1,
|
|
851
855
|
min: o.scaleMin || Math.min(...o.absoluteValues.filter((D) => ![void 0, null].includes(D))) > 0 ? 0 : Math.min(...o.absoluteValues.filter((D) => ![null, void 0].includes(D)))
|
|
852
|
-
}, W = o.scaleSteps || l.value.chart.grid.labels.yAxis.commonScaleSteps, k = 1.0000001, V = l.value.chart.grid.labels.yAxis.useNiceScale ? Ml(T.min, T.max === T.min ? T.max * k : T.max, W) : tl(T.min, T.max === T.min ? T.max * k : T.max, W), z = l.value.chart.grid.labels.yAxis.useNiceScale ? Ml(
|
|
853
|
-
const We = f.value.useIndividualScale ? (o.absoluteValues[j] + le) / q : Je(D), el = f.value.useIndividualScale && f.value.isStacked ? c.value?.left + c.value.width /
|
|
856
|
+
}, W = o.scaleSteps || l.value.chart.grid.labels.yAxis.commonScaleSteps, k = 1.0000001, V = l.value.chart.grid.labels.yAxis.useNiceScale ? Ml(T.min, T.max === T.min ? T.max * k : T.max, W) : tl(T.min, T.max === T.min ? T.max * k : T.max, W), z = l.value.chart.grid.labels.yAxis.useNiceScale ? Ml(w.valueMin, w.valueMax === w.valueMin ? w.valueMax * k : w.valueMax, W) : tl(w.valueMin, w.valueMax === w.valueMin ? w.valueMax * k : w.valueMax, W), le = V.min >= 0 ? 0 : Math.abs(V.min), ue = 0, q = V.max + le, we = z.max + Math.abs(ue), Be = o.stackIndex, cl = r - 1 - Be, pe = s ? 1 - o.cumulatedStackRatio : 0, E = s ? i * pe + e * cl : 0, R = s ? i * o.stackRatio : c.value.height, Q = c.value?.bottom - E - R * le / q, ye = c.value?.bottom - E - R * ue / we, ce = me.value.filter((D) => D.type === "bar").filter((D) => !J.value.includes(D.id)).length, Al = o.series.map((D, j) => {
|
|
857
|
+
const We = f.value.useIndividualScale ? (o.absoluteValues[j] + le) / q : Je(D), el = f.value.useIndividualScale && f.value.isStacked ? c.value?.left + c.value.width / A.value * j : c.value?.left + Z.value.bar * L + Z.value.bar * j * ce - Ro.value / 2 - L * Wl.value;
|
|
854
858
|
return {
|
|
855
859
|
yOffset: N(E),
|
|
856
860
|
individualHeight: N(R),
|
|
@@ -862,7 +866,7 @@ const Yt = { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", zoom: { colo
|
|
|
862
866
|
comment: o.comments && o.comments.slice(m.value.start, m.value.end)[j] || ""
|
|
863
867
|
};
|
|
864
868
|
}), he = o.absoluteValues.map((D) => z.min >= 0 ? (D - Math.abs(z.min)) / (z.max - Math.abs(z.min)) : (D + Math.abs(z.min)) / (z.max + Math.abs(z.min))), Ye = o.series.map((D, j) => {
|
|
865
|
-
const We = f.value.useIndividualScale && f.value.isStacked ? c.value?.left + c.value.width /
|
|
869
|
+
const We = f.value.useIndividualScale && f.value.isStacked ? c.value?.left + c.value.width / A.value * j : c.value?.left - Z.value.bar / 2 + Z.value.bar * L + Z.value.bar * j * me.value.filter((el) => el.type === "bar").filter((el) => !J.value.includes(el.id)).length;
|
|
866
870
|
return {
|
|
867
871
|
yOffset: N(E),
|
|
868
872
|
individualHeight: N(R),
|
|
@@ -889,47 +893,47 @@ const Yt = { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", zoom: { colo
|
|
|
889
893
|
datapoint: o
|
|
890
894
|
};
|
|
891
895
|
});
|
|
892
|
-
return
|
|
896
|
+
return $.value[o.scaleLabel].name = o.name, $.value[o.scaleLabel].groupName = o.scaleLabel, $.value[o.scaleLabel].groupColor = l.value.chart.grid.labels.yAxis.groupColor || o.color, $.value[o.scaleLabel].color = o.color, $.value[o.scaleLabel].scaleYLabels = o.autoScaling ? K : X, $.value[o.scaleLabel].zeroPosition = o.autoScaling ? ye : Q, $.value[o.scaleLabel].individualMax = o.autoScaling ? we : q, $.value[o.scaleLabel].scaleLabel = o.scaleLabel, $.value[o.scaleLabel].id = o.id, $.value[o.scaleLabel].yOffset = E, $.value[o.scaleLabel].individualHeight = R, $.value[o.scaleLabel].autoScaleYLabels = K, $.value[o.scaleLabel].unique = Ke.value.filter((D) => D.scaleLabel === o.scaleLabel).length === 1, {
|
|
893
897
|
...o,
|
|
894
898
|
yOffset: E,
|
|
895
899
|
autoScaleYLabels: K,
|
|
896
900
|
individualHeight: R,
|
|
897
901
|
scaleYLabels: o.autoScaling ? K : X,
|
|
898
902
|
individualScale: o.autoScaling ? z : V,
|
|
899
|
-
individualMax: o.autoScaling ?
|
|
903
|
+
individualMax: o.autoScaling ? we : q,
|
|
900
904
|
zeroPosition: o.autoScaling ? ye : Q,
|
|
901
|
-
plots: o.autoScaling ? Ye :
|
|
902
|
-
groupId:
|
|
905
|
+
plots: o.autoScaling ? Ye : Al,
|
|
906
|
+
groupId: $.value[o.scaleLabel].groupId
|
|
903
907
|
};
|
|
904
908
|
});
|
|
905
909
|
}), te = b(() => {
|
|
906
910
|
const a = Ke.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, i = c.value.height - t;
|
|
907
911
|
return a.filter((o) => o.type === "line").map((o, L) => {
|
|
908
912
|
ba(o);
|
|
909
|
-
const M =
|
|
913
|
+
const M = $.value[o.scaleLabel].min, F = $.value[o.scaleLabel].max;
|
|
910
914
|
o.absoluteValues.filter((O) => ![null, void 0].includes(O)).map((O) => (O - M) / (F - M));
|
|
911
|
-
const
|
|
915
|
+
const w = {
|
|
912
916
|
valueMin: M,
|
|
913
917
|
valueMax: F
|
|
914
918
|
}, T = {
|
|
915
919
|
max: o.scaleMax || Math.max(...o.absoluteValues) || 1,
|
|
916
920
|
min: o.scaleMin || (Math.min(...o.absoluteValues) > 0 ? 0 : Math.min(...o.absoluteValues))
|
|
917
|
-
}, W = o.scaleSteps || l.value.chart.grid.labels.yAxis.commonScaleSteps, k = 1.0000001, V = l.value.chart.grid.labels.yAxis.useNiceScale ? Ml(T.min, T.max === T.min ? T.max * k : T.max, W) : tl(T.min, T.max === T.min ? T.max * k : T.max, W), z = l.value.chart.grid.labels.yAxis.useNiceScale ? Ml(
|
|
918
|
-
const
|
|
921
|
+
}, W = o.scaleSteps || l.value.chart.grid.labels.yAxis.commonScaleSteps, k = 1.0000001, V = l.value.chart.grid.labels.yAxis.useNiceScale ? Ml(T.min, T.max === T.min ? T.max * k : T.max, W) : tl(T.min, T.max === T.min ? T.max * k : T.max, W), z = l.value.chart.grid.labels.yAxis.useNiceScale ? Ml(w.valueMin, w.valueMax === w.valueMin ? w.valueMax * k : w.valueMax, W) : tl(w.valueMin, w.valueMax === w.valueMin ? w.valueMax * k : w.valueMax, W), le = V.min >= 0 ? 0 : Math.abs(V.min), ue = 0, q = V.max + Math.abs(le), we = z.max + Math.abs(ue), Be = o.stackIndex, cl = r - 1 - Be, pe = s ? 1 - o.cumulatedStackRatio : 0, E = s ? i * pe + e * cl : 0, R = s ? i * o.stackRatio : c.value.height, Q = c.value?.bottom - E - R * le / q, ye = c.value?.bottom - E - R * ue / we, ce = o.series.map((O, oe) => {
|
|
922
|
+
const lr = f.value.useIndividualScale ? (o.absoluteValues[oe] + Math.abs(le)) / q : Je(O);
|
|
919
923
|
return {
|
|
920
924
|
x: N(c.value?.left + Z.value.line / 2 + Z.value.line * oe),
|
|
921
|
-
y: N(c.value?.bottom - E - R *
|
|
925
|
+
y: N(c.value?.bottom - E - R * lr),
|
|
922
926
|
value: o.absoluteValues[oe],
|
|
923
927
|
comment: o.comments && o.comments.slice(m.value.start, m.value.end)[oe] || ""
|
|
924
928
|
};
|
|
925
|
-
}),
|
|
929
|
+
}), Al = o.absoluteValues.map((O) => z.min >= 0 ? (O - Math.abs(z.min)) / (z.max - Math.abs(z.min)) : (O + Math.abs(z.min)) / (z.max + Math.abs(z.min))), he = o.series.map((O, oe) => [void 0, null].includes(o.absoluteValues[oe]) ? {
|
|
926
930
|
x: N(c.value?.left + Z.value.line / 2 + Z.value.line * oe),
|
|
927
931
|
y: Q,
|
|
928
932
|
value: o.absoluteValues[oe],
|
|
929
933
|
comment: o.comments && o.comments.slice(m.value.start, m.value.end)[oe] || ""
|
|
930
934
|
} : {
|
|
931
935
|
x: N(c.value?.left + Z.value.line / 2 + Z.value.line * oe),
|
|
932
|
-
y: N(c.value?.bottom - E - (R *
|
|
936
|
+
y: N(c.value?.bottom - E - (R * Al[oe] || 0)),
|
|
933
937
|
value: o.absoluteValues[oe],
|
|
934
938
|
comment: o.comments && o.comments.slice(m.value.start, m.value.end)[oe] || ""
|
|
935
939
|
}), Ye = l.value.line.cutNullValues ? Ft(ce) : Ot(ce.filter((O) => O.value !== null)), X = l.value.line.cutNullValues ? Ft(he) : Ot(he.filter((O) => O.value !== null)), K = l.value.line.cutNullValues ? Bt(ce) : Nt(ce.filter((O) => O.value !== null)), D = l.value.line.cutNullValues ? Bt(he) : Nt(he.filter((O) => O.value !== null)), j = V.ticks.map((O) => ({
|
|
@@ -948,8 +952,8 @@ const Yt = { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", zoom: { colo
|
|
|
948
952
|
datapoint: o
|
|
949
953
|
};
|
|
950
954
|
});
|
|
951
|
-
|
|
952
|
-
const el = f.value.useIndividualScale ? o.autoScaling ? ye : Q :
|
|
955
|
+
$.value[o.scaleLabel].name = o.name, $.value[o.scaleLabel].groupName = o.scaleLabel, $.value[o.scaleLabel].groupColor = l.value.chart.grid.labels.yAxis.groupColor || o.color, $.value[o.scaleLabel].color = o.color, $.value[o.scaleLabel].scaleYLabels = o.autoScaling ? We : j, $.value[o.scaleLabel].zeroPosition = o.autoScaling ? ye : Q, $.value[o.scaleLabel].individualMax = o.autoScaling ? we : q, $.value[o.scaleLabel].scaleLabel = o.scaleLabel, $.value[o.scaleLabel].id = o.id, $.value[o.scaleLabel].yOffset = E, $.value[o.scaleLabel].individualHeight = R, $.value[o.scaleLabel].autoScaleYLabels = We, $.value[o.scaleLabel].unique = Ke.value.filter((O) => O.scaleLabel === o.scaleLabel).length === 1;
|
|
956
|
+
const el = f.value.useIndividualScale ? o.autoScaling ? ye : Q : ne.value, $l = Math.max(Math.max(o.autoScaling ? ye : j.at(-1) ? j.at(-1).y : 0, c.value?.top), el);
|
|
953
957
|
return {
|
|
954
958
|
...o,
|
|
955
959
|
yOffset: E,
|
|
@@ -957,53 +961,53 @@ const Yt = { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", zoom: { colo
|
|
|
957
961
|
individualHeight: R,
|
|
958
962
|
scaleYLabels: o.autoScaling ? We : j,
|
|
959
963
|
individualScale: o.autoScaling ? z : V,
|
|
960
|
-
individualMax: o.autoScaling ?
|
|
964
|
+
individualMax: o.autoScaling ? we : q,
|
|
961
965
|
zeroPosition: o.autoScaling ? ye : Q,
|
|
962
966
|
curve: o.autoScaling ? X : Ye,
|
|
963
967
|
plots: o.autoScaling ? he : ce,
|
|
964
968
|
area: o.useArea ? f.value.useIndividualScale ? l.value.line.cutNullValues ? Vt(
|
|
965
969
|
o.autoScaling ? he : ce,
|
|
966
|
-
|
|
970
|
+
$l
|
|
967
971
|
) : Dt(
|
|
968
972
|
o.autoScaling ? he.filter((O) => O.value !== null) : ce.filter((O) => O.value !== null),
|
|
969
|
-
|
|
970
|
-
) : l.value.line.cutNullValues ? Vt(ce,
|
|
971
|
-
curveAreas: o.useArea ?
|
|
973
|
+
$l
|
|
974
|
+
) : l.value.line.cutNullValues ? Vt(ce, $l) : Dt(ce.filter((O) => O.value !== null), $l) : "",
|
|
975
|
+
curveAreas: o.useArea ? hr(
|
|
972
976
|
o.autoScaling ? l.value.line.cutNullValues ? he : he.filter((O) => O.value !== null) : l.value.line.cutNullValues ? ce : ce.filter((O) => O.value !== null),
|
|
973
|
-
|
|
977
|
+
$l,
|
|
974
978
|
l.value.line.cutNullValues
|
|
975
979
|
) : [],
|
|
976
980
|
straight: o.autoScaling ? D : K,
|
|
977
|
-
groupId:
|
|
981
|
+
groupId: $.value[o.scaleLabel].groupId
|
|
978
982
|
};
|
|
979
983
|
});
|
|
980
984
|
}), xe = b(() => {
|
|
981
985
|
const a = Ke.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, i = c.value.height - t;
|
|
982
986
|
return a.filter((o) => o.type === "plot").map((o) => {
|
|
983
987
|
ba(o);
|
|
984
|
-
const L =
|
|
988
|
+
const L = $.value[o.scaleLabel].min, M = $.value[o.scaleLabel].max;
|
|
985
989
|
o.absoluteValues.filter((X) => ![null, void 0].includes(X)).map((X) => (X - L) / (M - L));
|
|
986
990
|
const F = {
|
|
987
991
|
valueMin: L,
|
|
988
992
|
valueMax: M
|
|
989
|
-
},
|
|
993
|
+
}, w = {
|
|
990
994
|
max: o.scaleMax || Math.max(...o.absoluteValues) || 1,
|
|
991
995
|
min: o.scaleMin || Math.min(...o.absoluteValues) > 0 ? 0 : Math.min(...o.absoluteValues)
|
|
992
|
-
}, T = o.scaleSteps || l.value.chart.grid.labels.yAxis.commonScaleSteps, W = 1.0000001, k = tl(
|
|
993
|
-
const D = f.value.useIndividualScale ? (o.absoluteValues[K] + Math.abs(z)) /
|
|
996
|
+
}, T = o.scaleSteps || l.value.chart.grid.labels.yAxis.commonScaleSteps, W = 1.0000001, k = tl(w.min, w.max === w.min ? w.max * W : w.max, T), V = tl(F.valueMin, F.valueMax === F.valueMin ? F.valueMax * W : F.valueMax, T), z = k.min >= 0 ? 0 : Math.abs(k.min), le = 0, ue = k.max + z, q = V.max + Math.abs(le), we = o.stackIndex, Be = r - 1 - we, cl = s ? 1 - o.cumulatedStackRatio : 0, pe = s ? i * cl + e * Be : 0, E = s ? i * o.stackRatio : c.value.height, R = c.value?.bottom - pe - E * z / ue, Q = c.value?.bottom - pe - E * le / q, ye = o.series.map((X, K) => {
|
|
997
|
+
const D = f.value.useIndividualScale ? (o.absoluteValues[K] + Math.abs(z)) / ue : Je(X);
|
|
994
998
|
return {
|
|
995
999
|
x: N(c.value?.left + Z.value.plot / 2 + Z.value.plot * K),
|
|
996
1000
|
y: N(c.value?.bottom - pe - E * D),
|
|
997
1001
|
value: o.absoluteValues[K],
|
|
998
1002
|
comment: o.comments && o.comments.slice(m.value.start, m.value.end)[K] || ""
|
|
999
1003
|
};
|
|
1000
|
-
}), ce = o.absoluteValues.map((X) => V.min >= 0 ? (X - Math.abs(V.min)) / (V.max - Math.abs(V.min)) : (X + Math.abs(V.min)) / (V.max + Math.abs(V.min))),
|
|
1004
|
+
}), ce = o.absoluteValues.map((X) => V.min >= 0 ? (X - Math.abs(V.min)) / (V.max - Math.abs(V.min)) : (X + Math.abs(V.min)) / (V.max + Math.abs(V.min))), Al = o.series.map((X, K) => ({
|
|
1001
1005
|
x: N(c.value?.left + Z.value.plot / 2 + Z.value.plot * K),
|
|
1002
1006
|
y: N(c.value?.bottom - pe - (E * ce[K] || 0)),
|
|
1003
1007
|
value: o.absoluteValues[K],
|
|
1004
1008
|
comment: o.comments && o.comments.slice(m.value.start, m.value.end)[K] || ""
|
|
1005
1009
|
})), he = k.ticks.map((X) => ({
|
|
1006
|
-
y: X >= 0 ? R - E * (X /
|
|
1010
|
+
y: X >= 0 ? R - E * (X / ue) : R + E * Math.abs(X) / ue,
|
|
1007
1011
|
value: X,
|
|
1008
1012
|
prefix: o.prefix || l.value.chart.labels.prefix,
|
|
1009
1013
|
suffix: o.suffix || l.value.chart.labels.suffix,
|
|
@@ -1018,20 +1022,20 @@ const Yt = { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", zoom: { colo
|
|
|
1018
1022
|
datapoint: o
|
|
1019
1023
|
};
|
|
1020
1024
|
});
|
|
1021
|
-
return
|
|
1025
|
+
return $.value[o.scaleLabel].name = o.name, $.value[o.scaleLabel].groupName = o.scaleLabel, $.value[o.scaleLabel].groupColor = l.value.chart.grid.labels.yAxis.groupColor || o.color, $.value[o.scaleLabel].color = o.color, $.value[o.scaleLabel].scaleYLabels = o.autoScaling ? Ye : he, $.value[o.scaleLabel].zeroPosition = o.autoScaling ? Q : R, $.value[o.scaleLabel].individualMax = o.autoScaling ? q : ue, $.value[o.scaleLabel].scaleLabel = o.scaleLabel, $.value[o.scaleLabel].id = o.id, $.value[o.scaleLabel].yOffset = pe, $.value[o.scaleLabel].individualHeight = E, $.value[o.scaleLabel].autoScaleYLabels = Ye, $.value[o.scaleLabel].unique = Ke.value.filter((X) => X.scaleLabel === o.scaleLabel).length === 1, {
|
|
1022
1026
|
...o,
|
|
1023
1027
|
yOffset: pe,
|
|
1024
1028
|
autoScaleYLabels: Ye,
|
|
1025
1029
|
individualHeight: E,
|
|
1026
1030
|
scaleYLabels: o.autoScaling ? Ye : he,
|
|
1027
1031
|
individualScale: o.autoScaling ? V : k,
|
|
1028
|
-
individualMax: o.autoScaling ? q :
|
|
1032
|
+
individualMax: o.autoScaling ? q : ue,
|
|
1029
1033
|
zeroPosition: o.autoScaling ? Q : R,
|
|
1030
|
-
plots: o.autoScaling ?
|
|
1031
|
-
groupId:
|
|
1034
|
+
plots: o.autoScaling ? Al : ye,
|
|
1035
|
+
groupId: $.value[o.scaleLabel].groupId
|
|
1032
1036
|
};
|
|
1033
1037
|
});
|
|
1034
|
-
}),
|
|
1038
|
+
}), wl = b(() => {
|
|
1035
1039
|
const a = te.value.map((i) => ({
|
|
1036
1040
|
name: i.name,
|
|
1037
1041
|
color: i.color,
|
|
@@ -1067,7 +1071,7 @@ const Yt = { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", zoom: { colo
|
|
|
1067
1071
|
id: i.id,
|
|
1068
1072
|
yOffset: i.yOffset || 0,
|
|
1069
1073
|
individualHeight: i.individualHeight || c.value.height
|
|
1070
|
-
})), s = f.value.useIndividualScale && !f.value.isStacked ? Object.values(
|
|
1074
|
+
})), s = f.value.useIndividualScale && !f.value.isStacked ? Object.values($.value) : [...a, ...r, ...e], t = s.flatMap((i) => i).length;
|
|
1071
1075
|
return s.flatMap((i, o) => {
|
|
1072
1076
|
let L = 0;
|
|
1073
1077
|
L = f.value.isStacked ? c.value?.left : c.value?.left / t * (o + 1);
|
|
@@ -1103,13 +1107,13 @@ const Yt = { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", zoom: { colo
|
|
|
1103
1107
|
if (!o || !L) return;
|
|
1104
1108
|
const M = te.value.find((k) => k.name === o), F = te.value.find((k) => k.name === L);
|
|
1105
1109
|
if (!M || !F || M.type !== "line" || F.type !== "line") return;
|
|
1106
|
-
const
|
|
1107
|
-
|
|
1110
|
+
const w = e?.[i]?.[0] ?? M.color, T = e?.[i]?.[1] ?? F.color;
|
|
1111
|
+
fr({
|
|
1108
1112
|
lineA: M.plots,
|
|
1109
1113
|
lineB: F.plots,
|
|
1110
1114
|
smoothA: !!M.smooth,
|
|
1111
1115
|
smoothB: !!F.smooth,
|
|
1112
|
-
colorLineA:
|
|
1116
|
+
colorLineA: w,
|
|
1113
1117
|
colorLineB: T,
|
|
1114
1118
|
sampleStepPx: 2,
|
|
1115
1119
|
cutNullValues: l.value.line.cutNullValues
|
|
@@ -1119,16 +1123,16 @@ const Yt = { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", zoom: { colo
|
|
|
1119
1123
|
}), s;
|
|
1120
1124
|
}), ht = b(() => ({
|
|
1121
1125
|
datapoint: je.value,
|
|
1122
|
-
seriesIndex:
|
|
1126
|
+
seriesIndex: C.value,
|
|
1123
1127
|
series: me.value,
|
|
1124
1128
|
bars: Me.value,
|
|
1125
1129
|
lines: te.value,
|
|
1126
1130
|
plots: xe.value,
|
|
1127
1131
|
config: l.value
|
|
1128
|
-
})),
|
|
1129
|
-
const a = l.value.chart.grid.labels.xAxisLabels.datetimeFormatter, r =
|
|
1132
|
+
})), ul = b(() => {
|
|
1133
|
+
const a = l.value.chart.grid.labels.xAxisLabels.datetimeFormatter, r = Ar({
|
|
1130
1134
|
useUTC: a.useUTC,
|
|
1131
|
-
locale:
|
|
1135
|
+
locale: $r[a.locale] || { months: [], shortMonths: [], days: [], shortDays: [] },
|
|
1132
1136
|
januaryAsYear: a.januaryAsYear
|
|
1133
1137
|
});
|
|
1134
1138
|
return (e, s) => {
|
|
@@ -1136,14 +1140,14 @@ const Yt = { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", zoom: { colo
|
|
|
1136
1140
|
return i == null ? "" : r.formatDate(new Date(i), s);
|
|
1137
1141
|
};
|
|
1138
1142
|
}), ft = b(() => (l.value.chart.grid.labels.xAxisLabels.values || []).map((r, e) => ({
|
|
1139
|
-
text:
|
|
1143
|
+
text: ul.value(e, l.value.chart.zoom.timeFormat),
|
|
1140
1144
|
absoluteIndex: e
|
|
1141
|
-
}))),
|
|
1145
|
+
}))), Wo = b(() => {
|
|
1142
1146
|
let a = "", r = je.value.map((t) => t.value).filter((t) => Jl(t) && t !== null).reduce((t, i) => Math.abs(t) + Math.abs(i), 0);
|
|
1143
|
-
const e = de.value[
|
|
1144
|
-
if (Pt(s) &&
|
|
1145
|
-
absoluteIndex:
|
|
1146
|
-
seriesIndex:
|
|
1147
|
+
const e = de.value[C.value], s = l.value.chart.tooltip.customFormat;
|
|
1148
|
+
if (Pt(s) && gr(() => s({
|
|
1149
|
+
absoluteIndex: C.value + m.value.start,
|
|
1150
|
+
seriesIndex: C.value,
|
|
1147
1151
|
datapoint: je.value,
|
|
1148
1152
|
series: me.value,
|
|
1149
1153
|
bars: Me.value,
|
|
@@ -1152,8 +1156,8 @@ const Yt = { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", zoom: { colo
|
|
|
1152
1156
|
config: l.value
|
|
1153
1157
|
})))
|
|
1154
1158
|
return s({
|
|
1155
|
-
absoluteIndex:
|
|
1156
|
-
seriesIndex:
|
|
1159
|
+
absoluteIndex: C.value + m.value.start,
|
|
1160
|
+
seriesIndex: C.value,
|
|
1157
1161
|
datapoint: je.value,
|
|
1158
1162
|
series: me.value,
|
|
1159
1163
|
bars: Me.value,
|
|
@@ -1162,7 +1166,7 @@ const Yt = { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", zoom: { colo
|
|
|
1162
1166
|
config: l.value
|
|
1163
1167
|
});
|
|
1164
1168
|
if (e && e.text && l.value.chart.tooltip.showTimeLabel) {
|
|
1165
|
-
const t =
|
|
1169
|
+
const t = ul.value(C.value + m.value.start, l.value.chart.tooltip.timeFormat);
|
|
1166
1170
|
a += `<div style="padding-bottom: 6px; margin-bottom: 4px; border-bottom: 1px solid ${l.value.chart.tooltip.borderColor}; width:100%">${l.value.chart.grid.labels.xAxisLabels.datetimeFormatter.enable && !l.value.chart.tooltip.useDefaultTimeFormat ? t : e.text}</div>`;
|
|
1167
1171
|
}
|
|
1168
1172
|
return je.value.forEach((t) => {
|
|
@@ -1170,7 +1174,7 @@ const Yt = { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", zoom: { colo
|
|
|
1170
1174
|
let i = "", o = "";
|
|
1171
1175
|
switch (bl.value[t.type]) {
|
|
1172
1176
|
case "bar":
|
|
1173
|
-
i = `<svg viewBox="0 0 40 40" height="14" width="14">${
|
|
1177
|
+
i = `<svg viewBox="0 0 40 40" height="14" width="14">${$a.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="${$a.pattern ? `url(#pattern_${H.value}_${t.slotAbsoluteIndex}` : t.color}" /></svg>`;
|
|
1174
1178
|
break;
|
|
1175
1179
|
case "line":
|
|
1176
1180
|
!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="${Et({ plot: { x: 10, y: 8 }, radius: 4 })}" />`), i = `<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>`;
|
|
@@ -1219,33 +1223,33 @@ const Yt = { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", zoom: { colo
|
|
|
1219
1223
|
v: N(Math.abs(t.value) / r * 100),
|
|
1220
1224
|
s: "%",
|
|
1221
1225
|
r: l.value.chart.tooltip.roundingPercentage
|
|
1222
|
-
})})` : ""}</div>`, l.value.chart.comments.showInTooltip && t.comments.length && t.comments.slice(m.value.start, m.value.end)[
|
|
1226
|
+
})})` : ""}</div>`, l.value.chart.comments.showInTooltip && t.comments.length && t.comments.slice(m.value.start, m.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(m.value.start, m.value.end)[C.value]}</div>`);
|
|
1223
1227
|
}
|
|
1224
1228
|
}), `<div style="border-radius:4px;padding:12px;font-variant-numeric: tabular-nums;color:${l.value.chart.tooltip.color}">${a}</div>`;
|
|
1225
1229
|
}), gt = b(() => {
|
|
1226
1230
|
if (Pe.value.length === 0) return { head: [], body: [], config: {}, columnNames: [] };
|
|
1227
|
-
const a =
|
|
1231
|
+
const a = _e.value.map((e) => ({
|
|
1228
1232
|
label: e.name,
|
|
1229
1233
|
color: e.color,
|
|
1230
1234
|
type: e.type
|
|
1231
1235
|
})), r = [];
|
|
1232
1236
|
return de.value.forEach((e, s) => {
|
|
1233
|
-
const t = l.value.table.useDefaultTimeFormat ? [e.text] : [
|
|
1234
|
-
|
|
1237
|
+
const t = l.value.table.useDefaultTimeFormat ? [e.text] : [ul.value(s + m.value.start, l.value.table.timeFormat)];
|
|
1238
|
+
_e.value.forEach((i) => {
|
|
1235
1239
|
t.push(be(i.absoluteValues[s]) ? Number(i.absoluteValues[s].toFixed(l.value.table.rounding)) : "");
|
|
1236
1240
|
}), r.push(t);
|
|
1237
1241
|
}), { head: a, body: r };
|
|
1238
1242
|
}), Ul = b(() => {
|
|
1239
1243
|
const a = l.value.table.showSum;
|
|
1240
|
-
let r = [""].concat(
|
|
1244
|
+
let r = [""].concat(_e.value.map((i) => i.name));
|
|
1241
1245
|
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>'));
|
|
1242
1246
|
let e = [];
|
|
1243
|
-
for (let i = 0; i <
|
|
1244
|
-
const o =
|
|
1247
|
+
for (let i = 0; i < A.value; i += 1) {
|
|
1248
|
+
const o = _e.value.map((L) => L.absoluteValues[i] ?? 0).reduce((L, M) => L + M, 0);
|
|
1245
1249
|
e.push(
|
|
1246
1250
|
[
|
|
1247
|
-
l.value.table.useDefaultTimeFormat ? de.value[i].text ?? "-" :
|
|
1248
|
-
].concat(
|
|
1251
|
+
l.value.table.useDefaultTimeFormat ? de.value[i].text ?? "-" : ul.value(i + m.value.start, l.value.table.timeFormat)
|
|
1252
|
+
].concat(_e.value.map(
|
|
1249
1253
|
(L) => re(
|
|
1250
1254
|
L.type === "line" ? l.value.line.labels.formatter : L.type === "bar" ? l.value.bar.labels.formatter : l.value.plot.labels.formatter,
|
|
1251
1255
|
L.absoluteValues[i] ?? 0,
|
|
@@ -1271,22 +1275,22 @@ const Yt = { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", zoom: { colo
|
|
|
1271
1275
|
outline: l.value.table.td.outline
|
|
1272
1276
|
},
|
|
1273
1277
|
breakpoint: l.value.table.responsiveBreakpoint
|
|
1274
|
-
}, t = [l.value.table.columnNames.period].concat(
|
|
1278
|
+
}, t = [l.value.table.columnNames.period].concat(_e.value.map((i) => i.name)).concat(l.value.table.columnNames.total);
|
|
1275
1279
|
return { head: r, body: e, config: s, colNames: t };
|
|
1276
1280
|
});
|
|
1277
1281
|
function xa(a = null) {
|
|
1278
|
-
const r = [[l.value.chart.title.text], [l.value.chart.title.subtitle.text], [""]], e = ["", ...gt.value.head.map((o) => o.label)], s = gt.value.body, t = r.concat([e]).concat(s), i =
|
|
1279
|
-
a ? a(i) :
|
|
1282
|
+
const r = [[l.value.chart.title.text], [l.value.chart.title.subtitle.text], [""]], e = ["", ...gt.value.head.map((o) => o.label)], s = gt.value.body, t = r.concat([e]).concat(s), i = pr(t);
|
|
1283
|
+
a ? a(i) : yr({ csvContent: i, title: l.value.chart.title.text || "vue-ui-xy" });
|
|
1280
1284
|
}
|
|
1281
1285
|
function mt(a, r = null) {
|
|
1282
1286
|
Ma.value = a;
|
|
1283
|
-
const e =
|
|
1287
|
+
const e = _e.value.map((s) => ({
|
|
1284
1288
|
name: s.name,
|
|
1285
1289
|
value: [null, void 0, NaN].includes(s.absoluteValues[r]) ? null : s.absoluteValues[r],
|
|
1286
1290
|
color: s.color,
|
|
1287
1291
|
type: s.type
|
|
1288
1292
|
}));
|
|
1289
|
-
a ? (
|
|
1293
|
+
a ? (C.value = r, l.value.events.datapointEnter && l.value.events.datapointEnter({ datapoint: e, seriesIndex: r + m.value.start })) : (C.value = null, l.value.events.datapointLeave && l.value.events.datapointLeave({ datapoint: e, seriesIndex: r + m.value.start }));
|
|
1290
1294
|
}
|
|
1291
1295
|
function bt() {
|
|
1292
1296
|
f.value.showTable = !f.value.showTable;
|
|
@@ -1302,7 +1306,7 @@ const Yt = { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", zoom: { colo
|
|
|
1302
1306
|
}
|
|
1303
1307
|
function kt() {
|
|
1304
1308
|
if (!l.value.responsiveProportionalSizing) {
|
|
1305
|
-
y.value.dataLabels = l.value.chart.grid.labels.fontSize, y.value.yAxis = l.value.chart.grid.labels.axis.fontSize, y.value.xAxis = l.value.chart.grid.labels.xAxisLabels.fontSize, y.value.plotLabels = l.value.chart.labels.fontSize,
|
|
1309
|
+
y.value.dataLabels = l.value.chart.grid.labels.fontSize, y.value.yAxis = l.value.chart.grid.labels.axis.fontSize, y.value.xAxis = l.value.chart.grid.labels.xAxisLabels.fontSize, y.value.plotLabels = l.value.chart.labels.fontSize, Ae.value.plot = l.value.plot.radius, Ae.value.line = l.value.line.radius;
|
|
1306
1310
|
return;
|
|
1307
1311
|
}
|
|
1308
1312
|
y.value.dataLabels = dl({
|
|
@@ -1329,13 +1333,13 @@ const Yt = { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", zoom: { colo
|
|
|
1329
1333
|
source: l.value.chart.labels.fontSize,
|
|
1330
1334
|
threshold: 10,
|
|
1331
1335
|
fallback: 10
|
|
1332
|
-
}),
|
|
1336
|
+
}), Ae.value.plot = dl({
|
|
1333
1337
|
relator: ee.value,
|
|
1334
1338
|
adjuster: 800,
|
|
1335
1339
|
source: l.value.plot.radius,
|
|
1336
1340
|
threshold: 1,
|
|
1337
1341
|
fallback: 1
|
|
1338
|
-
}),
|
|
1342
|
+
}), Ae.value.line = dl({
|
|
1339
1343
|
relator: ee.value,
|
|
1340
1344
|
adjuster: 800,
|
|
1341
1345
|
source: l.value.line.radius,
|
|
@@ -1344,12 +1348,12 @@ const Yt = { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", zoom: { colo
|
|
|
1344
1348
|
});
|
|
1345
1349
|
}
|
|
1346
1350
|
function pa() {
|
|
1347
|
-
Rt(g.dataset) ? (
|
|
1351
|
+
Rt(g.dataset) ? (_a({
|
|
1348
1352
|
componentName: "VueUiXy",
|
|
1349
1353
|
type: "dataset",
|
|
1350
1354
|
debug: yl.value
|
|
1351
1355
|
}), Ol.value = !0) : g.dataset.forEach((r, e) => {
|
|
1352
|
-
[null, void 0].includes(r.name) && (
|
|
1356
|
+
[null, void 0].includes(r.name) && (_a({
|
|
1353
1357
|
componentName: "VueUiXy",
|
|
1354
1358
|
type: "datasetSerieAttribute",
|
|
1355
1359
|
property: "name (string)",
|
|
@@ -1372,66 +1376,66 @@ const Yt = { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", zoom: { colo
|
|
|
1372
1376
|
l.value.chart.title.show && fl.value && (i = fl.value, o = i.getBoundingClientRect().height);
|
|
1373
1377
|
let L = null, M = 0;
|
|
1374
1378
|
l.value.chart.zoom.show && Oe.value > 6 && ca.value && Fe.value && Fe.value.$el && (L = Fe.value.$el, M = L.getBoundingClientRect().height);
|
|
1375
|
-
let F = null,
|
|
1376
|
-
l.value.chart.legend.show && rl.value && (F = rl.value,
|
|
1379
|
+
let F = null, w = 0;
|
|
1380
|
+
l.value.chart.legend.show && rl.value && (F = rl.value, w = F.getBoundingClientRect().height);
|
|
1377
1381
|
let T = 0;
|
|
1378
1382
|
gl.value && (T = gl.value.getBoundingClientRect().height);
|
|
1379
1383
|
let W = 0;
|
|
1380
|
-
ml.value && (W = ml.value.getBoundingClientRect().height), ve.value = s - o -
|
|
1384
|
+
ml.value && (W = ml.value.getBoundingClientRect().height), ve.value = s - o - w - M - T - W - a, ee.value = t, zl.value = `0 0 ${ee.value < 0 ? 10 : ee.value} ${ve.value < 0 ? 10 : ve.value}`, kt();
|
|
1381
1385
|
const k = new ResizeObserver((V) => {
|
|
1382
1386
|
for (const z of V)
|
|
1383
|
-
l.value.chart.title.show && fl.value ? o = fl.value.getBoundingClientRect().height : o = 0, Fe.value && Fe.value.$el ? M = Fe.value.$el.getBoundingClientRect().height : M = 0, rl.value ?
|
|
1384
|
-
ve.value = z.contentRect.height - o -
|
|
1387
|
+
l.value.chart.title.show && fl.value ? o = fl.value.getBoundingClientRect().height : o = 0, Fe.value && Fe.value.$el ? M = Fe.value.$el.getBoundingClientRect().height : M = 0, rl.value ? w = rl.value.getBoundingClientRect().height : w = 0, gl.value ? T = gl.value.getBoundingClientRect().height : T = 0, ml.value ? W = ml.value.getBoundingClientRect().height : W = 0, requestAnimationFrame(() => {
|
|
1388
|
+
ve.value = z.contentRect.height - o - w - M - T - W - a, ee.value = z.contentBoxSize[0].inlineSize, zl.value = `0 0 ${ee.value < 0 ? 10 : ee.value} ${ve.value < 0 ? 10 : ve.value}`, kt();
|
|
1385
1389
|
});
|
|
1386
1390
|
});
|
|
1387
1391
|
Ee.value = k, ra.value = e, k.observe(e);
|
|
1388
1392
|
} else
|
|
1389
|
-
ve.value = l.value.chart.height, ee.value = l.value.chart.width, y.value.dataLabels = l.value.chart.grid.labels.fontSize, y.value.yAxis = l.value.chart.grid.labels.axis.fontSize, y.value.xAxis = l.value.chart.grid.labels.xAxisLabels.fontSize, y.value.plotLabels = l.value.chart.labels.fontSize,
|
|
1393
|
+
ve.value = l.value.chart.height, ee.value = l.value.chart.width, y.value.dataLabels = l.value.chart.grid.labels.fontSize, y.value.yAxis = l.value.chart.grid.labels.axis.fontSize, y.value.xAxis = l.value.chart.grid.labels.xAxisLabels.fontSize, y.value.plotLabels = l.value.chart.labels.fontSize, Ae.value.plot = l.value.plot.radius, Ae.value.line = l.value.line.radius, zl.value = `0 0 ${ee.value} ${ve.value}`;
|
|
1390
1394
|
}
|
|
1391
|
-
function
|
|
1392
|
-
|
|
1395
|
+
function Ct(a) {
|
|
1396
|
+
ho.value = {
|
|
1393
1397
|
x: a.clientX,
|
|
1394
1398
|
y: a.clientY
|
|
1395
1399
|
};
|
|
1396
1400
|
}
|
|
1397
1401
|
Zl(() => {
|
|
1398
|
-
pa(), Pl(), document.addEventListener("mousemove",
|
|
1402
|
+
pa(), Pl(), document.addEventListener("mousemove", Ct, { passive: !0 }), document.addEventListener("scroll", Xa, { passive: !0 });
|
|
1399
1403
|
}), ka(() => {
|
|
1400
|
-
document.removeEventListener("scroll", Xa, { passive: !0 }), document.removeEventListener("mousemove",
|
|
1401
|
-
}),
|
|
1404
|
+
document.removeEventListener("scroll", Xa, { passive: !0 }), document.removeEventListener("mousemove", Ct, { passive: !0 }), Ee.value && (Ee.value.unobserve(ra.value), Ee.value.disconnect(), Ee.value = null);
|
|
1405
|
+
}), Tr({
|
|
1402
1406
|
timeLabelsEls: sl,
|
|
1403
1407
|
timeLabels: de,
|
|
1404
1408
|
slicer: m,
|
|
1405
1409
|
configRef: l,
|
|
1406
1410
|
rotationPath: ["chart", "grid", "labels", "xAxisLabels", "rotation"],
|
|
1407
1411
|
autoRotatePath: ["chart", "grid", "labels", "xAxisLabels", "autoRotate", "enable"],
|
|
1408
|
-
isAutoSize:
|
|
1412
|
+
isAutoSize: xo,
|
|
1409
1413
|
height: ve,
|
|
1410
1414
|
width: ee,
|
|
1411
1415
|
rotation: l.value.chart.grid.labels.xAxisLabels.autoRotate.angle
|
|
1412
1416
|
});
|
|
1413
|
-
const ql = x(!1),
|
|
1414
|
-
() =>
|
|
1417
|
+
const ql = x(!1), _t = x(null), wt = x(200), Xo = b(
|
|
1418
|
+
() => C.value ?? B.value ?? 0
|
|
1415
1419
|
);
|
|
1416
|
-
function
|
|
1417
|
-
const a = Math.ceil(
|
|
1420
|
+
function Go() {
|
|
1421
|
+
const a = Math.ceil(wt.value || 200);
|
|
1418
1422
|
return Math.min(Math.max(a, 1), 200);
|
|
1419
1423
|
}
|
|
1420
|
-
function
|
|
1421
|
-
const a =
|
|
1424
|
+
function Uo() {
|
|
1425
|
+
const a = Go(), r = 200, e = Math.max(1, A.value), s = c.value.width / e, i = c.value?.left + Xo.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(i, L));
|
|
1422
1426
|
return N(M);
|
|
1423
1427
|
}
|
|
1424
1428
|
Zl(() => {
|
|
1425
1429
|
let a = null, r = null;
|
|
1426
1430
|
const e = (i) => {
|
|
1427
1431
|
cancelAnimationFrame(r), r = requestAnimationFrame(() => {
|
|
1428
|
-
|
|
1432
|
+
wt.value = Math.min(Math.max(Math.ceil(i || 0), 1), 200);
|
|
1429
1433
|
});
|
|
1430
1434
|
}, s = new ResizeObserver((i) => {
|
|
1431
1435
|
let o = i.find((L) => L.target === a) || i[0];
|
|
1432
1436
|
o && e(o.contentRect.width || 200);
|
|
1433
1437
|
}), t = Lt((i) => {
|
|
1434
|
-
const o =
|
|
1438
|
+
const o = _t.value;
|
|
1435
1439
|
a && a !== o && (s.unobserve(a), a = null), o && o !== a && (Mt(() => {
|
|
1436
1440
|
o.offsetParent !== null && e(o.offsetWidth || o.getBoundingClientRect().width || 200);
|
|
1437
1441
|
}), s.observe(o), a = o), i(() => {
|
|
@@ -1445,9 +1449,9 @@ const Yt = { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", zoom: { colo
|
|
|
1445
1449
|
}
|
|
1446
1450
|
});
|
|
1447
1451
|
});
|
|
1448
|
-
const
|
|
1449
|
-
if ([null, void 0].includes(
|
|
1450
|
-
const a = (
|
|
1452
|
+
const qo = b(() => {
|
|
1453
|
+
if ([null, void 0].includes(C.value) && [null, void 0].includes(B.value)) return "";
|
|
1454
|
+
const a = (C.value != null ? C.value : 0) || (B.value != null ? B.value : 0), r = l.value.chart.timeTag.customFormat;
|
|
1451
1455
|
if (ql.value = !1, Pt(r))
|
|
1452
1456
|
try {
|
|
1453
1457
|
const e = r({
|
|
@@ -1465,18 +1469,18 @@ const Yt = { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", zoom: { colo
|
|
|
1465
1469
|
console.warn("Custom format cannot be applied on timeTag."), ql.value = !1;
|
|
1466
1470
|
}
|
|
1467
1471
|
if (!ql.value)
|
|
1468
|
-
return [null, void 0].includes(de.value[a]) ? "" : l.value.chart.grid.labels.xAxisLabels.datetimeFormatter.enable && !l.value.chart.timeTag.useDefaultFormat ?
|
|
1472
|
+
return [null, void 0].includes(de.value[a]) ? "" : l.value.chart.grid.labels.xAxisLabels.datetimeFormatter.enable && !l.value.chart.timeTag.useDefaultFormat ? ul.value(a + m.value.start, l.value.chart.timeTag.timeFormat) : de.value[a].text;
|
|
1469
1473
|
});
|
|
1470
1474
|
Ll(() => g.dataset, (a) => {
|
|
1471
1475
|
Array.isArray(a) && a.length > 0 && (Ol.value = !1), Oe.value = Math.max(...ge.value.map((r) => Re(r.series).length)), m.value = {
|
|
1472
1476
|
start: 0,
|
|
1473
1477
|
end: Oe.value
|
|
1474
|
-
},
|
|
1478
|
+
}, vo.value += 1, sa.value += 1, nl();
|
|
1475
1479
|
}, { deep: !0 }), Ll(() => g.config, (a) => {
|
|
1476
|
-
ie.value || (l.value =
|
|
1480
|
+
ie.value || (l.value = ua()), pa(), Ia.value += 1, za.value += 1, va(), nl();
|
|
1477
1481
|
}, { deep: !0 });
|
|
1478
1482
|
const ya = x(!1);
|
|
1479
|
-
function
|
|
1483
|
+
function St() {
|
|
1480
1484
|
const a = Ie.value?.parentNode;
|
|
1481
1485
|
if (!a) {
|
|
1482
1486
|
ya.value = !1;
|
|
@@ -1486,18 +1490,18 @@ const Yt = { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", zoom: { colo
|
|
|
1486
1490
|
ya.value = r.width > 2 && r.height > 2;
|
|
1487
1491
|
}
|
|
1488
1492
|
Zl(() => {
|
|
1489
|
-
|
|
1493
|
+
St();
|
|
1490
1494
|
const a = new ResizeObserver(() => {
|
|
1491
|
-
|
|
1495
|
+
St(), ya.value && (pa(), nl(), Pl());
|
|
1492
1496
|
});
|
|
1493
1497
|
Ie.value?.parentNode && a.observe(Ie.value.parentNode);
|
|
1494
1498
|
}), Ll(l, () => {
|
|
1495
1499
|
va();
|
|
1496
1500
|
}, { immediate: !0 });
|
|
1497
|
-
const
|
|
1501
|
+
const Sl = b(() => {
|
|
1498
1502
|
const a = l.value.table.useDialog && !l.value.showTable, r = f.value.showTable;
|
|
1499
1503
|
return {
|
|
1500
|
-
component: a ?
|
|
1504
|
+
component: a ? so : Or,
|
|
1501
1505
|
title: `${l.value.chart.title.text}${l.value.chart.title.subtitle.text ? `: ${l.value.chart.title.subtitle.text}` : ""}`,
|
|
1502
1506
|
props: a ? {
|
|
1503
1507
|
backgroundColor: l.value.table.th.backgroundColor,
|
|
@@ -1527,53 +1531,53 @@ const Yt = { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", zoom: { colo
|
|
|
1527
1531
|
Ll(() => f.value.showTable, (a) => {
|
|
1528
1532
|
l.value.showTable || (a && l.value.table.useDialog && il.value ? il.value.open() : il.value && il.value.close && il.value.close());
|
|
1529
1533
|
});
|
|
1530
|
-
function
|
|
1534
|
+
function At() {
|
|
1531
1535
|
f.value.showTable = !1, oa.value && oa.value.setTableIconState(!1);
|
|
1532
1536
|
}
|
|
1533
|
-
const
|
|
1537
|
+
const Zo = b(() => me.value.map((a) => ({
|
|
1534
1538
|
shape: a.type === "bar" ? "square" : a.shape ?? "circle",
|
|
1535
1539
|
color: a.color,
|
|
1536
1540
|
name: a.name
|
|
1537
|
-
}))),
|
|
1541
|
+
}))), Jo = b(() => l.value.chart.backgroundColor), Qo = b(() => l.value.chart.legend), Ko = b(() => l.value.chart.title), { exportSvg: jo, getSvg: er } = Lr({
|
|
1538
1542
|
svg: se,
|
|
1539
|
-
title:
|
|
1540
|
-
legend:
|
|
1541
|
-
legendItems:
|
|
1542
|
-
backgroundColor:
|
|
1543
|
+
title: Ko,
|
|
1544
|
+
legend: Qo,
|
|
1545
|
+
legendItems: Zo,
|
|
1546
|
+
backgroundColor: Jo
|
|
1543
1547
|
});
|
|
1544
|
-
async function
|
|
1548
|
+
async function $t({ isCb: a }) {
|
|
1545
1549
|
if (a) {
|
|
1546
|
-
const { blob: r, url: e, text: s, dataUrl: t } = await
|
|
1550
|
+
const { blob: r, url: e, text: s, dataUrl: t } = await er();
|
|
1547
1551
|
l.value.chart.userOptions.callbacks.svg({ blob: r, url: e, text: s, dataUrl: t });
|
|
1548
1552
|
} else
|
|
1549
|
-
|
|
1553
|
+
jo();
|
|
1550
1554
|
}
|
|
1551
|
-
return
|
|
1552
|
-
getData:
|
|
1553
|
-
getImage:
|
|
1555
|
+
return Kt({
|
|
1556
|
+
getData: Io,
|
|
1557
|
+
getImage: Fo,
|
|
1554
1558
|
generatePdf: Ra,
|
|
1555
1559
|
generateImage: Ha,
|
|
1556
|
-
generateSvg:
|
|
1560
|
+
generateSvg: $t,
|
|
1557
1561
|
generateCsv: xa,
|
|
1558
|
-
hideSeries:
|
|
1559
|
-
showSeries:
|
|
1562
|
+
hideSeries: Bo,
|
|
1563
|
+
showSeries: Oo,
|
|
1560
1564
|
toggleStack: Za,
|
|
1561
1565
|
toggleTable: bt,
|
|
1562
1566
|
toggleLabels: xt,
|
|
1563
1567
|
toggleTooltip: pt,
|
|
1564
1568
|
toggleAnnotator: fa,
|
|
1565
1569
|
toggleFullscreen: yt
|
|
1566
|
-
}), (a, r) => (
|
|
1570
|
+
}), (a, r) => (n(), u("div", {
|
|
1567
1571
|
id: `vue-ui-xy_${H.value}`,
|
|
1568
1572
|
class: ll(`vue-data-ui-component vue-ui-xy ${qe.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${l.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
1569
1573
|
ref_key: "chart",
|
|
1570
1574
|
ref: Ie,
|
|
1571
|
-
style:
|
|
1575
|
+
style: S(`background:${l.value.chart.backgroundColor}; color:${l.value.chart.color};width:100%;font-family:${l.value.chart.fontFamily};${l.value.responsive ? "height: 100%" : ""}`),
|
|
1572
1576
|
onMouseenter: r[6] || (r[6] = () => Ua(!0)),
|
|
1573
1577
|
onMouseleave: r[7] || (r[7] = () => Ua(!1)),
|
|
1574
1578
|
onClick: ot
|
|
1575
1579
|
}, [
|
|
1576
|
-
l.value.chart.userOptions.buttons.annotator && se.value ? (
|
|
1580
|
+
l.value.chart.userOptions.buttons.annotator && se.value ? (n(), Te(v(ro), {
|
|
1577
1581
|
key: 0,
|
|
1578
1582
|
svgRef: se.value,
|
|
1579
1583
|
backgroundColor: l.value.chart.backgroundColor,
|
|
@@ -1585,37 +1589,37 @@ const Yt = { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", zoom: { colo
|
|
|
1585
1589
|
P(a.$slots, "annotator-action-close", {}, void 0, !0)
|
|
1586
1590
|
]),
|
|
1587
1591
|
"annotator-action-color": G(({ color: e }) => [
|
|
1588
|
-
P(a.$slots, "annotator-action-color", ke(
|
|
1592
|
+
P(a.$slots, "annotator-action-color", ke(Ce({ color: e })), void 0, !0)
|
|
1589
1593
|
]),
|
|
1590
1594
|
"annotator-action-draw": G(({ mode: e }) => [
|
|
1591
|
-
P(a.$slots, "annotator-action-draw", ke(
|
|
1595
|
+
P(a.$slots, "annotator-action-draw", ke(Ce({ mode: e })), void 0, !0)
|
|
1592
1596
|
]),
|
|
1593
1597
|
"annotator-action-undo": G(({ disabled: e }) => [
|
|
1594
|
-
P(a.$slots, "annotator-action-undo", ke(
|
|
1598
|
+
P(a.$slots, "annotator-action-undo", ke(Ce({ disabled: e })), void 0, !0)
|
|
1595
1599
|
]),
|
|
1596
1600
|
"annotator-action-redo": G(({ disabled: e }) => [
|
|
1597
|
-
P(a.$slots, "annotator-action-redo", ke(
|
|
1601
|
+
P(a.$slots, "annotator-action-redo", ke(Ce({ disabled: e })), void 0, !0)
|
|
1598
1602
|
]),
|
|
1599
1603
|
"annotator-action-delete": G(({ disabled: e }) => [
|
|
1600
|
-
P(a.$slots, "annotator-action-delete", ke(
|
|
1604
|
+
P(a.$slots, "annotator-action-delete", ke(Ce({ disabled: e })), void 0, !0)
|
|
1601
1605
|
]),
|
|
1602
1606
|
_: 3
|
|
1603
1607
|
}, 8, ["svgRef", "backgroundColor", "color", "active"])) : h("", !0),
|
|
1604
|
-
|
|
1608
|
+
Vo.value ? (n(), u("div", {
|
|
1605
1609
|
key: 1,
|
|
1606
1610
|
ref_key: "noTitle",
|
|
1607
1611
|
ref: ml,
|
|
1608
1612
|
class: "vue-data-ui-no-title-space",
|
|
1609
1613
|
style: "height:36px; width: 100%; background:transparent"
|
|
1610
1614
|
}, null, 512)) : h("", !0),
|
|
1611
|
-
l.value.chart.title.show ? (
|
|
1615
|
+
l.value.chart.title.show ? (n(), u("div", {
|
|
1612
1616
|
key: 2,
|
|
1613
1617
|
ref_key: "chartTitle",
|
|
1614
1618
|
ref: fl,
|
|
1615
1619
|
class: "vue-ui-xy-title",
|
|
1616
|
-
style:
|
|
1620
|
+
style: S(`font-family:${l.value.chart.fontFamily}`)
|
|
1617
1621
|
}, [
|
|
1618
|
-
(
|
|
1622
|
+
(n(), Te(Ir, {
|
|
1619
1623
|
key: `title_${Ia.value}`,
|
|
1620
1624
|
config: {
|
|
1621
1625
|
title: {
|
|
@@ -1631,8 +1635,8 @@ const Yt = { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", zoom: { colo
|
|
|
1631
1635
|
], 4)) : h("", !0),
|
|
1632
1636
|
p("div", {
|
|
1633
1637
|
id: `legend-top-${H.value}`
|
|
1634
|
-
}, null, 8,
|
|
1635
|
-
l.value.chart.userOptions.show && (ia.value || Il.value) ? (
|
|
1638
|
+
}, null, 8, Vr),
|
|
1639
|
+
l.value.chart.userOptions.show && (ia.value || Il.value) ? (n(), Te(v(ao), {
|
|
1636
1640
|
ref_key: "userOptionsRef",
|
|
1637
1641
|
ref: oa,
|
|
1638
1642
|
key: `user_options_${Ta.value}`,
|
|
@@ -1665,20 +1669,20 @@ const Yt = { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", zoom: { colo
|
|
|
1665
1669
|
onGeneratePdf: v(Ra),
|
|
1666
1670
|
onGenerateCsv: xa,
|
|
1667
1671
|
onGenerateImage: v(Ha),
|
|
1668
|
-
onGenerateSvg:
|
|
1672
|
+
onGenerateSvg: $t,
|
|
1669
1673
|
onToggleTable: bt,
|
|
1670
1674
|
onToggleLabels: xt,
|
|
1671
1675
|
onToggleStack: Za,
|
|
1672
1676
|
onToggleTooltip: pt,
|
|
1673
1677
|
onToggleAnnotator: fa,
|
|
1674
|
-
style:
|
|
1678
|
+
style: S({
|
|
1675
1679
|
visibility: ia.value ? Il.value ? "visible" : "hidden" : "visible"
|
|
1676
1680
|
})
|
|
1677
1681
|
}, Tt({ _: 2 }, [
|
|
1678
1682
|
a.$slots.menuIcon ? {
|
|
1679
1683
|
name: "menuIcon",
|
|
1680
1684
|
fn: G(({ isOpen: e, color: s }) => [
|
|
1681
|
-
P(a.$slots, "menuIcon", ke(
|
|
1685
|
+
P(a.$slots, "menuIcon", ke(Ce({ isOpen: e, color: s })), void 0, !0)
|
|
1682
1686
|
]),
|
|
1683
1687
|
key: "0"
|
|
1684
1688
|
} : void 0,
|
|
@@ -1734,66 +1738,66 @@ const Yt = { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", zoom: { colo
|
|
|
1734
1738
|
a.$slots.optionStack ? {
|
|
1735
1739
|
name: "optionStack",
|
|
1736
1740
|
fn: G(({ isStack: e }) => [
|
|
1737
|
-
P(a.$slots, "optionStack", ke(
|
|
1741
|
+
P(a.$slots, "optionStack", ke(Ce({ isStack: e })), void 0, !0)
|
|
1738
1742
|
]),
|
|
1739
1743
|
key: "8"
|
|
1740
1744
|
} : void 0,
|
|
1741
1745
|
a.$slots.optionFullscreen ? {
|
|
1742
1746
|
name: "optionFullscreen",
|
|
1743
1747
|
fn: G(({ toggleFullscreen: e, isFullscreen: s }) => [
|
|
1744
|
-
P(a.$slots, "optionFullscreen", ke(
|
|
1748
|
+
P(a.$slots, "optionFullscreen", ke(Ce({ toggleFullscreen: e, isFullscreen: s })), void 0, !0)
|
|
1745
1749
|
]),
|
|
1746
1750
|
key: "9"
|
|
1747
1751
|
} : void 0,
|
|
1748
1752
|
a.$slots.optionAnnotator ? {
|
|
1749
1753
|
name: "optionAnnotator",
|
|
1750
1754
|
fn: G(({ toggleAnnotator: e, isAnnotator: s }) => [
|
|
1751
|
-
P(a.$slots, "optionAnnotator", ke(
|
|
1755
|
+
P(a.$slots, "optionAnnotator", ke(Ce({ toggleAnnotator: e, isAnnotator: s })), void 0, !0)
|
|
1752
1756
|
]),
|
|
1753
1757
|
key: "10"
|
|
1754
1758
|
} : void 0
|
|
1755
1759
|
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasXls", "hasImg", "hasSvg", "hasLabel", "hasTable", "hasStack", "hasFullscreen", "isStacked", "isFullscreen", "chartElement", "position", "isTooltip", "titles", "hasAnnotator", "isAnnotation", "callbacks", "tableDialog", "printScale", "onGeneratePdf", "onGenerateImage", "style"])) : h("", !0),
|
|
1756
|
-
(
|
|
1760
|
+
(n(), u("svg", {
|
|
1757
1761
|
ref_key: "svgRef",
|
|
1758
1762
|
ref: se,
|
|
1759
1763
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1760
1764
|
class: ll([{ "vue-data-ui-fullscreen--on": qe.value, "vue-data-ui-fulscreen--off": !qe.value }, "vue-ui-xy-svg vue-data-ui-svg"]),
|
|
1761
1765
|
width: "100%",
|
|
1762
1766
|
viewBox: zl.value,
|
|
1763
|
-
style:
|
|
1767
|
+
style: S({
|
|
1764
1768
|
background: "transparent",
|
|
1765
1769
|
color: l.value.chart.color,
|
|
1766
1770
|
fontFamily: l.value.chart.fontFamily
|
|
1767
1771
|
}),
|
|
1768
|
-
"aria-label":
|
|
1772
|
+
"aria-label": No.value,
|
|
1769
1773
|
role: "img",
|
|
1770
1774
|
"aria-live": "polite",
|
|
1771
1775
|
preserveAspectRatio: "xMidYMid",
|
|
1772
|
-
onMousemove:
|
|
1776
|
+
onMousemove: zo,
|
|
1773
1777
|
onMouseleave: Hl,
|
|
1774
1778
|
onClick: ot
|
|
1775
1779
|
}, [
|
|
1776
1780
|
p("g", {
|
|
1777
1781
|
ref_key: "G",
|
|
1778
|
-
ref:
|
|
1782
|
+
ref: co,
|
|
1779
1783
|
class: "vue-data-ui-g"
|
|
1780
1784
|
}, [
|
|
1781
|
-
vl(v(
|
|
1782
|
-
a.$slots["chart-background"] ? (
|
|
1785
|
+
vl(v(oo)),
|
|
1786
|
+
a.$slots["chart-background"] ? (n(), u("foreignObject", {
|
|
1783
1787
|
key: 0,
|
|
1784
1788
|
x: c.value?.left + U.value < 0 ? 0 : c.value?.left + U.value,
|
|
1785
1789
|
y: c.value?.top,
|
|
1786
|
-
width: c.value.width - (l.value.chart.grid.position === "middle" ? 0 : c.value.width /
|
|
1790
|
+
width: c.value.width - (l.value.chart.grid.position === "middle" ? 0 : c.value.width / A.value) < 0 ? 0 : c.value.width - (l.value.chart.grid.position === "middle" ? 0 : c.value.width / A.value),
|
|
1787
1791
|
height: c.value.height < 0 ? 0 : c.value.height,
|
|
1788
1792
|
style: {
|
|
1789
1793
|
pointerEvents: "none"
|
|
1790
1794
|
}
|
|
1791
1795
|
}, [
|
|
1792
1796
|
P(a.$slots, "chart-background", {}, void 0, !0)
|
|
1793
|
-
], 8,
|
|
1794
|
-
|
|
1795
|
-
p("g",
|
|
1796
|
-
l.value.chart.grid.labels.xAxis.showBaseline ? (
|
|
1797
|
+
], 8, Pr)) : h("", !0),
|
|
1798
|
+
A.value > 0 ? (n(), u("g", Er, [
|
|
1799
|
+
p("g", Rr, [
|
|
1800
|
+
l.value.chart.grid.labels.xAxis.showBaseline ? (n(), u("line", {
|
|
1797
1801
|
key: 0,
|
|
1798
1802
|
stroke: l.value.chart.grid.stroke,
|
|
1799
1803
|
"stroke-width": "1",
|
|
@@ -1803,9 +1807,9 @@ const Yt = { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", zoom: { colo
|
|
|
1803
1807
|
y2: v(Y)(c.value?.bottom),
|
|
1804
1808
|
"stroke-linecap": "round",
|
|
1805
1809
|
style: { animation: "none !important" }
|
|
1806
|
-
}, null, 8,
|
|
1807
|
-
f.value.useIndividualScale ? l.value.chart.grid.showHorizontalLines ? (
|
|
1808
|
-
e.id === I.value && e.yLabels.length ? (
|
|
1810
|
+
}, null, 8, Hr)) : h("", !0),
|
|
1811
|
+
f.value.useIndividualScale ? l.value.chart.grid.showHorizontalLines ? (n(!0), u(d, { key: 2 }, _(wl.value, (e) => (n(), u("g", null, [
|
|
1812
|
+
e.id === I.value && e.yLabels.length ? (n(!0), u(d, { key: 0 }, _(e.yLabels, (s) => (n(), u("line", {
|
|
1809
1813
|
x1: c.value?.left + U.value,
|
|
1810
1814
|
x2: c.value?.right - U.value,
|
|
1811
1815
|
y1: v(Y)(s.y),
|
|
@@ -1814,7 +1818,7 @@ const Yt = { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", zoom: { colo
|
|
|
1814
1818
|
"stroke-width": 0.5,
|
|
1815
1819
|
"stroke-linecap": "round",
|
|
1816
1820
|
style: { animation: "none !important" }
|
|
1817
|
-
}, null, 8,
|
|
1821
|
+
}, null, 8, Gr))), 256)) : e.yLabels.length ? (n(!0), u(d, { key: 1 }, _(e.yLabels, (s) => (n(), u("line", {
|
|
1818
1822
|
x1: c.value?.left + U.value,
|
|
1819
1823
|
x2: c.value?.right - U.value,
|
|
1820
1824
|
y1: v(Y)(s.y),
|
|
@@ -1823,9 +1827,9 @@ const Yt = { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", zoom: { colo
|
|
|
1823
1827
|
"stroke-width": 0.5,
|
|
1824
1828
|
"stroke-linecap": "round",
|
|
1825
1829
|
style: { animation: "none !important" }
|
|
1826
|
-
}, null, 8,
|
|
1827
|
-
]))), 256)) : h("", !0) : (
|
|
1828
|
-
l.value.chart.grid.labels.yAxis.showBaseline ? (
|
|
1830
|
+
}, null, 8, Ur))), 256)) : h("", !0)
|
|
1831
|
+
]))), 256)) : h("", !0) : (n(), u(d, { key: 1 }, [
|
|
1832
|
+
l.value.chart.grid.labels.yAxis.showBaseline ? (n(), u("line", {
|
|
1829
1833
|
key: 0,
|
|
1830
1834
|
stroke: l.value.chart.grid.stroke,
|
|
1831
1835
|
"stroke-width": "1",
|
|
@@ -1835,9 +1839,9 @@ const Yt = { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", zoom: { colo
|
|
|
1835
1839
|
y2: v(Y)(c.value?.bottom),
|
|
1836
1840
|
"stroke-linecap": "round",
|
|
1837
1841
|
style: { animation: "none !important" }
|
|
1838
|
-
}, null, 8,
|
|
1839
|
-
l.value.chart.grid.showHorizontalLines ? (
|
|
1840
|
-
(
|
|
1842
|
+
}, null, 8, Yr)) : h("", !0),
|
|
1843
|
+
l.value.chart.grid.showHorizontalLines ? (n(), u("g", Wr, [
|
|
1844
|
+
(n(!0), u(d, null, _(ut.value, (e) => (n(), u("line", {
|
|
1841
1845
|
x1: c.value?.left + U.value,
|
|
1842
1846
|
x2: c.value?.right,
|
|
1843
1847
|
y1: v(Y)(e.y),
|
|
@@ -1846,35 +1850,35 @@ const Yt = { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", zoom: { colo
|
|
|
1846
1850
|
"stroke-width": 0.5,
|
|
1847
1851
|
"stroke-linecap": "round",
|
|
1848
1852
|
style: { animation: "none !important" }
|
|
1849
|
-
}, null, 8,
|
|
1853
|
+
}, null, 8, Xr))), 256))
|
|
1850
1854
|
])) : h("", !0)
|
|
1851
1855
|
], 64)),
|
|
1852
|
-
l.value.chart.grid.showVerticalLines ? (
|
|
1856
|
+
l.value.chart.grid.showVerticalLines ? (n(), u("g", qr, [
|
|
1853
1857
|
p("path", {
|
|
1854
|
-
d:
|
|
1858
|
+
d: Co.value,
|
|
1855
1859
|
"stroke-width": 0.5,
|
|
1856
1860
|
stroke: l.value.chart.grid.stroke,
|
|
1857
1861
|
"stroke-linecap": "round",
|
|
1858
1862
|
style: { animation: "none !important" }
|
|
1859
|
-
}, null, 8,
|
|
1863
|
+
}, null, 8, Zr)
|
|
1860
1864
|
])) : h("", !0),
|
|
1861
|
-
l.value.chart.grid.labels.xAxisLabels.show ? (
|
|
1865
|
+
l.value.chart.grid.labels.xAxisLabels.show ? (n(), u("g", Jr, [
|
|
1862
1866
|
p("path", {
|
|
1863
|
-
d:
|
|
1867
|
+
d: _o.value,
|
|
1864
1868
|
stroke: l.value.chart.grid.stroke,
|
|
1865
1869
|
"stroke-width": 1,
|
|
1866
1870
|
"stroke-linecap": "round",
|
|
1867
1871
|
style: { animation: "none !important" }
|
|
1868
|
-
}, null, 8,
|
|
1872
|
+
}, null, 8, Qr)
|
|
1869
1873
|
])) : h("", !0)
|
|
1870
1874
|
]),
|
|
1871
|
-
(
|
|
1875
|
+
(n(!0), u(d, null, _(Me.value, (e, s) => (n(), u("defs", {
|
|
1872
1876
|
key: `def_rect_${s}`
|
|
1873
1877
|
}, [
|
|
1874
1878
|
a.$slots["bar-gradient"] ? P(a.$slots, "bar-gradient", al({
|
|
1875
1879
|
key: 0,
|
|
1876
1880
|
ref_for: !0
|
|
1877
|
-
}, { series: e, positiveId: `rectGradient_pos_${s}_${H.value}`, negativeId: `rectGradient_neg_${s}_${H.value}` }), void 0, !0) : (
|
|
1881
|
+
}, { series: e, positiveId: `rectGradient_pos_${s}_${H.value}`, negativeId: `rectGradient_neg_${s}_${H.value}` }), void 0, !0) : (n(), u(d, { key: 1 }, [
|
|
1878
1882
|
p("linearGradient", {
|
|
1879
1883
|
id: `rectGradient_pos_${s}_${H.value}`,
|
|
1880
1884
|
x2: "0%",
|
|
@@ -1883,16 +1887,16 @@ const Yt = { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", zoom: { colo
|
|
|
1883
1887
|
p("stop", {
|
|
1884
1888
|
offset: "0%",
|
|
1885
1889
|
"stop-color": e.color
|
|
1886
|
-
}, null, 8,
|
|
1890
|
+
}, null, 8, jr),
|
|
1887
1891
|
p("stop", {
|
|
1888
1892
|
offset: "62%",
|
|
1889
1893
|
"stop-color": `${v(ol)(e.color, 0.02)}`
|
|
1890
|
-
}, null, 8,
|
|
1894
|
+
}, null, 8, es),
|
|
1891
1895
|
p("stop", {
|
|
1892
1896
|
offset: "100%",
|
|
1893
1897
|
"stop-color": `${v(ol)(e.color, 0.05)}`
|
|
1894
|
-
}, null, 8,
|
|
1895
|
-
], 8,
|
|
1898
|
+
}, null, 8, ls)
|
|
1899
|
+
], 8, Kr),
|
|
1896
1900
|
p("linearGradient", {
|
|
1897
1901
|
id: `rectGradient_neg_${s}_${H.value}`,
|
|
1898
1902
|
x2: "0%",
|
|
@@ -1901,19 +1905,19 @@ const Yt = { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", zoom: { colo
|
|
|
1901
1905
|
p("stop", {
|
|
1902
1906
|
offset: "0%",
|
|
1903
1907
|
"stop-color": `${v(ol)(e.color, 0.05)}`
|
|
1904
|
-
}, null, 8,
|
|
1908
|
+
}, null, 8, ts),
|
|
1905
1909
|
p("stop", {
|
|
1906
1910
|
offset: "38%",
|
|
1907
1911
|
"stop-color": `${v(ol)(e.color, 0.02)}`
|
|
1908
|
-
}, null, 8,
|
|
1912
|
+
}, null, 8, os),
|
|
1909
1913
|
p("stop", {
|
|
1910
1914
|
offset: "100%",
|
|
1911
1915
|
"stop-color": e.color
|
|
1912
|
-
}, null, 8,
|
|
1913
|
-
], 8,
|
|
1916
|
+
}, null, 8, rs)
|
|
1917
|
+
], 8, as)
|
|
1914
1918
|
], 64))
|
|
1915
1919
|
]))), 128)),
|
|
1916
|
-
(
|
|
1920
|
+
(n(!0), u(d, null, _(xe.value, (e, s) => (n(), u("defs", {
|
|
1917
1921
|
key: `def_plot_${s}`
|
|
1918
1922
|
}, [
|
|
1919
1923
|
p("radialGradient", {
|
|
@@ -1927,14 +1931,14 @@ const Yt = { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", zoom: { colo
|
|
|
1927
1931
|
p("stop", {
|
|
1928
1932
|
offset: "0%",
|
|
1929
1933
|
"stop-color": `${v(ol)(e.color, 0.05)}`
|
|
1930
|
-
}, null, 8,
|
|
1934
|
+
}, null, 8, is),
|
|
1931
1935
|
p("stop", {
|
|
1932
1936
|
offset: "100%",
|
|
1933
1937
|
"stop-color": e.color
|
|
1934
|
-
}, null, 8,
|
|
1935
|
-
], 8,
|
|
1938
|
+
}, null, 8, ns)
|
|
1939
|
+
], 8, ss)
|
|
1936
1940
|
]))), 128)),
|
|
1937
|
-
(
|
|
1941
|
+
(n(!0), u(d, null, _(te.value, (e, s) => (n(), u("defs", {
|
|
1938
1942
|
key: `def_line_${e.id}`
|
|
1939
1943
|
}, [
|
|
1940
1944
|
p("radialGradient", {
|
|
@@ -1948,16 +1952,16 @@ const Yt = { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", zoom: { colo
|
|
|
1948
1952
|
p("stop", {
|
|
1949
1953
|
offset: "0%",
|
|
1950
1954
|
"stop-color": `${v(ol)(e.color, 0.05)}`
|
|
1951
|
-
}, null, 8,
|
|
1955
|
+
}, null, 8, cs),
|
|
1952
1956
|
p("stop", {
|
|
1953
1957
|
offset: "100%",
|
|
1954
1958
|
"stop-color": e.color
|
|
1955
|
-
}, null, 8,
|
|
1956
|
-
], 8,
|
|
1959
|
+
}, null, 8, vs)
|
|
1960
|
+
], 8, us),
|
|
1957
1961
|
a.$slots["area-gradient"] ? P(a.$slots, "area-gradient", al({
|
|
1958
1962
|
key: 0,
|
|
1959
1963
|
ref_for: !0
|
|
1960
|
-
}, { series: e, id: `areaGradient_${s}_${H.value}` }), void 0, !0) : (
|
|
1964
|
+
}, { series: e, id: `areaGradient_${s}_${H.value}` }), void 0, !0) : (n(), u("linearGradient", {
|
|
1961
1965
|
key: 1,
|
|
1962
1966
|
id: `areaGradient_${s}_${H.value}`,
|
|
1963
1967
|
x1: "0%",
|
|
@@ -1968,70 +1972,70 @@ const Yt = { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", zoom: { colo
|
|
|
1968
1972
|
p("stop", {
|
|
1969
1973
|
offset: "0%",
|
|
1970
1974
|
"stop-color": `${v(ze)(v(ol)(e.color, 0.03), l.value.line.area.opacity)}`
|
|
1971
|
-
}, null, 8,
|
|
1975
|
+
}, null, 8, hs),
|
|
1972
1976
|
p("stop", {
|
|
1973
1977
|
offset: "100%",
|
|
1974
1978
|
"stop-color": `${v(ze)(e.color, l.value.line.area.opacity)}`
|
|
1975
|
-
}, null, 8,
|
|
1976
|
-
], 8,
|
|
1979
|
+
}, null, 8, fs)
|
|
1980
|
+
], 8, ds))
|
|
1977
1981
|
]))), 128)),
|
|
1978
|
-
(
|
|
1979
|
-
e.show ? (
|
|
1980
|
-
(
|
|
1982
|
+
(n(!0), u(d, null, _(Do.value, (e) => (n(), u("g", null, [
|
|
1983
|
+
e.show ? (n(), u(d, { key: 0 }, [
|
|
1984
|
+
(n(!0), u(d, null, _(e.span, (s, t) => (n(), u("g", null, [
|
|
1981
1985
|
p("rect", {
|
|
1982
|
-
style:
|
|
1986
|
+
style: S({
|
|
1983
1987
|
transition: "none",
|
|
1984
1988
|
opacity: e.from + t >= m.value.start && e.from + t <= m.value.end - 1 ? 1 : 0
|
|
1985
1989
|
}),
|
|
1986
|
-
x: c.value?.left + c.value.width /
|
|
1990
|
+
x: c.value?.left + c.value.width / A.value * (e.from + t - m.value.start),
|
|
1987
1991
|
y: c.value?.top,
|
|
1988
1992
|
height: c.value.height < 0 ? 10 : c.value.height,
|
|
1989
|
-
width: c.value.width /
|
|
1993
|
+
width: c.value.width / A.value < 0 ? 1e-5 : c.value.width / A.value,
|
|
1990
1994
|
fill: v(ze)(e.color, e.opacity)
|
|
1991
|
-
}, null, 12,
|
|
1995
|
+
}, null, 12, gs)
|
|
1992
1996
|
]))), 256)),
|
|
1993
|
-
(
|
|
1994
|
-
e.caption.text && t === 0 ? (
|
|
1997
|
+
(n(!0), u(d, null, _(e.span, (s, t) => (n(), u("g", null, [
|
|
1998
|
+
e.caption.text && t === 0 ? (n(), u("foreignObject", {
|
|
1995
1999
|
key: 0,
|
|
1996
|
-
x: c.value?.left + c.value.width /
|
|
2000
|
+
x: c.value?.left + c.value.width / A.value * (e.from + t - m.value.start) - (e.caption.width === "auto" ? 0 : e.caption.width / 2 - c.value.width / A.value * e.span / 2),
|
|
1997
2001
|
y: c.value?.top + e.caption.offsetY,
|
|
1998
|
-
style:
|
|
2002
|
+
style: S({
|
|
1999
2003
|
overflow: "visible",
|
|
2000
2004
|
opacity: e.to >= m.value.start && e.from < m.value.end ? 1 : 0
|
|
2001
2005
|
}),
|
|
2002
2006
|
height: "1",
|
|
2003
|
-
width: e.caption.width === "auto" ? c.value.width /
|
|
2007
|
+
width: e.caption.width === "auto" ? c.value.width / A.value * e.span : e.caption.width
|
|
2004
2008
|
}, [
|
|
2005
2009
|
p("div", {
|
|
2006
|
-
style:
|
|
2010
|
+
style: S(`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"}`)
|
|
2007
2011
|
}, ae(e.caption.text), 5)
|
|
2008
|
-
], 12,
|
|
2012
|
+
], 12, ms)) : h("", !0)
|
|
2009
2013
|
]))), 256))
|
|
2010
2014
|
], 64)) : h("", !0)
|
|
2011
2015
|
]))), 256)),
|
|
2012
|
-
Ga.value ? (
|
|
2013
|
-
(
|
|
2016
|
+
Ga.value ? (n(), u("g", bs, [
|
|
2017
|
+
(n(!0), u(d, null, _(A.value, (e, s) => (n(), u("g", {
|
|
2014
2018
|
key: `tooltip_trap_highlighter_${s}`
|
|
2015
2019
|
}, [
|
|
2016
2020
|
p("rect", {
|
|
2017
|
-
x: c.value?.left + c.value.width /
|
|
2021
|
+
x: c.value?.left + c.value.width / A.value * s,
|
|
2018
2022
|
y: c.value?.top,
|
|
2019
2023
|
height: c.value.height < 0 ? 10 : c.value.height,
|
|
2020
|
-
width: c.value.width /
|
|
2021
|
-
fill: [B.value,
|
|
2024
|
+
width: c.value.width / A.value < 0 ? 1e-5 : c.value.width / A.value,
|
|
2025
|
+
fill: [B.value, C.value, Ze.value].includes(s) ? v(ze)(l.value.chart.highlighter.color, l.value.chart.highlighter.opacity) : "transparent",
|
|
2022
2026
|
style: { transition: "none !important", animation: "none !important" }
|
|
2023
|
-
}, null, 8,
|
|
2027
|
+
}, null, 8, xs)
|
|
2024
2028
|
]))), 128))
|
|
2025
2029
|
])) : h("", !0),
|
|
2026
|
-
Me.value.length ? (
|
|
2030
|
+
Me.value.length ? (n(!0), u(d, { key: 1 }, _(Me.value, (e, s) => (n(), u("g", {
|
|
2027
2031
|
key: `serie_bar_${e.id}`,
|
|
2028
2032
|
class: ll(`serie_bar_${s}`),
|
|
2029
|
-
style:
|
|
2033
|
+
style: S(`opacity:${I.value ? I.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
2030
2034
|
}, [
|
|
2031
|
-
(
|
|
2035
|
+
(n(!0), u(d, null, _(e.plots, (t, i) => (n(), u("g", {
|
|
2032
2036
|
key: `bar_plot_${s}_${i}`
|
|
2033
2037
|
}, [
|
|
2034
|
-
be(t.value) ? (
|
|
2038
|
+
be(t.value) ? (n(), u("rect", {
|
|
2035
2039
|
key: 0,
|
|
2036
2040
|
x: Rl(t) + Gl.value / 2,
|
|
2037
2041
|
y: f.value.useIndividualScale ? at(t) : lt(t),
|
|
@@ -2041,11 +2045,11 @@ const Yt = { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", zoom: { colo
|
|
|
2041
2045
|
fill: l.value.bar.useGradient ? t.value >= 0 ? `url(#rectGradient_pos_${s}_${H.value})` : `url(#rectGradient_neg_${s}_${H.value})` : e.color,
|
|
2042
2046
|
stroke: l.value.bar.border.useSerieColor ? e.color : l.value.bar.border.stroke,
|
|
2043
2047
|
"stroke-width": l.value.bar.border.strokeWidth,
|
|
2044
|
-
style:
|
|
2048
|
+
style: S({
|
|
2045
2049
|
transition: v(ie) || !l.value.bar.showTransition ? void 0 : `all ${l.value.bar.transitionDurationMs}ms ease-in-out`
|
|
2046
2050
|
})
|
|
2047
|
-
}, null, 12,
|
|
2048
|
-
be(t.value) && a.$slots.pattern ? (
|
|
2051
|
+
}, null, 12, ps)) : h("", !0),
|
|
2052
|
+
be(t.value) && a.$slots.pattern ? (n(), u("rect", {
|
|
2049
2053
|
key: 1,
|
|
2050
2054
|
x: Rl(t) - Gl.value / 2,
|
|
2051
2055
|
y: f.value.useIndividualScale ? at(t) : lt(t),
|
|
@@ -2055,9 +2059,9 @@ const Yt = { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", zoom: { colo
|
|
|
2055
2059
|
fill: `url(#pattern_${H.value}_${e.slotAbsoluteIndex})`,
|
|
2056
2060
|
stroke: l.value.bar.border.useSerieColor ? e.color : l.value.bar.border.stroke,
|
|
2057
2061
|
"stroke-width": l.value.bar.border.strokeWidth,
|
|
2058
|
-
style:
|
|
2059
|
-
}, null, 12,
|
|
2060
|
-
t.comment && l.value.chart.comments.show ? (
|
|
2062
|
+
style: S({ transition: v(ie) || !l.value.bar.showTransition ? void 0 : `all ${l.value.bar.transitionDurationMs}ms ease-in-out` })
|
|
2063
|
+
}, null, 12, ys)) : h("", !0),
|
|
2064
|
+
t.comment && l.value.chart.comments.show ? (n(), u("foreignObject", {
|
|
2061
2065
|
key: 2,
|
|
2062
2066
|
style: { overflow: "visible" },
|
|
2063
2067
|
height: "12",
|
|
@@ -2068,24 +2072,24 @@ const Yt = { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", zoom: { colo
|
|
|
2068
2072
|
P(a.$slots, "plot-comment", {
|
|
2069
2073
|
plot: { ...t, color: e.color, seriesIndex: s, datapointIndex: i }
|
|
2070
2074
|
}, void 0, !0)
|
|
2071
|
-
], 8,
|
|
2075
|
+
], 8, ks)) : h("", !0)
|
|
2072
2076
|
]))), 128))
|
|
2073
2077
|
], 6))), 128)) : h("", !0),
|
|
2074
|
-
!f.value.useIndividualScale && l.value.chart.grid.labels.zeroLine.show ? (
|
|
2078
|
+
!f.value.useIndividualScale && l.value.chart.grid.labels.zeroLine.show ? (n(), u("line", {
|
|
2075
2079
|
key: 2,
|
|
2076
2080
|
stroke: l.value.chart.grid.stroke,
|
|
2077
2081
|
"stroke-width": "1",
|
|
2078
2082
|
x1: c.value?.left + U.value,
|
|
2079
2083
|
x2: c.value?.right,
|
|
2080
|
-
y1: v(Y)(
|
|
2081
|
-
y2: v(Y)(
|
|
2084
|
+
y1: v(Y)(ne.value),
|
|
2085
|
+
y2: v(Y)(ne.value),
|
|
2082
2086
|
"stroke-linecap": "round",
|
|
2083
2087
|
style: { animation: "none !important" }
|
|
2084
|
-
}, null, 8,
|
|
2085
|
-
l.value.chart.highlighter.useLine && (![null, void 0].includes(
|
|
2088
|
+
}, null, 8, Cs)) : h("", !0),
|
|
2089
|
+
l.value.chart.highlighter.useLine && (![null, void 0].includes(C.value) || ![null, void 0].includes(B.value)) ? (n(), u("g", _s, [
|
|
2086
2090
|
p("line", {
|
|
2087
|
-
x1: c.value?.left + c.value.width /
|
|
2088
|
-
x2: c.value?.left + c.value.width /
|
|
2091
|
+
x1: c.value?.left + c.value.width / A.value * ((C.value !== null ? C.value : 0) || (B.value !== null ? B.value : 0)) + c.value.width / A.value / 2,
|
|
2092
|
+
x2: c.value?.left + c.value.width / A.value * ((C.value !== null ? C.value : 0) || (B.value !== null ? B.value : 0)) + c.value.width / A.value / 2,
|
|
2089
2093
|
y1: v(Y)(c.value?.top),
|
|
2090
2094
|
y2: v(Y)(c.value?.bottom),
|
|
2091
2095
|
stroke: l.value.chart.highlighter.color,
|
|
@@ -2093,14 +2097,14 @@ const Yt = { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", zoom: { colo
|
|
|
2093
2097
|
"stroke-dasharray": l.value.chart.highlighter.lineDasharray,
|
|
2094
2098
|
"stroke-linecap": "round",
|
|
2095
2099
|
style: { transition: "none !important", animation: "none !important", "pointer-events": "none" }
|
|
2096
|
-
}, null, 8,
|
|
2100
|
+
}, null, 8, ws)
|
|
2097
2101
|
])) : h("", !0),
|
|
2098
|
-
l.value.chart.grid.frame.show ? (
|
|
2102
|
+
l.value.chart.grid.frame.show ? (n(), u("rect", {
|
|
2099
2103
|
key: 4,
|
|
2100
2104
|
style: { pointerEvents: "none", transition: "none", animation: "none !important" },
|
|
2101
2105
|
x: c.value?.left + U.value < 0 ? 0 : c.value?.left + U.value,
|
|
2102
2106
|
y: c.value?.top,
|
|
2103
|
-
width: c.value.width - (l.value.chart.grid.position === "middle" ? 0 : c.value.width /
|
|
2107
|
+
width: c.value.width - (l.value.chart.grid.position === "middle" ? 0 : c.value.width / A.value) < 0 ? 0 : c.value.width - (l.value.chart.grid.position === "middle" ? 0 : c.value.width / A.value),
|
|
2104
2108
|
height: c.value.height < 0 ? 0 : c.value.height,
|
|
2105
2109
|
fill: "transparent",
|
|
2106
2110
|
stroke: l.value.chart.grid.frame.stroke,
|
|
@@ -2108,14 +2112,14 @@ const Yt = { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", zoom: { colo
|
|
|
2108
2112
|
"stroke-linecap": l.value.chart.grid.frame.strokeLinecap,
|
|
2109
2113
|
"stroke-linejoin": l.value.chart.grid.frame.strokeLinejoin,
|
|
2110
2114
|
"stroke-dasharray": l.value.chart.grid.frame.strokeDasharray
|
|
2111
|
-
}, null, 8,
|
|
2112
|
-
l.value.chart.grid.labels.show ? (
|
|
2115
|
+
}, null, 8, Ss)) : h("", !0),
|
|
2116
|
+
l.value.chart.grid.labels.show ? (n(), u("g", {
|
|
2113
2117
|
key: 5,
|
|
2114
2118
|
ref_key: "scaleLabels",
|
|
2115
2119
|
ref: ta
|
|
2116
2120
|
}, [
|
|
2117
|
-
f.value.useIndividualScale ? (
|
|
2118
|
-
(
|
|
2121
|
+
f.value.useIndividualScale ? (n(), u(d, { key: 0 }, [
|
|
2122
|
+
(n(!0), u(d, null, _(wl.value, (e) => (n(), u("g", null, [
|
|
2119
2123
|
p("line", {
|
|
2120
2124
|
x1: e.x + U.value - c.value.individualOffsetX,
|
|
2121
2125
|
x2: e.x + U.value - c.value.individualOffsetX,
|
|
@@ -2124,11 +2128,11 @@ const Yt = { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", zoom: { colo
|
|
|
2124
2128
|
stroke: e.color,
|
|
2125
2129
|
"stroke-width": l.value.chart.grid.stroke,
|
|
2126
2130
|
"stroke-linecap": "round",
|
|
2127
|
-
style:
|
|
2128
|
-
}, null, 12,
|
|
2131
|
+
style: S(`opacity:${I.value ? I.value === e.groupId ? 1 : 0.3 : 1};transition:opacity 0.2s ease-in-out; animation: none !important`)
|
|
2132
|
+
}, null, 12, As)
|
|
2129
2133
|
]))), 256)),
|
|
2130
|
-
(
|
|
2131
|
-
style:
|
|
2134
|
+
(n(!0), u(d, null, _(wl.value, (e) => (n(), u("g", {
|
|
2135
|
+
style: S(`opacity:${I.value ? I.value === e.groupId ? 1 : 0.3 : 1};transition:opacity 0.2s ease-in-out`)
|
|
2132
2136
|
}, [
|
|
2133
2137
|
p("text", {
|
|
2134
2138
|
fill: e.color,
|
|
@@ -2136,9 +2140,9 @@ const Yt = { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", zoom: { colo
|
|
|
2136
2140
|
"text-anchor": "middle",
|
|
2137
2141
|
transform: `translate(${e.x - y.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)`
|
|
2138
2142
|
}, ae(e.name) + " " + ae(e.scaleLabel && e.unique && e.scaleLabel !== e.id ? `-
|
|
2139
|
-
${e.scaleLabel}` : ""), 9,
|
|
2140
|
-
(
|
|
2141
|
-
l.value.chart.grid.labels.yAxis.showCrosshairs ? (
|
|
2143
|
+
${e.scaleLabel}` : ""), 9, $s),
|
|
2144
|
+
(n(!0), u(d, null, _(e.yLabels, (s, t) => (n(), u(d, null, [
|
|
2145
|
+
l.value.chart.grid.labels.yAxis.showCrosshairs ? (n(), u("line", {
|
|
2142
2146
|
key: 0,
|
|
2143
2147
|
x1: e.x + 3 + U.value - l.value.chart.grid.labels.yAxis.crosshairSize - c.value.individualOffsetX,
|
|
2144
2148
|
x2: e.x + U.value - c.value.individualOffsetX,
|
|
@@ -2148,9 +2152,9 @@ const Yt = { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", zoom: { colo
|
|
|
2148
2152
|
"stroke-width": 1,
|
|
2149
2153
|
"stroke-linecap": "round",
|
|
2150
2154
|
style: { animation: "none !important" }
|
|
2151
|
-
}, null, 8,
|
|
2155
|
+
}, null, 8, Ls)) : h("", !0)
|
|
2152
2156
|
], 64))), 256)),
|
|
2153
|
-
(
|
|
2157
|
+
(n(!0), u(d, null, _(e.yLabels, (s, t) => (n(), u("text", {
|
|
2154
2158
|
x: e.x - 5 + U.value - c.value.individualOffsetX,
|
|
2155
2159
|
y: v(Y)(s.y) + y.value.dataLabels / 3,
|
|
2156
2160
|
"font-size": y.value.dataLabels,
|
|
@@ -2166,12 +2170,12 @@ const Yt = { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", zoom: { colo
|
|
|
2166
2170
|
r: l.value.chart.grid.labels.yAxis.rounding
|
|
2167
2171
|
}),
|
|
2168
2172
|
{ datapoint: s.datapoint, seriesIndex: t }
|
|
2169
|
-
)), 9,
|
|
2173
|
+
)), 9, Ms))), 256))
|
|
2170
2174
|
], 4))), 256))
|
|
2171
|
-
], 64)) : (
|
|
2175
|
+
], 64)) : (n(!0), u(d, { key: 1 }, _(ut.value, (e, s) => (n(), u("g", {
|
|
2172
2176
|
key: `yLabel_${s}`
|
|
2173
2177
|
}, [
|
|
2174
|
-
be(e) && e.value >= Le.value.min && e.value <= Le.value.max && l.value.chart.grid.labels.yAxis.showCrosshairs ? (
|
|
2178
|
+
be(e) && e.value >= Le.value.min && e.value <= Le.value.max && l.value.chart.grid.labels.yAxis.showCrosshairs ? (n(), u("line", {
|
|
2175
2179
|
key: 0,
|
|
2176
2180
|
x1: c.value?.left + U.value,
|
|
2177
2181
|
x2: c.value?.left + U.value - l.value.chart.grid.labels.yAxis.crosshairSize,
|
|
@@ -2181,8 +2185,8 @@ const Yt = { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", zoom: { colo
|
|
|
2181
2185
|
"stroke-width": "1",
|
|
2182
2186
|
"stroke-linecap": "round",
|
|
2183
2187
|
style: { animation: "none !important" }
|
|
2184
|
-
}, null, 8,
|
|
2185
|
-
e.value >= Le.value.min && e.value <= Le.value.max ? (
|
|
2188
|
+
}, null, 8, Ts)) : h("", !0),
|
|
2189
|
+
e.value >= Le.value.min && e.value <= Le.value.max ? (n(), u("text", {
|
|
2186
2190
|
key: 1,
|
|
2187
2191
|
x: c.value.scaleLabelX - l.value.chart.grid.labels.yAxis.crosshairSize,
|
|
2188
2192
|
y: v(N)(e.y + y.value.dataLabels / 3),
|
|
@@ -2198,28 +2202,28 @@ const Yt = { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", zoom: { colo
|
|
|
2198
2202
|
s: e.suffix,
|
|
2199
2203
|
r: l.value.chart.grid.labels.yAxis.rounding
|
|
2200
2204
|
})
|
|
2201
|
-
) : ""), 9,
|
|
2205
|
+
) : ""), 9, zs)) : h("", !0)
|
|
2202
2206
|
]))), 128))
|
|
2203
2207
|
], 512)) : h("", !0),
|
|
2204
|
-
(
|
|
2208
|
+
(n(!0), u(d, null, _(xe.value, (e, s) => (n(), u("g", {
|
|
2205
2209
|
key: `serie_plot_${e.id}`,
|
|
2206
2210
|
class: ll(`serie_plot_${s}`),
|
|
2207
|
-
style:
|
|
2211
|
+
style: S(`opacity:${I.value ? I.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
2208
2212
|
}, [
|
|
2209
|
-
(
|
|
2213
|
+
(n(!0), u(d, null, _(e.plots, (t, i) => (n(), u("g", {
|
|
2210
2214
|
key: `circle_plot_${s}_${i}`
|
|
2211
2215
|
}, [
|
|
2212
|
-
t && be(t.value) ? (
|
|
2216
|
+
t && be(t.value) ? (n(), Te(Kl, {
|
|
2213
2217
|
key: 0,
|
|
2214
2218
|
shape: ["triangle", "square", "diamond", "pentagon", "hexagon", "star"].includes(e.shape) ? e.shape : "circle",
|
|
2215
2219
|
color: l.value.plot.useGradient ? `url(#plotGradient_${s}_${H.value})` : l.value.plot.dot.useSerieColor ? e.color : l.value.plot.dot.fill,
|
|
2216
2220
|
plot: { x: v(N)(t.x), y: v(N)(t.y) },
|
|
2217
|
-
radius:
|
|
2221
|
+
radius: C.value !== null && C.value === i || B.value !== null && B.value === i ? (Ae.value.plot || 6) * 1.5 : Ae.value.plot || 6,
|
|
2218
2222
|
stroke: l.value.plot.dot.useSerieColor ? l.value.chart.backgroundColor : e.color,
|
|
2219
2223
|
strokeWidth: l.value.plot.dot.strokeWidth,
|
|
2220
|
-
transition: v(ie) || !l.value.plot.showTransition ||
|
|
2224
|
+
transition: v(ie) || !l.value.plot.showTransition || C.value !== null && C.value === i || B.value !== null && B.value === i ? void 0 : `all ${l.value.plot.transitionDurationMs}ms ease-in-out`
|
|
2221
2225
|
}, null, 8, ["shape", "color", "plot", "radius", "stroke", "strokeWidth", "transition"])) : h("", !0),
|
|
2222
|
-
t.comment && l.value.chart.comments.show ? (
|
|
2226
|
+
t.comment && l.value.chart.comments.show ? (n(), u("foreignObject", {
|
|
2223
2227
|
key: 1,
|
|
2224
2228
|
style: { overflow: "visible" },
|
|
2225
2229
|
height: "12",
|
|
@@ -2227,28 +2231,28 @@ const Yt = { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", zoom: { colo
|
|
|
2227
2231
|
x: t.x - l.value.chart.comments.width / 2 + l.value.chart.comments.offsetX,
|
|
2228
2232
|
y: t.y + l.value.chart.comments.offsetY + 6
|
|
2229
2233
|
}, [
|
|
2230
|
-
p("div",
|
|
2234
|
+
p("div", Fs, [
|
|
2231
2235
|
P(a.$slots, "plot-comment", {
|
|
2232
2236
|
plot: { ...t, color: e.color, seriesIndex: s, datapointIndex: i }
|
|
2233
2237
|
}, void 0, !0)
|
|
2234
2238
|
])
|
|
2235
|
-
], 8,
|
|
2239
|
+
], 8, Is)) : h("", !0)
|
|
2236
2240
|
]))), 128))
|
|
2237
2241
|
], 6))), 128)),
|
|
2238
|
-
(
|
|
2242
|
+
(n(!0), u(d, null, _(te.value, (e, s) => (n(), u("g", {
|
|
2239
2243
|
key: `serie_line_${e.id}`,
|
|
2240
2244
|
class: ll(`serie_line_${s}`),
|
|
2241
|
-
style:
|
|
2245
|
+
style: S(`opacity:${I.value ? I.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
2242
2246
|
}, [
|
|
2243
|
-
e.smooth && e.plots.length > 1 && e.curve ? (
|
|
2247
|
+
e.smooth && e.plots.length > 1 && e.curve ? (n(), u("path", {
|
|
2244
2248
|
key: 0,
|
|
2245
2249
|
d: `M${e.curve}`,
|
|
2246
2250
|
stroke: l.value.chart.backgroundColor,
|
|
2247
2251
|
"stroke-width": l.value.line.strokeWidth + 1,
|
|
2248
2252
|
"stroke-dasharray": e.dashed ? l.value.line.strokeWidth * 2 : 0,
|
|
2249
2253
|
fill: "none",
|
|
2250
|
-
style:
|
|
2251
|
-
}, null, 12,
|
|
2254
|
+
style: S({ transition: v(ie) || !l.value.line.showTransition ? void 0 : `all ${l.value.line.transitionDurationMs}ms ease-in-out` })
|
|
2255
|
+
}, null, 12, Os)) : e.plots.length > 1 && e.straight ? (n(), u("path", {
|
|
2252
2256
|
key: 1,
|
|
2253
2257
|
d: `M${e.straight}`,
|
|
2254
2258
|
stroke: l.value.chart.backgroundColor,
|
|
@@ -2257,60 +2261,60 @@ const Yt = { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", zoom: { colo
|
|
|
2257
2261
|
fill: "none",
|
|
2258
2262
|
"stroke-linecap": "round",
|
|
2259
2263
|
"stroke-linejoin": "round",
|
|
2260
|
-
style:
|
|
2261
|
-
}, null, 12,
|
|
2264
|
+
style: S({ transition: v(ie) || !l.value.line.showTransition ? void 0 : `all ${l.value.line.transitionDurationMs}ms ease-in-out` })
|
|
2265
|
+
}, null, 12, Bs)) : h("", !0)
|
|
2262
2266
|
], 6))), 128)),
|
|
2263
|
-
a.$slots.pattern ? (
|
|
2264
|
-
(
|
|
2267
|
+
a.$slots.pattern ? (n(), u("defs", Ns, [
|
|
2268
|
+
(n(!0), u(d, null, _(Pe.value, (e, s) => P(a.$slots, "pattern", al({
|
|
2265
2269
|
key: `serie_pattern_slot_${e.id}`
|
|
2266
2270
|
}, { ref_for: !0 }, { ...e, seriesIndex: e.slotAbsoluteIndex, patternId: `pattern_${H.value}_${s}` }), void 0, !0)), 128))
|
|
2267
2271
|
])) : h("", !0),
|
|
2268
|
-
dt.value.length && !f.value.isStacked ? (
|
|
2269
|
-
(
|
|
2272
|
+
dt.value.length && !f.value.isStacked ? (n(), u("g", Vs, [
|
|
2273
|
+
(n(!0), u(d, null, _(dt.value, (e) => (n(), u("path", {
|
|
2270
2274
|
key: e.key,
|
|
2271
2275
|
d: e.d,
|
|
2272
2276
|
fill: e.color,
|
|
2273
2277
|
"fill-opacity": l.value.line.interLine.fillOpacity,
|
|
2274
2278
|
stroke: "none",
|
|
2275
2279
|
"pointer-events": "none",
|
|
2276
|
-
style:
|
|
2277
|
-
}, null, 12,
|
|
2280
|
+
style: S({ transition: v(ie) || !l.value.line.showTransition ? void 0 : `all ${l.value.line.transitionDurationMs}ms ease-in-out` })
|
|
2281
|
+
}, null, 12, Ds))), 128))
|
|
2278
2282
|
])) : h("", !0),
|
|
2279
|
-
(
|
|
2283
|
+
(n(!0), u(d, null, _(te.value, (e, s) => (n(), u("g", {
|
|
2280
2284
|
key: `serie_line_above_${e.id}`,
|
|
2281
2285
|
class: ll(`serie_line_${s}`),
|
|
2282
|
-
style:
|
|
2286
|
+
style: S(`opacity:${I.value ? I.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
2283
2287
|
}, [
|
|
2284
|
-
e.useArea && e.plots.length > 1 ? (
|
|
2285
|
-
e.smooth ? (
|
|
2286
|
-
t ? (
|
|
2288
|
+
e.useArea && e.plots.length > 1 ? (n(), u("g", Ps, [
|
|
2289
|
+
e.smooth ? (n(!0), u(d, { key: 0 }, _(e.curveAreas, (t, i) => (n(), u(d, { key: i }, [
|
|
2290
|
+
t ? (n(), u("path", {
|
|
2287
2291
|
key: 0,
|
|
2288
2292
|
d: t,
|
|
2289
2293
|
fill: l.value.line.area.useGradient ? `url(#areaGradient_${s}_${H.value})` : v(ze)(e.color, l.value.line.area.opacity),
|
|
2290
|
-
style:
|
|
2291
|
-
}, null, 12,
|
|
2292
|
-
a.$slots.pattern && t ? (
|
|
2294
|
+
style: S({ transition: v(ie) || !l.value.line.showTransition ? void 0 : `all ${l.value.line.transitionDurationMs}ms ease-in-out` })
|
|
2295
|
+
}, null, 12, Es)) : h("", !0),
|
|
2296
|
+
a.$slots.pattern && t ? (n(), u("path", {
|
|
2293
2297
|
key: 1,
|
|
2294
2298
|
d: t,
|
|
2295
2299
|
fill: `url(#pattern_${H.value}_${e.slotAbsoluteIndex})`,
|
|
2296
|
-
style:
|
|
2297
|
-
}, null, 12,
|
|
2298
|
-
], 64))), 128)) : (
|
|
2299
|
-
t ? (
|
|
2300
|
+
style: S({ transition: v(ie) || !l.value.line.showTransition ? void 0 : `all ${l.value.line.transitionDurationMs}ms ease-in-out` })
|
|
2301
|
+
}, null, 12, Rs)) : h("", !0)
|
|
2302
|
+
], 64))), 128)) : (n(!0), u(d, { key: 1 }, _(e.area.split(";"), (t, i) => (n(), u(d, { key: i }, [
|
|
2303
|
+
t ? (n(), u("path", {
|
|
2300
2304
|
key: 0,
|
|
2301
2305
|
d: `M${t}Z`,
|
|
2302
2306
|
fill: l.value.line.area.useGradient ? `url(#areaGradient_${s}_${H.value})` : v(ze)(e.color, l.value.line.area.opacity),
|
|
2303
|
-
style:
|
|
2304
|
-
}, null, 12,
|
|
2305
|
-
a.$slots.pattern && t ? (
|
|
2307
|
+
style: S({ transition: v(ie) || !l.value.line.showTransition ? void 0 : `all ${l.value.line.transitionDurationMs}ms ease-in-out` })
|
|
2308
|
+
}, null, 12, Hs)) : h("", !0),
|
|
2309
|
+
a.$slots.pattern && t ? (n(), u("path", {
|
|
2306
2310
|
key: 1,
|
|
2307
2311
|
d: `M${t}Z`,
|
|
2308
2312
|
fill: `url(#pattern_${H.value}_${e.slotAbsoluteIndex})`,
|
|
2309
|
-
style:
|
|
2310
|
-
}, null, 12,
|
|
2313
|
+
style: S({ transition: v(ie) || !l.value.line.showTransition ? void 0 : `all ${l.value.line.transitionDurationMs}ms ease-in-out` })
|
|
2314
|
+
}, null, 12, Ys)) : h("", !0)
|
|
2311
2315
|
], 64))), 128))
|
|
2312
2316
|
])) : h("", !0),
|
|
2313
|
-
e.smooth && e.plots.length > 1 && e.curve ? (
|
|
2317
|
+
e.smooth && e.plots.length > 1 && e.curve ? (n(), u("path", {
|
|
2314
2318
|
key: 1,
|
|
2315
2319
|
d: `M${e.curve}`,
|
|
2316
2320
|
stroke: e.color,
|
|
@@ -2318,8 +2322,8 @@ const Yt = { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", zoom: { colo
|
|
|
2318
2322
|
"stroke-dasharray": e.dashed ? l.value.line.strokeWidth * 2 : 0,
|
|
2319
2323
|
fill: "none",
|
|
2320
2324
|
"stroke-linecap": "round",
|
|
2321
|
-
style:
|
|
2322
|
-
}, null, 12,
|
|
2325
|
+
style: S({ transition: v(ie) || !l.value.line.showTransition ? void 0 : `all ${l.value.line.transitionDurationMs}ms ease-in-out` })
|
|
2326
|
+
}, null, 12, Ws)) : e.plots.length > 1 && e.straight ? (n(), u("path", {
|
|
2323
2327
|
key: 2,
|
|
2324
2328
|
d: `M${e.straight}`,
|
|
2325
2329
|
stroke: e.color,
|
|
@@ -2328,22 +2332,22 @@ const Yt = { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", zoom: { colo
|
|
|
2328
2332
|
fill: "none",
|
|
2329
2333
|
"stroke-linecap": "round",
|
|
2330
2334
|
"stroke-linejoin": "round",
|
|
2331
|
-
style:
|
|
2332
|
-
}, null, 12,
|
|
2333
|
-
(
|
|
2335
|
+
style: S({ transition: v(ie) || !l.value.line.showTransition ? void 0 : `all ${l.value.line.transitionDurationMs}ms ease-in-out` })
|
|
2336
|
+
}, null, 12, Xs)) : h("", !0),
|
|
2337
|
+
(n(!0), u(d, null, _(e.plots, (t, i) => (n(), u(d, {
|
|
2334
2338
|
key: `circle_line_${s}_${i}`
|
|
2335
2339
|
}, [
|
|
2336
|
-
!it.value.linePlot && t && be(t.value) || it.value.linePlot && t && be(t.value) && (
|
|
2340
|
+
!it.value.linePlot && t && be(t.value) || it.value.linePlot && t && be(t.value) && (C.value !== null && C.value === i || B.value !== null && B.value === i) || vt(e.plots, i) ? (n(), Te(Kl, {
|
|
2337
2341
|
key: 0,
|
|
2338
2342
|
shape: ["triangle", "square", "diamond", "pentagon", "hexagon", "star"].includes(e.shape) ? e.shape : "circle",
|
|
2339
2343
|
color: l.value.line.useGradient ? `url(#lineGradient_${s}_${H.value})` : l.value.line.dot.useSerieColor ? e.color : l.value.line.dot.fill,
|
|
2340
2344
|
plot: { x: v(N)(t.x), y: v(N)(t.y) },
|
|
2341
|
-
radius:
|
|
2345
|
+
radius: C.value !== null && C.value === i || B.value !== null && B.value === i ? (Ae.value.line || 6) * 1.5 : (vt(e.plots, i), Ae.value.line || 6),
|
|
2342
2346
|
stroke: l.value.line.dot.useSerieColor ? l.value.chart.backgroundColor : e.color,
|
|
2343
2347
|
strokeWidth: l.value.line.dot.strokeWidth,
|
|
2344
|
-
transition: v(ie) || !l.value.line.showTransition ||
|
|
2348
|
+
transition: v(ie) || !l.value.line.showTransition || C.value !== null && C.value === i || B.value !== null && B.value === i ? void 0 : `all ${l.value.line.transitionDurationMs}ms ease-in-out`
|
|
2345
2349
|
}, null, 8, ["shape", "color", "plot", "radius", "stroke", "strokeWidth", "transition"])) : h("", !0),
|
|
2346
|
-
t.comment && l.value.chart.comments.show ? (
|
|
2350
|
+
t.comment && l.value.chart.comments.show ? (n(), u("foreignObject", {
|
|
2347
2351
|
key: 1,
|
|
2348
2352
|
style: { overflow: "visible" },
|
|
2349
2353
|
height: "12",
|
|
@@ -2351,29 +2355,29 @@ const Yt = { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", zoom: { colo
|
|
|
2351
2355
|
x: t.x - l.value.chart.comments.width / 2 + l.value.chart.comments.offsetX,
|
|
2352
2356
|
y: t.y + l.value.chart.comments.offsetY + 6
|
|
2353
2357
|
}, [
|
|
2354
|
-
p("div",
|
|
2358
|
+
p("div", Us, [
|
|
2355
2359
|
P(a.$slots, "plot-comment", {
|
|
2356
2360
|
plot: { ...t, color: e.color, seriesIndex: s, datapointIndex: i }
|
|
2357
2361
|
}, void 0, !0)
|
|
2358
2362
|
])
|
|
2359
|
-
], 8,
|
|
2363
|
+
], 8, Gs)) : h("", !0)
|
|
2360
2364
|
], 64))), 128))
|
|
2361
2365
|
], 6))), 128)),
|
|
2362
|
-
(l.value.bar.labels.show || l.value.bar.serieName.show) && f.value.dataLabels.show ? (
|
|
2363
|
-
(
|
|
2366
|
+
(l.value.bar.labels.show || l.value.bar.serieName.show) && f.value.dataLabels.show ? (n(), u("g", qs, [
|
|
2367
|
+
(n(!0), u(d, null, _(Me.value, (e, s) => (n(), u(d, {
|
|
2364
2368
|
key: `xLabel_bar_${e.id}`
|
|
2365
2369
|
}, [
|
|
2366
|
-
(
|
|
2370
|
+
(n(!0), u(d, null, _(e.plots, (t, i) => (n(), u(d, {
|
|
2367
2371
|
key: `xLabel_bar_${s}_${i}`
|
|
2368
2372
|
}, [
|
|
2369
|
-
t && (!Object.hasOwn(e, "dataLabels") || e.dataLabels === !0 ||
|
|
2373
|
+
t && (!Object.hasOwn(e, "dataLabels") || e.dataLabels === !0 || C.value !== null && C.value === i || B.value !== null && B.value === i) && l.value.bar.labels.show ? (n(), u("text", {
|
|
2370
2374
|
key: 0,
|
|
2371
2375
|
x: f.value.useIndividualScale && f.value.isStacked ? t.x + Z.value.line / 2 : Rl(t) + He() / 2 - Wl.value / 2,
|
|
2372
2376
|
y: v(N)(t.y) + (t.value >= 0 ? l.value.bar.labels.offsetY : -l.value.bar.labels.offsetY * 3),
|
|
2373
2377
|
"text-anchor": "middle",
|
|
2374
2378
|
"font-size": y.value.plotLabels,
|
|
2375
2379
|
fill: l.value.bar.labels.color,
|
|
2376
|
-
style:
|
|
2380
|
+
style: S(`opacity:${I.value ? I.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
2377
2381
|
}, ae(be(t.value) ? v(re)(
|
|
2378
2382
|
l.value.bar.labels.formatter,
|
|
2379
2383
|
t.value,
|
|
@@ -2387,8 +2391,8 @@ const Yt = { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", zoom: { colo
|
|
|
2387
2391
|
datapoint: t,
|
|
2388
2392
|
serie: e
|
|
2389
2393
|
}
|
|
2390
|
-
) : ""), 13,
|
|
2391
|
-
t && l.value.bar.serieName.show ? (
|
|
2394
|
+
) : ""), 13, Zs)) : h("", !0),
|
|
2395
|
+
t && l.value.bar.serieName.show ? (n(), u("text", {
|
|
2392
2396
|
key: 1,
|
|
2393
2397
|
x: f.value.useIndividualScale && f.value.isStacked ? t.x + Z.value.line / 2 : t.x + He() * 1.1,
|
|
2394
2398
|
y: t.y + (t.value > 0 ? l.value.bar.serieName.offsetY : -l.value.bar.serieName.offsetY * 3),
|
|
@@ -2396,29 +2400,29 @@ const Yt = { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", zoom: { colo
|
|
|
2396
2400
|
"font-size": y.value.plotLabels,
|
|
2397
2401
|
fill: l.value.bar.serieName.useSerieColor ? e.color : l.value.bar.serieName.color,
|
|
2398
2402
|
"font-weight": l.value.bar.serieName.bold ? "bold" : "normal",
|
|
2399
|
-
style:
|
|
2400
|
-
}, ae(l.value.bar.serieName.useAbbreviation ? v(
|
|
2403
|
+
style: S(`opacity:${I.value ? I.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
2404
|
+
}, ae(l.value.bar.serieName.useAbbreviation ? v(mr)({
|
|
2401
2405
|
source: e.name,
|
|
2402
2406
|
length: l.value.bar.serieName.abbreviationSize
|
|
2403
|
-
}) : e.name), 13,
|
|
2407
|
+
}) : e.name), 13, Js)) : h("", !0)
|
|
2404
2408
|
], 64))), 128))
|
|
2405
2409
|
], 64))), 128))
|
|
2406
2410
|
])) : h("", !0),
|
|
2407
|
-
l.value.plot.labels.show && f.value.dataLabels.show ? (
|
|
2408
|
-
(
|
|
2411
|
+
l.value.plot.labels.show && f.value.dataLabels.show ? (n(), u("g", Qs, [
|
|
2412
|
+
(n(!0), u(d, null, _(xe.value, (e, s) => (n(), u(d, {
|
|
2409
2413
|
key: `xLabel_plot_${e.id}`
|
|
2410
2414
|
}, [
|
|
2411
|
-
(
|
|
2415
|
+
(n(!0), u(d, null, _(e.plots, (t, i) => (n(), u(d, {
|
|
2412
2416
|
key: `xLabel_plot_${s}_${i}`
|
|
2413
2417
|
}, [
|
|
2414
|
-
t && !Object.hasOwn(e, "dataLabels") || e.dataLabels === !0 ||
|
|
2418
|
+
t && !Object.hasOwn(e, "dataLabels") || e.dataLabels === !0 || C.value !== null && C.value === i || B.value !== null && B.value === i ? (n(), u("text", {
|
|
2415
2419
|
key: 0,
|
|
2416
2420
|
x: t.x,
|
|
2417
2421
|
y: t.y + l.value.plot.labels.offsetY,
|
|
2418
2422
|
"text-anchor": "middle",
|
|
2419
2423
|
"font-size": y.value.plotLabels,
|
|
2420
2424
|
fill: l.value.plot.labels.color,
|
|
2421
|
-
style:
|
|
2425
|
+
style: S(`opacity:${I.value ? I.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
2422
2426
|
}, ae(be(t.value) ? v(re)(
|
|
2423
2427
|
l.value.plot.labels.formatter,
|
|
2424
2428
|
t.value,
|
|
@@ -2432,18 +2436,18 @@ const Yt = { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", zoom: { colo
|
|
|
2432
2436
|
datapoint: t,
|
|
2433
2437
|
serie: e
|
|
2434
2438
|
}
|
|
2435
|
-
) : ""), 13,
|
|
2439
|
+
) : ""), 13, Ks)) : h("", !0)
|
|
2436
2440
|
], 64))), 128))
|
|
2437
2441
|
], 64))), 128))
|
|
2438
|
-
])) : (
|
|
2439
|
-
(
|
|
2442
|
+
])) : (n(), u("g", js, [
|
|
2443
|
+
(n(!0), u(d, null, _(xe.value, (e, s) => (n(), u(d, {
|
|
2440
2444
|
key: `xLabel_plot_${e.id}`
|
|
2441
2445
|
}, [
|
|
2442
|
-
(
|
|
2446
|
+
(n(!0), u(d, null, _(e.plots, (t, i) => (n(), u(d, {
|
|
2443
2447
|
key: `xLabel_plot_${s}_${i}`
|
|
2444
2448
|
}, [
|
|
2445
|
-
l.value.plot.tag.followValue ? (
|
|
2446
|
-
[B.value,
|
|
2449
|
+
l.value.plot.tag.followValue ? (n(), u(d, { key: 1 }, [
|
|
2450
|
+
[B.value, C.value, Ze.value].includes(i) && e.useTag ? (n(), u("line", {
|
|
2447
2451
|
key: 0,
|
|
2448
2452
|
class: "vue-ui-xy-tag-plot",
|
|
2449
2453
|
x1: c.value?.left,
|
|
@@ -2454,18 +2458,18 @@ const Yt = { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", zoom: { colo
|
|
|
2454
2458
|
"stroke-linecap": "round",
|
|
2455
2459
|
"stroke-dasharray": "2",
|
|
2456
2460
|
stroke: e.color
|
|
2457
|
-
}, null, 8,
|
|
2458
|
-
], 64)) : (
|
|
2459
|
-
t && i === 0 && e.useTag && e.useTag === "start" ? (
|
|
2461
|
+
}, null, 8, oi)) : h("", !0)
|
|
2462
|
+
], 64)) : (n(), u(d, { key: 0 }, [
|
|
2463
|
+
t && i === 0 && e.useTag && e.useTag === "start" ? (n(), u("foreignObject", {
|
|
2460
2464
|
key: 0,
|
|
2461
2465
|
x: t.x,
|
|
2462
2466
|
y: t.y - 20,
|
|
2463
2467
|
height: 24,
|
|
2464
2468
|
width: "150",
|
|
2465
|
-
style:
|
|
2469
|
+
style: S(`overflow: visible; opacity:${I.value ? I.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
2466
2470
|
}, [
|
|
2467
2471
|
p("div", {
|
|
2468
|
-
style:
|
|
2472
|
+
style: S(`padding: 3px; background:${v(ze)(e.color, 80)};color:${v(Ge)(e.color)};width:fit-content;font-size:${y.value.plotLabels}px;border-radius: 2px;`),
|
|
2469
2473
|
innerHTML: v(re)(
|
|
2470
2474
|
l.value.plot.tag.formatter,
|
|
2471
2475
|
t.value,
|
|
@@ -2476,18 +2480,18 @@ const Yt = { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", zoom: { colo
|
|
|
2476
2480
|
serieName: e.name
|
|
2477
2481
|
}
|
|
2478
2482
|
)
|
|
2479
|
-
}, null, 12,
|
|
2480
|
-
], 12,
|
|
2481
|
-
t && i === e.plots.length - 1 && e.useTag && e.useTag === "end" ? (
|
|
2483
|
+
}, null, 12, li)
|
|
2484
|
+
], 12, ei)) : h("", !0),
|
|
2485
|
+
t && i === e.plots.length - 1 && e.useTag && e.useTag === "end" ? (n(), u("foreignObject", {
|
|
2482
2486
|
key: 1,
|
|
2483
2487
|
x: t.x - e.name.length * (y.value.plotLabels / 2),
|
|
2484
2488
|
y: t.y - 20,
|
|
2485
2489
|
height: 24,
|
|
2486
2490
|
width: "150",
|
|
2487
|
-
style:
|
|
2491
|
+
style: S(`overflow: visible; opacity:${I.value ? I.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
2488
2492
|
}, [
|
|
2489
2493
|
p("div", {
|
|
2490
|
-
style:
|
|
2494
|
+
style: S(`padding: 3px; background:${v(ze)(e.color, 80)};color:${v(Ge)(e.color)};width:fit-content;font-size:${y.value.plotLabels}px;border-radius: 2px;`),
|
|
2491
2495
|
innerHTML: v(re)(
|
|
2492
2496
|
l.value.plot.tag.formatter,
|
|
2493
2497
|
t.value,
|
|
@@ -2498,27 +2502,27 @@ const Yt = { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", zoom: { colo
|
|
|
2498
2502
|
serieName: e.name
|
|
2499
2503
|
}
|
|
2500
2504
|
)
|
|
2501
|
-
}, null, 12,
|
|
2502
|
-
], 12,
|
|
2505
|
+
}, null, 12, ti)
|
|
2506
|
+
], 12, ai)) : h("", !0)
|
|
2503
2507
|
], 64))
|
|
2504
2508
|
], 64))), 128))
|
|
2505
2509
|
], 64))), 128))
|
|
2506
2510
|
])),
|
|
2507
|
-
l.value.line.labels.show && f.value.dataLabels.show ? (
|
|
2508
|
-
(
|
|
2511
|
+
l.value.line.labels.show && f.value.dataLabels.show ? (n(), u("g", ri, [
|
|
2512
|
+
(n(!0), u(d, null, _(te.value, (e, s) => (n(), u(d, {
|
|
2509
2513
|
key: `xLabel_line_${e.id}`
|
|
2510
2514
|
}, [
|
|
2511
|
-
(
|
|
2515
|
+
(n(!0), u(d, null, _(e.plots, (t, i) => (n(), u(d, {
|
|
2512
2516
|
key: `xLabel_line_${s}_${i}`
|
|
2513
2517
|
}, [
|
|
2514
|
-
t && !Object.hasOwn(e, "dataLabels") || e.dataLabels === !0 ||
|
|
2518
|
+
t && !Object.hasOwn(e, "dataLabels") || e.dataLabels === !0 || C.value !== null && C.value === i || B.value !== null && B.value === i ? (n(), u("text", {
|
|
2515
2519
|
key: 0,
|
|
2516
2520
|
x: t.x,
|
|
2517
2521
|
y: t.y + (t.value >= 0 ? l.value.line.labels.offsetY : -l.value.line.labels.offsetY * 3),
|
|
2518
2522
|
"text-anchor": "middle",
|
|
2519
2523
|
"font-size": y.value.plotLabels,
|
|
2520
2524
|
fill: l.value.line.labels.color,
|
|
2521
|
-
style:
|
|
2525
|
+
style: S(`opacity:${I.value ? I.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
2522
2526
|
}, ae(be(t.value) ? v(re)(
|
|
2523
2527
|
l.value.line.labels.formatter,
|
|
2524
2528
|
t.value,
|
|
@@ -2532,18 +2536,18 @@ const Yt = { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", zoom: { colo
|
|
|
2532
2536
|
datapoint: t,
|
|
2533
2537
|
serie: e
|
|
2534
2538
|
}
|
|
2535
|
-
) : ""), 13,
|
|
2539
|
+
) : ""), 13, si)) : h("", !0)
|
|
2536
2540
|
], 64))), 128))
|
|
2537
2541
|
], 64))), 128))
|
|
2538
|
-
])) : (
|
|
2539
|
-
(
|
|
2542
|
+
])) : (n(), u("g", ii, [
|
|
2543
|
+
(n(!0), u(d, null, _(te.value, (e, s) => (n(), u(d, {
|
|
2540
2544
|
key: `xLabel_line_${e.id}`
|
|
2541
2545
|
}, [
|
|
2542
|
-
(
|
|
2546
|
+
(n(!0), u(d, null, _(e.plots, (t, i) => (n(), u(d, {
|
|
2543
2547
|
key: `xLabel_line_${s}_${i}`
|
|
2544
2548
|
}, [
|
|
2545
|
-
l.value.line.tag.followValue ? (
|
|
2546
|
-
[B.value,
|
|
2549
|
+
l.value.line.tag.followValue ? (n(), u(d, { key: 1 }, [
|
|
2550
|
+
[B.value, C.value, Ze.value].includes(i) && e.useTag ? (n(), u("line", {
|
|
2547
2551
|
key: 0,
|
|
2548
2552
|
class: "vue-ui-xy-tag-line",
|
|
2549
2553
|
x1: c.value?.left,
|
|
@@ -2554,18 +2558,18 @@ const Yt = { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", zoom: { colo
|
|
|
2554
2558
|
"stroke-linecap": "round",
|
|
2555
2559
|
"stroke-dasharray": "2",
|
|
2556
2560
|
stroke: e.color
|
|
2557
|
-
}, null, 8,
|
|
2558
|
-
], 64)) : (
|
|
2559
|
-
t && i === 0 && e.useTag && e.useTag === "start" ? (
|
|
2561
|
+
}, null, 8, di)) : h("", !0)
|
|
2562
|
+
], 64)) : (n(), u(d, { key: 0 }, [
|
|
2563
|
+
t && i === 0 && e.useTag && e.useTag === "start" ? (n(), u("foreignObject", {
|
|
2560
2564
|
key: 0,
|
|
2561
2565
|
x: t.x,
|
|
2562
2566
|
y: t.y - 20,
|
|
2563
2567
|
height: 24,
|
|
2564
2568
|
width: "150",
|
|
2565
|
-
style:
|
|
2569
|
+
style: S(`overflow: visible; opacity:${I.value ? I.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
2566
2570
|
}, [
|
|
2567
2571
|
p("div", {
|
|
2568
|
-
style:
|
|
2572
|
+
style: S(`padding: 3px; background:${v(ze)(e.color, 80)};color:${v(Ge)(e.color)};width:fit-content;font-size:${y.value.plotLabels}px;border-radius: 2px;`),
|
|
2569
2573
|
innerHTML: v(re)(
|
|
2570
2574
|
l.value.line.tag.formatter,
|
|
2571
2575
|
t.value,
|
|
@@ -2576,18 +2580,18 @@ const Yt = { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", zoom: { colo
|
|
|
2576
2580
|
serieName: e.name
|
|
2577
2581
|
}
|
|
2578
2582
|
)
|
|
2579
|
-
}, null, 12,
|
|
2580
|
-
], 12,
|
|
2581
|
-
t && i === e.plots.length - 1 && e.useTag && e.useTag === "end" ? (
|
|
2583
|
+
}, null, 12, ui)
|
|
2584
|
+
], 12, ni)) : h("", !0),
|
|
2585
|
+
t && i === e.plots.length - 1 && e.useTag && e.useTag === "end" ? (n(), u("foreignObject", {
|
|
2582
2586
|
key: 1,
|
|
2583
2587
|
x: t.x,
|
|
2584
2588
|
y: t.y - 20,
|
|
2585
2589
|
height: 24,
|
|
2586
2590
|
width: "150",
|
|
2587
|
-
style:
|
|
2591
|
+
style: S(`overflow: visible; opacity:${I.value ? I.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
2588
2592
|
}, [
|
|
2589
2593
|
p("div", {
|
|
2590
|
-
style:
|
|
2594
|
+
style: S(`padding: 3px; background:${v(ze)(e.color, 80)};color:${v(Ge)(e.color)};width:fit-content;font-size:${y.value.plotLabels}px;border-radius: 2px;`),
|
|
2591
2595
|
innerHTML: v(re)(
|
|
2592
2596
|
l.value.line.tag.formatter,
|
|
2593
2597
|
t.value,
|
|
@@ -2598,19 +2602,19 @@ const Yt = { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", zoom: { colo
|
|
|
2598
2602
|
serieName: e.name
|
|
2599
2603
|
}
|
|
2600
2604
|
)
|
|
2601
|
-
}, null, 12,
|
|
2602
|
-
], 12,
|
|
2605
|
+
}, null, 12, vi)
|
|
2606
|
+
], 12, ci)) : h("", !0)
|
|
2603
2607
|
], 64))
|
|
2604
2608
|
], 64))), 128))
|
|
2605
2609
|
], 64))), 128))
|
|
2606
2610
|
])),
|
|
2607
|
-
(
|
|
2611
|
+
(n(!0), u(d, null, _(te.value, (e, s) => (n(), u(d, {
|
|
2608
2612
|
key: `xLabel_line_${e.id}`
|
|
2609
2613
|
}, [
|
|
2610
|
-
(
|
|
2614
|
+
(n(!0), u(d, null, _(e.plots, (t, i) => (n(), u(d, {
|
|
2611
2615
|
key: `xLabel_line_${s}_${i}`
|
|
2612
2616
|
}, [
|
|
2613
|
-
t && i === 0 && e.showSerieName && e.showSerieName === "start" ? (
|
|
2617
|
+
t && i === 0 && e.showSerieName && e.showSerieName === "start" ? (n(), u("text", {
|
|
2614
2618
|
key: 0,
|
|
2615
2619
|
x: t.x - y.value.plotLabels,
|
|
2616
2620
|
y: t.y,
|
|
@@ -2625,9 +2629,9 @@ const Yt = { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", zoom: { colo
|
|
|
2625
2629
|
y: t.y,
|
|
2626
2630
|
maxWords: 2
|
|
2627
2631
|
}),
|
|
2628
|
-
style:
|
|
2629
|
-
}, null, 12,
|
|
2630
|
-
t && i === e.plots.length - 1 && e.showSerieName && e.showSerieName === "end" ? (
|
|
2632
|
+
style: S(`opacity:${I.value ? I.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
2633
|
+
}, null, 12, hi)) : h("", !0),
|
|
2634
|
+
t && i === e.plots.length - 1 && e.showSerieName && e.showSerieName === "end" ? (n(), u("text", {
|
|
2631
2635
|
key: 1,
|
|
2632
2636
|
x: t.x + y.value.plotLabels,
|
|
2633
2637
|
y: t.y,
|
|
@@ -2642,17 +2646,17 @@ const Yt = { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", zoom: { colo
|
|
|
2642
2646
|
y: t.y,
|
|
2643
2647
|
maxWords: 2
|
|
2644
2648
|
}),
|
|
2645
|
-
style:
|
|
2646
|
-
}, null, 12,
|
|
2649
|
+
style: S(`opacity:${I.value ? I.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
2650
|
+
}, null, 12, fi)) : h("", !0)
|
|
2647
2651
|
], 64))), 128))
|
|
2648
2652
|
], 64))), 128)),
|
|
2649
|
-
(
|
|
2653
|
+
(n(!0), u(d, null, _(xe.value, (e, s) => (n(), u(d, {
|
|
2650
2654
|
key: `xLabel_plot_${e.id}`
|
|
2651
2655
|
}, [
|
|
2652
|
-
(
|
|
2656
|
+
(n(!0), u(d, null, _(e.plots, (t, i) => (n(), u(d, {
|
|
2653
2657
|
key: `xLabel_plot_${s}_${i}`
|
|
2654
2658
|
}, [
|
|
2655
|
-
t && i === 0 && e.showSerieName && e.showSerieName === "start" ? (
|
|
2659
|
+
t && i === 0 && e.showSerieName && e.showSerieName === "start" ? (n(), u("text", {
|
|
2656
2660
|
key: 0,
|
|
2657
2661
|
x: t.x - y.value.plotLabels,
|
|
2658
2662
|
y: t.y,
|
|
@@ -2667,9 +2671,9 @@ const Yt = { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", zoom: { colo
|
|
|
2667
2671
|
y: t.y,
|
|
2668
2672
|
maxWords: 2
|
|
2669
2673
|
}),
|
|
2670
|
-
style:
|
|
2671
|
-
}, null, 12,
|
|
2672
|
-
t && i === e.plots.length - 1 && e.showSerieName && e.showSerieName === "end" ? (
|
|
2674
|
+
style: S(`opacity:${I.value ? I.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
2675
|
+
}, null, 12, gi)) : h("", !0),
|
|
2676
|
+
t && i === e.plots.length - 1 && e.showSerieName && e.showSerieName === "end" ? (n(), u("text", {
|
|
2673
2677
|
key: 1,
|
|
2674
2678
|
x: t.x + y.value.plotLabels,
|
|
2675
2679
|
y: t.y,
|
|
@@ -2684,14 +2688,14 @@ const Yt = { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", zoom: { colo
|
|
|
2684
2688
|
y: t.y,
|
|
2685
2689
|
maxWords: 2
|
|
2686
2690
|
}),
|
|
2687
|
-
style:
|
|
2688
|
-
}, null, 12,
|
|
2691
|
+
style: S(`opacity:${I.value ? I.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
2692
|
+
}, null, 12, mi)) : h("", !0)
|
|
2689
2693
|
], 64))), 128))
|
|
2690
2694
|
], 64))), 128)),
|
|
2691
|
-
(
|
|
2695
|
+
(n(!0), u(d, null, _([...xe.value, ...te.value, ...Me.value], (e, s) => (n(), u(d, {
|
|
2692
2696
|
key: `progression-${s}`
|
|
2693
2697
|
}, [
|
|
2694
|
-
Object.hasOwn(e, "useProgression") && e.useProgression === !0 && !isNaN(v(
|
|
2698
|
+
Object.hasOwn(e, "useProgression") && e.useProgression === !0 && !isNaN(v(Se)(e.plots).trend) ? (n(), u("g", bi, [
|
|
2695
2699
|
p("defs", null, [
|
|
2696
2700
|
p("marker", {
|
|
2697
2701
|
id: `progression_arrow_${s}`,
|
|
@@ -2710,40 +2714,40 @@ const Yt = { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", zoom: { colo
|
|
|
2710
2714
|
stroke: l.value.chart.backgroundColor,
|
|
2711
2715
|
"stroke-width": "1",
|
|
2712
2716
|
"stroke-linejoin": "round"
|
|
2713
|
-
}, null, 8,
|
|
2714
|
-
], 8,
|
|
2717
|
+
}, null, 8, pi)
|
|
2718
|
+
], 8, xi)
|
|
2715
2719
|
]),
|
|
2716
|
-
e.plots.length > 1 ? (
|
|
2720
|
+
e.plots.length > 1 ? (n(), u("line", {
|
|
2717
2721
|
key: 0,
|
|
2718
|
-
x1: v(
|
|
2719
|
-
x2: v(
|
|
2720
|
-
y1: v(Y)(v(
|
|
2721
|
-
y2: v(Y)(v(
|
|
2722
|
+
x1: v(Se)(e.plots).x1 + (e.type === "bar" ? He() : 0),
|
|
2723
|
+
x2: v(Se)(e.plots).x2 + (e.type === "bar" ? He() : 0),
|
|
2724
|
+
y1: v(Y)(v(Se)(e.plots).y1),
|
|
2725
|
+
y2: v(Y)(v(Se)(e.plots).y2),
|
|
2722
2726
|
"stroke-width": 1,
|
|
2723
2727
|
stroke: l.value.chart.backgroundColor,
|
|
2724
2728
|
"stroke-dasharray": 2,
|
|
2725
2729
|
"stroke-linecap": "round",
|
|
2726
2730
|
"stroke-linejoin": "round",
|
|
2727
2731
|
"marker-end": `url(#progression_arrow_${s})`
|
|
2728
|
-
}, null, 8,
|
|
2729
|
-
e.plots.length > 1 ? (
|
|
2732
|
+
}, null, 8, yi)) : h("", !0),
|
|
2733
|
+
e.plots.length > 1 ? (n(), u("line", {
|
|
2730
2734
|
key: 1,
|
|
2731
|
-
x1: v(
|
|
2732
|
-
x2: v(
|
|
2733
|
-
y1: v(Y)(v(
|
|
2734
|
-
y2: v(Y)(v(
|
|
2735
|
+
x1: v(Se)(e.plots).x1 + (e.type === "bar" ? He() : 0),
|
|
2736
|
+
x2: v(Se)(e.plots).x2 + (e.type === "bar" ? He() : 0),
|
|
2737
|
+
y1: v(Y)(v(Se)(e.plots).y1),
|
|
2738
|
+
y2: v(Y)(v(Se)(e.plots).y2),
|
|
2735
2739
|
"stroke-width": 1,
|
|
2736
2740
|
stroke: e.color,
|
|
2737
2741
|
"stroke-dasharray": 2,
|
|
2738
2742
|
"stroke-linecap": "round",
|
|
2739
2743
|
"stroke-linejoin": "round",
|
|
2740
2744
|
"marker-end": `url(#progression_arrow_${s})`
|
|
2741
|
-
}, null, 8,
|
|
2742
|
-
e.plots.length > 1 ? (
|
|
2745
|
+
}, null, 8, ki)) : h("", !0),
|
|
2746
|
+
e.plots.length > 1 ? (n(), u("text", {
|
|
2743
2747
|
key: 2,
|
|
2744
2748
|
"text-anchor": "middle",
|
|
2745
|
-
x: v(
|
|
2746
|
-
y: v(
|
|
2749
|
+
x: v(Se)(e.plots).x2 + (e.type === "bar" ? He() : 0),
|
|
2750
|
+
y: v(Se)(e.plots).y2 - 12,
|
|
2747
2751
|
"font-size": y.value.plotLabels,
|
|
2748
2752
|
fill: e.color,
|
|
2749
2753
|
stroke: l.value.chart.backgroundColor,
|
|
@@ -2752,15 +2756,15 @@ const Yt = { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", zoom: { colo
|
|
|
2752
2756
|
"stroke-linejoin": "round",
|
|
2753
2757
|
"paint-order": "stroke fill"
|
|
2754
2758
|
}, ae(v(Ve)({
|
|
2755
|
-
v: v(
|
|
2759
|
+
v: v(Se)(e.plots).trend * 100,
|
|
2756
2760
|
s: "%",
|
|
2757
2761
|
r: 2
|
|
2758
|
-
})), 9,
|
|
2762
|
+
})), 9, Ci)) : h("", !0)
|
|
2759
2763
|
])) : h("", !0)
|
|
2760
2764
|
], 64))), 128)),
|
|
2761
|
-
f.value.useIndividualScale && !f.value.isStacked ? (
|
|
2765
|
+
f.value.useIndividualScale && !f.value.isStacked ? (n(), u(d, { key: 13 }, [
|
|
2762
2766
|
p("defs", null, [
|
|
2763
|
-
(
|
|
2767
|
+
(n(!0), u(d, null, _(wl.value, (e, s) => (n(), u("linearGradient", {
|
|
2764
2768
|
id: `individual_scale_gradient_${H.value}_${s}`,
|
|
2765
2769
|
x1: "0%",
|
|
2766
2770
|
x2: "100%",
|
|
@@ -2771,15 +2775,15 @@ const Yt = { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", zoom: { colo
|
|
|
2771
2775
|
offset: "0%",
|
|
2772
2776
|
"stop-color": l.value.chart.backgroundColor,
|
|
2773
2777
|
"stop-opacity": "0"
|
|
2774
|
-
}, null, 8,
|
|
2778
|
+
}, null, 8, wi),
|
|
2775
2779
|
p("stop", {
|
|
2776
2780
|
offset: "100%",
|
|
2777
2781
|
"stop-color": e.color,
|
|
2778
2782
|
"stop-opacity": "0.2"
|
|
2779
|
-
}, null, 8,
|
|
2780
|
-
], 8,
|
|
2783
|
+
}, null, 8, Si)
|
|
2784
|
+
], 8, _i))), 256))
|
|
2781
2785
|
]),
|
|
2782
|
-
(
|
|
2786
|
+
(n(!0), u(d, null, _(wl.value, (e, s) => (n(), u("rect", {
|
|
2783
2787
|
x: e.x - l.value.chart.grid.labels.yAxis.labelWidth + U.value - c.value.individualOffsetX,
|
|
2784
2788
|
y: c.value?.top,
|
|
2785
2789
|
width: l.value.chart.grid.labels.yAxis.labelWidth + c.value.individualOffsetX,
|
|
@@ -2787,10 +2791,10 @@ const Yt = { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", zoom: { colo
|
|
|
2787
2791
|
fill: I.value === e.groupId ? `url(#individual_scale_gradient_${H.value}_${s})` : "transparent",
|
|
2788
2792
|
onMouseenter: (t) => I.value = e.groupId,
|
|
2789
2793
|
onMouseleave: r[0] || (r[0] = (t) => I.value = null)
|
|
2790
|
-
}, null, 40,
|
|
2794
|
+
}, null, 40, Ai))), 256))
|
|
2791
2795
|
], 64)) : h("", !0),
|
|
2792
2796
|
p("g", null, [
|
|
2793
|
-
l.value.chart.grid.labels.axis.yLabel && !f.value.useIndividualScale ? (
|
|
2797
|
+
l.value.chart.grid.labels.axis.yLabel && !f.value.useIndividualScale ? (n(), u("text", {
|
|
2794
2798
|
key: 0,
|
|
2795
2799
|
ref_key: "yAxisLabel",
|
|
2796
2800
|
ref: aa,
|
|
@@ -2799,8 +2803,8 @@ const Yt = { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", zoom: { colo
|
|
|
2799
2803
|
transform: `translate(${l.value.chart.grid.labels.axis.fontSize}, ${c.value?.top + c.value.height / 2}) rotate(-90)`,
|
|
2800
2804
|
"text-anchor": "middle",
|
|
2801
2805
|
style: { transition: "none" }
|
|
2802
|
-
}, ae(l.value.chart.grid.labels.axis.yLabel), 9,
|
|
2803
|
-
l.value.chart.grid.labels.axis.xLabel ? (
|
|
2806
|
+
}, ae(l.value.chart.grid.labels.axis.yLabel), 9, $i)) : h("", !0),
|
|
2807
|
+
l.value.chart.grid.labels.axis.xLabel ? (n(), u("text", {
|
|
2804
2808
|
key: 1,
|
|
2805
2809
|
ref_key: "xAxisLabel",
|
|
2806
2810
|
ref: la,
|
|
@@ -2809,42 +2813,42 @@ const Yt = { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", zoom: { colo
|
|
|
2809
2813
|
y: ve.value - 3,
|
|
2810
2814
|
"font-size": y.value.yAxis,
|
|
2811
2815
|
fill: l.value.chart.grid.labels.color
|
|
2812
|
-
}, ae(l.value.chart.grid.labels.axis.xLabel), 9,
|
|
2816
|
+
}, ae(l.value.chart.grid.labels.axis.xLabel), 9, Li)) : h("", !0)
|
|
2813
2817
|
]),
|
|
2814
|
-
l.value.chart.grid.labels.xAxisLabels.show ? (
|
|
2818
|
+
l.value.chart.grid.labels.xAxisLabels.show ? (n(), u("g", {
|
|
2815
2819
|
key: 14,
|
|
2816
2820
|
ref_key: "timeLabelsEls",
|
|
2817
2821
|
ref: sl
|
|
2818
2822
|
}, [
|
|
2819
|
-
a.$slots["time-label"] ? (
|
|
2823
|
+
a.$slots["time-label"] ? (n(!0), u(d, { key: 0 }, _(ma.value, (e, s) => P(a.$slots, "time-label", al({
|
|
2820
2824
|
key: `time_label_${e.id}`,
|
|
2821
2825
|
ref_for: !0
|
|
2822
2826
|
}, {
|
|
2823
|
-
x: c.value?.left + c.value.width /
|
|
2827
|
+
x: c.value?.left + c.value.width / A.value * s + c.value.width / A.value / 2,
|
|
2824
2828
|
y: c.value?.bottom,
|
|
2825
2829
|
fontSize: y.value.xAxis,
|
|
2826
2830
|
fill: l.value.chart.grid.labels.xAxisLabels.color,
|
|
2827
|
-
transform: `translate(${c.value?.left + c.value.width /
|
|
2831
|
+
transform: `translate(${c.value?.left + c.value.width / A.value * s + c.value.width / A.value / 2}, ${c.value?.bottom + y.value.xAxis * 1.3 + l.value.chart.grid.labels.xAxisLabels.yOffset}), rotate(${l.value.chart.grid.labels.xAxisLabels.rotation})`,
|
|
2828
2832
|
absoluteIndex: e.absoluteIndex,
|
|
2829
2833
|
content: e.text,
|
|
2830
2834
|
textAnchor: l.value.chart.grid.labels.xAxisLabels.rotation > 0 ? "start" : l.value.chart.grid.labels.xAxisLabels.rotation < 0 ? "end" : "middle",
|
|
2831
2835
|
show: e && e.text
|
|
2832
|
-
}), void 0, !0)), 128)) : (
|
|
2836
|
+
}), void 0, !0)), 128)) : (n(!0), u(d, { key: 1 }, _(ma.value, (e, s) => (n(), u("g", {
|
|
2833
2837
|
key: `time_label_${s}`
|
|
2834
2838
|
}, [
|
|
2835
|
-
e && e.text ? (
|
|
2839
|
+
e && e.text ? (n(), u(d, { key: 0 }, [
|
|
2836
2840
|
String(e.text).includes(`
|
|
2837
|
-
`) ? (
|
|
2841
|
+
`) ? (n(), u("text", {
|
|
2838
2842
|
key: 1,
|
|
2839
2843
|
class: "vue-data-ui-time-label",
|
|
2840
2844
|
"text-anchor": l.value.chart.grid.labels.xAxisLabels.rotation > 0 ? "start" : l.value.chart.grid.labels.xAxisLabels.rotation < 0 ? "end" : "middle",
|
|
2841
2845
|
"font-size": y.value.xAxis,
|
|
2842
2846
|
fill: l.value.chart.grid.labels.xAxisLabels.color,
|
|
2843
|
-
transform: `translate(${c.value?.left + c.value.width /
|
|
2844
|
-
style:
|
|
2847
|
+
transform: `translate(${c.value?.left + c.value.width / A.value * s + c.value.width / A.value / 2}, ${c.value?.bottom + y.value.xAxis * 1.5}), rotate(${l.value.chart.grid.labels.xAxisLabels.rotation})`,
|
|
2848
|
+
style: S({
|
|
2845
2849
|
cursor: Wa() ? "pointer" : "default"
|
|
2846
2850
|
}),
|
|
2847
|
-
innerHTML: v(
|
|
2851
|
+
innerHTML: v(br)({
|
|
2848
2852
|
content: String(e.text),
|
|
2849
2853
|
fontSize: y.value.xAxis,
|
|
2850
2854
|
fill: l.value.chart.grid.labels.xAxisLabels.color,
|
|
@@ -2852,26 +2856,26 @@ const Yt = { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", zoom: { colo
|
|
|
2852
2856
|
y: 0
|
|
2853
2857
|
}),
|
|
2854
2858
|
onClick: () => qa(e, s)
|
|
2855
|
-
}, null, 12,
|
|
2859
|
+
}, null, 12, Ti)) : (n(), u("text", {
|
|
2856
2860
|
key: 0,
|
|
2857
2861
|
class: "vue-data-ui-time-label",
|
|
2858
2862
|
"text-anchor": l.value.chart.grid.labels.xAxisLabels.rotation > 0 ? "start" : l.value.chart.grid.labels.xAxisLabels.rotation < 0 ? "end" : "middle",
|
|
2859
2863
|
"font-size": y.value.xAxis,
|
|
2860
2864
|
fill: l.value.chart.grid.labels.xAxisLabels.color,
|
|
2861
|
-
transform: `translate(${c.value?.left + c.value.width /
|
|
2862
|
-
style:
|
|
2865
|
+
transform: `translate(${c.value?.left + c.value.width / A.value * s + c.value.width / A.value / 2}, ${c.value?.bottom + y.value.xAxis * 1.5}), rotate(${l.value.chart.grid.labels.xAxisLabels.rotation})`,
|
|
2866
|
+
style: S({
|
|
2863
2867
|
cursor: Wa() ? "pointer" : "default"
|
|
2864
2868
|
}),
|
|
2865
2869
|
onClick: () => qa(e, s)
|
|
2866
|
-
}, ae(e.text || ""), 13,
|
|
2870
|
+
}, ae(e.text || ""), 13, Mi))
|
|
2867
2871
|
], 64)) : h("", !0)
|
|
2868
2872
|
]))), 128))
|
|
2869
2873
|
], 512)) : h("", !0),
|
|
2870
|
-
ct.value.length && !f.value.isStacked ? (
|
|
2871
|
-
(
|
|
2874
|
+
ct.value.length && !f.value.isStacked ? (n(), u("g", zi, [
|
|
2875
|
+
(n(!0), u(d, null, _(ct.value, (e) => (n(), u("g", {
|
|
2872
2876
|
key: e.uid
|
|
2873
2877
|
}, [
|
|
2874
|
-
e.yTop && e.show && isFinite(e.yTop) ? (
|
|
2878
|
+
e.yTop && e.show && isFinite(e.yTop) ? (n(), u("line", {
|
|
2875
2879
|
key: 0,
|
|
2876
2880
|
x1: e.x1,
|
|
2877
2881
|
y1: e.yTop,
|
|
@@ -2882,8 +2886,8 @@ const Yt = { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", zoom: { colo
|
|
|
2882
2886
|
"stroke-dasharray": e.config.line.strokeDasharray,
|
|
2883
2887
|
"stroke-linecap": "round",
|
|
2884
2888
|
style: { animation: "none !important" }
|
|
2885
|
-
}, null, 8,
|
|
2886
|
-
e.yBottom && e.show && isFinite(e.yBottom) ? (
|
|
2889
|
+
}, null, 8, Ii)) : h("", !0),
|
|
2890
|
+
e.yBottom && e.show && isFinite(e.yBottom) ? (n(), u("line", {
|
|
2887
2891
|
key: 1,
|
|
2888
2892
|
x1: e.x1,
|
|
2889
2893
|
y1: e.yBottom,
|
|
@@ -2894,8 +2898,8 @@ const Yt = { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", zoom: { colo
|
|
|
2894
2898
|
"stroke-dasharray": e.config.line.strokeDasharray,
|
|
2895
2899
|
"stroke-linecap": "round",
|
|
2896
2900
|
style: { animation: "none !important" }
|
|
2897
|
-
}, null, 8,
|
|
2898
|
-
e.hasArea && e.show && isFinite(e.yTop) && isFinite(e.yBottom) ? (
|
|
2901
|
+
}, null, 8, Fi)) : h("", !0),
|
|
2902
|
+
e.hasArea && e.show && isFinite(e.yTop) && isFinite(e.yBottom) ? (n(), u("rect", {
|
|
2899
2903
|
key: 2,
|
|
2900
2904
|
y: Math.min(e.yTop, e.yBottom),
|
|
2901
2905
|
x: e.x1,
|
|
@@ -2903,12 +2907,12 @@ const Yt = { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", zoom: { colo
|
|
|
2903
2907
|
height: v(N)(e.areaHeight, 0),
|
|
2904
2908
|
fill: v(ze)(e.config.area.fill, e.config.area.opacity),
|
|
2905
2909
|
style: { animation: "none !important" }
|
|
2906
|
-
}, null, 8,
|
|
2907
|
-
e.config.label.text && e.show && isFinite(e._box.y) ? (
|
|
2910
|
+
}, null, 8, Oi)) : h("", !0),
|
|
2911
|
+
e.config.label.text && e.show && isFinite(e._box.y) ? (n(), u("rect", al({
|
|
2908
2912
|
key: 3,
|
|
2909
2913
|
class: "vue-ui-xy-annotation-label-box"
|
|
2910
2914
|
}, { ref_for: !0 }, e._box, { style: { animation: "none !important", transition: "none !important" } }), null, 16)) : h("", !0),
|
|
2911
|
-
e.config.label.text && e.show && isFinite(e._text.y) ? (
|
|
2915
|
+
e.config.label.text && e.show && isFinite(e._text.y) ? (n(), u("text", {
|
|
2912
2916
|
key: 4,
|
|
2913
2917
|
id: e.id,
|
|
2914
2918
|
class: "vue-ui-xy-annotation-label",
|
|
@@ -2917,12 +2921,12 @@ const Yt = { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", zoom: { colo
|
|
|
2917
2921
|
"font-size": e.config.label.fontSize,
|
|
2918
2922
|
fill: e.config.label.color,
|
|
2919
2923
|
"text-anchor": e.config.label.textAnchor
|
|
2920
|
-
}, ae(e.config.label.text), 9,
|
|
2924
|
+
}, ae(e.config.label.text), 9, Bi)) : h("", !0)
|
|
2921
2925
|
]))), 128))
|
|
2922
2926
|
])) : h("", !0),
|
|
2923
|
-
l.value.chart.timeTag.show && (![null, void 0].includes(
|
|
2924
|
-
(
|
|
2925
|
-
x:
|
|
2927
|
+
l.value.chart.timeTag.show && (![null, void 0].includes(C.value) || ![null, void 0].includes(B.value)) ? (n(), u("g", Ni, [
|
|
2928
|
+
(n(), u("foreignObject", {
|
|
2929
|
+
x: Uo(),
|
|
2926
2930
|
y: c.value?.bottom,
|
|
2927
2931
|
width: "200",
|
|
2928
2932
|
height: "40",
|
|
@@ -2930,49 +2934,49 @@ const Yt = { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", zoom: { colo
|
|
|
2930
2934
|
}, [
|
|
2931
2935
|
p("div", {
|
|
2932
2936
|
ref_key: "timeTagEl",
|
|
2933
|
-
ref:
|
|
2937
|
+
ref: _t,
|
|
2934
2938
|
class: "vue-ui-xy-time-tag",
|
|
2935
|
-
style:
|
|
2936
|
-
innerHTML:
|
|
2937
|
-
}, null, 12,
|
|
2938
|
-
], 8,
|
|
2939
|
+
style: S(`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`),
|
|
2940
|
+
innerHTML: qo.value
|
|
2941
|
+
}, null, 12, Di)
|
|
2942
|
+
], 8, Vi)),
|
|
2939
2943
|
p("circle", {
|
|
2940
|
-
cx: c.value?.left + c.value.width /
|
|
2944
|
+
cx: c.value?.left + c.value.width / A.value * ((C.value !== null ? C.value : 0) || (B.value !== null ? B.value : 0)) + c.value.width / A.value / 2,
|
|
2941
2945
|
cy: c.value?.bottom,
|
|
2942
2946
|
r: l.value.chart.timeTag.circleMarker.radius,
|
|
2943
2947
|
fill: l.value.chart.timeTag.circleMarker.color
|
|
2944
|
-
}, null, 8,
|
|
2948
|
+
}, null, 8, Pi)
|
|
2945
2949
|
])) : h("", !0)
|
|
2946
2950
|
])) : h("", !0),
|
|
2947
|
-
Da.value ? (
|
|
2951
|
+
Da.value ? (n(), u("rect", al({ key: 2 }, bo.value, {
|
|
2948
2952
|
"data-start": m.value.start,
|
|
2949
2953
|
"data-end": m.value.end
|
|
2950
|
-
}), null, 16,
|
|
2954
|
+
}), null, 16, Ei)) : h("", !0),
|
|
2951
2955
|
P(a.$slots, "svg", {
|
|
2952
2956
|
svg: {
|
|
2953
|
-
...
|
|
2957
|
+
...fo.value,
|
|
2954
2958
|
data: [...te.value, ...Me.value, ...xe.value],
|
|
2955
2959
|
drawingArea: c.value
|
|
2956
2960
|
}
|
|
2957
2961
|
}, void 0, !0)
|
|
2958
2962
|
], 512)
|
|
2959
|
-
], 46,
|
|
2960
|
-
a.$slots.watermark ? (
|
|
2961
|
-
P(a.$slots, "watermark", ke(
|
|
2963
|
+
], 46, Dr)),
|
|
2964
|
+
a.$slots.watermark ? (n(), u("div", Ri, [
|
|
2965
|
+
P(a.$slots, "watermark", ke(Ce({ isPrinting: v(da) || v(Ea) })), void 0, !0)
|
|
2962
2966
|
])) : h("", !0),
|
|
2963
|
-
(
|
|
2967
|
+
(n(!0), u(d, null, _(te.value, (e, s) => (n(), u(d, {
|
|
2964
2968
|
key: `tag_line_${e.id}`
|
|
2965
2969
|
}, [
|
|
2966
|
-
(
|
|
2970
|
+
(n(!0), u(d, null, _(e.plots, (t, i) => (n(), u(d, {
|
|
2967
2971
|
key: `tag_line_${s}_${i}`
|
|
2968
2972
|
}, [
|
|
2969
|
-
[B.value,
|
|
2973
|
+
[B.value, C.value, Ze.value].includes(i) && e.useTag && e.useTag === "end" && l.value.line.tag.followValue ? (n(), u("div", {
|
|
2970
2974
|
key: 0,
|
|
2971
2975
|
ref_for: !0,
|
|
2972
2976
|
ref: (o) => Dl(s, i, o, "right", "line"),
|
|
2973
2977
|
class: "vue-ui-xy-tag",
|
|
2974
2978
|
"data-tag": "right",
|
|
2975
|
-
style:
|
|
2979
|
+
style: S({
|
|
2976
2980
|
position: "fixed",
|
|
2977
2981
|
top: v(Ue)({
|
|
2978
2982
|
svgElement: se.value,
|
|
@@ -2997,12 +3001,12 @@ const Yt = { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", zoom: { colo
|
|
|
2997
3001
|
opacity: 1
|
|
2998
3002
|
})
|
|
2999
3003
|
}, [
|
|
3000
|
-
(
|
|
3004
|
+
(n(), u("svg", Hi, [
|
|
3001
3005
|
p("path", {
|
|
3002
3006
|
d: "M 0,10 10,0 10,20 Z",
|
|
3003
3007
|
fill: e.color,
|
|
3004
3008
|
stroke: "none"
|
|
3005
|
-
}, null, 8,
|
|
3009
|
+
}, null, 8, Yi)
|
|
3006
3010
|
])),
|
|
3007
3011
|
p("div", {
|
|
3008
3012
|
class: "vue-ui-xy-tag-content",
|
|
@@ -3016,15 +3020,15 @@ const Yt = { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", zoom: { colo
|
|
|
3016
3020
|
serieName: e.name
|
|
3017
3021
|
}
|
|
3018
3022
|
)
|
|
3019
|
-
}, null, 8,
|
|
3023
|
+
}, null, 8, Wi)
|
|
3020
3024
|
], 4)) : h("", !0),
|
|
3021
|
-
[B.value,
|
|
3025
|
+
[B.value, C.value, Ze.value].includes(i) && e.useTag && e.useTag === "start" && l.value.line.tag.followValue ? (n(), u("div", {
|
|
3022
3026
|
key: 1,
|
|
3023
3027
|
ref_for: !0,
|
|
3024
3028
|
ref: (o) => Dl(s, i, o, "left", "line"),
|
|
3025
3029
|
class: "vue-ui-xy-tag",
|
|
3026
3030
|
"data-tag": "left",
|
|
3027
|
-
style:
|
|
3031
|
+
style: S({
|
|
3028
3032
|
position: "fixed",
|
|
3029
3033
|
top: v(Ue)({
|
|
3030
3034
|
svgElement: se.value,
|
|
@@ -3049,12 +3053,12 @@ const Yt = { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", zoom: { colo
|
|
|
3049
3053
|
opacity: 1
|
|
3050
3054
|
})
|
|
3051
3055
|
}, [
|
|
3052
|
-
(
|
|
3056
|
+
(n(), u("svg", Xi, [
|
|
3053
3057
|
p("path", {
|
|
3054
3058
|
d: "M 0,0 10,10 0,20 Z",
|
|
3055
3059
|
fill: e.color,
|
|
3056
3060
|
stroke: "none"
|
|
3057
|
-
}, null, 8,
|
|
3061
|
+
}, null, 8, Gi)
|
|
3058
3062
|
])),
|
|
3059
3063
|
p("div", {
|
|
3060
3064
|
class: "vue-ui-xy-tag-content",
|
|
@@ -3068,23 +3072,23 @@ const Yt = { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", zoom: { colo
|
|
|
3068
3072
|
serieName: e.name
|
|
3069
3073
|
}
|
|
3070
3074
|
)
|
|
3071
|
-
}, null, 8,
|
|
3075
|
+
}, null, 8, Ui)
|
|
3072
3076
|
], 4)) : h("", !0)
|
|
3073
3077
|
], 64))), 128))
|
|
3074
3078
|
], 64))), 128)),
|
|
3075
|
-
(
|
|
3079
|
+
(n(!0), u(d, null, _(xe.value, (e, s) => (n(), u(d, {
|
|
3076
3080
|
key: `tag_plot_${e.id}`
|
|
3077
3081
|
}, [
|
|
3078
|
-
(
|
|
3082
|
+
(n(!0), u(d, null, _(e.plots, (t, i) => (n(), u(d, {
|
|
3079
3083
|
key: `tag_plot_${s}_${i}`
|
|
3080
3084
|
}, [
|
|
3081
|
-
[B.value,
|
|
3085
|
+
[B.value, C.value, Ze.value].includes(i) && e.useTag && e.useTag === "end" && l.value.plot.tag.followValue ? (n(), u("div", {
|
|
3082
3086
|
key: 0,
|
|
3083
3087
|
ref_for: !0,
|
|
3084
3088
|
ref: (o) => Dl(s, i, o, "right", "plot"),
|
|
3085
3089
|
class: "vue-ui-xy-tag",
|
|
3086
3090
|
"data-tag": "right",
|
|
3087
|
-
style:
|
|
3091
|
+
style: S({
|
|
3088
3092
|
position: "fixed",
|
|
3089
3093
|
top: v(Ue)({
|
|
3090
3094
|
svgElement: se.value,
|
|
@@ -3109,12 +3113,12 @@ const Yt = { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", zoom: { colo
|
|
|
3109
3113
|
opacity: 1
|
|
3110
3114
|
})
|
|
3111
3115
|
}, [
|
|
3112
|
-
(
|
|
3116
|
+
(n(), u("svg", qi, [
|
|
3113
3117
|
p("path", {
|
|
3114
3118
|
d: "M 0,10 10,0 10,20 Z",
|
|
3115
3119
|
fill: e.color,
|
|
3116
3120
|
stroke: "none"
|
|
3117
|
-
}, null, 8,
|
|
3121
|
+
}, null, 8, Zi)
|
|
3118
3122
|
])),
|
|
3119
3123
|
p("div", {
|
|
3120
3124
|
class: "vue-ui-xy-tag-content",
|
|
@@ -3128,15 +3132,15 @@ const Yt = { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", zoom: { colo
|
|
|
3128
3132
|
serieName: e.name
|
|
3129
3133
|
}
|
|
3130
3134
|
)
|
|
3131
|
-
}, null, 8,
|
|
3135
|
+
}, null, 8, Ji)
|
|
3132
3136
|
], 4)) : h("", !0),
|
|
3133
|
-
[B.value,
|
|
3137
|
+
[B.value, C.value, Ze.value].includes(i) && e.useTag && e.useTag === "start" && l.value.plot.tag.followValue ? (n(), u("div", {
|
|
3134
3138
|
key: 1,
|
|
3135
3139
|
ref_for: !0,
|
|
3136
3140
|
ref: (o) => Dl(s, i, o, "left", "plot"),
|
|
3137
3141
|
class: "vue-ui-xy-tag",
|
|
3138
3142
|
"data-tag": "left",
|
|
3139
|
-
style:
|
|
3143
|
+
style: S({
|
|
3140
3144
|
position: "fixed",
|
|
3141
3145
|
top: v(Ue)({
|
|
3142
3146
|
svgElement: se.value,
|
|
@@ -3161,12 +3165,12 @@ const Yt = { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", zoom: { colo
|
|
|
3161
3165
|
opacity: 1
|
|
3162
3166
|
})
|
|
3163
3167
|
}, [
|
|
3164
|
-
(
|
|
3168
|
+
(n(), u("svg", Qi, [
|
|
3165
3169
|
p("path", {
|
|
3166
3170
|
d: "M 0,0 10,10 0,20 Z",
|
|
3167
3171
|
fill: e.color,
|
|
3168
3172
|
stroke: "none"
|
|
3169
|
-
}, null, 8,
|
|
3173
|
+
}, null, 8, Ki)
|
|
3170
3174
|
])),
|
|
3171
3175
|
p("div", {
|
|
3172
3176
|
class: "vue-ui-xy-tag-content",
|
|
@@ -3180,15 +3184,15 @@ const Yt = { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", zoom: { colo
|
|
|
3180
3184
|
serieName: e.name
|
|
3181
3185
|
}
|
|
3182
3186
|
)
|
|
3183
|
-
}, null, 8,
|
|
3187
|
+
}, null, 8, ji)
|
|
3184
3188
|
], 4)) : h("", !0)
|
|
3185
3189
|
], 64))), 128))
|
|
3186
3190
|
], 64))), 128)),
|
|
3187
|
-
l.value.chart.zoom.show && Oe.value > 6 && ca.value && Qa.value ? (
|
|
3191
|
+
l.value.chart.zoom.show && Oe.value > 6 && ca.value && Qa.value ? (n(), Te(Fr, {
|
|
3188
3192
|
key: 5,
|
|
3189
3193
|
ref_key: "chartSlicer",
|
|
3190
3194
|
ref: Fe,
|
|
3191
|
-
allMinimaps:
|
|
3195
|
+
allMinimaps: Yo.value,
|
|
3192
3196
|
background: l.value.chart.zoom.color,
|
|
3193
3197
|
borderColor: l.value.chart.backgroundColor,
|
|
3194
3198
|
customFormat: l.value.chart.zoom.customFormat,
|
|
@@ -3207,7 +3211,7 @@ const Yt = { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", zoom: { colo
|
|
|
3207
3211
|
labelRight: de.value.at(-1) ? de.value.at(-1).text : "",
|
|
3208
3212
|
max: Oe.value,
|
|
3209
3213
|
min: 0,
|
|
3210
|
-
minimap:
|
|
3214
|
+
minimap: Ho.value,
|
|
3211
3215
|
minimapCompact: l.value.chart.zoom.minimap.compact,
|
|
3212
3216
|
minimapFrameColor: l.value.chart.zoom.minimap.frameColor,
|
|
3213
3217
|
minimapIndicatorColor: l.value.chart.zoom.minimap.indicatorColor,
|
|
@@ -3215,7 +3219,7 @@ const Yt = { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", zoom: { colo
|
|
|
3215
3219
|
minimapMerged: l.value.chart.zoom.minimap.merged,
|
|
3216
3220
|
minimapSelectedColor: l.value.chart.zoom.minimap.selectedColor,
|
|
3217
3221
|
minimapSelectedColorOpacity: l.value.chart.zoom.minimap.selectedColorOpacity,
|
|
3218
|
-
minimapSelectedIndex:
|
|
3222
|
+
minimapSelectedIndex: C.value,
|
|
3219
3223
|
minimapSelectionRadius: l.value.chart.zoom.minimap.selectionRadius,
|
|
3220
3224
|
preciseLabels: ft.value.length ? ft.value : ga.value,
|
|
3221
3225
|
refreshEndPoint: l.value.chart.zoom.endIndex !== null ? l.value.chart.zoom.endIndex + 1 : Math.max(...jl.dataset.map((e) => Re(e.series).length)),
|
|
@@ -3232,38 +3236,38 @@ const Yt = { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", zoom: { colo
|
|
|
3232
3236
|
verticalHandles: l.value.chart.zoom.minimap.verticalHandles,
|
|
3233
3237
|
onFutureEnd: r[1] || (r[1] = (e) => Pa("end", e)),
|
|
3234
3238
|
onFutureStart: r[2] || (r[2] = (e) => Pa("start", e)),
|
|
3235
|
-
onReset:
|
|
3236
|
-
onTrapMouse:
|
|
3237
|
-
"onUpdate:end":
|
|
3238
|
-
"onUpdate:start":
|
|
3239
|
+
onReset: To,
|
|
3240
|
+
onTrapMouse: Ao,
|
|
3241
|
+
"onUpdate:end": Mo,
|
|
3242
|
+
"onUpdate:start": Lo
|
|
3239
3243
|
}, {
|
|
3240
3244
|
"reset-action": G(({ reset: e }) => [
|
|
3241
|
-
P(a.$slots, "reset-action", ke(
|
|
3245
|
+
P(a.$slots, "reset-action", ke(Ce({ reset: e })), void 0, !0)
|
|
3242
3246
|
]),
|
|
3243
3247
|
_: 3
|
|
3244
3248
|
}, 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"])) : h("", !0),
|
|
3245
3249
|
p("div", {
|
|
3246
3250
|
id: `legend-bottom-${H.value}`
|
|
3247
|
-
}, null, 8,
|
|
3248
|
-
Oa.value ? (
|
|
3251
|
+
}, null, 8, en),
|
|
3252
|
+
Oa.value ? (n(), Te(rr, {
|
|
3249
3253
|
key: 6,
|
|
3250
3254
|
to: l.value.chart.legend.position === "top" ? `#legend-top-${H.value}` : `#legend-bottom-${H.value}`
|
|
3251
3255
|
}, [
|
|
3252
|
-
l.value.chart.legend.show ? (
|
|
3256
|
+
l.value.chart.legend.show ? (n(), u("div", {
|
|
3253
3257
|
key: 0,
|
|
3254
3258
|
ref_key: "chartLegend",
|
|
3255
3259
|
ref: rl,
|
|
3256
3260
|
class: "vue-ui-xy-legend",
|
|
3257
|
-
style:
|
|
3261
|
+
style: S({
|
|
3258
3262
|
fontSize: `var(--legend-font-size, ${l.value.chart.legend.fontSize ?? 14}px)`
|
|
3259
3263
|
})
|
|
3260
3264
|
}, [
|
|
3261
|
-
(
|
|
3265
|
+
(n(!0), u(d, null, _(me.value, (e, s) => (n(), u("div", {
|
|
3262
3266
|
key: `div_legend_item_${s}`,
|
|
3263
3267
|
onClick: (t) => Yl(e),
|
|
3264
3268
|
class: ll({ "vue-ui-xy-legend-item-alone": me.value.length === 1, "vue-ui-xy-legend-item": !0, "vue-ui-xy-legend-item-segregated": J.value.includes(e.id) })
|
|
3265
3269
|
}, [
|
|
3266
|
-
bl.value[e.type] === "line" ? (
|
|
3270
|
+
bl.value[e.type] === "line" ? (n(), u("svg", an, [
|
|
3267
3271
|
p("rect", {
|
|
3268
3272
|
x: "0",
|
|
3269
3273
|
y: "7.5",
|
|
@@ -3273,7 +3277,7 @@ const Yt = { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", zoom: { colo
|
|
|
3273
3277
|
height: "3",
|
|
3274
3278
|
width: "20",
|
|
3275
3279
|
fill: e.color
|
|
3276
|
-
}, null, 8,
|
|
3280
|
+
}, null, 8, tn),
|
|
3277
3281
|
vl(Kl, {
|
|
3278
3282
|
plot: { x: 10, y: 9 },
|
|
3279
3283
|
radius: 4,
|
|
@@ -3282,8 +3286,8 @@ const Yt = { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", zoom: { colo
|
|
|
3282
3286
|
stroke: l.value.chart.backgroundColor,
|
|
3283
3287
|
strokeWidth: 0.5
|
|
3284
3288
|
}, null, 8, ["color", "shape", "stroke"])
|
|
3285
|
-
])) : bl.value[e.type] === "bar" ? (
|
|
3286
|
-
bl.value[e.type] === "bar" && a.$slots.pattern ? (
|
|
3289
|
+
])) : bl.value[e.type] === "bar" ? (n(), u("svg", on, [
|
|
3290
|
+
bl.value[e.type] === "bar" && a.$slots.pattern ? (n(), u("rect", {
|
|
3287
3291
|
key: 0,
|
|
3288
3292
|
x: "4",
|
|
3289
3293
|
y: "4",
|
|
@@ -3292,8 +3296,8 @@ const Yt = { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", zoom: { colo
|
|
|
3292
3296
|
width: "32",
|
|
3293
3297
|
stroke: "none",
|
|
3294
3298
|
fill: e.color
|
|
3295
|
-
}, null, 8,
|
|
3296
|
-
bl.value[e.type] === "bar" ? (
|
|
3299
|
+
}, null, 8, rn)) : h("", !0),
|
|
3300
|
+
bl.value[e.type] === "bar" ? (n(), u("rect", {
|
|
3297
3301
|
key: 1,
|
|
3298
3302
|
x: "4",
|
|
3299
3303
|
y: "4",
|
|
@@ -3302,8 +3306,8 @@ const Yt = { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", zoom: { colo
|
|
|
3302
3306
|
width: "32",
|
|
3303
3307
|
stroke: "none",
|
|
3304
3308
|
fill: a.$slots.pattern ? `url(#pattern_${H.value}_${e.slotAbsoluteIndex})` : e.color
|
|
3305
|
-
}, null, 8,
|
|
3306
|
-
])) : (
|
|
3309
|
+
}, null, 8, sn)) : h("", !0)
|
|
3310
|
+
])) : (n(), u("svg", nn, [
|
|
3307
3311
|
vl(Kl, {
|
|
3308
3312
|
plot: { x: 6, y: 6 },
|
|
3309
3313
|
radius: 5,
|
|
@@ -3312,10 +3316,10 @@ const Yt = { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", zoom: { colo
|
|
|
3312
3316
|
}, null, 8, ["color", "shape"])
|
|
3313
3317
|
])),
|
|
3314
3318
|
p("span", {
|
|
3315
|
-
style:
|
|
3319
|
+
style: S(`color:${l.value.chart.legend.color}`)
|
|
3316
3320
|
}, ae(e.name), 5)
|
|
3317
|
-
], 10,
|
|
3318
|
-
], 4)) : (
|
|
3321
|
+
], 10, ln))), 128))
|
|
3322
|
+
], 4)) : (n(), u("div", {
|
|
3319
3323
|
key: 1,
|
|
3320
3324
|
ref_key: "chartLegend",
|
|
3321
3325
|
ref: rl
|
|
@@ -3323,7 +3327,7 @@ const Yt = { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", zoom: { colo
|
|
|
3323
3327
|
P(a.$slots, "legend", { legend: me.value }, void 0, !0)
|
|
3324
3328
|
], 512))
|
|
3325
3329
|
], 8, ["to"])) : h("", !0),
|
|
3326
|
-
a.$slots.source ? (
|
|
3330
|
+
a.$slots.source ? (n(), u("div", {
|
|
3327
3331
|
key: 7,
|
|
3328
3332
|
ref_key: "source",
|
|
3329
3333
|
ref: gl,
|
|
@@ -3331,7 +3335,7 @@ const Yt = { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", zoom: { colo
|
|
|
3331
3335
|
}, [
|
|
3332
3336
|
P(a.$slots, "source", {}, void 0, !0)
|
|
3333
3337
|
], 512)) : h("", !0),
|
|
3334
|
-
vl(v(
|
|
3338
|
+
vl(v(lo), {
|
|
3335
3339
|
teleportTo: l.value.chart.tooltip.teleportTo,
|
|
3336
3340
|
show: f.value.showTooltip && Ma.value,
|
|
3337
3341
|
backgroundColor: l.value.chart.tooltip.backgroundColor,
|
|
@@ -3344,7 +3348,7 @@ const Yt = { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", zoom: { colo
|
|
|
3344
3348
|
position: l.value.chart.tooltip.position,
|
|
3345
3349
|
offsetY: l.value.chart.tooltip.offsetY,
|
|
3346
3350
|
parent: a.$refs.chart,
|
|
3347
|
-
content:
|
|
3351
|
+
content: Wo.value,
|
|
3348
3352
|
isFullscreen: qe.value,
|
|
3349
3353
|
isCustom: l.value.chart.tooltip.customFormat && typeof l.value.chart.tooltip.customFormat == "function",
|
|
3350
3354
|
smooth: l.value.chart.tooltip.smooth,
|
|
@@ -3353,56 +3357,56 @@ const Yt = { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", zoom: { colo
|
|
|
3353
3357
|
smoothSnapThreshold: l.value.chart.tooltip.smoothSnapThreshold
|
|
3354
3358
|
}, {
|
|
3355
3359
|
"tooltip-before": G(() => [
|
|
3356
|
-
P(a.$slots, "tooltip-before", ke(
|
|
3360
|
+
P(a.$slots, "tooltip-before", ke(Ce({ ...ht.value })), void 0, !0)
|
|
3357
3361
|
]),
|
|
3358
3362
|
"tooltip-after": G(() => [
|
|
3359
|
-
P(a.$slots, "tooltip-after", ke(
|
|
3363
|
+
P(a.$slots, "tooltip-after", ke(Ce({ ...ht.value })), void 0, !0)
|
|
3360
3364
|
]),
|
|
3361
3365
|
_: 3
|
|
3362
3366
|
}, 8, ["teleportTo", "show", "backgroundColor", "color", "fontSize", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom", "smooth", "backdropFilter", "smoothForce", "smoothSnapThreshold"]),
|
|
3363
|
-
ca.value && l.value.chart.userOptions.buttons.table ? (
|
|
3367
|
+
ca.value && l.value.chart.userOptions.buttons.table ? (n(), Te(sr(Sl.value.component), al({ key: 8 }, Sl.value.props, {
|
|
3364
3368
|
ref_key: "tableUnit",
|
|
3365
3369
|
ref: il,
|
|
3366
|
-
onClose:
|
|
3370
|
+
onClose: At
|
|
3367
3371
|
}), Tt({
|
|
3368
3372
|
content: G(() => [
|
|
3369
3373
|
p("div", {
|
|
3370
|
-
style:
|
|
3374
|
+
style: S(`${v(da) || 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"}`)
|
|
3371
3375
|
}, [
|
|
3372
|
-
p("div",
|
|
3373
|
-
|
|
3376
|
+
p("div", un, [
|
|
3377
|
+
ir(p("input", {
|
|
3374
3378
|
type: "checkbox",
|
|
3375
3379
|
"onUpdate:modelValue": r[4] || (r[4] = (e) => pl.value = e)
|
|
3376
3380
|
}, null, 512), [
|
|
3377
|
-
[
|
|
3381
|
+
[nr, pl.value]
|
|
3378
3382
|
]),
|
|
3379
3383
|
p("div", {
|
|
3380
3384
|
onClick: r[5] || (r[5] = (e) => pl.value = !pl.value),
|
|
3381
3385
|
style: { cursor: "pointer" }
|
|
3382
3386
|
}, [
|
|
3383
|
-
vl(v(
|
|
3387
|
+
vl(v(Aa), {
|
|
3384
3388
|
name: "chartLine",
|
|
3385
3389
|
size: 20,
|
|
3386
3390
|
stroke: l.value.chart.color
|
|
3387
3391
|
}, null, 8, ["stroke"])
|
|
3388
3392
|
])
|
|
3389
3393
|
]),
|
|
3390
|
-
pl.value ? (
|
|
3394
|
+
pl.value ? (n(), Te(v(to), {
|
|
3391
3395
|
key: `sparkline_${sa.value}`,
|
|
3392
|
-
dataset:
|
|
3393
|
-
config:
|
|
3394
|
-
}, null, 8, ["dataset", "config"])) : (
|
|
3396
|
+
dataset: Po.value,
|
|
3397
|
+
config: Eo.value
|
|
3398
|
+
}, null, 8, ["dataset", "config"])) : (n(), Te(v(eo), {
|
|
3395
3399
|
key: `table_${za.value}`,
|
|
3396
3400
|
colNames: Ul.value.colNames,
|
|
3397
3401
|
head: Ul.value.head,
|
|
3398
3402
|
body: Ul.value.body,
|
|
3399
3403
|
config: Ul.value.config,
|
|
3400
|
-
title: l.value.table.useDialog ? "" :
|
|
3404
|
+
title: l.value.table.useDialog ? "" : Sl.value.title,
|
|
3401
3405
|
withCloseButton: !l.value.table.useDialog,
|
|
3402
|
-
onClose:
|
|
3406
|
+
onClose: At
|
|
3403
3407
|
}, {
|
|
3404
3408
|
th: G(({ th: e }) => [
|
|
3405
|
-
p("div", { innerHTML: e }, null, 8,
|
|
3409
|
+
p("div", { innerHTML: e }, null, 8, cn)
|
|
3406
3410
|
]),
|
|
3407
3411
|
td: G(({ td: e }) => [
|
|
3408
3412
|
zt(ae(isNaN(Number(e)) ? e : v(Ve)({
|
|
@@ -3421,7 +3425,7 @@ const Yt = { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", zoom: { colo
|
|
|
3421
3425
|
l.value.table.useDialog ? {
|
|
3422
3426
|
name: "title",
|
|
3423
3427
|
fn: G(() => [
|
|
3424
|
-
zt(ae(
|
|
3428
|
+
zt(ae(Sl.value.title), 1)
|
|
3425
3429
|
]),
|
|
3426
3430
|
key: "0"
|
|
3427
3431
|
} : void 0,
|
|
@@ -3433,24 +3437,24 @@ const Yt = { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", zoom: { colo
|
|
|
3433
3437
|
class: "vue-ui-user-options-button",
|
|
3434
3438
|
onClick: r[3] || (r[3] = (e) => xa(l.value.chart.userOptions.callbacks.csv))
|
|
3435
3439
|
}, [
|
|
3436
|
-
vl(v(
|
|
3440
|
+
vl(v(Aa), {
|
|
3437
3441
|
name: "excel",
|
|
3438
|
-
stroke:
|
|
3442
|
+
stroke: Sl.value.props.color
|
|
3439
3443
|
}, null, 8, ["stroke"])
|
|
3440
3444
|
])
|
|
3441
3445
|
]),
|
|
3442
3446
|
key: "1"
|
|
3443
3447
|
} : void 0
|
|
3444
3448
|
]), 1040)) : h("", !0),
|
|
3445
|
-
v(ie) ? (
|
|
3446
|
-
], 46,
|
|
3449
|
+
v(ie) ? (n(), Te(Sr, { key: 9 })) : h("", !0)
|
|
3450
|
+
], 46, Nr));
|
|
3447
3451
|
}
|
|
3448
|
-
},
|
|
3452
|
+
}, dn = /* @__PURE__ */ Br(vn, [["__scopeId", "data-v-2a5d889f"]]), Tn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3449
3453
|
__proto__: null,
|
|
3450
|
-
default:
|
|
3454
|
+
default: dn
|
|
3451
3455
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
3452
3456
|
export {
|
|
3453
|
-
|
|
3454
|
-
|
|
3455
|
-
|
|
3457
|
+
dn as V,
|
|
3458
|
+
Tn as a,
|
|
3459
|
+
Mn as v
|
|
3456
3460
|
};
|