vue-data-ui 3.22.14 → 3.23.1
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/LICENSE +1 -1
- package/README.md +13 -1
- package/dist/{Arrow-Ci7Burxz.js → Arrow-CF0VFcBH.js} +1 -1
- package/dist/{BaseDraggableDialog-hyW32gLf.js → BaseDraggableDialog-LoqqwRtV.js} +2 -2
- package/dist/{BaseIcon-DJbOzCDs.js → BaseIcon-BfndwIWE.js} +4 -3
- package/dist/{BaseLegendToggle-DJU4VsLO.js → BaseLegendToggle-DZVucLnv.js} +1 -1
- package/dist/{BaseZoomControls-CwhpsHIL.js → BaseZoomControls-BZvCnZEi.js} +2 -2
- package/dist/{ColorPicker-BVWrKEQl.js → ColorPicker--ayG2YHf.js} +2 -2
- package/dist/{DataTable-rIsBpJMt.js → DataTable-BbKgJ5UI.js} +2 -2
- package/dist/HillActions-BD9j_sOU.js +187 -0
- package/dist/{Legend-DSPDFP3n.js → Legend-CQxUgOd-.js} +2 -2
- package/dist/{NonSvgPenAndPaper-DZyYthbM.js → NonSvgPenAndPaper-4ypecDg1.js} +22 -22
- package/dist/{PackageVersion-BUmadjVO.js → PackageVersion-D6d8SCp9.js} +1 -1
- package/dist/{PenAndPaper-D--sbRMA.js → PenAndPaper-DAE-tnEQ.js} +14 -14
- package/dist/{Shape-Dmh9jBFh.js → Shape-C21CMlWS.js} +3 -3
- package/dist/Slicer-CIk57nL4.js +1163 -0
- package/dist/{SlicerPreview-CCIb3v8u.js → SlicerPreview-wUw1hFwe.js} +384 -370
- package/dist/{SparkTooltip-GjWLZ39s.js → SparkTooltip-CjsbIhzi.js} +6 -6
- package/dist/Title-BE3qg9xl.js +87 -0
- package/dist/{Tooltip-CEbqzIhL.js → Tooltip-DhjyfHwz.js} +2 -2
- package/dist/{UserOptions-BknvMNU1.js → UserOptions-Dt98of5H.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-hill.js +2 -0
- 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/composables.js +1 -1
- package/dist/{dom-to-png-BbPRUKX6.js → dom-to-png-BYIvdTe8.js} +1 -1
- package/dist/exposedLib-C0DPCgFj.js +28 -0
- package/dist/{geoProjections-BCP_PoiB.js → geoProjections-CEo3dVaL.js} +1 -1
- package/dist/{img-zY7_pJz1.js → img-Bnokohej.js} +1 -1
- package/dist/{labelUtils-DYdYmN_Q.js → labelUtils-BeVpDvTJ.js} +1 -1
- package/dist/{lib-C-QGo8GG.js → lib-Bttd6u5E.js} +27 -12
- package/dist/{package-QmuZcjWs.js → package-KvlL5CqE.js} +1 -1
- package/dist/{pdf-CuSS-5_j.js → pdf-CVIDfCrS.js} +1 -1
- package/dist/{render-common-DasqIYp9.js → render-common-oDYGTc5P.js} +21 -21
- package/dist/ssr/vue-ui-donut.js +1 -1
- package/dist/ssr/vue-ui-xy.js +1 -1
- package/dist/ssr.js +2 -2
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.ts +496 -0
- package/dist/types/vue-ui-hill.d.ts +90 -0
- package/dist/useAutoSizeLabelsInsideViewbox-DvDwcwi_.js +122 -0
- package/dist/{useConfig-C0V0eG7L.js → useConfig-D3scuR88.js} +774 -477
- package/dist/useHints-Dq_w2E8B.js +66 -0
- package/dist/{useNestedProp-BYfiWVP8.js → useNestedProp-vPNvh7rV.js} +5 -3
- package/dist/{useObjectBindings-Djwpii4d.js → useObjectBindings-Brg8mm5J.js} +3 -2
- package/dist/{usePrinter-C5ordS-4.js → usePrinter-DN5bYhTG.js} +2 -2
- package/dist/{useSvgExport-Ba9qBr9M.js → useSvgExport-DH-FfcqQ.js} +1 -1
- package/dist/{useTimeLabels-B9CEuiLZ.js → useTimeLabels-d2f-W1L4.js} +2 -4
- package/dist/{useTooltipPosition-BsRysTrw.js → useTooltipPosition-DifeoeQW.js} +13 -13
- package/dist/useTransitions-g_zBREk2.js +39 -0
- package/dist/utils.js +14 -14
- package/dist/{vue-data-ui-D3jZ4lg1.js → vue-data-ui-DGWDPCwC.js} +85 -81
- package/dist/vue-data-ui.js +77 -76
- package/dist/vue-ui-3d-bar-C_Su9fve.js +1849 -0
- package/dist/{vue-ui-accordion-FimGHtuy.js → vue-ui-accordion-BxGriZik.js} +4 -4
- package/dist/vue-ui-age-pyramid-D4k1MkAL.js +1264 -0
- package/dist/vue-ui-annotator-CCtnM8Rv.js +2886 -0
- package/dist/vue-ui-bullet-DLZr2Uk8.js +724 -0
- package/dist/{vue-ui-bump-CG3WTTFy.js → vue-ui-bump-CcdzJZ9n.js} +334 -297
- package/dist/{vue-ui-candlestick-C3smYvQA.js → vue-ui-candlestick-EEEt7ORC.js} +468 -442
- package/dist/vue-ui-carousel-table-BicIpNAD.js +463 -0
- package/dist/{vue-ui-chestnut-i7FYoqi8.js → vue-ui-chestnut-BI7mC5dd.js} +523 -497
- package/dist/{vue-ui-chord-DCZo55QA.js → vue-ui-chord-DXaq8ZMu.js} +432 -426
- package/dist/vue-ui-circle-pack-XHJBMG51.js +1659 -0
- package/dist/{vue-ui-cursor-DEf_l0Xc.js → vue-ui-cursor-BqHr0n1Z.js} +61 -61
- package/dist/{vue-ui-dag-beo3-quD.js → vue-ui-dag-jMLVoQkb.js} +677 -674
- package/dist/vue-ui-dashboard-DVAUFETR.js +520 -0
- package/dist/{vue-ui-digits-BnMqGAhl.js → vue-ui-digits-Dy4gG6qm.js} +59 -51
- package/dist/vue-ui-donut-C0cWRLbU.js +2441 -0
- package/dist/{vue-ui-donut-Cr0uTWGk.js → vue-ui-donut-CYpxGBhl.js} +117 -116
- package/dist/{vue-ui-donut-evolution-D54NP3FP.js → vue-ui-donut-evolution-DwR47A2r.js} +534 -448
- package/dist/vue-ui-dumbbell-DxVbRjKR.js +1582 -0
- package/dist/{vue-ui-flow-CnateJjc.js → vue-ui-flow-DWaZF4FS.js} +415 -407
- package/dist/vue-ui-funnel-Bmpx5GHR.js +797 -0
- package/dist/vue-ui-galaxy-CWBP9oH9.js +1111 -0
- package/dist/vue-ui-gauge-ByE_txav.js +953 -0
- package/dist/{vue-ui-geo-DnO1RIFR.js → vue-ui-geo-ZA7CBy8f.js} +372 -357
- package/dist/{vue-ui-gizmo-DyxeSKIk.js → vue-ui-gizmo-SQCou0bQ.js} +57 -49
- package/dist/{vue-ui-heatmap-6Ja5LKYE.js → vue-ui-heatmap-CHd9gs_p.js} +473 -465
- package/dist/vue-ui-hill-BT183G-_.js +1768 -0
- package/dist/vue-ui-history-plot-BwnlC1mx.js +1723 -0
- package/dist/vue-ui-horizontal-bar-BUar2HUH.js +1733 -0
- package/dist/vue-ui-kpi-BF_9WWoo.js +104 -0
- package/dist/vue-ui-mini-loader-CvfukjXi.js +133 -0
- package/dist/vue-ui-molecule-Bi2CKHer.js +958 -0
- package/dist/{vue-ui-mood-radar-TWo57SKD.js → vue-ui-mood-radar-_zpbmvJs.js} +349 -341
- package/dist/{vue-ui-nested-donuts-W0TpPXIQ.js → vue-ui-nested-donuts-qHZAJ70u.js} +452 -416
- package/dist/vue-ui-onion-CB5RYIy5.js +1258 -0
- package/dist/vue-ui-parallel-coordinate-plot-BUwt-apg.js +1455 -0
- package/dist/{vue-ui-quadrant-BM9VLDcC.js → vue-ui-quadrant-CoROD3er.js} +636 -628
- package/dist/vue-ui-quick-chart-BcH7eY4-.js +2397 -0
- package/dist/{vue-ui-radar-BVz6Uq2k.js → vue-ui-radar-DGbaXGme.js} +380 -334
- package/dist/vue-ui-rating-Bo3zD3yW.js +360 -0
- package/dist/vue-ui-relation-circle-DaU1eTsG.js +925 -0
- package/dist/vue-ui-ridgeline-BCaGcyfk.js +1664 -0
- package/dist/{vue-ui-rings-DEZrfBYX.js → vue-ui-rings-BJUBn8_b.js} +450 -424
- package/dist/{vue-ui-scatter-owaIOpD0.js → vue-ui-scatter-Pcft1bUt.js} +721 -702
- package/dist/{vue-ui-skeleton-Cxszgax7.js → vue-ui-skeleton-EeJcGbCo.js} +395 -387
- package/dist/{vue-ui-smiley-DZBPvVeN.js → vue-ui-smiley-D0gibt5c.js} +128 -120
- package/dist/{vue-ui-spark-trend-CW4cLUqP.js → vue-ui-spark-trend-BRoQ7JpQ.js} +132 -117
- package/dist/{vue-ui-sparkbar-DeSSqv4v.js → vue-ui-sparkbar-DFp2k7-7.js} +119 -111
- package/dist/{vue-ui-sparkgauge-VSiPVgUQ.js → vue-ui-sparkgauge-D0Bq85Hs.js} +76 -68
- package/dist/vue-ui-sparkhistogram-BPln7v63.js +590 -0
- package/dist/{vue-ui-sparkline-DyZdAQMl.js → vue-ui-sparkline-C6Q45Dqp.js} +391 -365
- package/dist/vue-ui-sparkstackbar-CjK4bcQg.js +692 -0
- package/dist/vue-ui-stackbar-Ca8EPf3e.js +2353 -0
- package/dist/vue-ui-stackline-Pz5WWlWT.js +2467 -0
- package/dist/{vue-ui-strip-plot-BquHFKHA.js → vue-ui-strip-plot-Dw4MGDSO.js} +508 -487
- package/dist/vue-ui-table-Bjg-ujJu.js +1352 -0
- package/dist/vue-ui-table-heatmap-ljeYW8Wc.js +364 -0
- package/dist/{vue-ui-table-sparkline-CyGqW88t.js → vue-ui-table-sparkline-iRFmtK5S.js} +207 -181
- package/dist/vue-ui-thermometer-D8uiOaeA.js +777 -0
- package/dist/{vue-ui-timer-BVjydam-.js → vue-ui-timer-CYw983oL.js} +66 -58
- package/dist/vue-ui-tiremarks-CekiW2Ru.js +559 -0
- package/dist/vue-ui-treemap-h4VbnqPA.js +1760 -0
- package/dist/vue-ui-waffle-cu0w_s6L.js +1412 -0
- package/dist/{vue-ui-wheel-D-VVxvxY.js → vue-ui-wheel-tLvJadk5.js} +225 -217
- package/dist/{vue-ui-word-cloud-CcRch2t2.js → vue-ui-word-cloud-BjpGSsod.js} +440 -432
- package/dist/{vue-ui-world-BJq4PZqF.js → vue-ui-world-B4fCS3jN.js} +350 -342
- package/dist/{vue-ui-xy-D64AB5Qy.js → vue-ui-xy-7ZT9IRD8.js} +1639 -1595
- package/dist/{vue-ui-xy-canvas-mDqjPtxh.js → vue-ui-xy-canvas-BnLEwBpi.js} +459 -431
- package/dist/{vue-ui-xy-B8XBn08L.js → vue-ui-xy-gyNS0yH0.js} +216 -213
- package/dist/vue_ui_hill-dnltu0L-.js +368 -0
- package/package.json +4 -4
- package/dist/Slicer-JdCzBeYM.js +0 -1149
- package/dist/Title-Thf71-8D.js +0 -87
- package/dist/exposedLib-CfZhN94x.js +0 -25
- package/dist/useAutoSizeLabelsInsideViewbox-CSzmRywi.js +0 -50
- package/dist/useMountedDelay-BAjrhRJb.js +0 -14
- package/dist/vue-ui-3d-bar-D9-jAA5Z.js +0 -1824
- package/dist/vue-ui-age-pyramid-D4f-Agb7.js +0 -1246
- package/dist/vue-ui-annotator-P9E8hpJl.js +0 -2905
- package/dist/vue-ui-bullet-CKg0bShN.js +0 -709
- package/dist/vue-ui-carousel-table-BD_fxykj.js +0 -455
- package/dist/vue-ui-circle-pack--DUVDQx3.js +0 -1610
- package/dist/vue-ui-dashboard-mGLvP0UA.js +0 -512
- package/dist/vue-ui-donut-BCLG16Vb.js +0 -2418
- package/dist/vue-ui-dumbbell-DZ78WASa.js +0 -1564
- package/dist/vue-ui-funnel-DSpUMyDO.js +0 -781
- package/dist/vue-ui-galaxy-CxKafV1X.js +0 -1076
- package/dist/vue-ui-gauge-CegUK3FD.js +0 -925
- package/dist/vue-ui-history-plot-XOexkxeI.js +0 -1725
- package/dist/vue-ui-horizontal-bar-BCTdLxjK.js +0 -1689
- package/dist/vue-ui-kpi-EenGDZ-l.js +0 -96
- package/dist/vue-ui-mini-loader-CA7XxPk7.js +0 -125
- package/dist/vue-ui-molecule-5rpD2mlK.js +0 -932
- package/dist/vue-ui-onion-CDC9AGh1.js +0 -1199
- package/dist/vue-ui-parallel-coordinate-plot-DUOI7HoD.js +0 -1412
- package/dist/vue-ui-quick-chart-B8XCKef-.js +0 -2443
- package/dist/vue-ui-rating-B7ApWpIJ.js +0 -352
- package/dist/vue-ui-relation-circle-LVOR5VZ6.js +0 -917
- package/dist/vue-ui-ridgeline-BlyzSJHc.js +0 -1627
- package/dist/vue-ui-sparkhistogram-B5252IVr.js +0 -575
- package/dist/vue-ui-sparkstackbar-CiLgNzaI.js +0 -674
- package/dist/vue-ui-stackbar-Bwz6Z7M4.js +0 -2322
- package/dist/vue-ui-stackline-DX3YDRSg.js +0 -2427
- package/dist/vue-ui-table-DEhy61ln.js +0 -1339
- package/dist/vue-ui-table-heatmap-1LTxQfQX.js +0 -338
- package/dist/vue-ui-thermometer-CNvTQJUq.js +0 -769
- package/dist/vue-ui-tiremarks-3ZBAE8SA.js +0 -551
- package/dist/vue-ui-treemap-FqqXQvZw.js +0 -1727
- package/dist/vue-ui-waffle-B37Yx9uw.js +0 -1367
|
@@ -1,40 +1,40 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t as D } from "./useTimeLabels-
|
|
3
|
-
import { t as O } from "./useConfig-
|
|
1
|
+
import { A as e, B as t, Bt as n, G as r, H as i, I as a, Jt as o, Kt as s, L as c, N as l, P as u, Pt as d, S as f, U as p, V as m, Vt as h, X as g, _, c as v, i as y, k as b, l as x, nt as S, o as ee, q as C, t as w, v as te, vt as T, zt as E } from "./lib-Bttd6u5E.js";
|
|
2
|
+
import { t as D } from "./useTimeLabels-d2f-W1L4.js";
|
|
3
|
+
import { t as O } from "./useConfig-D3scuR88.js";
|
|
4
4
|
import { t as ne } from "./vue_ui_xy-BA3-_LCx.js";
|
|
5
|
-
import { _ as k, d as A, f as j, g as M, h as N, l as P, m as F, p as I, u as L, v as R } from "./render-common-
|
|
5
|
+
import { _ as k, d as A, f as j, g as M, h as N, l as P, m as F, p as I, u as L, v as R } from "./render-common-oDYGTc5P.js";
|
|
6
6
|
//#region src/svg/vue-ui-xy/create.js
|
|
7
7
|
var { vue_ui_xy: z } = O();
|
|
8
8
|
function re({ config: e = {}, dataset: t = [] } = {}) {
|
|
9
|
-
let n = e ?? {},
|
|
9
|
+
let n = e ?? {}, r = o({
|
|
10
10
|
userConfig: n,
|
|
11
11
|
defaultConfig: z
|
|
12
12
|
});
|
|
13
|
-
|
|
13
|
+
T(n, "chart.highlightArea") && (Array.isArray(n.chart.highlightArea) ? r.chart.highlightArea = n.chart.highlightArea.map((e) => o({
|
|
14
14
|
defaultConfig: z.chart.highlightArea,
|
|
15
15
|
userConfig: e
|
|
16
|
-
})) :
|
|
16
|
+
})) : r.chart.highlightArea = [o({
|
|
17
17
|
defaultConfig: z.chart.highlightArea,
|
|
18
18
|
userConfig: n.chart.highlightArea
|
|
19
|
-
})]),
|
|
19
|
+
})]), T(n, "chart.annotations") && Array.isArray(n.chart.annotations) && n.chart.annotations.length ? r.chart.annotations = n.chart.annotations.map((e) => o({
|
|
20
20
|
defaultConfig: z.chart.annotations[0],
|
|
21
21
|
userConfig: e
|
|
22
|
-
})) :
|
|
23
|
-
let
|
|
24
|
-
if (!
|
|
25
|
-
...
|
|
26
|
-
customPalette:
|
|
22
|
+
})) : r.chart.annotations = [], T(n, "chart.grid.position") && n.chart.grid.position === "start" && t.some((e) => e.type === "bar") && (r.chart.grid.position = "middle");
|
|
23
|
+
let i = r.theme;
|
|
24
|
+
if (!i) return {
|
|
25
|
+
...r,
|
|
26
|
+
customPalette: r.customPalette?.length ? r.customPalette : d
|
|
27
27
|
};
|
|
28
|
-
let
|
|
28
|
+
let a = o({
|
|
29
|
+
userConfig: ne[i] || {},
|
|
30
|
+
defaultConfig: r
|
|
31
|
+
}), c = o({
|
|
29
32
|
userConfig: n,
|
|
30
|
-
defaultConfig:
|
|
31
|
-
userConfig: ne[a] || {},
|
|
32
|
-
defaultConfig: i
|
|
33
|
-
})
|
|
33
|
+
defaultConfig: a
|
|
34
34
|
});
|
|
35
35
|
return {
|
|
36
|
-
...
|
|
37
|
-
customPalette:
|
|
36
|
+
...c,
|
|
37
|
+
customPalette: c.customPalette?.length ? c.customPalette : s[i] || d
|
|
38
38
|
};
|
|
39
39
|
}
|
|
40
40
|
function B(e) {
|
|
@@ -53,8 +53,8 @@ function oe({ dataset: e, config: t }) {
|
|
|
53
53
|
max: 1,
|
|
54
54
|
ticks: [0, 1]
|
|
55
55
|
};
|
|
56
|
-
let r = t?.chart?.grid?.labels?.xAxis?.scaleMin, i = t?.chart?.grid?.labels?.xAxis?.scaleMax, a = ie(r) ? Number(r) : Math.min(...n), o = ie(i) ? Number(i) : Math.max(...n);
|
|
57
|
-
return
|
|
56
|
+
let r = t?.chart?.grid?.labels?.xAxis?.scaleMin, i = t?.chart?.grid?.labels?.xAxis?.scaleMax, a = ie(r) ? Number(r) : Math.min(...n), o = ie(i) ? Number(i) : Math.max(...n), s = a === o ? a - 1 : a, c = a === o ? o + 1 : o, l = Number.isFinite(Number(t?.chart?.grid?.labels?.xAxis?.scaleSteps)) ? Number(t.chart.grid.labels.xAxis.scaleSteps) : 6;
|
|
57
|
+
return _(s, c, l);
|
|
58
58
|
}
|
|
59
59
|
function se({ xValue: e, xScale: t, drawingArea: n, config: r }) {
|
|
60
60
|
let i = (Number(e) - t.min) / (t.max - t.min || 1), a = r?.chart?.grid?.labels?.xAxis?.reverse ? 1 - i : i;
|
|
@@ -71,18 +71,18 @@ function ce({ dataset: e = [], config: t = {}, width: n = 1e3, height: r = 600,
|
|
|
71
71
|
bottom: r - s.chart.padding.bottom
|
|
72
72
|
};
|
|
73
73
|
c.width = c.right - c.left, c.height = c.bottom - c.top;
|
|
74
|
-
let
|
|
74
|
+
let l = e.flatMap((e) => Array.isArray(e.series) ? e.series.map((e) => Number(typeof e == "object" && e ? e.y : e)) : []).filter(Number.isFinite), u = Math.min(0, ...l), p = Math.max(1, ...l), m = _(u, p, 6), h = e.some((e) => Array.isArray(e.series) ? e.series.some(B) : !1), g = h ? oe({
|
|
75
75
|
dataset: e,
|
|
76
76
|
config: s
|
|
77
|
-
}) : null,
|
|
77
|
+
}) : null, v = Math.max(0, ...e.map((e) => e.series?.length || 0)), y = (e) => v <= 1 ? c.left + c.width / 2 : c.left + e / (v - 1) * c.width, b = (e, t) => h ? B(e) ? se({
|
|
78
78
|
xValue: e.x,
|
|
79
|
-
xScale:
|
|
79
|
+
xScale: g,
|
|
80
80
|
drawingArea: c,
|
|
81
81
|
config: s
|
|
82
|
-
}) : null :
|
|
83
|
-
let t = (Number(e) -
|
|
82
|
+
}) : null : y(t), x = (e) => {
|
|
83
|
+
let t = (Number(e) - m.min) / (m.max - m.min || 1);
|
|
84
84
|
return c.bottom - t * c.height;
|
|
85
|
-
},
|
|
85
|
+
}, S = Array.isArray(s.customPalette) ? s.customPalette : [], ee = S.length ? S : d;
|
|
86
86
|
return {
|
|
87
87
|
width: n,
|
|
88
88
|
height: r,
|
|
@@ -90,15 +90,15 @@ function ce({ dataset: e = [], config: t = {}, width: n = 1e3, height: r = 600,
|
|
|
90
90
|
dataset: e,
|
|
91
91
|
config: s,
|
|
92
92
|
drawingArea: c,
|
|
93
|
-
scale:
|
|
94
|
-
xScale:
|
|
95
|
-
isContinuous:
|
|
93
|
+
scale: m,
|
|
94
|
+
xScale: g,
|
|
95
|
+
isContinuous: h,
|
|
96
96
|
series: e.map((e, t) => {
|
|
97
|
-
let n = (e.color ?
|
|
97
|
+
let n = (e.color ? f(e.color) : "") || ee[t % ee.length], r = (e.series || []).map((e, t) => {
|
|
98
98
|
let n = e == null ? null : typeof e == "object" ? e.y ?? null : Number(e);
|
|
99
99
|
return {
|
|
100
|
-
x:
|
|
101
|
-
y: n === null || !Number.isFinite(Number(n)) ? null :
|
|
100
|
+
x: b(e, t),
|
|
101
|
+
y: n === null || !Number.isFinite(Number(n)) ? null : x(n),
|
|
102
102
|
value: n,
|
|
103
103
|
index: t,
|
|
104
104
|
rawX: B(e) ? Number(e.x) : null,
|
|
@@ -183,7 +183,7 @@ function U(e) {
|
|
|
183
183
|
let { drawingArea: t, scale: n } = e, r = (0 - n.min) / (n.max - n.min || 1);
|
|
184
184
|
return t.bottom - r * t.height;
|
|
185
185
|
}
|
|
186
|
-
var ve =
|
|
186
|
+
var ve = C();
|
|
187
187
|
function W(e) {
|
|
188
188
|
return ve;
|
|
189
189
|
}
|
|
@@ -206,54 +206,54 @@ function Ce(e, t, n) {
|
|
|
206
206
|
let { config: r } = e;
|
|
207
207
|
return I(r, "line.useGradient", !1) ? `url(#${ye(e, n)})` : I(r, "line.dot.useSerieColor", !0) ? t.color : I(r, "line.dot.fill", "#FFFFFF");
|
|
208
208
|
}
|
|
209
|
-
function we(e, t,
|
|
210
|
-
let { config:
|
|
211
|
-
return I(
|
|
209
|
+
function we(e, t, r) {
|
|
210
|
+
let { config: i } = e;
|
|
211
|
+
return I(i, "line.area.useGradient", !1) ? `url(#${rt(e, r)})` : n(t.color, k(I(i, "line.area.opacity", 30), 30));
|
|
212
212
|
}
|
|
213
213
|
function K(e, t, n, r) {
|
|
214
214
|
return I(e.config, "bar.useGradient", !1) ? r >= 0 ? `url(#${G(e, n, "pos")})` : `url(#${G(e, n, "neg")})` : t.color;
|
|
215
215
|
}
|
|
216
|
-
function Te(e,
|
|
217
|
-
let { config:
|
|
218
|
-
return I(
|
|
219
|
-
|
|
220
|
-
id: G(e,
|
|
216
|
+
function Te(e, t) {
|
|
217
|
+
let { config: n } = e, r = [];
|
|
218
|
+
return I(n, "bar.useGradient", !1) && t.filter((e) => e.type === "bar").forEach((t, n) => {
|
|
219
|
+
r.push(L("linearGradient", {
|
|
220
|
+
id: G(e, n, "pos"),
|
|
221
221
|
x2: "0%",
|
|
222
222
|
y2: "100%"
|
|
223
223
|
}, [
|
|
224
224
|
A("stop", {
|
|
225
225
|
offset: "0%",
|
|
226
|
-
"stop-color":
|
|
226
|
+
"stop-color": f(t.color)
|
|
227
227
|
}),
|
|
228
228
|
A("stop", {
|
|
229
229
|
offset: "62%",
|
|
230
|
-
"stop-color":
|
|
230
|
+
"stop-color": h(f(t.color), .02)
|
|
231
231
|
}),
|
|
232
232
|
A("stop", {
|
|
233
233
|
offset: "100%",
|
|
234
|
-
"stop-color":
|
|
234
|
+
"stop-color": h(f(t.color), .05)
|
|
235
235
|
})
|
|
236
|
-
].join(""))),
|
|
237
|
-
id: G(e,
|
|
236
|
+
].join(""))), r.push(L("linearGradient", {
|
|
237
|
+
id: G(e, n, "neg"),
|
|
238
238
|
x2: "0%",
|
|
239
239
|
y2: "100%"
|
|
240
240
|
}, [
|
|
241
241
|
A("stop", {
|
|
242
242
|
offset: "0%",
|
|
243
|
-
"stop-color":
|
|
243
|
+
"stop-color": h(f(t.color), .05)
|
|
244
244
|
}),
|
|
245
245
|
A("stop", {
|
|
246
246
|
offset: "38%",
|
|
247
|
-
"stop-color":
|
|
247
|
+
"stop-color": h(f(t.color), .02)
|
|
248
248
|
}),
|
|
249
249
|
A("stop", {
|
|
250
250
|
offset: "100%",
|
|
251
|
-
"stop-color":
|
|
251
|
+
"stop-color": f(t.color)
|
|
252
252
|
})
|
|
253
253
|
].join("")));
|
|
254
|
-
}),
|
|
255
|
-
I(
|
|
256
|
-
id: ye(e,
|
|
254
|
+
}), t.filter((e) => e.type === "line").forEach((t, i) => {
|
|
255
|
+
I(n, "line.useGradient", !1) && r.push(L("radialGradient", {
|
|
256
|
+
id: ye(e, i),
|
|
257
257
|
cx: "50%",
|
|
258
258
|
cy: "50%",
|
|
259
259
|
r: "50%",
|
|
@@ -261,20 +261,20 @@ function Te(e, n) {
|
|
|
261
261
|
fy: "50%"
|
|
262
262
|
}, [A("stop", {
|
|
263
263
|
offset: "0%",
|
|
264
|
-
"stop-color":
|
|
264
|
+
"stop-color": h(f(t.color), .05)
|
|
265
265
|
}), A("stop", {
|
|
266
266
|
offset: "100%",
|
|
267
|
-
"stop-color":
|
|
268
|
-
})].join(""))),
|
|
269
|
-
id: be(e,
|
|
267
|
+
"stop-color": f(t.color)
|
|
268
|
+
})].join(""))), t.temperatureColors && !t.isFlatTemperatureLine && r.push(L("linearGradient", {
|
|
269
|
+
id: be(e, i),
|
|
270
270
|
gradientTransform: "rotate(90)"
|
|
271
|
-
},
|
|
272
|
-
offset:
|
|
273
|
-
"stop-color":
|
|
271
|
+
}, t.temperatureColors.map((e, n) => A("stop", {
|
|
272
|
+
offset: E(n, t.temperatureColors.length),
|
|
273
|
+
"stop-color": f(e)
|
|
274
274
|
})).join("")));
|
|
275
|
-
}),
|
|
276
|
-
I(
|
|
277
|
-
id: Se(e,
|
|
275
|
+
}), t.filter((e) => e.type === "plot").forEach((t, i) => {
|
|
276
|
+
I(n, "plot.useGradient", !1) && r.push(L("radialGradient", {
|
|
277
|
+
id: Se(e, i),
|
|
278
278
|
cx: "50%",
|
|
279
279
|
cy: "50%",
|
|
280
280
|
r: "50%",
|
|
@@ -282,12 +282,12 @@ function Te(e, n) {
|
|
|
282
282
|
fy: "50%"
|
|
283
283
|
}, [A("stop", {
|
|
284
284
|
offset: "0%",
|
|
285
|
-
"stop-color":
|
|
285
|
+
"stop-color": h(f(t.color), .05)
|
|
286
286
|
}), A("stop", {
|
|
287
287
|
offset: "100%",
|
|
288
|
-
"stop-color":
|
|
288
|
+
"stop-color": f(t.color)
|
|
289
289
|
})].join("")));
|
|
290
|
-
}),
|
|
290
|
+
}), r.length ? L("defs", { "data-layer": "gradients" }, r.join("")) : "";
|
|
291
291
|
}
|
|
292
292
|
function Ee(e) {
|
|
293
293
|
let t = I(e.config, "chart.backgroundColor", "#FFFFFF");
|
|
@@ -308,13 +308,13 @@ function J(e) {
|
|
|
308
308
|
return I(e, "chart.grid.labels.yAxis.position", "left") === "right";
|
|
309
309
|
}
|
|
310
310
|
function De(e, t) {
|
|
311
|
-
let n =
|
|
311
|
+
let n = g({
|
|
312
312
|
p: I(t, "chart.labels.prefix", ""),
|
|
313
313
|
v: e,
|
|
314
314
|
s: I(t, "chart.labels.suffix", ""),
|
|
315
315
|
r: I(t, "chart.grid.labels.yAxis.rounding", 0)
|
|
316
316
|
});
|
|
317
|
-
return
|
|
317
|
+
return y(I(t, "chart.grid.labels.yAxis.formatter", null), e, n, t);
|
|
318
318
|
}
|
|
319
319
|
function Y(e) {
|
|
320
320
|
return !!I(e, "chart.grid.labels.yAxis.stacked", !1);
|
|
@@ -323,7 +323,7 @@ function X(e) {
|
|
|
323
323
|
return e != null && Number.isFinite(Number(e));
|
|
324
324
|
}
|
|
325
325
|
function Oe(e, t, n, r) {
|
|
326
|
-
return I(e, "chart.grid.labels.yAxis.useNiceScale", !0) ?
|
|
326
|
+
return I(e, "chart.grid.labels.yAxis.useNiceScale", !0) ? _(t, n, r) : te(t, n, r);
|
|
327
327
|
}
|
|
328
328
|
function ke(e, t) {
|
|
329
329
|
let n = M(t.plots).map((e) => Number(e.value)).filter(Number.isFinite), r = I(e, "chart.grid.labels.yAxis.scaleMin", null), i = I(e, "chart.grid.labels.yAxis.scaleMax", null), a = X(r) ? Number(r) : X(t.scaleMin) ? Number(t.scaleMin) : Math.min(0, ...n), o = X(i) ? Number(i) : X(t.scaleMax) ? Number(t.scaleMax) : Math.max(1, ...n);
|
|
@@ -361,21 +361,21 @@ function je(e, t) {
|
|
|
361
361
|
...e,
|
|
362
362
|
width: i,
|
|
363
363
|
height: a
|
|
364
|
-
}, t) : { height: 0 }, d = l && c === "top" ? u.height : 0, f = l && c !== "top" ? u.height : 0, p = I(n, "chart.grid.labels.axis.xLabel", ""), m = I(n, "chart.grid.labels.xAxisLabels.show", !0) ? o.xAxis * 2 : 0, h = (p ? o.yAxis * 1.5 : 0) + m + o.xAxis, g = gt(n) + k(I(n, "chart.labels.fontSize", 12), 12) * 1.1,
|
|
365
|
-
top:
|
|
366
|
-
right: C + (J(n) ? 0 :
|
|
367
|
-
bottom: a - h -
|
|
368
|
-
left: C + (J(n) ? 0 :
|
|
369
|
-
width: Math.max(1,
|
|
364
|
+
}, t) : { height: 0 }, d = l && c === "top" ? u.height : 0, f = l && c !== "top" ? u.height : 0, p = I(n, "chart.grid.labels.axis.xLabel", ""), m = I(n, "chart.grid.labels.xAxisLabels.show", !0) ? o.xAxis * 2 : 0, h = (p ? o.yAxis * 1.5 : 0) + m + o.xAxis, g = gt(n) + k(I(n, "chart.labels.fontSize", 12), 12) * 1.1, _ = k(I(n, "chart.padding.top", 12), 12), v = k(I(n, "chart.padding.right", 12), 12), y = k(I(n, "chart.padding.bottom", 12), 12), b = k(I(n, "chart.padding.left", 12), 12), x = k(I(n, "chart.grid.labels.axis.xLabelOffsetY", 0), 0), S = k(I(n, "chart.grid.labels.yAxis.crosshairSize", 0), 0), C = s.left, w = s.right, te = i - C - w - 6 - b - v, T = {
|
|
365
|
+
top: _ + g + d,
|
|
366
|
+
right: C + (J(n) ? 0 : S) + b + te,
|
|
367
|
+
bottom: a - h - y - x - f,
|
|
368
|
+
left: C + (J(n) ? 0 : S) + b,
|
|
369
|
+
width: Math.max(1, te),
|
|
370
370
|
height: 1,
|
|
371
371
|
scaleLabelX: C,
|
|
372
|
-
rightScaleLabelX:
|
|
372
|
+
rightScaleLabelX: w,
|
|
373
373
|
scaleLabelsOffset: s.scaleLabelsOffset,
|
|
374
374
|
yAxisLabelWidth: s.yAxisLabelWidth,
|
|
375
375
|
individualOffsetX: 36
|
|
376
376
|
};
|
|
377
377
|
T.height = Math.max(1, T.bottom - T.top);
|
|
378
|
-
let E = Y(n), D = E ?
|
|
378
|
+
let E = Y(n), D = E ? ee(t) : t, O = Math.max(1, D.length), ne = E ? k(I(n, "chart.grid.labels.yAxis.gap", 12), 12) : 0, A = ne * Math.max(0, O - 1), j = Math.max(1, T.height - A), N = V(n), P = me(n, t), F = Math.max(1, ...t.map((e) => M(e.plots).length));
|
|
379
379
|
function L(t, n) {
|
|
380
380
|
if (Z(e)) {
|
|
381
381
|
let n = Number(t.rawX);
|
|
@@ -708,13 +708,13 @@ function We(e, t) {
|
|
|
708
708
|
return n.left + n.width * o;
|
|
709
709
|
}
|
|
710
710
|
function Ge(e, t, n) {
|
|
711
|
-
let { config: r } = e, i =
|
|
711
|
+
let { config: r } = e, i = g({
|
|
712
712
|
v: t,
|
|
713
713
|
p: I(r, "chart.labels.prefix", ""),
|
|
714
714
|
s: I(r, "chart.labels.suffix", ""),
|
|
715
715
|
r: I(r, "chart.grid.labels.xAxis.rounding", 0)
|
|
716
716
|
});
|
|
717
|
-
return
|
|
717
|
+
return y(I(r, "chart.grid.labels.xAxis.formatter", null), t, i, {
|
|
718
718
|
datapoint: t,
|
|
719
719
|
seriesIndex: null
|
|
720
720
|
});
|
|
@@ -752,7 +752,7 @@ async function Je(e, t) {
|
|
|
752
752
|
start: 0,
|
|
753
753
|
end: i
|
|
754
754
|
}), s = a.map((e) => e?.text ?? ""), c = o.map((e) => e?.text ?? ""), l = Math.min(k(r.modulo, 1), Math.max(1, new Set(s).size));
|
|
755
|
-
return
|
|
755
|
+
return v(!!r.showOnlyFirstAndLast, !!r.showOnlyAtModulo, Math.max(1, l || 1), s, c, k(e.slotStartIndex ?? e.startAbs, 0), e.selectedXIndex ?? null, i);
|
|
756
756
|
}
|
|
757
757
|
async function Ye(e, t) {
|
|
758
758
|
return Z(e) ? Ke(e) : await Je(e, t);
|
|
@@ -761,39 +761,40 @@ function Xe(e, t, n, r) {
|
|
|
761
761
|
return Z(e) ? t.x : Q(e, n, r);
|
|
762
762
|
}
|
|
763
763
|
function Ze(e) {
|
|
764
|
-
|
|
764
|
+
let t = e.userConfig ?? e.sourceConfig ?? e.props?.config ?? {};
|
|
765
|
+
return T(t, "chart.grid.labels.xAxisLabels.rotation") ? k(I(e.config, "chart.grid.labels.xAxisLabels.rotation", 0), 0) : I(e.config, "chart.grid.labels.xAxisLabels.autoRotate.enable", !1) ? k(I(e.config, "chart.grid.labels.xAxisLabels.autoRotate.angle", 0), 0) : k(I(e.config, "chart.grid.labels.xAxisLabels.rotation", 0), 0);
|
|
765
766
|
}
|
|
766
767
|
async function Qe(e, t) {
|
|
767
|
-
let { config: n, drawingArea:
|
|
768
|
+
let { config: n, drawingArea: i } = e;
|
|
768
769
|
if (!t[0] || !I(n, "chart.grid.labels.xAxisLabels.show", !0)) return "";
|
|
769
770
|
I(n, "chart.grid.labels.xAxisLabels", {});
|
|
770
|
-
let
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
return String(c).includes("\n") ? L("text", {
|
|
771
|
+
let a = k(I(n, "chart.grid.labels.xAxisLabels.fontSize", 12), 12), o = I(n, "chart.grid.labels.xAxisLabels.color", I(n, "chart.grid.labels.color", "#2A2A2A")), s = Ze(e), c = Math.max(1, t[0].plots.length), l = await Ye(e, t), u = s > 0 ? "start" : s < 0 ? "end" : "middle", d = l.map((t, n) => {
|
|
772
|
+
let l = typeof t == "string" ? t : t?.text;
|
|
773
|
+
if (!l) return "";
|
|
774
|
+
let d = `translate(${Xe(e, t, n, c)}, ${i.bottom + a * 1.5}), rotate(${s})`;
|
|
775
|
+
return String(l).includes("\n") ? L("text", {
|
|
776
776
|
class: "vue-data-ui-time-label",
|
|
777
777
|
"data-cy": "time-label",
|
|
778
|
-
"text-anchor":
|
|
779
|
-
"font-size":
|
|
780
|
-
fill:
|
|
781
|
-
transform:
|
|
782
|
-
},
|
|
783
|
-
content: String(
|
|
784
|
-
fontSize:
|
|
785
|
-
fill:
|
|
778
|
+
"text-anchor": u,
|
|
779
|
+
"font-size": a,
|
|
780
|
+
fill: o,
|
|
781
|
+
transform: d
|
|
782
|
+
}, r({
|
|
783
|
+
content: String(l),
|
|
784
|
+
fontSize: a,
|
|
785
|
+
fill: o,
|
|
786
786
|
x: 0,
|
|
787
787
|
y: 0
|
|
788
|
-
})) : R(
|
|
788
|
+
})) : R(l, {
|
|
789
789
|
class: "vue-data-ui-time-label",
|
|
790
790
|
"data-cy": "time-label",
|
|
791
|
-
"text-anchor":
|
|
792
|
-
"font-size":
|
|
793
|
-
fill:
|
|
794
|
-
transform:
|
|
791
|
+
"text-anchor": u,
|
|
792
|
+
"font-size": a,
|
|
793
|
+
fill: o,
|
|
794
|
+
transform: d
|
|
795
795
|
});
|
|
796
|
-
}).join("")
|
|
796
|
+
}).join("");
|
|
797
|
+
return L("g", { "data-layer": "x-axis-labels" }, d);
|
|
797
798
|
}
|
|
798
799
|
function $e(e) {
|
|
799
800
|
let { config: t, drawingArea: n, height: r } = e, i = q(t), a = I(t, "chart.grid.labels.axis.xLabel", ""), o = I(t, "chart.grid.labels.axis.yLabel", ""), s = I(t, "chart.grid.labels.axis.color", I(t, "chart.grid.labels.color", "#2A2A2A")), c = k(I(t, "chart.grid.labels.axis.yLabelOffsetX", 0), 0), l = k(I(t, "chart.grid.labels.axis.xLabelOffsetY", 0), 0), u = k(I(t, "chart.grid.labels.yAxis.crosshairSize", 0), 0), d = k(I(t, "chart.grid.labels.yAxis.scaleValueOffsetX", 0), 0), f = k(I(t, "chart.grid.labels.yAxis.labelWidth", 0), 0), p = J(t), m = [];
|
|
@@ -884,10 +885,10 @@ function nt(e, t) {
|
|
|
884
885
|
function rt(e, t) {
|
|
885
886
|
return `areaGradient_${t}_${W()}`;
|
|
886
887
|
}
|
|
887
|
-
function it(e,
|
|
888
|
+
function it(e, t) {
|
|
888
889
|
let { config: r } = e;
|
|
889
890
|
if (!I(r, "line.area.useGradient", !1)) return "";
|
|
890
|
-
let i = k(I(r, "line.area.opacity", 30), 30), a =
|
|
891
|
+
let i = k(I(r, "line.area.opacity", 30), 30), a = t.filter((e) => e.type === "line" && e.useArea).map((t, r) => L("linearGradient", {
|
|
891
892
|
id: rt(e, r),
|
|
892
893
|
x1: "0%",
|
|
893
894
|
x2: "0%",
|
|
@@ -895,39 +896,39 @@ function it(e, n) {
|
|
|
895
896
|
y2: "100%"
|
|
896
897
|
}, [A("stop", {
|
|
897
898
|
offset: "0%",
|
|
898
|
-
"stop-color":
|
|
899
|
+
"stop-color": n(h(f(t.color), .03), i),
|
|
899
900
|
"stop-opacity": 1
|
|
900
901
|
}), A("stop", {
|
|
901
902
|
offset: "100%",
|
|
902
|
-
"stop-color":
|
|
903
|
+
"stop-color": t.color,
|
|
903
904
|
"stop-opacity": 0
|
|
904
905
|
})].join(""))).join("");
|
|
905
906
|
return a ? L("defs", {}, a) : "";
|
|
906
907
|
}
|
|
907
|
-
function at(
|
|
908
|
-
let { config:
|
|
909
|
-
return
|
|
910
|
-
let
|
|
911
|
-
if (
|
|
912
|
-
let
|
|
913
|
-
if (
|
|
914
|
-
|
|
915
|
-
e &&
|
|
908
|
+
function at(n, r) {
|
|
909
|
+
let { config: i } = n, a = !!I(i, "line.cutNullValues", !1), o = [];
|
|
910
|
+
return r.filter((e) => e.type === "line" && e.useArea).forEach((r, i) => {
|
|
911
|
+
let s = M(r.plots), c = s.filter((e) => e && e.value !== null);
|
|
912
|
+
if (c.length < 2) return;
|
|
913
|
+
let u = Number.isFinite(Number(r.__zeroY)) ? Number(r.__zeroY) : U(n), d = we(n, r, i);
|
|
914
|
+
if (r.smooth && !r.useStepper) {
|
|
915
|
+
l(a ? s : c, u, a).forEach((e) => {
|
|
916
|
+
e && o.push(A("path", {
|
|
916
917
|
d: e,
|
|
917
|
-
fill:
|
|
918
|
+
fill: d,
|
|
918
919
|
"data-cy": "datapoint-line-area-smooth"
|
|
919
920
|
}));
|
|
920
921
|
});
|
|
921
922
|
return;
|
|
922
923
|
}
|
|
923
|
-
(
|
|
924
|
-
|
|
924
|
+
(r.useStepper ? t(a ? s : c, u) : a ? e(s, u) : b(c, u)).split(";").filter(Boolean).forEach((e) => {
|
|
925
|
+
o.push(A("path", {
|
|
925
926
|
d: `M${e}Z`,
|
|
926
|
-
fill:
|
|
927
|
+
fill: d,
|
|
927
928
|
"data-cy": "datapoint-line-area-straight"
|
|
928
929
|
}));
|
|
929
930
|
});
|
|
930
|
-
}), L("g", { "data-layer": "line-areas" },
|
|
931
|
+
}), L("g", { "data-layer": "line-areas" }, o.join(""));
|
|
931
932
|
}
|
|
932
933
|
function ot(e, t) {
|
|
933
934
|
let n = k(t.slotStartIndex ?? t.startAbs, 0);
|
|
@@ -945,23 +946,23 @@ function st(e, t, n, r, i) {
|
|
|
945
946
|
"stroke-dasharray": i ? o * 2 : 0
|
|
946
947
|
});
|
|
947
948
|
}
|
|
948
|
-
function ct(
|
|
949
|
-
let { config:
|
|
950
|
-
return
|
|
951
|
-
let d =
|
|
952
|
-
if (!(
|
|
953
|
-
if (M(
|
|
954
|
-
let
|
|
955
|
-
(
|
|
956
|
-
|
|
949
|
+
function ct(e, n) {
|
|
950
|
+
let { config: r } = e, o = n.filter((e) => e.type === "line"), s = !!I(r, "line.cutNullValues", !1), l = [];
|
|
951
|
+
return o.forEach((n, o) => {
|
|
952
|
+
let d = s ? M(n.plots) : M(n.plots).filter((e) => e.value !== null), f = d.filter((e) => e.value !== null);
|
|
953
|
+
if (!(f.length < 2)) {
|
|
954
|
+
if (M(n.dashIndices).length > 0 && !n.useStepper) {
|
|
955
|
+
let t = ot(n, e);
|
|
956
|
+
(n.smooth || I(r, "line.smooth", !1) ? c(d, t) : p(d, t)).forEach((t) => {
|
|
957
|
+
t?.path && l.push(st(e, n, o, t.path, !!t.dashed));
|
|
957
958
|
});
|
|
958
959
|
return;
|
|
959
960
|
}
|
|
960
|
-
(
|
|
961
|
-
|
|
961
|
+
(n.useStepper ? t(d).split(";").filter(Boolean) : [n.smooth || I(r, "line.smooth", !1) ? s ? a(d) : u(f) : s ? i(d) : m(f, !1, !0)]).forEach((t) => {
|
|
962
|
+
t && l.push(st(e, n, o, t, !!n.dashed));
|
|
962
963
|
});
|
|
963
964
|
}
|
|
964
|
-
}), L("g", { "data-layer": "lines" },
|
|
965
|
+
}), L("g", { "data-layer": "lines" }, l.join(""));
|
|
965
966
|
}
|
|
966
967
|
function lt(e, t, n) {
|
|
967
968
|
let { config: r } = e;
|
|
@@ -1038,7 +1039,7 @@ function ht(e, t) {
|
|
|
1038
1039
|
let i = o.find((e) => e.name === n), u = o.find((e) => e.name === r);
|
|
1039
1040
|
if (!i || !u) return;
|
|
1040
1041
|
let d = a?.[t]?.[0] ?? i.color, f = a?.[t]?.[1] ?? u.color;
|
|
1041
|
-
|
|
1042
|
+
x({
|
|
1042
1043
|
lineA: M(i.plots),
|
|
1043
1044
|
lineB: M(u.plots),
|
|
1044
1045
|
smoothA: !!i.smooth,
|
|
@@ -1089,28 +1090,30 @@ function _t(e) {
|
|
|
1089
1090
|
})), L("g", { "data-layer": "title" }, d.join(""));
|
|
1090
1091
|
}
|
|
1091
1092
|
function vt(e) {
|
|
1092
|
-
|
|
1093
|
+
if (!e.svgTitle) return "";
|
|
1094
|
+
let t = [e.svgTitle];
|
|
1095
|
+
return L("desc", { "aria-hidden": "true" }, t.join(""));
|
|
1093
1096
|
}
|
|
1094
1097
|
function yt(e, t, n, r, i) {
|
|
1095
1098
|
return !n || n.value === null || n.value === void 0 || !Number.isFinite(Number(n.value)) || !I(e.config, "dataLabels.show", !0) || !I(e.config, `${i}.labels.show`, !1) ? !1 : !Object.hasOwn(t, "dataLabels") || t.dataLabels === !0 || e.selectedSerieIndex === r || e.selectedMinimapIndex === r;
|
|
1096
1099
|
}
|
|
1097
|
-
function bt(e, t, n,
|
|
1098
|
-
let { config:
|
|
1099
|
-
p: t.prefix || I(
|
|
1100
|
+
function bt(e, t, n, i) {
|
|
1101
|
+
let { config: a } = e, o = k(I(a, `${i}.labels.fontSize`, I(a, "chart.labels.fontSize", 12)), 12), s = I(a, `${i}.labels.color`, I(a, "chart.color", "#2A2A2A")), c = g({
|
|
1102
|
+
p: t.prefix || I(a, "chart.labels.prefix", ""),
|
|
1100
1103
|
v: n.value,
|
|
1101
|
-
s: t.suffix || I(
|
|
1102
|
-
r: I(
|
|
1104
|
+
s: t.suffix || I(a, "chart.labels.suffix", ""),
|
|
1105
|
+
r: I(a, `${i}.labels.rounding`, 0)
|
|
1106
|
+
}), l = Z(e) && Number.isFinite(Number(n.x)) ? `x: ${g({
|
|
1107
|
+
v: n.x,
|
|
1108
|
+
r: I(a, "chart.grid.labels.xAxis.rounding", 0)
|
|
1109
|
+
})}\ny: ${c}` : y(I(a, `${i}.labels.formatter`, null), n.value, c, {
|
|
1110
|
+
datapoint: n,
|
|
1111
|
+
serie: t
|
|
1103
1112
|
});
|
|
1104
|
-
return
|
|
1105
|
-
content:
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
})}\ny: ${s}` : b(I(i, `${r}.labels.formatter`, null), n.value, s, {
|
|
1109
|
-
datapoint: n,
|
|
1110
|
-
serie: t
|
|
1111
|
-
}),
|
|
1112
|
-
fontSize: a,
|
|
1113
|
-
fill: o,
|
|
1113
|
+
return r({
|
|
1114
|
+
content: l,
|
|
1115
|
+
fontSize: o,
|
|
1116
|
+
fill: s,
|
|
1114
1117
|
x: 0,
|
|
1115
1118
|
y: 0
|
|
1116
1119
|
});
|
|
@@ -1187,33 +1190,33 @@ function At(e, t, n, r, i, a) {
|
|
|
1187
1190
|
`color:${s.color || "#2A2A2A"}`,
|
|
1188
1191
|
`font-weight:${s.bold ? "bold" : "normal"}`
|
|
1189
1192
|
].join(";")
|
|
1190
|
-
},
|
|
1193
|
+
}, S(s.text)));
|
|
1191
1194
|
}
|
|
1192
1195
|
function jt(e, t) {
|
|
1193
|
-
let { config:
|
|
1194
|
-
if (!
|
|
1195
|
-
let
|
|
1196
|
-
return
|
|
1196
|
+
let { config: r, drawingArea: i } = e, a = M(I(r, "chart.highlightArea", []));
|
|
1197
|
+
if (!a.length) return "";
|
|
1198
|
+
let o = Math.max(1, ...t.map((e) => M(e.plots).length)), s = Tt(e), c = Et(e, t), l = [];
|
|
1199
|
+
return a.forEach((t, r) => {
|
|
1197
1200
|
if (!t?.show) return;
|
|
1198
|
-
let
|
|
1199
|
-
if (
|
|
1200
|
-
for (let
|
|
1201
|
-
if (
|
|
1202
|
-
let
|
|
1203
|
-
|
|
1201
|
+
let a = k(t.from, 0), u = Math.min(k(t.to, a), o - 1);
|
|
1202
|
+
if (u < a) return;
|
|
1203
|
+
for (let d = a; d <= u; d += 1) {
|
|
1204
|
+
if (d < s || d > c - 1) continue;
|
|
1205
|
+
let a = d - s;
|
|
1206
|
+
l.push(A("rect", {
|
|
1204
1207
|
"data-cy": "highlight-area",
|
|
1205
|
-
"data-key": `highlight_area_${
|
|
1206
|
-
x: Ot(e,
|
|
1207
|
-
y:
|
|
1208
|
-
width: kt(e,
|
|
1209
|
-
height: Math.max(1,
|
|
1210
|
-
fill:
|
|
1208
|
+
"data-key": `highlight_area_${r}_${d}`,
|
|
1209
|
+
x: Ot(e, a, o),
|
|
1210
|
+
y: i.top,
|
|
1211
|
+
width: kt(e, o),
|
|
1212
|
+
height: Math.max(1, i.height),
|
|
1213
|
+
fill: n(t.color, k(t.opacity, 20)),
|
|
1211
1214
|
"pointer-events": "none"
|
|
1212
1215
|
}));
|
|
1213
1216
|
}
|
|
1214
|
-
let
|
|
1215
|
-
|
|
1216
|
-
}),
|
|
1217
|
+
let d = Math.max(a, s);
|
|
1218
|
+
d <= Math.min(u, c - 1) && l.push(At(e, t, r, d - s, u - a + 1, o));
|
|
1219
|
+
}), l.length ? L("g", { "data-layer": "highlight-areas" }, l.join("")) : "";
|
|
1217
1220
|
}
|
|
1218
1221
|
function Mt(e, t) {
|
|
1219
1222
|
if (t == null) return null;
|
|
@@ -1238,64 +1241,64 @@ function Pt(e, t, n) {
|
|
|
1238
1241
|
};
|
|
1239
1242
|
}
|
|
1240
1243
|
function Ft(e) {
|
|
1241
|
-
let { config: t, drawingArea:
|
|
1244
|
+
let { config: t, drawingArea: r } = e;
|
|
1242
1245
|
if (Y(t)) return "";
|
|
1243
|
-
let
|
|
1244
|
-
if (!
|
|
1245
|
-
let
|
|
1246
|
-
return
|
|
1247
|
-
let
|
|
1248
|
-
if (!
|
|
1249
|
-
let
|
|
1250
|
-
if (
|
|
1251
|
-
x1:
|
|
1252
|
-
y1: f,
|
|
1253
|
-
x2: n.right,
|
|
1254
|
-
y2: f,
|
|
1255
|
-
stroke: s.stroke,
|
|
1256
|
-
"stroke-width": s.strokeWidth,
|
|
1257
|
-
"stroke-dasharray": s.strokeDasharray,
|
|
1258
|
-
"stroke-linecap": "round",
|
|
1259
|
-
"data-cy": "xy-annotation-y-top-line"
|
|
1260
|
-
})), h && g.push(A("line", {
|
|
1261
|
-
x1: n.left,
|
|
1246
|
+
let i = M(I(t, "chart.annotations", [])).filter((e) => e?.show && (e.yAxis?.yTop !== null || e.yAxis?.yBottom !== null) && (e.yAxis?.yTop !== void 0 || e.yAxis?.yBottom !== void 0));
|
|
1247
|
+
if (!i.length) return "";
|
|
1248
|
+
let a = [];
|
|
1249
|
+
return i.forEach((t, i) => {
|
|
1250
|
+
let o = t.yAxis ?? {}, s = o.label ?? {}, c = o.line ?? {}, l = o.area ?? {}, u = o.yTop, d = o.yBottom, f = u != null && d != null && u !== d, p = Mt(e, u), m = Mt(e, d), h = Number.isFinite(p), g = Number.isFinite(m);
|
|
1251
|
+
if (!h && !g) return;
|
|
1252
|
+
let _ = [];
|
|
1253
|
+
if (h && _.push(A("line", {
|
|
1254
|
+
x1: r.left,
|
|
1262
1255
|
y1: p,
|
|
1263
|
-
x2:
|
|
1256
|
+
x2: r.right,
|
|
1264
1257
|
y2: p,
|
|
1265
|
-
stroke:
|
|
1266
|
-
"stroke-width":
|
|
1267
|
-
"stroke-dasharray":
|
|
1258
|
+
stroke: c.stroke,
|
|
1259
|
+
"stroke-width": c.strokeWidth,
|
|
1260
|
+
"stroke-dasharray": c.strokeDasharray,
|
|
1261
|
+
"stroke-linecap": "round",
|
|
1262
|
+
"data-cy": "xy-annotation-y-top-line"
|
|
1263
|
+
})), g && _.push(A("line", {
|
|
1264
|
+
x1: r.left,
|
|
1265
|
+
y1: m,
|
|
1266
|
+
x2: r.right,
|
|
1267
|
+
y2: m,
|
|
1268
|
+
stroke: c.stroke,
|
|
1269
|
+
"stroke-width": c.strokeWidth,
|
|
1270
|
+
"stroke-dasharray": c.strokeDasharray,
|
|
1268
1271
|
"stroke-linecap": "round",
|
|
1269
1272
|
"data-cy": "xy-annotation-y-bottom-line"
|
|
1270
|
-
})),
|
|
1271
|
-
x:
|
|
1272
|
-
y: Math.min(
|
|
1273
|
-
width:
|
|
1274
|
-
height: Math.abs(
|
|
1275
|
-
fill:
|
|
1273
|
+
})), f && h && g && _.push(A("rect", {
|
|
1274
|
+
x: r.left,
|
|
1275
|
+
y: Math.min(p, m),
|
|
1276
|
+
width: r.width,
|
|
1277
|
+
height: Math.abs(p - m),
|
|
1278
|
+
fill: n(l.fill, k(l.opacity, 20)),
|
|
1276
1279
|
"data-cy": "xy-annotation-y-area",
|
|
1277
1280
|
"pointer-events": "none"
|
|
1278
|
-
})),
|
|
1279
|
-
let e =
|
|
1280
|
-
Number.isFinite(a.y) && Number.isFinite(i) && (
|
|
1281
|
+
})), s.text) {
|
|
1282
|
+
let e = s.padding ?? {}, t = h && g ? Math.min(p, m) : h ? p : m, n = (s.position === "start" ? r.left + k(e.left, 0) : r.right - k(e.right, 0)) + k(s.offsetX, 0), i = t - k(s.fontSize, 12) / 3 + k(s.offsetY, 0) - k(e.top, 0), a = Pt(s, n, i);
|
|
1283
|
+
Number.isFinite(a.y) && Number.isFinite(i) && (_.push(A("rect", {
|
|
1281
1284
|
class: "vue-ui-xy-annotation-label-box",
|
|
1282
1285
|
...a,
|
|
1283
1286
|
"data-cy": "xy-annotation-label-box"
|
|
1284
|
-
})),
|
|
1287
|
+
})), _.push(R(s.text, {
|
|
1285
1288
|
class: "vue-ui-xy-annotation-label",
|
|
1286
|
-
x:
|
|
1289
|
+
x: n,
|
|
1287
1290
|
y: i,
|
|
1288
|
-
"font-size":
|
|
1289
|
-
fill:
|
|
1290
|
-
"text-anchor":
|
|
1291
|
+
"font-size": s.fontSize,
|
|
1292
|
+
fill: s.color,
|
|
1293
|
+
"text-anchor": s.textAnchor,
|
|
1291
1294
|
"data-cy": "xy-annotation-label"
|
|
1292
1295
|
})));
|
|
1293
1296
|
}
|
|
1294
|
-
|
|
1297
|
+
a.push(L("g", {
|
|
1295
1298
|
"data-layer": "annotation",
|
|
1296
|
-
"data-key": `annotation_y_${
|
|
1297
|
-
},
|
|
1298
|
-
}),
|
|
1299
|
+
"data-key": `annotation_y_${i}`
|
|
1300
|
+
}, _.join("")));
|
|
1301
|
+
}), a.length ? L("g", { "data-layer": "annotations" }, a.join("")) : "";
|
|
1299
1302
|
}
|
|
1300
1303
|
function It(e, t) {
|
|
1301
1304
|
let n = e.additionalSvgContent;
|
|
@@ -1326,7 +1329,7 @@ async function Lt(e) {
|
|
|
1326
1329
|
}, i), o = a.series;
|
|
1327
1330
|
return `
|
|
1328
1331
|
<svg
|
|
1329
|
-
xmlns="${
|
|
1332
|
+
xmlns="${w}"
|
|
1330
1333
|
width="100%"
|
|
1331
1334
|
viewBox="0 0 ${n} ${r}"
|
|
1332
1335
|
role="img"
|