vue-data-ui 3.25.11 → 3.25.13
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-DLn-pcrh.js → Arrow-BhZDUeMp.js} +1 -1
- package/dist/{BaseDraggableDialog-Gm4Q30j0.js → BaseDraggableDialog-Ck6R5Q0K.js} +2 -2
- package/dist/{BaseIcon-D8R6_sKH.js → BaseIcon-Dlz7gfx0.js} +1 -1
- package/dist/{BaseLegendToggle-CXQrLjd-.js → BaseLegendToggle-DGG65LAR.js} +1 -1
- package/dist/{BaseZoomControls-BTzjVDPM.js → BaseZoomControls-BK0PxEa8.js} +2 -2
- package/dist/{ColorPicker-CUy15T72.js → ColorPicker-DMTwxvi_.js} +2 -2
- package/dist/{DataTable-oiM9uWrQ.js → DataTable-BD1eZ0zB.js} +2 -2
- package/dist/{HillActions-Dn8aKOVJ.js → HillActions-CiP2m7Nz.js} +1 -1
- package/dist/{Legend-X4kF4PvW.js → Legend-C0Ln0VNe.js} +2 -2
- package/dist/{NonSvgPenAndPaper-DFXjpRyl.js → NonSvgPenAndPaper-BjrMLISf.js} +3 -3
- package/dist/{PackageVersion-CEvZNFTz.js → PackageVersion-D5QkTJQU.js} +1 -1
- package/dist/{PenAndPaper-Cd3nItcO.js → PenAndPaper-XdUD8uB3.js} +3 -3
- package/dist/{Shape-CIqU-p2F.js → Shape-VCdxvFV9.js} +3 -3
- package/dist/{SlicerPreview-Ccss7Vsq.js → SlicerPreview-BJ4usfYd.js} +21 -21
- package/dist/{SparkTooltip-L3SliZbR.js → SparkTooltip-B1gRxPfb.js} +6 -6
- package/dist/{Title-CPHi-evi.js → Title-DeqmC-vN.js} +1 -1
- package/dist/{Tooltip-hhrkQ3Lk.js → Tooltip-DZ4a3XJQ.js} +1 -1
- package/dist/{UserOptions-qo_Tsqci.js → UserOptions-wFD9vo9g.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 +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-label.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-BR4imuKV.js → dom-to-png-DdqmzDdY.js} +1 -1
- package/dist/exposedLib-BBtjpydc.js +28 -0
- package/dist/{img-BkMKbWsI.js → img-W50sC9SC.js} +1 -1
- package/dist/{labelUtils-BXX2NzRe.js → labelUtils-Dvm-7rse.js} +1 -1
- package/dist/{lib-Dql7cqyA.js → lib-DOpaUOQx.js} +191 -88
- package/dist/{package-B10eQN5L.js → package-Cmcke8zR.js} +1 -1
- package/dist/{pdf-BSOs_GZz.js → pdf-zGbDDpCi.js} +1 -1
- package/dist/{render-common-CZ6-MONw.js → render-common-CG1wuHZY.js} +16 -16
- 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 +6 -0
- package/dist/{useConfig-D32D002m.js → useConfig-C2uy4ltq.js} +2 -0
- package/dist/{useNestedProp-Chvyfpl-.js → useNestedProp-Bux0f4iY.js} +1 -1
- package/dist/{useObjectBindings-Cd_WuYIn.js → useObjectBindings-CEuNiBIT.js} +1 -1
- package/dist/{usePrinter-hohanNCX.js → usePrinter-BBBooAGP.js} +2 -2
- package/dist/utils.js +13 -13
- package/dist/{vue-data-ui-zJ1rNxIN.js → vue-data-ui-BVzA0tEV.js} +70 -70
- package/dist/vue-data-ui.js +75 -75
- package/dist/{vue-ui-3d-bar-CKTAkCAN.js → vue-ui-3d-bar-Ckauu3d4.js} +536 -536
- package/dist/{vue-ui-accordion-DmkL8A59.js → vue-ui-accordion-yHZMJLaY.js} +4 -4
- package/dist/vue-ui-age-pyramid-BczIt1-U.js +1305 -0
- package/dist/{vue-ui-annotator-BLYRy--7.js → vue-ui-annotator-BGB6K6u0.js} +60 -60
- package/dist/{vue-ui-bullet-Ck398xn8.js → vue-ui-bullet-BoTsLccZ.js} +84 -84
- package/dist/{vue-ui-bump-DyA47yse.js → vue-ui-bump-B5ztSSQO.js} +105 -105
- package/dist/{vue-ui-candlestick-DCavjk1j.js → vue-ui-candlestick-BJtdA4Yu.js} +98 -98
- package/dist/vue-ui-carousel-table-D-3KSWok.js +467 -0
- package/dist/vue-ui-chestnut-W2l-W0_e.js +2016 -0
- package/dist/{vue-ui-chord-GgA7QFUH.js → vue-ui-chord-BFPQsMj8.js} +63 -63
- package/dist/{vue-ui-circle-pack-BUXTVdy3.js → vue-ui-circle-pack-BtPc1BR3.js} +50 -50
- package/dist/{vue-ui-cursor-CEejESe_.js → vue-ui-cursor-CpNOiwkt.js} +61 -61
- package/dist/{vue-ui-dag-C1c6scxC.js → vue-ui-dag-i-zPwLcN.js} +44 -44
- package/dist/{vue-ui-dashboard-BZBJM7dN.js → vue-ui-dashboard-DtaW9a2P.js} +70 -70
- package/dist/{vue-ui-digits-CsougDlU.js → vue-ui-digits-BIlec9af.js} +4 -4
- package/dist/{vue-ui-donut-lBgSYKgO.js → vue-ui-donut-Bgf-n95J.js} +551 -551
- package/dist/{vue-ui-donut-Be9jKelz.js → vue-ui-donut-CJlBEyxu.js} +203 -203
- package/dist/vue-ui-donut-evolution-C0BKntfL.js +1552 -0
- package/dist/{vue-ui-dumbbell-CwmA5x9G.js → vue-ui-dumbbell-C112YLkC.js} +87 -87
- package/dist/{vue-ui-flow-CRhh8SSN.js → vue-ui-flow-j4bDg9Zd.js} +99 -99
- package/dist/{vue-ui-funnel-DH1hW8Gw.js → vue-ui-funnel-CVHpfBCW.js} +40 -40
- package/dist/vue-ui-galaxy-ChGpUWh8.js +1097 -0
- package/dist/{vue-ui-gauge-CV4-Rn7K.js → vue-ui-gauge-Cp00vXfG.js} +190 -190
- package/dist/{vue-ui-geo-BocLrguL.js → vue-ui-geo-B4hDk5NO.js} +12 -12
- package/dist/{vue-ui-gizmo-6wKlI5PC.js → vue-ui-gizmo-D6nCCsS4.js} +54 -54
- package/dist/vue-ui-heatmap-scVJc1cw.js +1606 -0
- package/dist/{vue-ui-hill-CeIZZFf5.js → vue-ui-hill-DnYUHGAK.js} +21 -21
- package/dist/vue-ui-history-plot-C5qAMaaW.js +1710 -0
- package/dist/{vue-ui-horizontal-bar-D2aw-8tx.js → vue-ui-horizontal-bar-nEG4uvpv.js} +85 -85
- package/dist/{vue-ui-kpi-BQ967gzv.js → vue-ui-kpi-DOxId6xg.js} +12 -12
- package/dist/{vue-ui-label-Cs4ZlAqr.js → vue-ui-label-BDKY7BI7.js} +4 -4
- package/dist/{vue-ui-mini-loader-wGeACd-Y.js → vue-ui-mini-loader-BknVs9VJ.js} +3 -3
- package/dist/vue-ui-molecule-_x232mMu.js +941 -0
- package/dist/vue-ui-mood-radar-D-F4855V.js +1111 -0
- package/dist/{vue-ui-nested-donuts-DT2zkLx2.js → vue-ui-nested-donuts-0E5IllFW.js} +481 -481
- package/dist/vue-ui-onion-Eip0S1H7.js +1247 -0
- package/dist/vue-ui-parallel-coordinate-plot-DO0sQdJw.js +1444 -0
- package/dist/vue-ui-quadrant-CA0ClWfL.js +1979 -0
- package/dist/{vue-ui-quick-chart-CkPu6GMh.js → vue-ui-quick-chart-D-VuAoll.js} +169 -169
- package/dist/vue-ui-radar-BTD7Y0Ps.js +1386 -0
- package/dist/vue-ui-rating-C_Qj6gnP.js +359 -0
- package/dist/vue-ui-relation-circle-CcxLBVFV.js +905 -0
- package/dist/vue-ui-ridgeline-BZrzbbhb.js +1630 -0
- package/dist/{vue-ui-rings-CBtHZ5Pp.js → vue-ui-rings-CO48GOP2.js} +78 -78
- package/dist/{vue-ui-scatter-DzePsQEe.js → vue-ui-scatter-DrxUgZbQ.js} +136 -136
- package/dist/{vue-ui-skeleton-C347nFnE.js → vue-ui-skeleton-CeKjW4MX.js} +510 -510
- package/dist/{vue-ui-smiley-BIjAIpJ9.js → vue-ui-smiley-BvRwx69s.js} +6 -6
- package/dist/{vue-ui-spark-trend-Di_7Da43.js → vue-ui-spark-trend-DnujGRyt.js} +96 -96
- package/dist/{vue-ui-sparkbar-CbJ-fKc6.js → vue-ui-sparkbar-Cd_uhYGD.js} +113 -113
- package/dist/vue-ui-sparkgauge-hT31YEtt.js +268 -0
- package/dist/vue-ui-sparkhistogram-PKlTYhKA.js +589 -0
- package/dist/vue-ui-sparkline-BSu1uRvP.js +1610 -0
- package/dist/{vue-ui-sparkstackbar-IM_l98X-.js → vue-ui-sparkstackbar-R0ij2vi1.js} +183 -183
- package/dist/vue-ui-stackbar-BrzzkGFk.js +2369 -0
- package/dist/vue-ui-stackline-zEX3gR3y.js +2483 -0
- package/dist/{vue-ui-strip-plot-CVV0t6mb.js → vue-ui-strip-plot-DR3N56rS.js} +253 -253
- package/dist/{vue-ui-table-nAGCIZKg.js → vue-ui-table-Bg6BeLrf.js} +117 -117
- package/dist/{vue-ui-table-heatmap-D5F5bLx5.js → vue-ui-table-heatmap-C1b1Pcp8.js} +95 -95
- package/dist/vue-ui-table-sparkline-CkVXyequ.js +738 -0
- package/dist/{vue-ui-thermometer-Ccr2ZnzI.js → vue-ui-thermometer-CqkaMF7Z.js} +23 -23
- package/dist/{vue-ui-timer-DkW-P6EG.js → vue-ui-timer-CgJvNwBv.js} +13 -13
- package/dist/{vue-ui-tiremarks-Bf2anKLr.js → vue-ui-tiremarks-B078YJ9M.js} +30 -30
- package/dist/{vue-ui-treemap-Wy61KlkN.js → vue-ui-treemap-Cfjf8mDl.js} +77 -77
- package/dist/vue-ui-waffle-BZIcPa0l.js +1633 -0
- package/dist/{vue-ui-wheel-DGhu_B8n.js → vue-ui-wheel-CPTm8AHn.js} +185 -185
- package/dist/{vue-ui-word-cloud-CdRMst8U.js → vue-ui-word-cloud-DnGblUwj.js} +46 -46
- package/dist/{vue-ui-world-Bc4hMzzB.js → vue-ui-world-KkcpeKqp.js} +133 -133
- package/dist/vue-ui-xy-C6lVqZnx.js +5367 -0
- package/dist/{vue-ui-xy-CbgQs7yW.js → vue-ui-xy-ClCV7xA5.js} +169 -169
- package/dist/{vue-ui-xy-canvas-R2xbgDOy.js → vue-ui-xy-canvas-BlpCbXKR.js} +435 -435
- package/package.json +1 -1
- package/dist/exposedLib-CG3aXJ-v.js +0 -28
- package/dist/vue-ui-age-pyramid-SpPactMh.js +0 -1305
- package/dist/vue-ui-carousel-table-DCnVD0BJ.js +0 -467
- package/dist/vue-ui-chestnut-BDBdizBp.js +0 -2016
- package/dist/vue-ui-donut-evolution-vLMhwz4K.js +0 -1552
- package/dist/vue-ui-galaxy-CiqILfxR.js +0 -1097
- package/dist/vue-ui-heatmap-DGXXRsr4.js +0 -1606
- package/dist/vue-ui-history-plot-CporPpg9.js +0 -1710
- package/dist/vue-ui-molecule-CvDC9Ht5.js +0 -941
- package/dist/vue-ui-mood-radar-BK1va5-H.js +0 -1111
- package/dist/vue-ui-onion-DPMikBzZ.js +0 -1247
- package/dist/vue-ui-parallel-coordinate-plot-DMPxUL3p.js +0 -1444
- package/dist/vue-ui-quadrant-DFkIeJXo.js +0 -1979
- package/dist/vue-ui-radar-B3OOLJal.js +0 -1386
- package/dist/vue-ui-rating-Criq0ofQ.js +0 -359
- package/dist/vue-ui-relation-circle-I6e5UxgY.js +0 -905
- package/dist/vue-ui-ridgeline-FmmdCdy9.js +0 -1630
- package/dist/vue-ui-sparkgauge-Bb9-yFTb.js +0 -268
- package/dist/vue-ui-sparkhistogram-kbbbDVul.js +0 -589
- package/dist/vue-ui-sparkline-BF0Fdo6v.js +0 -1587
- package/dist/vue-ui-stackbar-CaEXVeo5.js +0 -2369
- package/dist/vue-ui-stackline-MgvhcBfm.js +0 -2483
- package/dist/vue-ui-table-sparkline-Bf2hjBwq.js +0 -738
- package/dist/vue-ui-waffle-CkIFp-AN.js +0 -1633
- package/dist/vue-ui-xy-DybWfQrI.js +0 -5298
|
@@ -1,40 +1,40 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t as
|
|
3
|
-
import { t as
|
|
1
|
+
import { $ as e, $t as t, A as n, Ct as r, G as i, I as a, J as o, Jt as s, Kt as c, L as l, N as u, P as d, S as f, U as p, V as m, Vt as h, W as g, X as _, _ as v, c as y, ht as b, i as x, k as S, l as C, o as ee, ot as te, qt as w, t as T, tn as E, v as D } from "./lib-DOpaUOQx.js";
|
|
2
|
+
import { t as O } from "./useTimeLabels-d2f-W1L4.js";
|
|
3
|
+
import { t as ne } from "./useConfig-C2uy4ltq.js";
|
|
4
4
|
import { t as re } 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 ie, m as ae, p as P, u as F, v as I } from "./render-common-
|
|
5
|
+
import { _ as k, d as A, f as j, g as M, h as N, l as ie, m as ae, p as P, u as F, v as I } from "./render-common-CG1wuHZY.js";
|
|
6
6
|
//#region src/svg/vue-ui-xy/create.js
|
|
7
|
-
var { vue_ui_xy: L } =
|
|
8
|
-
function oe({ config: e = {}, dataset:
|
|
9
|
-
let
|
|
10
|
-
userConfig:
|
|
7
|
+
var { vue_ui_xy: L } = ne();
|
|
8
|
+
function oe({ config: e = {}, dataset: n = [] } = {}) {
|
|
9
|
+
let i = e ?? {}, a = E({
|
|
10
|
+
userConfig: i,
|
|
11
11
|
defaultConfig: L
|
|
12
12
|
});
|
|
13
|
-
|
|
13
|
+
r(i, "chart.highlightArea") && (Array.isArray(i.chart.highlightArea) ? a.chart.highlightArea = i.chart.highlightArea.map((e) => E({
|
|
14
14
|
defaultConfig: L.chart.highlightArea,
|
|
15
15
|
userConfig: e
|
|
16
|
-
})) :
|
|
16
|
+
})) : a.chart.highlightArea = [E({
|
|
17
17
|
defaultConfig: L.chart.highlightArea,
|
|
18
|
-
userConfig:
|
|
19
|
-
})]),
|
|
18
|
+
userConfig: i.chart.highlightArea
|
|
19
|
+
})]), r(i, "chart.annotations") && Array.isArray(i.chart.annotations) && i.chart.annotations.length ? a.chart.annotations = i.chart.annotations.map((e) => E({
|
|
20
20
|
defaultConfig: L.chart.annotations[0],
|
|
21
21
|
userConfig: e
|
|
22
|
-
})) :
|
|
23
|
-
let
|
|
24
|
-
if (!
|
|
25
|
-
...
|
|
26
|
-
customPalette:
|
|
22
|
+
})) : a.chart.annotations = [], r(i, "chart.grid.position") && i.chart.grid.position === "start" && n.some((e) => e.type === "bar") && (a.chart.grid.position = "middle");
|
|
23
|
+
let o = a.theme;
|
|
24
|
+
if (!o) return {
|
|
25
|
+
...a,
|
|
26
|
+
customPalette: a.customPalette?.length ? a.customPalette : h
|
|
27
27
|
};
|
|
28
|
-
let
|
|
29
|
-
userConfig: re[
|
|
30
|
-
defaultConfig: r
|
|
31
|
-
}), o = _({
|
|
32
|
-
userConfig: n,
|
|
28
|
+
let s = E({
|
|
29
|
+
userConfig: re[o] || {},
|
|
33
30
|
defaultConfig: a
|
|
31
|
+
}), c = E({
|
|
32
|
+
userConfig: i,
|
|
33
|
+
defaultConfig: s
|
|
34
34
|
});
|
|
35
35
|
return {
|
|
36
|
-
...
|
|
37
|
-
customPalette:
|
|
36
|
+
...c,
|
|
37
|
+
customPalette: c.customPalette?.length ? c.customPalette : t[o] || h
|
|
38
38
|
};
|
|
39
39
|
}
|
|
40
40
|
function R(e) {
|
|
@@ -61,40 +61,40 @@ function ue({ xValue: e, xScale: t, drawingArea: n, config: r }) {
|
|
|
61
61
|
return n.left + n.width * a;
|
|
62
62
|
}
|
|
63
63
|
function de({ dataset: e = [], config: t = {}, width: n = 1e3, height: r = 600, selectedXIndex: i, additionalSvgContent: a = "", svgTitle: o = "" } = {}) {
|
|
64
|
-
let
|
|
64
|
+
let s = oe({
|
|
65
65
|
config: t,
|
|
66
66
|
dataset: e
|
|
67
|
-
}),
|
|
68
|
-
top:
|
|
69
|
-
left:
|
|
70
|
-
right: n -
|
|
71
|
-
bottom: r -
|
|
67
|
+
}), c = {
|
|
68
|
+
top: s.chart.padding.top,
|
|
69
|
+
left: s.chart.padding.left,
|
|
70
|
+
right: n - s.chart.padding.right,
|
|
71
|
+
bottom: r - s.chart.padding.bottom
|
|
72
72
|
};
|
|
73
|
-
|
|
74
|
-
let
|
|
73
|
+
c.width = c.right - c.left, c.height = c.bottom - c.top;
|
|
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), d = Math.max(1, ...l), p = v(u, d, 6), m = e.some((e) => Array.isArray(e.series) ? e.series.some(R) : !1), g = m ? le({
|
|
75
75
|
dataset: e,
|
|
76
|
-
config:
|
|
77
|
-
}) : null, _ = Math.max(0, ...e.map((e) => e.series?.length || 0)), y = (e) => _ <= 1 ?
|
|
76
|
+
config: s
|
|
77
|
+
}) : null, _ = Math.max(0, ...e.map((e) => e.series?.length || 0)), y = (e) => _ <= 1 ? c.left + c.width / 2 : c.left + e / (_ - 1) * c.width, b = (e, t) => m ? R(e) ? ue({
|
|
78
78
|
xValue: e.x,
|
|
79
79
|
xScale: g,
|
|
80
|
-
drawingArea:
|
|
81
|
-
config:
|
|
80
|
+
drawingArea: c,
|
|
81
|
+
config: s
|
|
82
82
|
}) : null : y(t), x = (e) => {
|
|
83
|
-
let t = (Number(e) -
|
|
84
|
-
return
|
|
85
|
-
}, S = Array.isArray(
|
|
83
|
+
let t = (Number(e) - p.min) / (p.max - p.min || 1);
|
|
84
|
+
return c.bottom - t * c.height;
|
|
85
|
+
}, S = Array.isArray(s.customPalette) ? s.customPalette : [], C = S.length ? S : h;
|
|
86
86
|
return {
|
|
87
87
|
width: n,
|
|
88
88
|
height: r,
|
|
89
89
|
selectedXIndex: i,
|
|
90
90
|
dataset: e,
|
|
91
|
-
config:
|
|
92
|
-
drawingArea:
|
|
93
|
-
scale:
|
|
91
|
+
config: s,
|
|
92
|
+
drawingArea: c,
|
|
93
|
+
scale: p,
|
|
94
94
|
xScale: g,
|
|
95
|
-
isContinuous:
|
|
95
|
+
isContinuous: m,
|
|
96
96
|
series: e.map((e, t) => {
|
|
97
|
-
let n = (e.color ?
|
|
97
|
+
let n = (e.color ? f(e.color) : "") || C[t % C.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
100
|
x: b(e, t),
|
|
@@ -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 ye =
|
|
186
|
+
var ye = _();
|
|
187
187
|
function W(e) {
|
|
188
188
|
return ye;
|
|
189
189
|
}
|
|
@@ -208,7 +208,7 @@ function we(e, t, n) {
|
|
|
208
208
|
}
|
|
209
209
|
function Te(e, t, n) {
|
|
210
210
|
let { config: r } = e;
|
|
211
|
-
return P(r, "line.area.useGradient", !1) ? `url(#${it(e, n)})` :
|
|
211
|
+
return P(r, "line.area.useGradient", !1) ? `url(#${it(e, n)})` : w(t.color, k(P(r, "line.area.opacity", 30), 30));
|
|
212
212
|
}
|
|
213
213
|
function K(e, t, n, r) {
|
|
214
214
|
return P(e.config, "bar.useGradient", !1) ? r >= 0 ? `url(#${G(e, n, "pos")})` : `url(#${G(e, n, "neg")})` : t.color;
|
|
@@ -223,15 +223,15 @@ function Ee(e, t) {
|
|
|
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": s(f(t.color), .02)
|
|
231
231
|
}),
|
|
232
232
|
A("stop", {
|
|
233
233
|
offset: "100%",
|
|
234
|
-
"stop-color":
|
|
234
|
+
"stop-color": s(f(t.color), .05)
|
|
235
235
|
})
|
|
236
236
|
].join(""))), r.push(F("linearGradient", {
|
|
237
237
|
id: G(e, n, "neg"),
|
|
@@ -240,20 +240,20 @@ function Ee(e, t) {
|
|
|
240
240
|
}, [
|
|
241
241
|
A("stop", {
|
|
242
242
|
offset: "0%",
|
|
243
|
-
"stop-color":
|
|
243
|
+
"stop-color": s(f(t.color), .05)
|
|
244
244
|
}),
|
|
245
245
|
A("stop", {
|
|
246
246
|
offset: "38%",
|
|
247
|
-
"stop-color":
|
|
247
|
+
"stop-color": s(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
|
-
}), t.filter((e) => e.type === "line").forEach((t,
|
|
254
|
+
}), t.filter((e) => e.type === "line").forEach((t, i) => {
|
|
255
255
|
P(n, "line.useGradient", !1) && r.push(F("radialGradient", {
|
|
256
|
-
id: be(e,
|
|
256
|
+
id: be(e, i),
|
|
257
257
|
cx: "50%",
|
|
258
258
|
cy: "50%",
|
|
259
259
|
r: "50%",
|
|
@@ -261,16 +261,16 @@ function Ee(e, t) {
|
|
|
261
261
|
fy: "50%"
|
|
262
262
|
}, [A("stop", {
|
|
263
263
|
offset: "0%",
|
|
264
|
-
"stop-color":
|
|
264
|
+
"stop-color": s(f(t.color), .05)
|
|
265
265
|
}), A("stop", {
|
|
266
266
|
offset: "100%",
|
|
267
|
-
"stop-color":
|
|
267
|
+
"stop-color": f(t.color)
|
|
268
268
|
})].join(""))), t.temperatureColors && !t.isFlatTemperatureLine && r.push(F("linearGradient", {
|
|
269
|
-
id: xe(e,
|
|
269
|
+
id: xe(e, i),
|
|
270
270
|
gradientTransform: "rotate(90)"
|
|
271
271
|
}, t.temperatureColors.map((e, n) => A("stop", {
|
|
272
|
-
offset:
|
|
273
|
-
"stop-color":
|
|
272
|
+
offset: c(n, t.temperatureColors.length),
|
|
273
|
+
"stop-color": f(e)
|
|
274
274
|
})).join("")));
|
|
275
275
|
}), t.filter((e) => e.type === "plot").forEach((t, i) => {
|
|
276
276
|
P(n, "plot.useGradient", !1) && r.push(F("radialGradient", {
|
|
@@ -282,10 +282,10 @@ function Ee(e, t) {
|
|
|
282
282
|
fy: "50%"
|
|
283
283
|
}, [A("stop", {
|
|
284
284
|
offset: "0%",
|
|
285
|
-
"stop-color":
|
|
285
|
+
"stop-color": s(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 ? F("defs", { "data-layer": "gradients" }, r.join("")) : "";
|
|
291
291
|
}
|
|
@@ -307,14 +307,14 @@ function q(e) {
|
|
|
307
307
|
function J(e) {
|
|
308
308
|
return P(e, "chart.grid.labels.yAxis.position", "left") === "right";
|
|
309
309
|
}
|
|
310
|
-
function Oe(
|
|
311
|
-
let
|
|
312
|
-
p: P(
|
|
313
|
-
v:
|
|
314
|
-
s: P(
|
|
315
|
-
r: P(
|
|
310
|
+
function Oe(t, n) {
|
|
311
|
+
let r = e({
|
|
312
|
+
p: P(n, "chart.labels.prefix", ""),
|
|
313
|
+
v: t,
|
|
314
|
+
s: P(n, "chart.labels.suffix", ""),
|
|
315
|
+
r: P(n, "chart.grid.labels.yAxis.rounding", 0)
|
|
316
316
|
});
|
|
317
|
-
return
|
|
317
|
+
return x(P(n, "chart.grid.labels.yAxis.formatter", null), t, r, n);
|
|
318
318
|
}
|
|
319
319
|
function Y(e) {
|
|
320
320
|
return !!P(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 ke(e, t, n, r) {
|
|
326
|
-
return P(e, "chart.grid.labels.yAxis.useNiceScale", !0) ? v(t, n, r) :
|
|
326
|
+
return P(e, "chart.grid.labels.yAxis.useNiceScale", !0) ? v(t, n, r) : D(t, n, r);
|
|
327
327
|
}
|
|
328
328
|
function Ae(e, t) {
|
|
329
329
|
let n = M(t.plots).map((e) => Number(e.value)).filter(Number.isFinite), r = P(e, "chart.grid.labels.yAxis.scaleMin", null), i = P(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,39 +361,39 @@ function Me(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 = P(n, "chart.grid.labels.axis.xLabel", ""), m = P(n, "chart.grid.labels.xAxisLabels.show", !0) ? o.xAxis * 2 : 0, h = (p ? o.yAxis * 1.5 : 0) + m + o.xAxis, g = _t(n) + k(P(n, "chart.labels.fontSize", 12), 12) * 1.1, _ = k(P(n, "chart.padding.top", 12), 12), v = k(P(n, "chart.padding.right", 12), 12), y = k(P(n, "chart.padding.bottom", 12), 12), b = k(P(n, "chart.padding.left", 12), 12), x = k(P(n, "chart.grid.labels.axis.xLabelOffsetY", 0), 0), S = k(P(n, "chart.grid.labels.yAxis.crosshairSize", 0), 0), C = s.left,
|
|
364
|
+
}, t) : { height: 0 }, d = l && c === "top" ? u.height : 0, f = l && c !== "top" ? u.height : 0, p = P(n, "chart.grid.labels.axis.xLabel", ""), m = P(n, "chart.grid.labels.xAxisLabels.show", !0) ? o.xAxis * 2 : 0, h = (p ? o.yAxis * 1.5 : 0) + m + o.xAxis, g = _t(n) + k(P(n, "chart.labels.fontSize", 12), 12) * 1.1, _ = k(P(n, "chart.padding.top", 12), 12), v = k(P(n, "chart.padding.right", 12), 12), y = k(P(n, "chart.padding.bottom", 12), 12), b = k(P(n, "chart.padding.left", 12), 12), x = k(P(n, "chart.grid.labels.axis.xLabelOffsetY", 0), 0), S = k(P(n, "chart.grid.labels.yAxis.crosshairSize", 0), 0), C = s.left, te = s.right, w = i - C - te - 6 - b - v, T = {
|
|
365
365
|
top: _ + g + d,
|
|
366
|
-
right: C + (J(n) ? 0 : S) + b +
|
|
366
|
+
right: C + (J(n) ? 0 : S) + b + w,
|
|
367
367
|
bottom: a - h - y - x - f,
|
|
368
368
|
left: C + (J(n) ? 0 : S) + b,
|
|
369
|
-
width: Math.max(1,
|
|
369
|
+
width: Math.max(1, w),
|
|
370
370
|
height: 1,
|
|
371
371
|
scaleLabelX: C,
|
|
372
|
-
rightScaleLabelX:
|
|
372
|
+
rightScaleLabelX: te,
|
|
373
373
|
scaleLabelsOffset: s.scaleLabelsOffset,
|
|
374
374
|
yAxisLabelWidth: s.yAxisLabelWidth,
|
|
375
375
|
individualOffsetX: 36
|
|
376
376
|
};
|
|
377
|
-
|
|
378
|
-
let
|
|
377
|
+
T.height = Math.max(1, T.bottom - T.top);
|
|
378
|
+
let E = Y(n), D = E ? ee(t) : t, O = Math.max(1, D.length), ne = E ? k(P(n, "chart.grid.labels.yAxis.gap", 12), 12) : 0, re = ne * Math.max(0, O - 1), A = Math.max(1, T.height - re), j = z(n), N = he(n, t), ie = Math.max(1, ...t.map((e) => M(e.plots).length));
|
|
379
379
|
function ae(t, n) {
|
|
380
380
|
if (Z(e)) {
|
|
381
381
|
let n = Number(t.rawX);
|
|
382
382
|
return Number.isFinite(n) ? Ge({
|
|
383
383
|
...e,
|
|
384
|
-
drawingArea:
|
|
384
|
+
drawingArea: T
|
|
385
385
|
}, n) : null;
|
|
386
386
|
}
|
|
387
387
|
return Q({
|
|
388
388
|
...e,
|
|
389
|
-
drawingArea:
|
|
389
|
+
drawingArea: T
|
|
390
390
|
}, t.index ?? n, ie);
|
|
391
391
|
}
|
|
392
392
|
let F = t.map((e, t) => {
|
|
393
|
-
let i = e.id !== void 0 && e.id !== null ?
|
|
393
|
+
let i = e.id !== void 0 && e.id !== null ? D.find((t) => t.id === e.id) ?? D[t] ?? e : D[t] ?? e, a = ge(n, e, N, r, j, E), o = k(i.stackIndex, t), s = k(i.stackRatio, 1 / O), c = k(i.cumulatedStackRatio, s * (o + 1)), l = O - 1 - o, u = E ? 1 - c : 0, d = E ? A * u + ne * l : 0, f = E ? A * s : T.height;
|
|
394
394
|
function p(e) {
|
|
395
395
|
let t = (e - a.min) / (a.max - a.min || 1);
|
|
396
|
-
return
|
|
396
|
+
return T.bottom - d - t * f;
|
|
397
397
|
}
|
|
398
398
|
let m = p(0);
|
|
399
399
|
return {
|
|
@@ -420,7 +420,7 @@ function Me(e, t) {
|
|
|
420
420
|
});
|
|
421
421
|
return {
|
|
422
422
|
...e,
|
|
423
|
-
drawingArea:
|
|
423
|
+
drawingArea: T,
|
|
424
424
|
series: F,
|
|
425
425
|
__scaleGroups: N,
|
|
426
426
|
__useIndividualScale: j
|
|
@@ -707,15 +707,15 @@ function Ge(e, t) {
|
|
|
707
707
|
let { drawingArea: n, config: r } = e, i = We(e), a = (Number(t) - i.min) / (i.max - i.min || 1), o = P(r, "chart.grid.labels.xAxis.reverse", !1) ? 1 - a : a;
|
|
708
708
|
return n.left + n.width * o;
|
|
709
709
|
}
|
|
710
|
-
function Ke(
|
|
711
|
-
let { config:
|
|
712
|
-
v:
|
|
713
|
-
p: P(
|
|
714
|
-
s: P(
|
|
715
|
-
r: P(
|
|
710
|
+
function Ke(t, n, r) {
|
|
711
|
+
let { config: i } = t, a = e({
|
|
712
|
+
v: n,
|
|
713
|
+
p: P(i, "chart.labels.prefix", ""),
|
|
714
|
+
s: P(i, "chart.labels.suffix", ""),
|
|
715
|
+
r: P(i, "chart.grid.labels.xAxis.rounding", 0)
|
|
716
716
|
});
|
|
717
|
-
return
|
|
718
|
-
datapoint:
|
|
717
|
+
return x(P(i, "chart.grid.labels.xAxis.formatter", null), n, a, {
|
|
718
|
+
datapoint: n,
|
|
719
719
|
seriesIndex: null
|
|
720
720
|
});
|
|
721
721
|
}
|
|
@@ -736,7 +736,7 @@ function Q(e, t, n) {
|
|
|
736
736
|
}
|
|
737
737
|
async function Je(e, t) {
|
|
738
738
|
let { config: n } = e, r = Math.max(0, ...t.map((e) => M(e.plots).length));
|
|
739
|
-
return await
|
|
739
|
+
return await O({
|
|
740
740
|
values: P(n, "chart.grid.labels.xAxisLabels.values", []),
|
|
741
741
|
maxDatapoints: r,
|
|
742
742
|
formatter: P(n, "chart.grid.labels.xAxisLabels.datetimeFormatter", null),
|
|
@@ -745,22 +745,22 @@ async function Je(e, t) {
|
|
|
745
745
|
});
|
|
746
746
|
}
|
|
747
747
|
async function Ye(e, t) {
|
|
748
|
-
let { config: n } = e, r = P(n, "chart.grid.labels.xAxisLabels", {}), i = M(P(n, "chart.grid.labels.xAxisLabels.values", [])), a = Math.max(0, ...t.map((e) => M(e.plots).length)), o = e.slotStartIndex !== void 0 || e.startAbs !== void 0, s = e.slotEndIndex !== void 0 || e.endAbs !== void 0, c = o || s, l = Math.max(0, Math.floor(k(e.slotStartIndex ?? e.startAbs, 0))), u = Math.max(l, Math.floor(k(e.slotEndIndex ?? e.endAbs, l + a))), d = await Je(e, t), f = c ? Math.max(a, i.length, u) : a, p = await
|
|
748
|
+
let { config: n } = e, r = P(n, "chart.grid.labels.xAxisLabels", {}), i = M(P(n, "chart.grid.labels.xAxisLabels.values", [])), a = Math.max(0, ...t.map((e) => M(e.plots).length)), o = e.slotStartIndex !== void 0 || e.startAbs !== void 0, s = e.slotEndIndex !== void 0 || e.endAbs !== void 0, c = o || s, l = Math.max(0, Math.floor(k(e.slotStartIndex ?? e.startAbs, 0))), u = Math.max(l, Math.floor(k(e.slotEndIndex ?? e.endAbs, l + a))), d = await Je(e, t), f = c ? Math.max(a, i.length, u) : a, p = await O({
|
|
749
749
|
values: i,
|
|
750
750
|
maxDatapoints: f,
|
|
751
751
|
formatter: P(n, "chart.grid.labels.xAxisLabels.datetimeFormatter", null),
|
|
752
752
|
start: 0,
|
|
753
753
|
end: f
|
|
754
|
-
}), m = d.map((e) => e?.text ?? ""), h = p.map((e) => e?.text ?? ""), g = Math.max(1, Math.floor(k(r.modulo, 1))), _ = p.length || f, v =
|
|
754
|
+
}), m = d.map((e) => e?.text ?? ""), h = p.map((e) => e?.text ?? ""), g = Math.max(1, Math.floor(k(r.modulo, 1))), _ = p.length || f, v = b({
|
|
755
755
|
configuredModulo: g,
|
|
756
756
|
visibleTexts: m,
|
|
757
757
|
allTexts: h,
|
|
758
758
|
startAbs: l,
|
|
759
759
|
isZoomed: c && _ > 0 && (l > 0 || u < _)
|
|
760
|
-
}),
|
|
761
|
-
if (!r.showFirstAndLast || r.showOnlyFirstAndLast || !
|
|
762
|
-
let S =
|
|
763
|
-
return
|
|
760
|
+
}), x = y(!!r.showOnlyFirstAndLast, !!r.showOnlyAtModulo, v, m, h, l, e.selectedXIndex ?? null, m.length);
|
|
761
|
+
if (!r.showFirstAndLast || r.showOnlyFirstAndLast || !x.length) return x;
|
|
762
|
+
let S = x.length - 1;
|
|
763
|
+
return x.map((e, t) => t !== 0 && t !== S ? e : {
|
|
764
764
|
...e,
|
|
765
765
|
text: m[t] ?? ""
|
|
766
766
|
});
|
|
@@ -773,44 +773,44 @@ function Ze(e, t, n, r) {
|
|
|
773
773
|
}
|
|
774
774
|
function Qe(e) {
|
|
775
775
|
let t = e.userConfig ?? e.sourceConfig ?? e.props?.config ?? {};
|
|
776
|
-
return
|
|
776
|
+
return r(t, "chart.grid.labels.xAxisLabels.rotation") ? k(P(e.config, "chart.grid.labels.xAxisLabels.rotation", 0), 0) : P(e.config, "chart.grid.labels.xAxisLabels.autoRotate.enable", !1) ? k(P(e.config, "chart.grid.labels.xAxisLabels.autoRotate.angle", 0), 0) : k(P(e.config, "chart.grid.labels.xAxisLabels.rotation", 0), 0);
|
|
777
777
|
}
|
|
778
778
|
async function $e(e, t) {
|
|
779
|
-
let { config:
|
|
780
|
-
if (!t[0] || !P(
|
|
781
|
-
P(
|
|
782
|
-
let
|
|
779
|
+
let { config: n, drawingArea: r } = e;
|
|
780
|
+
if (!t[0] || !P(n, "chart.grid.labels.xAxisLabels.show", !0)) return "";
|
|
781
|
+
P(n, "chart.grid.labels.xAxisLabels", {});
|
|
782
|
+
let i = k(P(n, "chart.grid.labels.xAxisLabels.fontSize", 12), 12), a = P(n, "chart.grid.labels.xAxisLabels.color", P(n, "chart.grid.labels.color", "#2A2A2A")), s = Qe(e), c = Math.max(1, t[0].plots.length), l = await Xe(e, t), u = s > 0 ? "start" : s < 0 ? "end" : "middle", d = l.map((t, l) => {
|
|
783
783
|
let d = typeof t == "string" ? t : t?.text;
|
|
784
784
|
if (!d) return "";
|
|
785
|
-
let f = `translate(${Ze(e, t, l, c)}, ${
|
|
785
|
+
let f = `translate(${Ze(e, t, l, c)}, ${r.bottom + i * 1.5}), rotate(${s})`;
|
|
786
786
|
return String(d).includes("\n") ? F("text", {
|
|
787
787
|
class: "vue-data-ui-time-label",
|
|
788
788
|
"data-cy": "time-label",
|
|
789
789
|
"text-anchor": u,
|
|
790
|
-
"font-size":
|
|
791
|
-
stroke: P(
|
|
790
|
+
"font-size": i,
|
|
791
|
+
stroke: P(n, "chart.backgroundColor", "#FFFFFF"),
|
|
792
792
|
"stroke-linecap": "round",
|
|
793
793
|
"stroke-linejoin": "round",
|
|
794
794
|
"paint-order": "stroke fill",
|
|
795
|
-
fill:
|
|
795
|
+
fill: a,
|
|
796
796
|
transform: f
|
|
797
|
-
},
|
|
797
|
+
}, o({
|
|
798
798
|
content: String(d),
|
|
799
|
-
fontSize:
|
|
800
|
-
fill:
|
|
801
|
-
stroke: P(
|
|
799
|
+
fontSize: i,
|
|
800
|
+
fill: a,
|
|
801
|
+
stroke: P(n, "chart.backgroundColor", "#FFFFFF"),
|
|
802
802
|
x: 0,
|
|
803
803
|
y: 0
|
|
804
804
|
})) : I(d, {
|
|
805
805
|
class: "vue-data-ui-time-label",
|
|
806
806
|
"data-cy": "time-label",
|
|
807
807
|
"text-anchor": u,
|
|
808
|
-
"font-size":
|
|
809
|
-
stroke: P(
|
|
808
|
+
"font-size": i,
|
|
809
|
+
stroke: P(n, "chart.backgroundColor", "#FFFFFF"),
|
|
810
810
|
"stroke-linecap": "round",
|
|
811
811
|
"stroke-linejoin": "round",
|
|
812
812
|
"paint-order": "stroke fill",
|
|
813
|
-
fill:
|
|
813
|
+
fill: a,
|
|
814
814
|
transform: f
|
|
815
815
|
});
|
|
816
816
|
}).join("");
|
|
@@ -916,7 +916,7 @@ function at(e, t) {
|
|
|
916
916
|
y2: "100%"
|
|
917
917
|
}, [A("stop", {
|
|
918
918
|
offset: "0%",
|
|
919
|
-
"stop-color":
|
|
919
|
+
"stop-color": w(s(f(t.color), .03), r),
|
|
920
920
|
"stop-opacity": 1
|
|
921
921
|
}), A("stop", {
|
|
922
922
|
offset: "100%",
|
|
@@ -925,30 +925,30 @@ function at(e, t) {
|
|
|
925
925
|
})].join(""))).join("");
|
|
926
926
|
return i ? F("defs", {}, i) : "";
|
|
927
927
|
}
|
|
928
|
-
function ot(
|
|
929
|
-
let { config:
|
|
930
|
-
return
|
|
931
|
-
let
|
|
932
|
-
if (
|
|
933
|
-
let
|
|
934
|
-
if (
|
|
935
|
-
|
|
936
|
-
e &&
|
|
928
|
+
function ot(e, t) {
|
|
929
|
+
let { config: r } = e, i = !!P(r, "line.cutNullValues", !1), a = [];
|
|
930
|
+
return t.filter((e) => e.type === "line" && e.useArea).forEach((t, r) => {
|
|
931
|
+
let o = M(t.plots), s = o.filter((e) => e && e.value !== null);
|
|
932
|
+
if (s.length < 2) return;
|
|
933
|
+
let c = Number.isFinite(Number(t.__zeroY)) ? Number(t.__zeroY) : U(e), l = Te(e, t, r);
|
|
934
|
+
if (t.smooth && !t.useStepper) {
|
|
935
|
+
u(i ? o : s, c, i).forEach((e) => {
|
|
936
|
+
e && a.push(A("path", {
|
|
937
937
|
d: e,
|
|
938
|
-
fill:
|
|
938
|
+
fill: l,
|
|
939
939
|
"data-cy": "datapoint-line-area-smooth"
|
|
940
940
|
}));
|
|
941
941
|
});
|
|
942
942
|
return;
|
|
943
943
|
}
|
|
944
|
-
(
|
|
945
|
-
|
|
944
|
+
(t.useStepper ? m(i ? o : s, c) : i ? n(o, c) : S(s, c)).split(";").filter(Boolean).forEach((e) => {
|
|
945
|
+
a.push(A("path", {
|
|
946
946
|
d: `M${e}Z`,
|
|
947
|
-
fill:
|
|
947
|
+
fill: l,
|
|
948
948
|
"data-cy": "datapoint-line-area-straight"
|
|
949
949
|
}));
|
|
950
950
|
});
|
|
951
|
-
}), F("g", { "data-layer": "line-areas" },
|
|
951
|
+
}), F("g", { "data-layer": "line-areas" }, a.join(""));
|
|
952
952
|
}
|
|
953
953
|
function st(e, t) {
|
|
954
954
|
let n = k(t.slotStartIndex ?? t.startAbs, 0);
|
|
@@ -966,23 +966,23 @@ function ct(e, t, n, r, i) {
|
|
|
966
966
|
"stroke-dasharray": i ? o * 2 : 0
|
|
967
967
|
});
|
|
968
968
|
}
|
|
969
|
-
function lt(e,
|
|
970
|
-
let { config:
|
|
971
|
-
return
|
|
972
|
-
let
|
|
973
|
-
if (!(
|
|
974
|
-
if (M(
|
|
975
|
-
let
|
|
976
|
-
(
|
|
977
|
-
|
|
969
|
+
function lt(e, t) {
|
|
970
|
+
let { config: n } = e, r = t.filter((e) => e.type === "line"), o = !!P(n, "line.cutNullValues", !1), s = [];
|
|
971
|
+
return r.forEach((t, r) => {
|
|
972
|
+
let c = o ? M(t.plots) : M(t.plots).filter((e) => e.value !== null), u = c.filter((e) => e.value !== null);
|
|
973
|
+
if (!(u.length < 2)) {
|
|
974
|
+
if (M(t.dashIndices).length > 0 && !t.useStepper) {
|
|
975
|
+
let a = st(t, e);
|
|
976
|
+
(t.smooth || P(n, "line.smooth", !1) ? l(c, a) : i(c, a)).forEach((n) => {
|
|
977
|
+
n?.path && s.push(ct(e, t, r, n.path, !!n.dashed));
|
|
978
978
|
});
|
|
979
979
|
return;
|
|
980
980
|
}
|
|
981
|
-
(
|
|
982
|
-
|
|
981
|
+
(t.useStepper ? m(c).split(";").filter(Boolean) : [t.smooth || P(n, "line.smooth", !1) ? o ? a(c) : d(u) : o ? g(c) : p(u, !1, !0)]).forEach((n) => {
|
|
982
|
+
n && s.push(ct(e, t, r, n, !!t.dashed));
|
|
983
983
|
});
|
|
984
984
|
}
|
|
985
|
-
}), F("g", { "data-layer": "lines" },
|
|
985
|
+
}), F("g", { "data-layer": "lines" }, s.join(""));
|
|
986
986
|
}
|
|
987
987
|
function ut(e, t, n) {
|
|
988
988
|
let { config: r } = e;
|
|
@@ -1059,7 +1059,7 @@ function gt(e, t) {
|
|
|
1059
1059
|
let i = o.find((e) => e.name === n), u = o.find((e) => e.name === r);
|
|
1060
1060
|
if (!i || !u) return;
|
|
1061
1061
|
let d = a?.[t]?.[0] ?? i.color, f = a?.[t]?.[1] ?? u.color;
|
|
1062
|
-
|
|
1062
|
+
C({
|
|
1063
1063
|
lineA: M(i.plots),
|
|
1064
1064
|
lineB: M(u.plots),
|
|
1065
1065
|
smoothA: !!i.smooth,
|
|
@@ -1117,23 +1117,23 @@ function yt(e) {
|
|
|
1117
1117
|
function bt(e, t, n, r, i) {
|
|
1118
1118
|
return !n || n.value === null || n.value === void 0 || !Number.isFinite(Number(n.value)) || !P(e.config, "dataLabels.show", !0) || !P(e.config, `${i}.labels.show`, !1) ? !1 : !Object.hasOwn(t, "dataLabels") || t.dataLabels === !0 || e.selectedSerieIndex === r || e.selectedMinimapIndex === r;
|
|
1119
1119
|
}
|
|
1120
|
-
function xt(
|
|
1121
|
-
let { config: a } =
|
|
1122
|
-
p:
|
|
1120
|
+
function xt(t, n, r, i) {
|
|
1121
|
+
let { config: a } = t, s = k(P(a, `${i}.labels.fontSize`, P(a, "chart.labels.fontSize", 12)), 12), c = P(a, `${i}.labels.color`, P(a, "chart.color", "#2A2A2A")), l = e({
|
|
1122
|
+
p: n.prefix || P(a, "chart.labels.prefix", ""),
|
|
1123
1123
|
v: r.value,
|
|
1124
|
-
s:
|
|
1124
|
+
s: n.suffix || P(a, "chart.labels.suffix", ""),
|
|
1125
1125
|
r: P(a, `${i}.labels.rounding`, 0)
|
|
1126
|
-
}),
|
|
1126
|
+
}), u = Z(t) && Number.isFinite(Number(r.x)) ? `x: ${e({
|
|
1127
1127
|
v: r.x,
|
|
1128
1128
|
r: P(a, "chart.grid.labels.xAxis.rounding", 0)
|
|
1129
|
-
})}\ny: ${
|
|
1129
|
+
})}\ny: ${l}` : x(P(a, `${i}.labels.formatter`, null), r.value, l, {
|
|
1130
1130
|
datapoint: r,
|
|
1131
|
-
serie:
|
|
1131
|
+
serie: n
|
|
1132
1132
|
});
|
|
1133
|
-
return
|
|
1134
|
-
content:
|
|
1135
|
-
fontSize:
|
|
1136
|
-
fill:
|
|
1133
|
+
return o({
|
|
1134
|
+
content: u,
|
|
1135
|
+
fontSize: s,
|
|
1136
|
+
fill: c,
|
|
1137
1137
|
x: 0,
|
|
1138
1138
|
y: 0
|
|
1139
1139
|
});
|
|
@@ -1210,7 +1210,7 @@ function jt(e, t, n, r, i, a) {
|
|
|
1210
1210
|
`color:${s.color || "#2A2A2A"}`,
|
|
1211
1211
|
`font-weight:${s.bold ? "bold" : "normal"}`
|
|
1212
1212
|
].join(";")
|
|
1213
|
-
},
|
|
1213
|
+
}, te(s.text)));
|
|
1214
1214
|
}
|
|
1215
1215
|
function Mt(e, t) {
|
|
1216
1216
|
let { config: n, drawingArea: r } = e, i = M(P(n, "chart.highlightArea", []));
|
|
@@ -1230,7 +1230,7 @@ function Mt(e, t) {
|
|
|
1230
1230
|
y: r.top,
|
|
1231
1231
|
width: At(e, a),
|
|
1232
1232
|
height: Math.max(1, r.height),
|
|
1233
|
-
fill:
|
|
1233
|
+
fill: w(t.color, k(t.opacity, 20)),
|
|
1234
1234
|
"pointer-events": "none"
|
|
1235
1235
|
}));
|
|
1236
1236
|
}
|
|
@@ -1267,44 +1267,44 @@ function It(e) {
|
|
|
1267
1267
|
if (!r.length) return "";
|
|
1268
1268
|
let i = [];
|
|
1269
1269
|
return r.forEach((t, r) => {
|
|
1270
|
-
let a = t.yAxis ?? {}, o = a.label ?? {}, s = a.line ?? {}, c = a.area ?? {}, l = a.yTop, u = a.yBottom, d = l != null && u != null && l !== u,
|
|
1271
|
-
if (!
|
|
1272
|
-
let
|
|
1273
|
-
if (
|
|
1270
|
+
let a = t.yAxis ?? {}, o = a.label ?? {}, s = a.line ?? {}, c = a.area ?? {}, l = a.yTop, u = a.yBottom, d = l != null && u != null && l !== u, f = Nt(e, l), p = Nt(e, u), m = Number.isFinite(f), h = Number.isFinite(p);
|
|
1271
|
+
if (!m && !h) return;
|
|
1272
|
+
let g = [];
|
|
1273
|
+
if (m && g.push(A("line", {
|
|
1274
1274
|
x1: n.left,
|
|
1275
|
-
y1:
|
|
1275
|
+
y1: f,
|
|
1276
1276
|
x2: n.right,
|
|
1277
|
-
y2:
|
|
1277
|
+
y2: f,
|
|
1278
1278
|
stroke: s.stroke,
|
|
1279
1279
|
"stroke-width": s.strokeWidth,
|
|
1280
1280
|
"stroke-dasharray": s.strokeDasharray,
|
|
1281
1281
|
"stroke-linecap": "round",
|
|
1282
1282
|
"data-cy": "xy-annotation-y-top-line"
|
|
1283
|
-
})),
|
|
1283
|
+
})), h && g.push(A("line", {
|
|
1284
1284
|
x1: n.left,
|
|
1285
|
-
y1:
|
|
1285
|
+
y1: p,
|
|
1286
1286
|
x2: n.right,
|
|
1287
|
-
y2:
|
|
1287
|
+
y2: p,
|
|
1288
1288
|
stroke: s.stroke,
|
|
1289
1289
|
"stroke-width": s.strokeWidth,
|
|
1290
1290
|
"stroke-dasharray": s.strokeDasharray,
|
|
1291
1291
|
"stroke-linecap": "round",
|
|
1292
1292
|
"data-cy": "xy-annotation-y-bottom-line"
|
|
1293
|
-
})), d &&
|
|
1293
|
+
})), d && m && h && g.push(A("rect", {
|
|
1294
1294
|
x: n.left,
|
|
1295
|
-
y: Math.min(
|
|
1295
|
+
y: Math.min(f, p),
|
|
1296
1296
|
width: n.width,
|
|
1297
|
-
height: Math.abs(
|
|
1298
|
-
fill:
|
|
1297
|
+
height: Math.abs(f - p),
|
|
1298
|
+
fill: w(c.fill, k(c.opacity, 20)),
|
|
1299
1299
|
"data-cy": "xy-annotation-y-area",
|
|
1300
1300
|
"pointer-events": "none"
|
|
1301
1301
|
})), o.text) {
|
|
1302
|
-
let e = o.padding ?? {}, t =
|
|
1303
|
-
Number.isFinite(a.y) && Number.isFinite(i) && (
|
|
1302
|
+
let e = o.padding ?? {}, t = m && h ? Math.min(f, p) : m ? f : p, r = (o.position === "start" ? n.left + k(e.left, 0) : n.right - k(e.right, 0)) + k(o.offsetX, 0), i = t - k(o.fontSize, 12) / 3 + k(o.offsetY, 0) - k(e.top, 0), a = Ft(o, r, i);
|
|
1303
|
+
Number.isFinite(a.y) && Number.isFinite(i) && (g.push(A("rect", {
|
|
1304
1304
|
class: "vue-ui-xy-annotation-label-box",
|
|
1305
1305
|
...a,
|
|
1306
1306
|
"data-cy": "xy-annotation-label-box"
|
|
1307
|
-
})),
|
|
1307
|
+
})), g.push(I(o.text, {
|
|
1308
1308
|
class: "vue-ui-xy-annotation-label",
|
|
1309
1309
|
x: r,
|
|
1310
1310
|
y: i,
|
|
@@ -1317,7 +1317,7 @@ function It(e) {
|
|
|
1317
1317
|
i.push(F("g", {
|
|
1318
1318
|
"data-layer": "annotation",
|
|
1319
1319
|
"data-key": `annotation_y_${r}`
|
|
1320
|
-
},
|
|
1320
|
+
}, g.join("")));
|
|
1321
1321
|
}), i.length ? F("g", { "data-layer": "annotations" }, i.join("")) : "";
|
|
1322
1322
|
}
|
|
1323
1323
|
function Lt(e, t) {
|