vue-data-ui 3.22.7 → 3.22.8
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-DaGI9u-b.js → Arrow-DdymhUfY.js} +1 -1
- package/dist/{BaseDraggableDialog-1wwwdwV2.js → BaseDraggableDialog-DcfGlH8A.js} +2 -2
- package/dist/{BaseIcon-_-BX7be3.js → BaseIcon-C2qlyHc7.js} +1 -1
- package/dist/{BaseLegendToggle-CHnlKalt.js → BaseLegendToggle-DtQ8vyfr.js} +1 -1
- package/dist/{BaseZoomControls-C9bdZSCj.js → BaseZoomControls-C6zonwhr.js} +2 -2
- package/dist/{ColorPicker-TB3KhY3j.js → ColorPicker-CK2-h611.js} +2 -2
- package/dist/{DataTable-CVF7DoZn.js → DataTable-D9NvewTT.js} +2 -2
- package/dist/{Legend-kAr7Vqqu.js → Legend-ROt6ugzW.js} +2 -2
- package/dist/{NonSvgPenAndPaper-CEiv7_gM.js → NonSvgPenAndPaper-BHHNsVVP.js} +3 -3
- package/dist/{PackageVersion-Dse0n05o.js → PackageVersion-DW7zwRcm.js} +1 -1
- package/dist/{PenAndPaper-gaV1QPpP.js → PenAndPaper-pcgwlYr2.js} +3 -3
- package/dist/{Shape-CiQIxyyT.js → Shape-UpH0a4Ur.js} +3 -3
- package/dist/{Slicer-6FOtg9py.js → Slicer-BZ5VnOOS.js} +19 -19
- package/dist/{SlicerPreview-DUywypFu.js → SlicerPreview-BQFeCw0m.js} +351 -351
- package/dist/{SparkTooltip-B-qsPj68.js → SparkTooltip-BTLN-Kex.js} +6 -6
- package/dist/{Title-PiTKr6sp.js → Title-CcNiYzEo.js} +1 -1
- package/dist/{Tooltip-B8yYfISA.js → Tooltip-CxOrWlFy.js} +1 -1
- package/dist/{UserOptions-BL9VlHop.js → UserOptions-16uF1ayB.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-BZjYWNEg.js → dom-to-png-BbwhsRIr.js} +1 -1
- package/dist/exposedLib-VXFp3Z2c.js +19 -0
- package/dist/{geoProjections-Czak6Jn1.js → geoProjections-BbN7z57k.js} +172 -15
- package/dist/{img-B_abIg0o.js → img-DnP3eXuv.js} +1 -1
- package/dist/{labelUtils-CTDRZdP1.js → labelUtils-DBEh078l.js} +1 -1
- package/dist/{lib-EAmk-PgA.js → lib-JqW18y5I.js} +36 -30
- package/dist/{package-DeMimPej.js → package-gp9pYCfN.js} +1 -1
- package/dist/{pdf-B6qrdEqB.js → pdf-hj3gzrE7.js} +1 -1
- package/dist/{render-common-DMai0gHB.js → render-common-CLn1VXJ9.js} +20 -20
- 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/utils.d.ts +18 -0
- package/dist/{useAutoSizeLabelsInsideViewbox-CyOGrdD_.js → useAutoSizeLabelsInsideViewbox-BGnDfZdg.js} +1 -1
- package/dist/{useNestedProp-D8XqxgOU.js → useNestedProp-DIuuzG1r.js} +1 -1
- package/dist/{usePrinter-DnGzpp6Q.js → usePrinter-CqqHmnBI.js} +2 -2
- package/dist/utils.js +24 -24
- package/dist/{vue-data-ui-D6qVWloL.js → vue-data-ui-AZZ9Cq-4.js} +68 -68
- package/dist/vue-data-ui.js +77 -77
- package/dist/vue-ui-3d-bar-B3HxJmDI.js +1757 -0
- package/dist/{vue-ui-accordion-Dzz8XhX3.js → vue-ui-accordion-YyosvEPo.js} +3 -3
- package/dist/vue-ui-age-pyramid-DTAOc7fn.js +1238 -0
- package/dist/{vue-ui-annotator-DXZumSP8.js → vue-ui-annotator-CfJXeAOE.js} +67 -67
- package/dist/vue-ui-bullet-CCLnrOLm.js +710 -0
- package/dist/vue-ui-bump-Rq7efdoe.js +1249 -0
- package/dist/vue-ui-candlestick-D-Z9pEaA.js +1829 -0
- package/dist/vue-ui-carousel-table-Lx5Zk4dG.js +455 -0
- package/dist/vue-ui-chestnut-RfWMGUD-.js +2010 -0
- package/dist/vue-ui-chord-Db1O_diJ.js +1391 -0
- package/dist/vue-ui-circle-pack-B4Ro7UuI.js +1608 -0
- package/dist/{vue-ui-cursor-DLJcFwRZ.js → vue-ui-cursor-DLP7wxsw.js} +61 -61
- package/dist/{vue-ui-dag-DemsIecS.js → vue-ui-dag-DL3zq0F2.js} +43 -43
- package/dist/{vue-ui-dashboard-DWHD_wNN.js → vue-ui-dashboard-C2ozZ-LI.js} +69 -69
- package/dist/{vue-ui-digits-sIKc85vS.js → vue-ui-digits-ThFVNO3l.js} +3 -3
- package/dist/{vue-ui-donut-Dp6GW0dw.js → vue-ui-donut-BuTd6dt4.js} +201 -201
- package/dist/{vue-ui-donut-CLheJPcO.js → vue-ui-donut-C3Rt6j-I.js} +592 -592
- package/dist/{vue-ui-donut-evolution-zmRPpJLj.js → vue-ui-donut-evolution-DY46UPF_.js} +442 -442
- package/dist/{vue-ui-dumbbell-bSbgHd0U.js → vue-ui-dumbbell-wK7vUB0x.js} +238 -238
- package/dist/{vue-ui-flow-q_M7O1BK.js → vue-ui-flow-BTUNfWb7.js} +119 -119
- package/dist/{vue-ui-funnel-BEZUEuuh.js → vue-ui-funnel-BhoHzyHa.js} +162 -162
- package/dist/{vue-ui-galaxy-DCCWmIyH.js → vue-ui-galaxy-DJ2uNYcN.js} +342 -342
- package/dist/{vue-ui-gauge-B1ljgfE1.js → vue-ui-gauge-Cf4NqvrO.js} +55 -55
- package/dist/{vue-ui-geo-CM59rpnj.js → vue-ui-geo-ovHu_Sc9.js} +14 -14
- package/dist/{vue-ui-gizmo-D2RL6IVp.js → vue-ui-gizmo-DDxEj-qe.js} +62 -62
- package/dist/{vue-ui-heatmap-BX6PQxML.js → vue-ui-heatmap-Npqnvb1r.js} +163 -163
- package/dist/{vue-ui-history-plot-DaHAeQph.js → vue-ui-history-plot-C3Kjy2tc.js} +371 -371
- package/dist/vue-ui-horizontal-bar-D1rCsgqt.js +1683 -0
- package/dist/{vue-ui-kpi-DLbP7lJR.js → vue-ui-kpi-BrlfYO-j.js} +4 -4
- package/dist/{vue-ui-mini-loader-DPHzHsM7.js → vue-ui-mini-loader-D5we7V_W.js} +2 -2
- package/dist/vue-ui-molecule-CExCqZ08.js +925 -0
- package/dist/{vue-ui-mood-radar-CCWaPr0P.js → vue-ui-mood-radar-DlVh6hwx.js} +45 -45
- package/dist/vue-ui-nested-donuts-3TRV8pN-.js +1487 -0
- package/dist/vue-ui-onion-DwKK9DXn.js +1200 -0
- package/dist/vue-ui-parallel-coordinate-plot-DSp_cwU-.js +1416 -0
- package/dist/{vue-ui-quadrant-T_UmRAAy.js → vue-ui-quadrant-ByVg-NBs.js} +58 -58
- package/dist/vue-ui-quick-chart-WMzSJxGZ.js +2469 -0
- package/dist/{vue-ui-radar-CHjeGOMC.js → vue-ui-radar-DE-me6OC.js} +79 -79
- package/dist/vue-ui-rating-CzD3EQ3G.js +343 -0
- package/dist/{vue-ui-relation-circle-DRZGQ_UX.js → vue-ui-relation-circle-L7-dTqet.js} +167 -167
- package/dist/vue-ui-ridgeline-Cp3YP0xe.js +1622 -0
- package/dist/vue-ui-rings-WzWiEo9W.js +1246 -0
- package/dist/vue-ui-scatter-DwrAydha.js +2413 -0
- package/dist/{vue-ui-skeleton-Fmue6DAG.js → vue-ui-skeleton-CuFm4PtB.js} +58 -58
- package/dist/{vue-ui-smiley-BVMI5vUy.js → vue-ui-smiley-D4NnZ1mg.js} +16 -16
- package/dist/{vue-ui-spark-trend-DfZeLiWA.js → vue-ui-spark-trend-C38ysZ-c.js} +99 -99
- package/dist/{vue-ui-sparkbar-Cl1e49sw.js → vue-ui-sparkbar-B03ndcUe.js} +30 -30
- package/dist/{vue-ui-sparkgauge-DDNNBIdf.js → vue-ui-sparkgauge-DgPc4vPT.js} +48 -48
- package/dist/{vue-ui-sparkhistogram-ny_liYa6.js → vue-ui-sparkhistogram-D02ff7ZI.js} +72 -72
- package/dist/vue-ui-sparkline-DlTfNQj8.js +1547 -0
- package/dist/{vue-ui-sparkstackbar-BfF5-Wg2.js → vue-ui-sparkstackbar-DrmiWFlw.js} +110 -110
- package/dist/{vue-ui-stackbar-B-2Me3d-.js → vue-ui-stackbar-BVdApDnY.js} +82 -82
- package/dist/{vue-ui-stackline-CdvVPQUM.js → vue-ui-stackline-QzQQ7lTy.js} +636 -636
- package/dist/vue-ui-strip-plot-C-TFNvgz.js +1729 -0
- package/dist/{vue-ui-table-Dr1dK3d_.js → vue-ui-table-Q3brrivC.js} +62 -62
- package/dist/{vue-ui-table-heatmap-D-Qrm3oX.js → vue-ui-table-heatmap-D0pZbBOH.js} +14 -14
- package/dist/vue-ui-table-sparkline-Q6BHPKUn.js +712 -0
- package/dist/{vue-ui-thermometer-BUrtIfuo.js → vue-ui-thermometer-Bg0RR6m4.js} +115 -115
- package/dist/{vue-ui-timer-B5bkNNHS.js → vue-ui-timer-BdzKpoRj.js} +5 -5
- package/dist/{vue-ui-tiremarks-Bn8b-ZSz.js → vue-ui-tiremarks-DWb69ofh.js} +13 -13
- package/dist/{vue-ui-treemap-LMWiicop.js → vue-ui-treemap-uUz07Prw.js} +457 -457
- package/dist/vue-ui-waffle-Pi9e7Ae7.js +1362 -0
- package/dist/{vue-ui-wheel-CeVwXtEX.js → vue-ui-wheel-DTfvWYA7.js} +130 -130
- package/dist/{vue-ui-word-cloud-D81-qJLw.js → vue-ui-word-cloud-DqfljAqH.js} +27 -27
- package/dist/vue-ui-world-BtBrH92Z.js +3016 -0
- package/dist/{vue-ui-xy-C2p9H2IX.js → vue-ui-xy-Bvgy2do1.js} +714 -714
- package/dist/{vue-ui-xy-OhwS0kcZ.js → vue-ui-xy-D5KsuNR2.js} +116 -116
- package/dist/{vue-ui-xy-canvas-DLKDdH35.js → vue-ui-xy-canvas-BfgeE3TW.js} +58 -58
- package/package.json +1 -1
- package/dist/exposedLib-Be0ifkti.js +0 -19
- package/dist/vue-ui-3d-bar-CjNuWXoA.js +0 -1757
- package/dist/vue-ui-age-pyramid-CC7Dxli-.js +0 -1238
- package/dist/vue-ui-bullet-Dde6FhbR.js +0 -710
- package/dist/vue-ui-bump-C5pni1JV.js +0 -1249
- package/dist/vue-ui-candlestick-Ctw65O4_.js +0 -1829
- package/dist/vue-ui-carousel-table-BEUvhUH0.js +0 -455
- package/dist/vue-ui-chestnut-C3IbAdkQ.js +0 -2010
- package/dist/vue-ui-chord-5eCWG4br.js +0 -1391
- package/dist/vue-ui-circle-pack-Cq4lkmee.js +0 -1608
- package/dist/vue-ui-horizontal-bar-CTW6l4n3.js +0 -1683
- package/dist/vue-ui-molecule-aD0SMTiX.js +0 -925
- package/dist/vue-ui-nested-donuts--BCPWkl7.js +0 -1487
- package/dist/vue-ui-onion-s4iMCGAP.js +0 -1200
- package/dist/vue-ui-parallel-coordinate-plot-CfgvpyoC.js +0 -1416
- package/dist/vue-ui-quick-chart-D1OWBgQJ.js +0 -2469
- package/dist/vue-ui-rating-Bek8Tgr-.js +0 -343
- package/dist/vue-ui-ridgeline-DIODGiu8.js +0 -1622
- package/dist/vue-ui-rings-CcdUSXGG.js +0 -1246
- package/dist/vue-ui-scatter-CixnqLoi.js +0 -2413
- package/dist/vue-ui-sparkline-BNxdO-Bx.js +0 -1547
- package/dist/vue-ui-strip-plot-CRXPXA5V.js +0 -1729
- package/dist/vue-ui-table-sparkline-C31Q32My.js +0 -712
- package/dist/vue-ui-waffle-B_L3gkky.js +0 -1362
- package/dist/vue-ui-world-B7npRmTa.js +0 -14264
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
|
|
2
|
-
import {
|
|
3
|
-
import { n as
|
|
4
|
-
import { t as
|
|
5
|
-
import { t as
|
|
6
|
-
import { n as
|
|
7
|
-
import { t as
|
|
8
|
-
import { t as
|
|
9
|
-
import { t as
|
|
10
|
-
import { t as
|
|
11
|
-
import { t as
|
|
12
|
-
import { t as
|
|
13
|
-
import { n as
|
|
14
|
-
import { t as
|
|
15
|
-
import { t as
|
|
16
|
-
import { t as
|
|
17
|
-
import { t as
|
|
18
|
-
import { t as
|
|
19
|
-
import { t as
|
|
20
|
-
import { t as
|
|
21
|
-
import { Fragment as
|
|
2
|
+
import { $ as t, A as n, B as r, D as i, F as a, Ft as o, G as s, Gt as c, H as l, J as u, Kt as d, L as ee, Lt as te, M as ne, Mt as f, O as re, P as ie, R as ae, Rt as p, S as oe, T as se, U as ce, Ut as le, V as ue, Wt as de, Z as m, a as fe, b as pe, bt as me, c as he, g as ge, gt as _e, h as ve, i as h, it as g, j as ye, kt as be, l as xe, lt as Se, n as Ce, r as we, s as Te, v as _, wt as Ee, xt as De, yt as Oe, z as ke, zt as Ae } from "./lib-JqW18y5I.js";
|
|
3
|
+
import { n as je, r as Me, t as Ne } from "./useTimeLabels-BmBRv27Y.js";
|
|
4
|
+
import { t as Pe } from "./useConfig-DYM3f6EI.js";
|
|
5
|
+
import { t as Fe } from "./usePrinter-CqqHmnBI.js";
|
|
6
|
+
import { n as Ie, t as Le } from "./BaseScanner-DZvpgOjM.js";
|
|
7
|
+
import { t as Re } from "./useSvgExport-SVIsDot8.js";
|
|
8
|
+
import { t as ze } from "./useNestedProp-DIuuzG1r.js";
|
|
9
|
+
import { t as Be } from "./useThemeCheck-C43Tcqmk.js";
|
|
10
|
+
import { t as Ve } from "./useStableElementSize-C7KADDKj.js";
|
|
11
|
+
import { t as He } from "./useTimeLabelCollider-AEcY4Ioe.js";
|
|
12
|
+
import { t as Ue } from "./img-DnP3eXuv.js";
|
|
13
|
+
import { n as We } from "./Title-CcNiYzEo.js";
|
|
14
|
+
import { t as Ge } from "./vue_ui_xy-BA3-_LCx.js";
|
|
15
|
+
import { t as Ke } from "./Shape-UpH0a4Ur.js";
|
|
16
|
+
import { t as qe } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
17
|
+
import { t as Je } from "./SlicerPreview-BQFeCw0m.js";
|
|
18
|
+
import { t as Ye } from "./vue-ui-accordion-YyosvEPo.js";
|
|
19
|
+
import { t as Xe } from "./BaseLegendToggle-DtQ8vyfr.js";
|
|
20
|
+
import { t as Ze } from "./A11yDataTable-DdRsVULz.js";
|
|
21
|
+
import { Fragment as v, Teleport as Qe, computed as y, createBlock as $e, createCommentVNode as b, createElementBlock as x, createElementVNode as S, createSlots as et, createTextVNode as tt, createVNode as nt, defineAsyncComponent as rt, getCurrentInstance as it, guardReactiveProps as C, mergeProps as at, nextTick as ot, normalizeClass as st, normalizeProps as w, normalizeStyle as T, onBeforeUnmount as ct, onMounted as lt, openBlock as E, ref as D, renderList as O, renderSlot as k, resolveDynamicComponent as ut, shallowRef as dt, toDisplayString as ft, toRefs as pt, unref as A, useSlots as mt, vModelCheckbox as ht, watch as gt, watchEffect as _t, withCtx as j, withDirectives as vt } from "vue";
|
|
22
22
|
//#region src/utils/xy.js
|
|
23
23
|
function yt(e) {
|
|
24
24
|
return ![
|
|
@@ -542,7 +542,7 @@ var Ot = /* @__PURE__ */ e({ default: () => M }), kt = ["id"], At = ["id"], jt =
|
|
|
542
542
|
"padding-left": "6px"
|
|
543
543
|
},
|
|
544
544
|
"data-dom-to-png-ignore": ""
|
|
545
|
-
}, Ti = ["innerHTML"], M = /*#__PURE__*/
|
|
545
|
+
}, Ti = ["innerHTML"], M = /*#__PURE__*/ qe({
|
|
546
546
|
__name: "vue-ui-xy",
|
|
547
547
|
props: {
|
|
548
548
|
config: {
|
|
@@ -571,18 +571,18 @@ var Ot = /* @__PURE__ */ e({ default: () => M }), kt = ["id"], At = ["id"], jt =
|
|
|
571
571
|
"zoomReset",
|
|
572
572
|
"copyAlt"
|
|
573
573
|
],
|
|
574
|
-
setup(e, { expose:
|
|
575
|
-
let M = e, Ei =
|
|
574
|
+
setup(e, { expose: qe, emit: Ot }) {
|
|
575
|
+
let M = e, Ei = rt(() => import("./DataTable-D9NvewTT.js")), Di = rt(() => import("./Tooltip-CxOrWlFy.js")), Oi = rt(() => import("./UserOptions-16uF1ayB.js").then((e) => e.n)), ki = rt(() => import("./BaseIcon-C2qlyHc7.js").then((e) => e.n)), Ai = rt(() => import("./vue-ui-table-sparkline-Q6BHPKUn.js").then((e) => e.n)), ji = rt(() => import("./PackageVersion-DW7zwRcm.js").then((e) => e.t)), Mi = rt(() => import("./PenAndPaper-pcgwlYr2.js").then((e) => e.t)), Ni = rt(() => import("./BaseDraggableDialog-DcfGlH8A.js").then((e) => e.n)), Pi = Ot, Fi = mt(), Ii = it(), { vue_ui_xy: Li } = Pe(), { isThemeValid: Ri, warnInvalidTheme: zi } = Be(), Bi = D(null), Vi = D(null), Hi = D(null), Ui = D(null), Wi = D(null), Gi = D(null), Ki = D(null), qi = D(null), Ji = D(null), Yi = D(null), Xi = D(null), Zi = D(null), Qi = D(null), $i = D(null), ea = D(0), N = D(null), ta = D(!0), na = D(600), P = D(1e3), ra = D("0 0 1000 600"), ia = D({
|
|
576
576
|
x: 0,
|
|
577
577
|
y: 0
|
|
578
578
|
}), aa = D({
|
|
579
579
|
line: "line",
|
|
580
580
|
bar: "bar",
|
|
581
581
|
plot: "plot"
|
|
582
|
-
}), oa = D(!1), sa = D(!1), ca = D(!1), la = D(null), ua = D([]), da =
|
|
582
|
+
}), oa = D(!1), sa = D(!1), ca = D(!1), la = D(null), ua = D([]), da = y(() => new Set(ua.value)), F = D(s()), fa = D(0), pa = D(0), ma = D(0), ha = D(!0), ga = D(0), I = D(null), _a = D(!1), va = D(!0), ya = D(!0), L = D(null), ba = D({}), xa = D(null), Sa = D(!1), Ca = D(null), wa = D(!1), Ta = D(!1), Ea = D(null), R = D(null), Da = D(null), Oa = D({
|
|
583
583
|
x: 0,
|
|
584
584
|
y: 0
|
|
585
|
-
}), ka = D(null), Aa = D(null), z = D(null), ja = D(null), Ma = D(null), Na = dt(null), Pa = D(!1), Fa = D(0), Ia = D(0), La =
|
|
585
|
+
}), ka = D(null), Aa = D(null), z = D(null), ja = D(null), Ma = D(null), Na = dt(null), Pa = D(!1), Fa = D(0), Ia = D(0), La = Ve({
|
|
586
586
|
elementRef: Na,
|
|
587
587
|
minimumWidth: 2,
|
|
588
588
|
minimumHeight: 2,
|
|
@@ -604,15 +604,15 @@ var Ot = /* @__PURE__ */ e({ default: () => M }), kt = ["id"], At = ["id"], jt =
|
|
|
604
604
|
}
|
|
605
605
|
async function Ba() {
|
|
606
606
|
let e = ++Ia.value;
|
|
607
|
-
Pa.value = !1, await
|
|
607
|
+
Pa.value = !1, await ot(), await za(), await za(), e === Ia.value && (Fa.value += 1, Pa.value = !0);
|
|
608
608
|
}
|
|
609
609
|
let Va = D(!1);
|
|
610
610
|
function Ha() {
|
|
611
|
-
Va.value || (Va.value = !0,
|
|
611
|
+
Va.value || (Va.value = !0, ot(() => {
|
|
612
612
|
Va.value = !1, Ra(), Ba();
|
|
613
613
|
}));
|
|
614
614
|
}
|
|
615
|
-
let Ua =
|
|
615
|
+
let Ua = y(() => ({
|
|
616
616
|
height: na.value,
|
|
617
617
|
width: P.value
|
|
618
618
|
})), Wa = D(!1), Ga = D(null), Ka = D(null), B = D({
|
|
@@ -624,28 +624,28 @@ var Ot = /* @__PURE__ */ e({ default: () => M }), kt = ["id"], At = ["id"], jt =
|
|
|
624
624
|
plot: 3,
|
|
625
625
|
line: 3,
|
|
626
626
|
selectedLine: 3
|
|
627
|
-
}), Ja =
|
|
627
|
+
}), Ja = y(() => Math.max(qa.value.line * 1.5, qa.value.selectedLine));
|
|
628
628
|
lt(() => {
|
|
629
|
-
Sa.value = !0, M.dataset.length && M.dataset.forEach((e,
|
|
630
|
-
[null, void 0].includes(e.series) &&
|
|
629
|
+
Sa.value = !0, M.dataset.length && M.dataset.forEach((e, n) => {
|
|
630
|
+
[null, void 0].includes(e.series) && t({
|
|
631
631
|
componentName: "VueUiXy",
|
|
632
632
|
type: "datasetSerieAttribute",
|
|
633
633
|
property: "series (number[])",
|
|
634
|
-
index:
|
|
634
|
+
index: n,
|
|
635
635
|
debug: eo.value
|
|
636
636
|
});
|
|
637
637
|
}), Ra(), La.start(), Ba();
|
|
638
638
|
});
|
|
639
639
|
function Ya() {
|
|
640
640
|
if (!Object.keys(M.config || {}).length) return Li;
|
|
641
|
-
let e =
|
|
641
|
+
let e = ze({
|
|
642
642
|
userConfig: M.config,
|
|
643
643
|
defaultConfig: Li
|
|
644
644
|
});
|
|
645
|
-
M.config &&
|
|
645
|
+
M.config && _e(M.config, "chart.highlightArea") && (Array.isArray(M.config.chart.highlightArea) ? e.chart.highlightArea = M.config.chart.highlightArea : e.chart.highlightArea = [M.config.chart.highlightArea]), M.config && _e(M.config, "chart.annotations") && Array.isArray(M.config.chart.annotations) && M.config.chart.annotations.length ? e.chart.annotations = M.config.chart.annotations.map((e) => ze({
|
|
646
646
|
defaultConfig: Li.chart.annotations[0],
|
|
647
647
|
userConfig: e
|
|
648
|
-
})) : e.chart.annotations = [], M.config &&
|
|
648
|
+
})) : e.chart.annotations = [], M.config && _e(M.config, "chart.grid.position") && M.config.chart.grid.position === "start" && M.dataset.length && M.dataset.some((e) => e.type === "bar") && (e.chart.grid.position = "middle", _e(M.config, "debug") && console.warn("Vue Data UI - VueUiXy - config.chart.grid.position was overriden to `middle` because your dataset contains a bar")), M.config && _e(M.config, "chart.highlightArea") && (Array.isArray(M.config.chart.highlightArea) ? e.chart.highlightArea = M.config.chart.highlightArea.map((e) => Xa({
|
|
649
649
|
defaultConfig: Li.chart.highlightArea,
|
|
650
650
|
userConfig: e
|
|
651
651
|
})) : e.chart.highlightArea = Xa({
|
|
@@ -655,32 +655,32 @@ var Ot = /* @__PURE__ */ e({ default: () => M }), kt = ["id"], At = ["id"], jt =
|
|
|
655
655
|
let t = e.theme;
|
|
656
656
|
if (!t) return e;
|
|
657
657
|
if (!Ri.value(e)) return zi(e), e;
|
|
658
|
-
let n =
|
|
659
|
-
userConfig:
|
|
658
|
+
let n = ze({
|
|
659
|
+
userConfig: Ge[t] || M.config,
|
|
660
660
|
defaultConfig: e
|
|
661
|
-
}), r =
|
|
661
|
+
}), r = ze({
|
|
662
662
|
userConfig: M.config,
|
|
663
663
|
defaultConfig: n
|
|
664
664
|
});
|
|
665
665
|
return {
|
|
666
666
|
...r,
|
|
667
|
-
customPalette: r.customPalette.length ? r.customPalette :
|
|
667
|
+
customPalette: r.customPalette.length ? r.customPalette : de[t] || f
|
|
668
668
|
};
|
|
669
669
|
}
|
|
670
670
|
function Xa({ defaultConfig: e, userConfig: t }) {
|
|
671
|
-
return
|
|
671
|
+
return ze({
|
|
672
672
|
defaultConfig: e,
|
|
673
673
|
userConfig: t
|
|
674
674
|
});
|
|
675
675
|
}
|
|
676
|
-
let Za =
|
|
676
|
+
let Za = y({
|
|
677
677
|
get() {
|
|
678
678
|
return !!M.dataset && M.dataset.length;
|
|
679
679
|
},
|
|
680
680
|
set(e) {
|
|
681
681
|
return e;
|
|
682
682
|
}
|
|
683
|
-
}), V = D(Ya()), Qa =
|
|
683
|
+
}), V = D(Ya()), Qa = y(() => V.value.chart.userOptions.useCursorPointer), H = D({
|
|
684
684
|
dataLabels: { show: !0 },
|
|
685
685
|
showTooltip: !0,
|
|
686
686
|
showTable: !1,
|
|
@@ -701,7 +701,7 @@ var Ot = /* @__PURE__ */ e({ default: () => M }), kt = ["id"], At = ["id"], jt =
|
|
|
701
701
|
}
|
|
702
702
|
H.value.showTooltip = V.value.chart.tooltip.show === !0, e !== Ga.value && (H.value.isStacked = e, Ga.value = e), t !== Ka.value && (H.value.useIndividualScale = t, Ka.value = t), H.value.isStacked && (H.value.useIndividualScale = !0);
|
|
703
703
|
}
|
|
704
|
-
let eo =
|
|
704
|
+
let eo = y(() => !!V.value.debug), to = y(() => d({
|
|
705
705
|
defaultConfig: {
|
|
706
706
|
useCssAnimation: !1,
|
|
707
707
|
showTable: !1,
|
|
@@ -757,7 +757,7 @@ var Ot = /* @__PURE__ */ e({ default: () => M }), kt = ["id"], At = ["id"], jt =
|
|
|
757
757
|
}
|
|
758
758
|
},
|
|
759
759
|
userConfig: V.value.skeletonConfig ?? {}
|
|
760
|
-
})), no =
|
|
760
|
+
})), no = y(() => M.config?.skeletonDataset ?? [{
|
|
761
761
|
name: "",
|
|
762
762
|
series: [
|
|
763
763
|
0,
|
|
@@ -794,7 +794,7 @@ var Ot = /* @__PURE__ */ e({ default: () => M }), kt = ["id"], At = ["id"], jt =
|
|
|
794
794
|
],
|
|
795
795
|
type: "bar",
|
|
796
796
|
color: "#CACACA"
|
|
797
|
-
}]), { loading: ro, FINAL_DATASET: io, manualLoading: ao } =
|
|
797
|
+
}]), { loading: ro, FINAL_DATASET: io, manualLoading: ao } = Ie({
|
|
798
798
|
...pt(M),
|
|
799
799
|
FINAL_CONFIG: V,
|
|
800
800
|
prepareConfig: Ya,
|
|
@@ -804,37 +804,37 @@ var Ot = /* @__PURE__ */ e({ default: () => M }), kt = ["id"], At = ["id"], jt =
|
|
|
804
804
|
});
|
|
805
805
|
},
|
|
806
806
|
skeletonDataset: no.value,
|
|
807
|
-
skeletonConfig:
|
|
807
|
+
skeletonConfig: d({
|
|
808
808
|
defaultConfig: V.value,
|
|
809
809
|
userConfig: to.value
|
|
810
810
|
})
|
|
811
|
-
}), oo = wt((e, t) =>
|
|
811
|
+
}), oo = wt((e, t) => Ee({
|
|
812
812
|
data: e,
|
|
813
813
|
threshold: t
|
|
814
|
-
})), so = (e) => oo(e, V.value.downsample.threshold), co =
|
|
814
|
+
})), so = (e) => oo(e, V.value.downsample.threshold), co = y(() => {
|
|
815
815
|
let e = V.value.downsample.threshold;
|
|
816
816
|
return io.value.map((t) => oo(t.series, e).length);
|
|
817
|
-
}), lo =
|
|
817
|
+
}), lo = y(() => {
|
|
818
818
|
let e = -Infinity;
|
|
819
819
|
for (let t = 0; t < co.value.length; t += 1) {
|
|
820
820
|
let n = co.value[t];
|
|
821
821
|
n > e && (e = n);
|
|
822
822
|
}
|
|
823
823
|
return e;
|
|
824
|
-
}), uo =
|
|
824
|
+
}), uo = y(() => {
|
|
825
825
|
let e = 0;
|
|
826
826
|
for (let t = 0; t < co.value.length; t += 1) {
|
|
827
827
|
let n = co.value[t];
|
|
828
828
|
n > e && (e = n);
|
|
829
829
|
}
|
|
830
830
|
return e;
|
|
831
|
-
}), fo =
|
|
831
|
+
}), fo = y(() => lo.value), U = D({
|
|
832
832
|
start: 0,
|
|
833
833
|
end: fo.value
|
|
834
834
|
}), po = D({
|
|
835
835
|
start: 0,
|
|
836
836
|
end: fo.value
|
|
837
|
-
}), mo =
|
|
837
|
+
}), mo = y(() => V.value.chart.zoom.preview.enable && (po.value.start !== U.value.start || po.value.end !== U.value.end));
|
|
838
838
|
function ho(e, t) {
|
|
839
839
|
po.value[e] = t;
|
|
840
840
|
}
|
|
@@ -853,7 +853,7 @@ var Ot = /* @__PURE__ */ e({ default: () => M }), kt = ["id"], At = ["id"], jt =
|
|
|
853
853
|
end: n
|
|
854
854
|
}, po.value.start = t, po.value.end = n, Hi.value && (Hi.value.setStartValue(t), Hi.value.setEndValue(n));
|
|
855
855
|
}
|
|
856
|
-
let _o =
|
|
856
|
+
let _o = y(() => {
|
|
857
857
|
let { left: e, top: t, width: n, height: r } = J.value, i = U.value.start, a = U.value.end - i, o = n / a, s = po.value.start - i, c = po.value.end - i, l = Math.max(0, Math.min(a, s)), u = Math.max(0, Math.min(a, c));
|
|
858
858
|
return {
|
|
859
859
|
x: e + l * o,
|
|
@@ -881,21 +881,21 @@ var Ot = /* @__PURE__ */ e({ default: () => M }), kt = ["id"], At = ["id"], jt =
|
|
|
881
881
|
let t = e - U.value.start;
|
|
882
882
|
t < 0 || e >= U.value.end ? R.value = null : R.value = t ?? null;
|
|
883
883
|
}, { immediate: !0 });
|
|
884
|
-
let { isPrinting: vo, isImaging: yo, generatePdf: bo, generateImage: xo } =
|
|
884
|
+
let { isPrinting: vo, isImaging: yo, generatePdf: bo, generateImage: xo } = Fe({
|
|
885
885
|
elementId: `vue-ui-xy_${F.value}`,
|
|
886
886
|
fileName: V.value.chart.title.text || "vue-ui-xy",
|
|
887
887
|
options: V.value.chart.userOptions.print
|
|
888
|
-
}), So = D(!1), Co =
|
|
888
|
+
}), So = D(!1), Co = y(() => oe(V.value.customPalette)), wo = y(() => {
|
|
889
889
|
let e = V.value.chart.grid.labels.yAxis.scaleMin;
|
|
890
890
|
if (e == null) return null;
|
|
891
891
|
let t = Number(e);
|
|
892
892
|
return Number.isFinite(t) ? t : null;
|
|
893
|
-
}), To =
|
|
893
|
+
}), To = y(() => wo.value === null ? Us.value : J.value.bottom), Eo = y(() => {
|
|
894
894
|
let e = V.value.chart.grid.labels.yAxis.scaleMax;
|
|
895
895
|
if (e == null) return null;
|
|
896
896
|
let t = Number(e);
|
|
897
897
|
return Number.isFinite(t) ? t : null;
|
|
898
|
-
}), Do =
|
|
898
|
+
}), Do = y(() => wo.value !== null || Eo.value !== null), Oo = y(() => al(Lo.value.filter((e) => !da.value.has(e.id)), 0, 1)), ko = y(() => {
|
|
899
899
|
let { min: e, max: t } = Oo.value;
|
|
900
900
|
if (!Do.value) {
|
|
901
901
|
let t = e;
|
|
@@ -903,7 +903,7 @@ var Ot = /* @__PURE__ */ e({ default: () => M }), kt = ["id"], At = ["id"], jt =
|
|
|
903
903
|
}
|
|
904
904
|
let n = wo.value === null ? e > 0 ? 0 : e : wo.value, r = Eo.value === null ? t : Eo.value;
|
|
905
905
|
return Tt(e < n ? e : n, t > r ? t : r).min;
|
|
906
|
-
}), Ao =
|
|
906
|
+
}), Ao = y(() => {
|
|
907
907
|
let { min: e, max: t } = Oo.value;
|
|
908
908
|
if (!Do.value) {
|
|
909
909
|
let e = t;
|
|
@@ -911,7 +911,7 @@ var Ot = /* @__PURE__ */ e({ default: () => M }), kt = ["id"], At = ["id"], jt =
|
|
|
911
911
|
}
|
|
912
912
|
let n = wo.value === null ? e > 0 ? 0 : e : wo.value, r = Eo.value === null ? t : Eo.value;
|
|
913
913
|
return Tt(e < n ? e : n, t > r ? t : r).max;
|
|
914
|
-
}), W =
|
|
914
|
+
}), W = y(() => V.value.chart.grid.labels.yAxis.useNiceScale ? ve(ko.value, Ao.value < 0 ? 0 : Ao.value, V.value.chart.grid.labels.yAxis.commonScaleSteps) : ge(ko.value, Ao.value < 0 ? 0 : Ao.value, V.value.chart.grid.labels.yAxis.commonScaleSteps)), jo = y(() => [null, void 0].includes(V.value.chart.grid.labels.yAxis.scaleMin) ? W.value.min >= 0 ? 0 : Math.abs(W.value.min) : -W.value.min), G = y(() => io.value.some((e) => Array.isArray(e.series) && e.series.some(St)));
|
|
915
915
|
_t(() => {
|
|
916
916
|
G.value && io.value.some((e) => !Po(e)) && console.warn("Vue Data UI - VueUiXy: mixed continuous and non-continuous series are not supported in the same chart.\n\nContinuous mode requires all visible 'line' and 'plot' series to use coordinate-based datasets:\n[{ x: number, y: number }]\n\nSeries of type 'bar' and standard numeric series are ignored in continuous mode to prevent runtime errors.\n\nIf you need to mix 'bar', 'line', and 'plot' series in the same chart, all series must use the standard [number, number, number...] format.");
|
|
917
917
|
});
|
|
@@ -940,7 +940,7 @@ var Ot = /* @__PURE__ */ e({ default: () => M }), kt = ["id"], At = ["id"], jt =
|
|
|
940
940
|
isInvalid: !0
|
|
941
941
|
} : {
|
|
942
942
|
x: Number(e.x),
|
|
943
|
-
y:
|
|
943
|
+
y: me(e.y) ? Number(e.y) : null,
|
|
944
944
|
index: t,
|
|
945
945
|
raw: e,
|
|
946
946
|
isNull: !1,
|
|
@@ -950,17 +950,17 @@ var Ot = /* @__PURE__ */ e({ default: () => M }), kt = ["id"], At = ["id"], jt =
|
|
|
950
950
|
function Io(e) {
|
|
951
951
|
return G.value ? e && typeof e == "object" ? e.y : null : e;
|
|
952
952
|
}
|
|
953
|
-
let Lo =
|
|
953
|
+
let Lo = y(() => !ta.value && !G.value ? io.value : io.value.map((e, t) => {
|
|
954
954
|
let n = `uniqueId_${t}`, r = Po(e), i = G.value ? r ? e.series : [] : so(e.series);
|
|
955
955
|
return {
|
|
956
956
|
...e,
|
|
957
957
|
slotAbsoluteIndex: t,
|
|
958
|
-
series: G.value ? i.map((e, t) => Fo(e, t)).filter((e) => e.isInvalid ? !1 : e.x === null && e.y === null ? U.value.start <= 0 && U.value.end >= 0 : e.x >= U.value.start && e.x <= U.value.end) : i.map((e) =>
|
|
959
|
-
color:
|
|
958
|
+
series: G.value ? i.map((e, t) => Fo(e, t)).filter((e) => e.isInvalid ? !1 : e.x === null && e.y === null ? U.value.start <= 0 && U.value.end >= 0 : e.x >= U.value.start && e.x <= U.value.end) : i.map((e) => me(e) ? e : null).slice(U.value.start, U.value.end),
|
|
959
|
+
color: pe(e.color ? e.color : Co.value[t] ? Co.value[t] : f[t]),
|
|
960
960
|
id: n,
|
|
961
961
|
scaleLabel: e.scaleLabel || n
|
|
962
962
|
};
|
|
963
|
-
})), Ro =
|
|
963
|
+
})), Ro = y(() => Lo.value.map((e, t) => ({
|
|
964
964
|
absoluteIndex: t,
|
|
965
965
|
...e,
|
|
966
966
|
series: G.value ? e.series.map((e) => ({
|
|
@@ -970,14 +970,14 @@ var Ot = /* @__PURE__ */ e({ default: () => M }), kt = ["id"], At = ["id"], jt =
|
|
|
970
970
|
absoluteValues: G.value ? e.series.map((e) => e.y) : e.series,
|
|
971
971
|
segregate: () => gc(e),
|
|
972
972
|
isSegregated: da.value.has(e.id)
|
|
973
|
-
}))), K =
|
|
973
|
+
}))), K = y(() => Lo.value.map((e) => ({
|
|
974
974
|
...e,
|
|
975
975
|
series: G.value ? e.series.map((e) => ({
|
|
976
976
|
...e,
|
|
977
977
|
y: e.y === null ? null : e.y + jo.value
|
|
978
978
|
})) : e.series.map((e) => e + jo.value),
|
|
979
979
|
absoluteValues: G.value ? e.series.map((e) => e.y) : e.series
|
|
980
|
-
})).filter((e) => !da.value.has(e.id))), zo =
|
|
980
|
+
})).filter((e) => !da.value.has(e.id))), zo = y(() => ua.value.length === Ro.value.length), q = y(() => V.value.chart.grid.labels.yAxis.position === "right");
|
|
981
981
|
function Bo() {
|
|
982
982
|
let e = 0;
|
|
983
983
|
Xi.value && (e = Array.from(Xi.value.querySelectorAll("text")).reduce((e, t) => {
|
|
@@ -1026,7 +1026,7 @@ var Ot = /* @__PURE__ */ e({ default: () => M }), kt = ["id"], At = ["id"], jt =
|
|
|
1026
1026
|
Uo.value = 0, Wo.value = 0;
|
|
1027
1027
|
}
|
|
1028
1028
|
}
|
|
1029
|
-
let Ko =
|
|
1029
|
+
let Ko = y(() => {
|
|
1030
1030
|
let e = 0;
|
|
1031
1031
|
if (qi.value) try {
|
|
1032
1032
|
e = qi.value.getBBox().height || 0;
|
|
@@ -1034,11 +1034,11 @@ var Ot = /* @__PURE__ */ e({ default: () => M }), kt = ["id"], At = ["id"], jt =
|
|
|
1034
1034
|
e = 0;
|
|
1035
1035
|
}
|
|
1036
1036
|
return e + Uo.value + B.value.xAxis;
|
|
1037
|
-
}), qo =
|
|
1037
|
+
}), qo = y(() => io.value.some((e) => e.useProgression));
|
|
1038
1038
|
function Jo() {
|
|
1039
1039
|
return V.value.chart.grid.labels.yAxis.crosshairSize + V.value.chart.grid.labels.yAxis.scaleValueOffsetX + 5 + V.value.chart.grid.labels.yAxis.labelWidth + V.value.chart.grid.labels.axis.yLabelOffsetX + B.value.dataLabels * .8;
|
|
1040
1040
|
}
|
|
1041
|
-
let J =
|
|
1041
|
+
let J = y(() => {
|
|
1042
1042
|
Fa.value;
|
|
1043
1043
|
let e = 0, t = 0, n = 0, r = 0;
|
|
1044
1044
|
if (V.value.chart.grid.labels.show) if (H.value.useIndividualScale && !H.value.isStacked) q.value ? t = (io.value.length - ua.value.length) * Jo() : e = (io.value.length - ua.value.length) * (V.value.chart.grid.labels.yAxis.labelWidth + 36);
|
|
@@ -1065,8 +1065,8 @@ var Ot = /* @__PURE__ */ e({ default: () => M }), kt = ["id"], At = ["id"], jt =
|
|
|
1065
1065
|
yAxisLabelWidth: r,
|
|
1066
1066
|
individualOffsetX: 36
|
|
1067
1067
|
};
|
|
1068
|
-
}), Yo =
|
|
1069
|
-
let e = +(V.value.chart.grid.position === "middle"), t = X.value + e, n =
|
|
1068
|
+
}), Yo = y(() => {
|
|
1069
|
+
let e = +(V.value.chart.grid.position === "middle"), t = X.value + e, n = g(J.value?.top), r = g(J.value?.bottom);
|
|
1070
1070
|
return G.value ? V.value.chart.grid.position === "middle" ? pl.value.map((e, t, i) => {
|
|
1071
1071
|
if (t === 0) return null;
|
|
1072
1072
|
let a = i[t - 1], o = a.x + (e.x - a.x) / 2;
|
|
@@ -1075,7 +1075,7 @@ var Ot = /* @__PURE__ */ e({ default: () => M }), kt = ["id"], At = ["id"], jt =
|
|
|
1075
1075
|
let i = V.value.chart.grid.position === "middle" ? Ac(t) : kc(t);
|
|
1076
1076
|
return `M${i},${n} L${i},${r}`;
|
|
1077
1077
|
}).join(" ");
|
|
1078
|
-
}), Xo =
|
|
1078
|
+
}), Xo = y(() => {
|
|
1079
1079
|
if (!V.value.chart.grid.labels.xAxis.showCrosshairs) return "";
|
|
1080
1080
|
let e = V.value.chart.grid.labels.xAxis.crosshairSize, t = V.value.chart.grid.labels.xAxis.crosshairsAlwaysAtZero;
|
|
1081
1081
|
return (G.value ? pl.value : us.value).map((n, r) => {
|
|
@@ -1099,7 +1099,7 @@ var Ot = /* @__PURE__ */ e({ default: () => M }), kt = ["id"], At = ["id"], jt =
|
|
|
1099
1099
|
}
|
|
1100
1100
|
let ts = D(!1);
|
|
1101
1101
|
async function ns(e = !1) {
|
|
1102
|
-
await
|
|
1102
|
+
await ot(), ts.value = e, _a.value && (ya.value = e);
|
|
1103
1103
|
}
|
|
1104
1104
|
function rs() {
|
|
1105
1105
|
ns(!0);
|
|
@@ -1114,7 +1114,7 @@ var Ot = /* @__PURE__ */ e({ default: () => M }), kt = ["id"], At = ["id"], jt =
|
|
|
1114
1114
|
_t(() => {
|
|
1115
1115
|
let e = ++ss;
|
|
1116
1116
|
(async () => {
|
|
1117
|
-
let t = lo.value, n = await
|
|
1117
|
+
let t = lo.value, n = await Ne({
|
|
1118
1118
|
values: V.value.chart.grid.labels.xAxisLabels.values,
|
|
1119
1119
|
maxDatapoints: t,
|
|
1120
1120
|
formatter: V.value.chart.grid.labels.xAxisLabels.datetimeFormatter,
|
|
@@ -1128,7 +1128,7 @@ var Ot = /* @__PURE__ */ e({ default: () => M }), kt = ["id"], At = ["id"], jt =
|
|
|
1128
1128
|
_t(() => {
|
|
1129
1129
|
let e = ++cs;
|
|
1130
1130
|
(async () => {
|
|
1131
|
-
let t = lo.value, n = await
|
|
1131
|
+
let t = lo.value, n = await Ne({
|
|
1132
1132
|
values: V.value.chart.grid.labels.xAxisLabels.values,
|
|
1133
1133
|
maxDatapoints: t,
|
|
1134
1134
|
formatter: V.value.chart.grid.labels.xAxisLabels.datetimeFormatter,
|
|
@@ -1138,13 +1138,13 @@ var Ot = /* @__PURE__ */ e({ default: () => M }), kt = ["id"], At = ["id"], jt =
|
|
|
1138
1138
|
e === cs && (os.value = n);
|
|
1139
1139
|
})();
|
|
1140
1140
|
});
|
|
1141
|
-
let ls =
|
|
1141
|
+
let ls = y(() => {
|
|
1142
1142
|
let e = V.value.chart.grid.labels.xAxisLabels.modulo;
|
|
1143
1143
|
return Y.value.length ? Math.min(e, [...new Set(Y.value.map((e) => e.text))].length) : e;
|
|
1144
|
-
}), us =
|
|
1144
|
+
}), us = y(() => {
|
|
1145
1145
|
let e = V.value.chart.grid.labels.xAxisLabels, t = Y.value || [], n = os.value || [], r = U.value.start ?? 0, i = R.value, a = X.value, o = t.map((e) => e?.text ?? ""), s = n.map((e) => e?.text ?? "");
|
|
1146
|
-
return
|
|
1147
|
-
}), ds =
|
|
1146
|
+
return Te(!!e.showOnlyFirstAndLast, !!e.showOnlyAtModulo, Math.max(1, ls.value || 1), o, s, r, i, a);
|
|
1147
|
+
}), ds = y(() => (us.value || []).map((e) => e?.text ?? "").join("|"));
|
|
1148
1148
|
lt(() => {
|
|
1149
1149
|
requestAnimationFrame(() => {
|
|
1150
1150
|
Go();
|
|
@@ -1155,7 +1155,7 @@ var Ot = /* @__PURE__ */ e({ default: () => M }), kt = ["id"], At = ["id"], jt =
|
|
|
1155
1155
|
() => P.value,
|
|
1156
1156
|
() => na.value
|
|
1157
1157
|
], async () => {
|
|
1158
|
-
await
|
|
1158
|
+
await ot(), requestAnimationFrame(() => {
|
|
1159
1159
|
Go();
|
|
1160
1160
|
});
|
|
1161
1161
|
}, { flush: "post" });
|
|
@@ -1178,7 +1178,7 @@ var Ot = /* @__PURE__ */ e({ default: () => M }), kt = ["id"], At = ["id"], jt =
|
|
|
1178
1178
|
label: e.text
|
|
1179
1179
|
});
|
|
1180
1180
|
}
|
|
1181
|
-
let X =
|
|
1181
|
+
let X = y(() => {
|
|
1182
1182
|
let e = Dt((U.value.end ?? 0) - (U.value.start ?? 0));
|
|
1183
1183
|
return Math.max(1, e);
|
|
1184
1184
|
});
|
|
@@ -1186,13 +1186,13 @@ var Ot = /* @__PURE__ */ e({ default: () => M }), kt = ["id"], At = ["id"], jt =
|
|
|
1186
1186
|
G.value || (I.value = e);
|
|
1187
1187
|
}
|
|
1188
1188
|
function ms(e) {
|
|
1189
|
-
if (!G.value || !
|
|
1189
|
+
if (!G.value || !De(e)) {
|
|
1190
1190
|
Ea.value = null, Z.value = [], ec.value = null;
|
|
1191
1191
|
return;
|
|
1192
1192
|
}
|
|
1193
1193
|
Ea.value = Number(e), Ho(Number(e));
|
|
1194
1194
|
}
|
|
1195
|
-
let hs =
|
|
1195
|
+
let hs = y(() => G.value ? De(Ea.value) || De(ec.value) : ![null, void 0].includes(R.value) || ![null, void 0].includes(I.value));
|
|
1196
1196
|
function gs() {
|
|
1197
1197
|
H.value.isStacked = !H.value.isStacked, H.value.isStacked ? H.value.useIndividualScale = !0 : H.value.useIndividualScale = V.value.chart.grid.labels.yAxis.useIndividualScale;
|
|
1198
1198
|
}
|
|
@@ -1275,15 +1275,15 @@ var Ot = /* @__PURE__ */ e({ default: () => M }), kt = ["id"], At = ["id"], jt =
|
|
|
1275
1275
|
}
|
|
1276
1276
|
async function Ps() {
|
|
1277
1277
|
let e = ks();
|
|
1278
|
-
Ts.value = !0, await Cs(), ks() === e ? Ts.value = !1 : (await
|
|
1278
|
+
Ts.value = !0, await Cs(), ks() === e ? Ts.value = !1 : (await ot(), Ds && cancelAnimationFrame(Ds), Ds = requestAnimationFrame(() => {
|
|
1279
1279
|
Ts.value = !1, Ds = null;
|
|
1280
1280
|
})), Pi("zoomReset");
|
|
1281
1281
|
}
|
|
1282
|
-
let Fs =
|
|
1282
|
+
let Fs = y(() => W.value.max + jo.value);
|
|
1283
1283
|
function Is(e) {
|
|
1284
1284
|
return e / (yt(Fs.value) ? Fs.value : 1);
|
|
1285
1285
|
}
|
|
1286
|
-
let Ls =
|
|
1286
|
+
let Ls = y(() => V.value.chart.grid.labels.yAxis.reverse);
|
|
1287
1287
|
function Rs(e) {
|
|
1288
1288
|
return Ls.value ? 1 - e : e;
|
|
1289
1289
|
}
|
|
@@ -1298,24 +1298,24 @@ var Ot = /* @__PURE__ */ e({ default: () => M }), kt = ["id"], At = ["id"], jt =
|
|
|
1298
1298
|
individualHeight: i
|
|
1299
1299
|
});
|
|
1300
1300
|
}
|
|
1301
|
-
let Vs =
|
|
1301
|
+
let Vs = y(() => V.value.chart.grid.labels.xAxis.reverse);
|
|
1302
1302
|
function Hs(e) {
|
|
1303
1303
|
return Vs.value ? 1 - e : e;
|
|
1304
1304
|
}
|
|
1305
|
-
let Us =
|
|
1305
|
+
let Us = y(() => isNaN(Is(jo.value)) ? J.value?.bottom : J.value?.bottom - J.value.height * Is(jo.value));
|
|
1306
1306
|
function Ws(e) {
|
|
1307
1307
|
let t = W.value.min, n = W.value.max - t;
|
|
1308
1308
|
return !Number.isFinite(e) || !Number.isFinite(n) || n === 0 ? J.value?.bottom : J.value?.bottom - J.value.height * ((e - t) / n);
|
|
1309
1309
|
}
|
|
1310
|
-
let Gs =
|
|
1310
|
+
let Gs = y(() => W.value.min <= 0 && W.value.max >= 0 ? Ws(0) : W.value.min > 0 ? Ws(W.value.min) : Ws(W.value.max));
|
|
1311
1311
|
function Ks(e) {
|
|
1312
1312
|
let t = ![null, void 0].includes(V.value.chart.grid.labels.yAxis.scaleMin) && V.value.chart.grid.labels.yAxis.scaleMin > 0 && ko.value >= 0 ? J.value?.bottom : Us.value;
|
|
1313
|
-
return e.value >= 0 ?
|
|
1313
|
+
return e.value >= 0 ? _(t - e.y <= 0 ? 1e-5 : t - e.y) : _(e.y - Us.value <= 0 ? 1e-5 : e.y - Us.value);
|
|
1314
1314
|
}
|
|
1315
1315
|
function qs(e) {
|
|
1316
|
-
return e.value >= 0 ?
|
|
1316
|
+
return e.value >= 0 ? _(e.zeroPosition - e.y <= 0 ? 1e-5 : e.zeroPosition - e.y) : _(e.y - e.zeroPosition <= 0 ? 1e-5 : e.zeroPosition - e.y);
|
|
1317
1317
|
}
|
|
1318
|
-
let Js =
|
|
1318
|
+
let Js = y(() => {
|
|
1319
1319
|
let e = Math.max(1, X.value);
|
|
1320
1320
|
return {
|
|
1321
1321
|
bar: Et(Math.max(1, J.value.width), e * Gc.value, 1),
|
|
@@ -1347,7 +1347,7 @@ var Ot = /* @__PURE__ */ e({ default: () => M }), kt = ["id"], At = ["id"], jt =
|
|
|
1347
1347
|
-Infinity
|
|
1348
1348
|
].includes(e.zeroPosition) ? 0 : e.zeroPosition;
|
|
1349
1349
|
}
|
|
1350
|
-
let $s = D(null), Z = D([]), ec = D(null), tc =
|
|
1350
|
+
let $s = D(null), Z = D([]), ec = D(null), tc = y(() => {
|
|
1351
1351
|
if (!G.value) return {
|
|
1352
1352
|
sortedPoints: [],
|
|
1353
1353
|
matchingPointsByXValue: /* @__PURE__ */ new Map()
|
|
@@ -1357,7 +1357,7 @@ var Ot = /* @__PURE__ */ e({ default: () => M }), kt = ["id"], At = ["id"], jt =
|
|
|
1357
1357
|
let i = K.value[r];
|
|
1358
1358
|
if (["line", "plot"].includes(i.type) && Array.isArray(i.series)) for (let r = 0; r < i.series.length; r += 1) {
|
|
1359
1359
|
let a = i.series[r];
|
|
1360
|
-
if (!
|
|
1360
|
+
if (!De(a?.x) || !De(a?.y)) continue;
|
|
1361
1361
|
let o = Number(a.x), s = hl(a), c = {
|
|
1362
1362
|
datapoint: i,
|
|
1363
1363
|
point: a,
|
|
@@ -1397,15 +1397,15 @@ var Ot = /* @__PURE__ */ e({ default: () => M }), kt = ["id"], At = ["id"], jt =
|
|
|
1397
1397
|
});
|
|
1398
1398
|
}), a;
|
|
1399
1399
|
}
|
|
1400
|
-
let rc =
|
|
1400
|
+
let rc = y(() => G.value ? Array.from(tc.value.matchingPointsByXValue.keys()).sort((e, t) => hl({ x: e }) - hl({ x: t })) : []);
|
|
1401
1401
|
function ic(e) {
|
|
1402
1402
|
let t = rc.value[e];
|
|
1403
|
-
if (!
|
|
1403
|
+
if (!De(t)) {
|
|
1404
1404
|
Z.value = [], ec.value = null, Ea.value = null, ca.value = !1;
|
|
1405
1405
|
return;
|
|
1406
1406
|
}
|
|
1407
1407
|
Ho(Number(t));
|
|
1408
|
-
let n =
|
|
1408
|
+
let n = le(hl({ x: Number(t) }), J.value.top + J.value.height / 2, L.value);
|
|
1409
1409
|
n && (Oa.value = n), R.value = e, Da.value = e, ca.value = !0;
|
|
1410
1410
|
}
|
|
1411
1411
|
function ac(e) {
|
|
@@ -1505,7 +1505,7 @@ var Ot = /* @__PURE__ */ e({ default: () => M }), kt = ["id"], At = ["id"], jt =
|
|
|
1505
1505
|
}
|
|
1506
1506
|
async function fc({ scale: e = 2 } = {}) {
|
|
1507
1507
|
if (!Bi.value) return;
|
|
1508
|
-
let { imageUri: t, base64: n } = await
|
|
1508
|
+
let { imageUri: t, base64: n } = await Ue({
|
|
1509
1509
|
domElement: Bi.value,
|
|
1510
1510
|
base64: !0,
|
|
1511
1511
|
img: !0,
|
|
@@ -1514,7 +1514,7 @@ var Ot = /* @__PURE__ */ e({ default: () => M }), kt = ["id"], At = ["id"], jt =
|
|
|
1514
1514
|
width: r.width,
|
|
1515
1515
|
height: r.height,
|
|
1516
1516
|
aspectRatio: r.height ? r.width / r.height : 0
|
|
1517
|
-
}, a = await
|
|
1517
|
+
}, a = await Se(t, e) ?? i;
|
|
1518
1518
|
return {
|
|
1519
1519
|
imageUri: t,
|
|
1520
1520
|
base64: n,
|
|
@@ -1557,7 +1557,7 @@ var Ot = /* @__PURE__ */ e({ default: () => M }), kt = ["id"], At = ["id"], jt =
|
|
|
1557
1557
|
let t = _c(e);
|
|
1558
1558
|
t !== null && (da.value.has(t.id) || gc({ id: t.id }));
|
|
1559
1559
|
}
|
|
1560
|
-
let bc =
|
|
1560
|
+
let bc = y(() => `${V.value.chart.title.text || "Chart visualization"}. ${V.value.chart.title.subtitle.text || ""}`), xc = y(() => ({ linePlot: X.value > V.value.line.dot.hideAboveMaxSerieLength })), Sc = y(() => V.value.chart.userOptions.show && (!V.value.chart.title.show || !V.value.chart.title.text)), Cc = y(() => {
|
|
1561
1561
|
if (Array.isArray(V.value.chart.highlightArea)) return V.value.chart.highlightArea.map((e) => {
|
|
1562
1562
|
let t = Math.min(e.to, fo.value - 1);
|
|
1563
1563
|
return {
|
|
@@ -1573,12 +1573,12 @@ var Ot = /* @__PURE__ */ e({ default: () => M }), kt = ["id"], At = ["id"], jt =
|
|
|
1573
1573
|
...e,
|
|
1574
1574
|
span: e.from === e.to ? 1 : e.to < e.from ? 0 : e.to - e.from + 1
|
|
1575
1575
|
}];
|
|
1576
|
-
}), wc =
|
|
1576
|
+
}), wc = y(() => ta.value ? io.value.map((e, t) => ({
|
|
1577
1577
|
...e,
|
|
1578
1578
|
series: so(e.series),
|
|
1579
1579
|
id: `uniqueId_${t}`,
|
|
1580
|
-
color:
|
|
1581
|
-
})) : io.value), Tc =
|
|
1580
|
+
color: pe(e.color ? e.color : Co.value[t] ? Co.value[t] : f[t])
|
|
1581
|
+
})) : io.value), Tc = y(() => K.value.map((e) => {
|
|
1582
1582
|
let t = e.absoluteValues.map((e) => [void 0, null].includes(e) ? null : e);
|
|
1583
1583
|
return {
|
|
1584
1584
|
id: e.id,
|
|
@@ -1586,7 +1586,7 @@ var Ot = /* @__PURE__ */ e({ default: () => M }), kt = ["id"], At = ["id"], jt =
|
|
|
1586
1586
|
color: e.color,
|
|
1587
1587
|
values: bt(X.value, t)
|
|
1588
1588
|
};
|
|
1589
|
-
})), Ec =
|
|
1589
|
+
})), Ec = y(() => ({
|
|
1590
1590
|
responsiveBreakpoint: V.value.table.responsiveBreakpoint,
|
|
1591
1591
|
roundingValues: V.value.table.rounding,
|
|
1592
1592
|
showAverage: !1,
|
|
@@ -1611,10 +1611,10 @@ var Ot = /* @__PURE__ */ e({ default: () => M }), kt = ["id"], At = ["id"], jt =
|
|
|
1611
1611
|
animation: { show: !1 },
|
|
1612
1612
|
cutNullValues: V.value.line.cutNullValues
|
|
1613
1613
|
}
|
|
1614
|
-
})), Dc =
|
|
1614
|
+
})), Dc = y(() => {
|
|
1615
1615
|
let e = Math.max(0, J.value?.width || 0);
|
|
1616
1616
|
return V.value.chart.grid.position === "middle" ? Et(e, Math.max(1, X.value), 1) : Et(e, Math.max(1, X.value - 1), 0);
|
|
1617
|
-
}), Oc =
|
|
1617
|
+
}), Oc = y(() => V.value.chart.grid.position === "middle" ? Dc.value : X.value <= 1 ? Math.max(0, J.value?.width || 0) : Dc.value);
|
|
1618
1618
|
function kc(e) {
|
|
1619
1619
|
let t = J.value?.left || 0;
|
|
1620
1620
|
return V.value.chart.grid.position === "middle" ? t + Dc.value / 2 + Dc.value * e : t + Dc.value * e;
|
|
@@ -1645,11 +1645,11 @@ var Ot = /* @__PURE__ */ e({ default: () => M }), kt = ["id"], At = ["id"], jt =
|
|
|
1645
1645
|
function Fc(e) {
|
|
1646
1646
|
return Math.max(1e-5, Oc.value * e);
|
|
1647
1647
|
}
|
|
1648
|
-
let Ic =
|
|
1648
|
+
let Ic = y(() => fe(Ro.value.filter((e) => !da.value.has(e.id)))), Lc = [
|
|
1649
1649
|
"bar",
|
|
1650
1650
|
"line",
|
|
1651
1651
|
"plot"
|
|
1652
|
-
], Rc =
|
|
1652
|
+
], Rc = y(() => Ic.value.filter((e) => Lc.includes(e.type))), zc = y(() => Rc.value.length), Bc = y(() => Rc.value.filter((e) => e.type === "bar")), Vc = y(() => Rc.value.filter((e) => e.type === "line")), Hc = y(() => Rc.value.filter((e) => e.type === "plot")), Uc = y(() => Lo.value.filter((e) => e.type === "bar" && !da.value.has(e.id))), Wc = y(() => Uc.value.length), Gc = y(() => Math.max(1, Wc.value)), Kc = y(() => {
|
|
1653
1653
|
let e = xt(Ic.value, (e) => e.scaleLabel), t = {};
|
|
1654
1654
|
for (let [n, r] of Object.entries(e)) {
|
|
1655
1655
|
let e = Infinity, i = -Infinity, a = !1;
|
|
@@ -1672,7 +1672,7 @@ var Ot = /* @__PURE__ */ e({ default: () => M }), kt = ["id"], At = ["id"], jt =
|
|
|
1672
1672
|
};
|
|
1673
1673
|
}
|
|
1674
1674
|
return t;
|
|
1675
|
-
}), qc =
|
|
1675
|
+
}), qc = y(() => Ic.value.reduce((e, t) => {
|
|
1676
1676
|
let n = t.scaleLabel || "";
|
|
1677
1677
|
return e[n] = (e[n] || 0) + 1, e;
|
|
1678
1678
|
}, {}));
|
|
@@ -1695,7 +1695,7 @@ var Ot = /* @__PURE__ */ e({ default: () => M }), kt = ["id"], At = ["id"], jt =
|
|
|
1695
1695
|
unique: qc.value[l] === 1
|
|
1696
1696
|
};
|
|
1697
1697
|
}
|
|
1698
|
-
let Yc =
|
|
1698
|
+
let Yc = y(() => J.value.width / X.value / Wc.value - Xc.value * Wc.value), Xc = y(() => Js.value.line * V.value.bar.periodGap), Zc = y(() => Math.max(1e-5, Ys() - (H.value.useIndividualScale && H.value.isStacked ? 0 : Xc.value))), Qc = y(() => Zc.value * Math.min(Math.abs(V.value.bar.innerGap), .95)), $c = y(() => {
|
|
1699
1699
|
if (!V.value.chart.zoom.minimap.show) return [];
|
|
1700
1700
|
let e = wc.value.filter((e) => !da.value.has(e.id)), t = 0;
|
|
1701
1701
|
for (let n = 0; n < e.length; n += 1) {
|
|
@@ -1710,10 +1710,10 @@ var Ot = /* @__PURE__ */ e({ default: () => M }), kt = ["id"], At = ["id"], jt =
|
|
|
1710
1710
|
}
|
|
1711
1711
|
let r = sl(n, 0, 1).min;
|
|
1712
1712
|
return n.map((e) => e + (r < 0 ? Math.abs(r) : 0));
|
|
1713
|
-
}), el =
|
|
1713
|
+
}), el = y(() => V.value.chart.zoom.minimap.show ? wc.value.map((e) => ({
|
|
1714
1714
|
...e,
|
|
1715
1715
|
isVisible: !da.value.has(e.id)
|
|
1716
|
-
})) : []), tl =
|
|
1716
|
+
})) : []), tl = y(() => G.value ? Z.value.map((e) => ({
|
|
1717
1717
|
slotAbsoluteIndex: e.datapoint.slotAbsoluteIndex,
|
|
1718
1718
|
shape: e.datapoint.shape || e.datapoint.type === "bar" ? "square" : "circle",
|
|
1719
1719
|
name: e.datapoint.name,
|
|
@@ -1734,7 +1734,7 @@ var Ot = /* @__PURE__ */ e({ default: () => M }), kt = ["id"], At = ["id"], jt =
|
|
|
1734
1734
|
comments: e.comments || [],
|
|
1735
1735
|
prefix: e.prefix || V.value.chart.labels.prefix,
|
|
1736
1736
|
suffix: e.suffix || V.value.chart.labels.suffix
|
|
1737
|
-
}))), nl =
|
|
1737
|
+
}))), nl = y(() => W.value.ticks.map((e) => {
|
|
1738
1738
|
let t = e >= 0 ? Us.value - J.value.height * Is(e) : Us.value + J.value.height * Is(Math.abs(e));
|
|
1739
1739
|
return {
|
|
1740
1740
|
y: Ls.value ? J.value.top + J.value.bottom - t : t,
|
|
@@ -1742,7 +1742,7 @@ var Ot = /* @__PURE__ */ e({ default: () => M }), kt = ["id"], At = ["id"], jt =
|
|
|
1742
1742
|
prefix: V.value.chart.labels.prefix,
|
|
1743
1743
|
suffix: V.value.chart.labels.suffix
|
|
1744
1744
|
};
|
|
1745
|
-
})), rl =
|
|
1745
|
+
})), rl = y(() => {
|
|
1746
1746
|
let e = V.value.chart.annotations;
|
|
1747
1747
|
if (!e || !Array.isArray(e) || e.every((e) => !e.show)) return [];
|
|
1748
1748
|
let t = e.filter((e) => e.show && (e.yAxis.yTop != null || e.yAxis.yBottom != null));
|
|
@@ -1751,14 +1751,14 @@ var Ot = /* @__PURE__ */ e({ default: () => M }), kt = ["id"], At = ["id"], jt =
|
|
|
1751
1751
|
return t.map((e, t) => {
|
|
1752
1752
|
let { yAxis: { yTop: i, yBottom: a, label: o } } = e, s = i != null && a != null && i !== a, l = i == null ? null : c(i), u = a == null ? null : c(a), d = Qo(o.fontSize);
|
|
1753
1753
|
d.font = `${o.fontSize}px sans-serif`;
|
|
1754
|
-
let
|
|
1755
|
-
|
|
1756
|
-
let
|
|
1754
|
+
let ee = d.measureText(o.text).width, te = o.fontSize, ne = (o.position === "start" ? n + o.padding?.left : r - o.padding?.right) + o.offsetX, f = (l != null && u != null ? Math.min(l, u) : l ?? u) - o.fontSize / 3 + o.offsetY - o.padding?.top, re;
|
|
1755
|
+
re = o.textAnchor === "middle" ? ne - ee / 2 - o.padding?.left : o.textAnchor === "end" ? ne - ee - o.padding?.right : ne - o.padding?.left;
|
|
1756
|
+
let ie = f - te * .75 - o.padding?.top;
|
|
1757
1757
|
return {
|
|
1758
1758
|
show: ![
|
|
1759
1759
|
l,
|
|
1760
1760
|
u,
|
|
1761
|
-
|
|
1761
|
+
ie
|
|
1762
1762
|
].includes(NaN),
|
|
1763
1763
|
id: ll("annotation_y", [
|
|
1764
1764
|
t,
|
|
@@ -1774,14 +1774,14 @@ var Ot = /* @__PURE__ */ e({ default: () => M }), kt = ["id"], At = ["id"], jt =
|
|
|
1774
1774
|
x1: n,
|
|
1775
1775
|
x2: r,
|
|
1776
1776
|
_text: {
|
|
1777
|
-
x:
|
|
1778
|
-
y:
|
|
1777
|
+
x: ne,
|
|
1778
|
+
y: f
|
|
1779
1779
|
},
|
|
1780
1780
|
_box: {
|
|
1781
|
-
x:
|
|
1782
|
-
y:
|
|
1783
|
-
width:
|
|
1784
|
-
height:
|
|
1781
|
+
x: re,
|
|
1782
|
+
y: ie,
|
|
1783
|
+
width: ee + o.padding?.left + o.padding?.right,
|
|
1784
|
+
height: te + o.padding?.top + o.padding?.bottom,
|
|
1785
1785
|
fill: o.backgroundColor,
|
|
1786
1786
|
stroke: o.border.stroke,
|
|
1787
1787
|
rx: o.border.rx,
|
|
@@ -1861,17 +1861,17 @@ var Ot = /* @__PURE__ */ e({ default: () => M }), kt = ["id"], At = ["id"], jt =
|
|
|
1861
1861
|
function ul() {
|
|
1862
1862
|
return ro.value || Ts.value || !V.value.line.showTransition ? void 0 : `all ${V.value.line.transitionDurationMs}ms ease-in-out`;
|
|
1863
1863
|
}
|
|
1864
|
-
let dl =
|
|
1865
|
-
let e = V.value.chart.grid.labels.xAxis.commonScaleSteps, t = V.value.chart.grid.labels.xAxis.scaleMin, n = V.value.chart.grid.labels.xAxis.scaleMax, r = t !== null && Number.isFinite(Number(t)) ? Number(t) : dl.value.min, i = n !== null && Number.isFinite(Number(n)) ? Number(n) : dl.value.max, a = V.value.chart.grid.labels.xAxis.useNiceScale ?
|
|
1864
|
+
let dl = y(() => ol(Lo.value, 0, 1)), fl = y(() => {
|
|
1865
|
+
let e = V.value.chart.grid.labels.xAxis.commonScaleSteps, t = V.value.chart.grid.labels.xAxis.scaleMin, n = V.value.chart.grid.labels.xAxis.scaleMax, r = t !== null && Number.isFinite(Number(t)) ? Number(t) : dl.value.min, i = n !== null && Number.isFinite(Number(n)) ? Number(n) : dl.value.max, a = V.value.chart.grid.labels.xAxis.useNiceScale ? ve(r, i, e) : ge(r, i, e);
|
|
1866
1866
|
if (V.value.chart.grid.position !== "start") return a;
|
|
1867
1867
|
let o = a.ticks.length > 1 ? a.ticks[1] - a.ticks[0] : 1;
|
|
1868
1868
|
return {
|
|
1869
1869
|
...a,
|
|
1870
1870
|
max: a.max + o
|
|
1871
1871
|
};
|
|
1872
|
-
}), pl =
|
|
1872
|
+
}), pl = y(() => G.value ? (Vs.value ? [...fl.value.ticks].reverse() : [...fl.value.ticks]).map((e, t) => ({
|
|
1873
1873
|
id: `continuous_x_label_${t}`,
|
|
1874
|
-
text:
|
|
1874
|
+
text: h(V.value.chart.grid.labels.xAxis.formatter, e, u({
|
|
1875
1875
|
v: e,
|
|
1876
1876
|
s: V.value.chart.labels.prefix,
|
|
1877
1877
|
p: V.value.chart.labels.suffix,
|
|
@@ -1891,7 +1891,7 @@ var Ot = /* @__PURE__ */ e({ default: () => M }), kt = ["id"], At = ["id"], jt =
|
|
|
1891
1891
|
let t = fl.value.max - fl.value.min || 1, n = Hs((e - fl.value.min) / t);
|
|
1892
1892
|
return J.value.left + J.value.width * n;
|
|
1893
1893
|
}
|
|
1894
|
-
let gl =
|
|
1894
|
+
let gl = y(() => ol(io.value, 0, 1)), _l = y(() => G.value ? gl.value.min : 0), vl = y(() => G.value ? gl.value.max : fo.value);
|
|
1895
1895
|
function yl(e, t) {
|
|
1896
1896
|
return G.value ? e.x == null || e.y == null ? null : hl(e) : kc(t);
|
|
1897
1897
|
}
|
|
@@ -1899,19 +1899,19 @@ var Ot = /* @__PURE__ */ e({ default: () => M }), kt = ["id"], At = ["id"], jt =
|
|
|
1899
1899
|
return !G.value || !e ? null : e.x ?? null;
|
|
1900
1900
|
}
|
|
1901
1901
|
function xl({ datapoint: e, totalSeries: t, gap: n, usableHeight: r, autoScaleValueMin: i, autoScaleValueMax: a, individualExtremes: o, forceExactScale: s = !1 }) {
|
|
1902
|
-
let c = e.scaleSteps || V.value.chart.grid.labels.yAxis.commonScaleSteps, l = 1.0000001, u = s || !V.value.chart.grid.labels.yAxis.useNiceScale ?
|
|
1902
|
+
let c = e.scaleSteps || V.value.chart.grid.labels.yAxis.commonScaleSteps, l = 1.0000001, u = s || !V.value.chart.grid.labels.yAxis.useNiceScale ? ge : ve, d = o.max === o.min ? o.max * l : o.max, ee = a === i ? a * l : a, te = u(o.min, d, c), ne = u(i, ee, c), f = te.min >= 0 ? 0 : Math.abs(te.min), re = te.max + Math.abs(f), ie = ne.max + 0, ae = e.stackIndex, p = t - 1 - ae, oe = H.value.isStacked ? 1 - e.cumulatedStackRatio : 0, se = H.value.isStacked ? r * oe + n * p : 0, ce = H.value.isStacked ? r * e.stackRatio : J.value.height;
|
|
1903
1903
|
return {
|
|
1904
1904
|
scaleSteps: c,
|
|
1905
|
-
individualScale:
|
|
1906
|
-
autoScaleSteps:
|
|
1907
|
-
individualZero:
|
|
1905
|
+
individualScale: te,
|
|
1906
|
+
autoScaleSteps: ne,
|
|
1907
|
+
individualZero: f,
|
|
1908
1908
|
autoScaleZero: 0,
|
|
1909
|
-
individualMax:
|
|
1910
|
-
autoScaleMax:
|
|
1911
|
-
yOffset:
|
|
1912
|
-
individualHeight:
|
|
1913
|
-
zeroPosition: J.value?.bottom -
|
|
1914
|
-
autoScaleZeroPosition: J.value?.bottom -
|
|
1909
|
+
individualMax: re,
|
|
1910
|
+
autoScaleMax: ie,
|
|
1911
|
+
yOffset: se,
|
|
1912
|
+
individualHeight: ce,
|
|
1913
|
+
zeroPosition: J.value?.bottom - se - ce * f / re,
|
|
1914
|
+
autoScaleZeroPosition: J.value?.bottom - se - ce * 0 / ie
|
|
1915
1915
|
};
|
|
1916
1916
|
}
|
|
1917
1917
|
function Sl({ datapoint: e, clampNegativeAutoScaleMaximum: t = !1 }) {
|
|
@@ -2007,10 +2007,10 @@ var Ot = /* @__PURE__ */ e({ default: () => M }), kt = ["id"], At = ["id"], jt =
|
|
|
2007
2007
|
function kl(e, t) {
|
|
2008
2008
|
return Array.isArray(e) && e[t + U.value.start] || "";
|
|
2009
2009
|
}
|
|
2010
|
-
let Al =
|
|
2010
|
+
let Al = y(() => {
|
|
2011
2011
|
let e = zc.value, t = V.value.chart.grid.labels.yAxis.gap, n = H.value.isStacked ? t * (e - 1) : 0, r = J.value.height - n;
|
|
2012
2012
|
return Bc.value.map((n, i) => {
|
|
2013
|
-
let { individualScale: a, autoScaleSteps: o, individualZero: s, individualMax: c, autoScaleMax: l, yOffset: u, individualHeight: d, zeroPosition:
|
|
2013
|
+
let { individualScale: a, autoScaleSteps: o, individualZero: s, individualMax: c, autoScaleMax: l, yOffset: u, individualHeight: d, zeroPosition: ee, autoScaleZeroPosition: te, scaleYLabels: ne, autoScaleYLabels: f, autoScaleRatiosToNiceScale: re } = Dl({
|
|
2014
2014
|
datapoint: n,
|
|
2015
2015
|
totalSeries: e,
|
|
2016
2016
|
gap: t,
|
|
@@ -2018,44 +2018,44 @@ var Ot = /* @__PURE__ */ e({ default: () => M }), kt = ["id"], At = ["id"], jt =
|
|
|
2018
2018
|
clampNegativeAutoScaleMaximum: !0,
|
|
2019
2019
|
filterMinimumValues: !0,
|
|
2020
2020
|
preserveLooseMinimumExpression: !0
|
|
2021
|
-
}),
|
|
2022
|
-
let r = H.value.useIndividualScale ? (n.absoluteValues[t] + s) / c : Is(e), a = H.value.useIndividualScale && H.value.isStacked ? J.value?.left + J.value.width / X.value * t : J.value?.left + Js.value.bar * i + Js.value.bar * t *
|
|
2021
|
+
}), ie = Wc.value, ae = Ol(n.comments), p = n.series.map((e, t) => {
|
|
2022
|
+
let r = H.value.useIndividualScale ? (n.absoluteValues[t] + s) / c : Is(e), a = H.value.useIndividualScale && H.value.isStacked ? J.value?.left + J.value.width / X.value * t : J.value?.left + Js.value.bar * i + Js.value.bar * t * ie - Yc.value / 2 - i * Xc.value;
|
|
2023
2023
|
return {
|
|
2024
|
-
yOffset:
|
|
2025
|
-
individualHeight:
|
|
2026
|
-
x:
|
|
2024
|
+
yOffset: _(u),
|
|
2025
|
+
individualHeight: _(d),
|
|
2026
|
+
x: _(a),
|
|
2027
2027
|
y: zs({
|
|
2028
2028
|
ratio: r,
|
|
2029
2029
|
yOffset: u,
|
|
2030
2030
|
individualHeight: d
|
|
2031
2031
|
}),
|
|
2032
2032
|
value: n.absoluteValues[t],
|
|
2033
|
-
zeroPosition:
|
|
2034
|
-
individualMax:
|
|
2035
|
-
comment:
|
|
2033
|
+
zeroPosition: _(ee),
|
|
2034
|
+
individualMax: _(c),
|
|
2035
|
+
comment: ae[t] || ""
|
|
2036
2036
|
};
|
|
2037
|
-
}),
|
|
2037
|
+
}), oe = n.series.map((e, t) => {
|
|
2038
2038
|
let r = H.value.useIndividualScale && H.value.isStacked ? J.value?.left + J.value.width / X.value * t : J.value?.left - Js.value.bar / 2 + Js.value.bar * i + Js.value.bar * t * Ro.value.filter((e) => e.type === "bar").filter((e) => !da.value.has(e.id)).length;
|
|
2039
2039
|
return {
|
|
2040
|
-
yOffset:
|
|
2041
|
-
individualHeight:
|
|
2042
|
-
x:
|
|
2043
|
-
y:
|
|
2044
|
-
ratio:
|
|
2045
|
-
yOffset:
|
|
2046
|
-
individualHeight:
|
|
2040
|
+
yOffset: _(u),
|
|
2041
|
+
individualHeight: _(d),
|
|
2042
|
+
x: _(r),
|
|
2043
|
+
y: _(zs({
|
|
2044
|
+
ratio: re[t] || 0,
|
|
2045
|
+
yOffset: _(u),
|
|
2046
|
+
individualHeight: _(d)
|
|
2047
2047
|
})),
|
|
2048
2048
|
value: n.absoluteValues[t],
|
|
2049
|
-
zeroPosition:
|
|
2050
|
-
individualMax:
|
|
2051
|
-
comment:
|
|
2049
|
+
zeroPosition: _(ee),
|
|
2050
|
+
individualMax: _(c),
|
|
2051
|
+
comment: ae[t] || ""
|
|
2052
2052
|
};
|
|
2053
|
-
}),
|
|
2053
|
+
}), se = Jc({
|
|
2054
2054
|
datapoint: n,
|
|
2055
|
-
scaleYLabels:
|
|
2056
|
-
autoScaleYLabels:
|
|
2057
|
-
zeroPosition:
|
|
2058
|
-
autoScaleZeroPosition:
|
|
2055
|
+
scaleYLabels: ne,
|
|
2056
|
+
autoScaleYLabels: f,
|
|
2057
|
+
zeroPosition: ee,
|
|
2058
|
+
autoScaleZeroPosition: te,
|
|
2059
2059
|
individualMax: c,
|
|
2060
2060
|
autoScaleMax: l,
|
|
2061
2061
|
yOffset: u,
|
|
@@ -2064,165 +2064,165 @@ var Ot = /* @__PURE__ */ e({ default: () => M }), kt = ["id"], At = ["id"], jt =
|
|
|
2064
2064
|
return {
|
|
2065
2065
|
...n,
|
|
2066
2066
|
yOffset: u,
|
|
2067
|
-
autoScaleYLabels:
|
|
2067
|
+
autoScaleYLabels: f,
|
|
2068
2068
|
individualHeight: d,
|
|
2069
|
-
scaleYLabels: n.autoScaling ?
|
|
2069
|
+
scaleYLabels: n.autoScaling ? f : ne,
|
|
2070
2070
|
individualScale: n.autoScaling ? o : a,
|
|
2071
2071
|
individualMax: n.autoScaling ? l : c,
|
|
2072
|
-
zeroPosition: n.autoScaling ?
|
|
2073
|
-
plots: n.autoScaling ?
|
|
2074
|
-
scaleGroup:
|
|
2075
|
-
groupId:
|
|
2072
|
+
zeroPosition: n.autoScaling ? te : ee,
|
|
2073
|
+
plots: n.autoScaling ? oe : p,
|
|
2074
|
+
scaleGroup: se,
|
|
2075
|
+
groupId: se.groupId
|
|
2076
2076
|
};
|
|
2077
2077
|
});
|
|
2078
|
-
}), Q =
|
|
2079
|
-
let e = zc.value,
|
|
2080
|
-
return Vc.value.map((
|
|
2081
|
-
let { individualScale:
|
|
2082
|
-
datapoint:
|
|
2078
|
+
}), Q = y(() => {
|
|
2079
|
+
let e = zc.value, t = V.value.chart.grid.labels.yAxis.gap, n = H.value.isStacked ? t * (e - 1) : 0, o = J.value.height - n;
|
|
2080
|
+
return Vc.value.map((n, s) => {
|
|
2081
|
+
let { individualScale: c, autoScaleSteps: l, individualZero: u, individualMax: d, autoScaleMax: ee, yOffset: te, individualHeight: f, zeroPosition: p, autoScaleZeroPosition: oe, scaleYLabels: se, autoScaleYLabels: ce, autoScaleRatiosToNiceScale: le } = Dl({
|
|
2082
|
+
datapoint: n,
|
|
2083
2083
|
totalSeries: e,
|
|
2084
|
-
gap:
|
|
2085
|
-
usableHeight:
|
|
2086
|
-
}),
|
|
2084
|
+
gap: t,
|
|
2085
|
+
usableHeight: o
|
|
2086
|
+
}), de = Ol(n.comments), m = n.series.map((e, t) => {
|
|
2087
2087
|
if (G.value && (e.x == null || e.y == null)) return {
|
|
2088
2088
|
index: t,
|
|
2089
2089
|
x: null,
|
|
2090
2090
|
y: null,
|
|
2091
2091
|
value: null,
|
|
2092
2092
|
datasetXValue: bl(e),
|
|
2093
|
-
comment:
|
|
2093
|
+
comment: n.comments && n.comments.slice(U.value.start, U.value.end)[t] || ""
|
|
2094
2094
|
};
|
|
2095
|
-
let
|
|
2095
|
+
let r = H.value.useIndividualScale ? (n.absoluteValues[t] + Math.abs(u)) / d : Is(Io(e));
|
|
2096
2096
|
return {
|
|
2097
2097
|
index: t,
|
|
2098
|
-
x:
|
|
2098
|
+
x: _(yl(e, t)),
|
|
2099
2099
|
datasetXValue: bl(e),
|
|
2100
|
-
y:
|
|
2101
|
-
ratio:
|
|
2102
|
-
yOffset:
|
|
2103
|
-
individualHeight:
|
|
2100
|
+
y: _(zs({
|
|
2101
|
+
ratio: r,
|
|
2102
|
+
yOffset: te,
|
|
2103
|
+
individualHeight: f
|
|
2104
2104
|
})),
|
|
2105
|
-
value:
|
|
2106
|
-
comment:
|
|
2105
|
+
value: n.absoluteValues[t],
|
|
2106
|
+
comment: de[t] || ""
|
|
2107
2107
|
};
|
|
2108
|
-
}),
|
|
2108
|
+
}), fe = n.series.map((e, t) => G.value && (e.x === null || e.y === null) ? {
|
|
2109
2109
|
index: t,
|
|
2110
2110
|
x: null,
|
|
2111
2111
|
y: null,
|
|
2112
2112
|
datasetXValue: bl(e),
|
|
2113
2113
|
value: null,
|
|
2114
|
-
comment:
|
|
2115
|
-
} : [void 0, null].includes(
|
|
2114
|
+
comment: de[t] || ""
|
|
2115
|
+
} : [void 0, null].includes(n.absoluteValues[t]) ? {
|
|
2116
2116
|
index: t,
|
|
2117
|
-
x:
|
|
2118
|
-
y:
|
|
2119
|
-
value:
|
|
2120
|
-
comment:
|
|
2117
|
+
x: _(yl(e, t)),
|
|
2118
|
+
y: p,
|
|
2119
|
+
value: n.absoluteValues[t],
|
|
2120
|
+
comment: de[t] || ""
|
|
2121
2121
|
} : {
|
|
2122
2122
|
index: t,
|
|
2123
|
-
x:
|
|
2123
|
+
x: _(yl(e, t)),
|
|
2124
2124
|
datasetXValue: bl(e),
|
|
2125
|
-
y:
|
|
2125
|
+
y: _(zs({
|
|
2126
2126
|
ratio: le[t] || 0,
|
|
2127
|
-
yOffset:
|
|
2128
|
-
individualHeight:
|
|
2127
|
+
yOffset: te,
|
|
2128
|
+
individualHeight: f
|
|
2129
2129
|
})),
|
|
2130
|
-
value:
|
|
2131
|
-
comment:
|
|
2132
|
-
}),
|
|
2133
|
-
datapoint:
|
|
2130
|
+
value: n.absoluteValues[t],
|
|
2131
|
+
comment: de[t] || ""
|
|
2132
|
+
}), me = n.dashIndices && Array.isArray(n.dashIndices) && n?.dashIndices?.length > 0, he = V.value.line.cutNullValues ? ie(m) : ne(m.filter((e) => e.value !== null)), ge = V.value.line.cutNullValues ? ie(fe) : ne(fe.filter((e) => e.value !== null)), _e = V.value.line.cutNullValues ? r(m) : ke(m.filter((e) => e.value !== null)), ve = V.value.line.cutNullValues ? r(fe) : ke(fe.filter((e) => e.value !== null)), h = ae(V.value.line.cutNullValues ? m : m.filter((e) => e.value !== null)), g = ae(V.value.line.cutNullValues ? fe : fe.filter((e) => e.value !== null)), be = me ? ue(V.value.line.cutNullValues ? m : m.filter((e) => e.value !== null), n.dashIndices.map((e) => e - U.value.start)) : [], xe = me ? a(V.value.line.cutNullValues ? m : m.filter((e) => e.value !== null), n.dashIndices.map((e) => e - U.value.start)) : [], Se = Jc({
|
|
2133
|
+
datapoint: n,
|
|
2134
2134
|
scaleYLabels: se,
|
|
2135
2135
|
autoScaleYLabels: ce,
|
|
2136
|
-
zeroPosition:
|
|
2136
|
+
zeroPosition: p,
|
|
2137
2137
|
autoScaleZeroPosition: oe,
|
|
2138
|
-
individualMax:
|
|
2139
|
-
autoScaleMax:
|
|
2140
|
-
yOffset:
|
|
2141
|
-
individualHeight:
|
|
2142
|
-
}),
|
|
2138
|
+
individualMax: d,
|
|
2139
|
+
autoScaleMax: ee,
|
|
2140
|
+
yOffset: te,
|
|
2141
|
+
individualHeight: f
|
|
2142
|
+
}), Ce = H.value.useIndividualScale ? n.autoScaling ? oe : p : To.value, we = Math.max(Math.max(n.autoScaling ? oe : se.at(-1) ? se.at(-1).y : 0, J.value?.top), Ce), Te = n.autoScaling ? fe : m, Ee = V.value.line.cutNullValues ? Te : Te.filter((e) => e.value !== null), De = n.absoluteValues.filter((e) => ![
|
|
2143
2143
|
null,
|
|
2144
2144
|
void 0,
|
|
2145
2145
|
NaN
|
|
2146
|
-
].includes(e)),
|
|
2146
|
+
].includes(e)), Oe = !!n.temperatureColors && new Set(De).size <= 1;
|
|
2147
2147
|
return {
|
|
2148
|
-
...
|
|
2149
|
-
isFlatTemperatureLine:
|
|
2150
|
-
temperatureColors:
|
|
2151
|
-
yOffset:
|
|
2148
|
+
...n,
|
|
2149
|
+
isFlatTemperatureLine: Oe,
|
|
2150
|
+
temperatureColors: n.temperatureColors ? n.temperatureColors.map((e) => pe(e)) : null,
|
|
2151
|
+
yOffset: te,
|
|
2152
2152
|
autoScaleYLabels: ce,
|
|
2153
|
-
individualHeight:
|
|
2154
|
-
scaleYLabels:
|
|
2155
|
-
individualScale:
|
|
2156
|
-
individualMax:
|
|
2157
|
-
zeroPosition:
|
|
2158
|
-
curve:
|
|
2159
|
-
plots:
|
|
2160
|
-
dashedStraight:
|
|
2161
|
-
dashedSmooth:
|
|
2162
|
-
hasDashedSegments:
|
|
2163
|
-
area:
|
|
2164
|
-
curveAreas:
|
|
2165
|
-
straight:
|
|
2166
|
-
scaleGroup:
|
|
2167
|
-
groupId:
|
|
2153
|
+
individualHeight: f,
|
|
2154
|
+
scaleYLabels: n.autoScaling ? ce : se,
|
|
2155
|
+
individualScale: n.autoScaling ? l : c,
|
|
2156
|
+
individualMax: n.autoScaling ? ee : d,
|
|
2157
|
+
zeroPosition: n.autoScaling ? oe : p,
|
|
2158
|
+
curve: n.useStepper ? n.autoScaling ? g : h : n.autoScaling ? ge : he,
|
|
2159
|
+
plots: n.autoScaling ? fe : m,
|
|
2160
|
+
dashedStraight: be,
|
|
2161
|
+
dashedSmooth: xe,
|
|
2162
|
+
hasDashedSegments: me,
|
|
2163
|
+
area: n.useArea ? n.useStepper ? ae(Ee, we) : H.value.useIndividualScale ? V.value.line.cutNullValues ? re(n.autoScaling ? fe : m, we) : i(n.autoScaling ? fe.filter((e) => e.value !== null) : m.filter((e) => e.value !== null), we) : V.value.line.cutNullValues ? re(m, we) : i(m.filter((e) => e.value !== null), we) : "",
|
|
2164
|
+
curveAreas: n.useArea ? n.useStepper ? ae(Ee, we).split(";").filter(Boolean).map((e) => `M${e}Z`) : ye(n.autoScaling ? V.value.line.cutNullValues ? fe : fe.filter((e) => e.value !== null) : V.value.line.cutNullValues ? m : m.filter((e) => e.value !== null), we, V.value.line.cutNullValues) : [],
|
|
2165
|
+
straight: n.useStepper ? n.autoScaling ? g : h : n.autoScaling ? ve : _e,
|
|
2166
|
+
scaleGroup: Se,
|
|
2167
|
+
groupId: Se.groupId
|
|
2168
2168
|
};
|
|
2169
2169
|
});
|
|
2170
|
-
}), $ =
|
|
2170
|
+
}), $ = y(() => {
|
|
2171
2171
|
let e = zc.value, t = V.value.chart.grid.labels.yAxis.gap, n = H.value.isStacked ? t * (e - 1) : 0, r = J.value.height - n;
|
|
2172
2172
|
return Hc.value.map((n) => {
|
|
2173
|
-
let { individualScale: i, autoScaleSteps: a, individualZero: o, individualMax: s, autoScaleMax: c, yOffset: l, individualHeight: u, zeroPosition: d, autoScaleZeroPosition:
|
|
2173
|
+
let { individualScale: i, autoScaleSteps: a, individualZero: o, individualMax: s, autoScaleMax: c, yOffset: l, individualHeight: u, zeroPosition: d, autoScaleZeroPosition: ee, scaleYLabels: te, autoScaleYLabels: ne, autoScaleRatiosToNiceScale: f } = Dl({
|
|
2174
2174
|
datapoint: n,
|
|
2175
2175
|
totalSeries: e,
|
|
2176
2176
|
gap: t,
|
|
2177
2177
|
usableHeight: r,
|
|
2178
2178
|
forceExactScale: !0,
|
|
2179
2179
|
preserveLooseMinimumExpression: !0
|
|
2180
|
-
}),
|
|
2180
|
+
}), re = Ol(n.comments), ie = n.series.map((e, t) => {
|
|
2181
2181
|
if (G.value && (e.x == null || e.y == null)) return {
|
|
2182
2182
|
index: t,
|
|
2183
2183
|
x: null,
|
|
2184
2184
|
datasetXValue: bl(e),
|
|
2185
2185
|
y: null,
|
|
2186
2186
|
value: null,
|
|
2187
|
-
comment:
|
|
2187
|
+
comment: re[t] || ""
|
|
2188
2188
|
};
|
|
2189
2189
|
let r = H.value.useIndividualScale ? (n.absoluteValues[t] + Math.abs(o)) / s : Is(Io(e));
|
|
2190
2190
|
return {
|
|
2191
2191
|
index: t,
|
|
2192
|
-
x:
|
|
2192
|
+
x: _(yl(e, t)),
|
|
2193
2193
|
datasetXValue: bl(e),
|
|
2194
|
-
y:
|
|
2194
|
+
y: _(zs({
|
|
2195
2195
|
ratio: r,
|
|
2196
2196
|
yOffset: l,
|
|
2197
2197
|
individualHeight: u
|
|
2198
2198
|
})),
|
|
2199
2199
|
value: n.absoluteValues[t],
|
|
2200
|
-
comment:
|
|
2200
|
+
comment: re[t] || ""
|
|
2201
2201
|
};
|
|
2202
|
-
}),
|
|
2202
|
+
}), ae = n.series.map((e, t) => G.value && (e.x === null || e.y === null) ? {
|
|
2203
2203
|
index: t,
|
|
2204
2204
|
x: null,
|
|
2205
2205
|
datasetXValue: bl(e),
|
|
2206
2206
|
y: null,
|
|
2207
2207
|
value: null,
|
|
2208
|
-
comment:
|
|
2208
|
+
comment: re[t] || ""
|
|
2209
2209
|
} : {
|
|
2210
2210
|
index: t,
|
|
2211
|
-
x:
|
|
2211
|
+
x: _(yl(e, t)),
|
|
2212
2212
|
datasetXValue: bl(e),
|
|
2213
|
-
y:
|
|
2214
|
-
ratio:
|
|
2213
|
+
y: _(zs({
|
|
2214
|
+
ratio: f[t] || 0,
|
|
2215
2215
|
yOffset: l,
|
|
2216
2216
|
individualHeight: u
|
|
2217
2217
|
})),
|
|
2218
2218
|
value: n.absoluteValues[t],
|
|
2219
|
-
comment:
|
|
2220
|
-
}),
|
|
2219
|
+
comment: re[t] || ""
|
|
2220
|
+
}), p = Jc({
|
|
2221
2221
|
datapoint: n,
|
|
2222
|
-
scaleYLabels:
|
|
2223
|
-
autoScaleYLabels:
|
|
2222
|
+
scaleYLabels: te,
|
|
2223
|
+
autoScaleYLabels: ne,
|
|
2224
2224
|
zeroPosition: d,
|
|
2225
|
-
autoScaleZeroPosition:
|
|
2225
|
+
autoScaleZeroPosition: ee,
|
|
2226
2226
|
individualMax: s,
|
|
2227
2227
|
autoScaleMax: c,
|
|
2228
2228
|
yOffset: l,
|
|
@@ -2231,18 +2231,18 @@ var Ot = /* @__PURE__ */ e({ default: () => M }), kt = ["id"], At = ["id"], jt =
|
|
|
2231
2231
|
return {
|
|
2232
2232
|
...n,
|
|
2233
2233
|
yOffset: l,
|
|
2234
|
-
autoScaleYLabels:
|
|
2234
|
+
autoScaleYLabels: ne,
|
|
2235
2235
|
individualHeight: u,
|
|
2236
|
-
scaleYLabels: n.autoScaling ?
|
|
2236
|
+
scaleYLabels: n.autoScaling ? ne : te,
|
|
2237
2237
|
individualScale: n.autoScaling ? a : i,
|
|
2238
2238
|
individualMax: n.autoScaling ? c : s,
|
|
2239
|
-
zeroPosition: n.autoScaling ?
|
|
2240
|
-
plots: n.autoScaling ?
|
|
2241
|
-
scaleGroup:
|
|
2242
|
-
groupId:
|
|
2239
|
+
zeroPosition: n.autoScaling ? ee : d,
|
|
2240
|
+
plots: n.autoScaling ? ae : ie,
|
|
2241
|
+
scaleGroup: p,
|
|
2242
|
+
groupId: p.groupId
|
|
2243
2243
|
};
|
|
2244
2244
|
});
|
|
2245
|
-
}), jl =
|
|
2245
|
+
}), jl = y(() => {
|
|
2246
2246
|
let e = Object.entries(Kc.value).reduce((e, [t, n]) => (e[t] = {
|
|
2247
2247
|
...n,
|
|
2248
2248
|
scaleLabel: t
|
|
@@ -2257,7 +2257,7 @@ var Ot = /* @__PURE__ */ e({ default: () => M }), kt = ["id"], At = ["id"], jt =
|
|
|
2257
2257
|
...t.scaleGroup
|
|
2258
2258
|
});
|
|
2259
2259
|
}), e;
|
|
2260
|
-
}), Ml =
|
|
2260
|
+
}), Ml = y(() => {
|
|
2261
2261
|
let e = Q.value.map((e) => ({
|
|
2262
2262
|
name: e.name,
|
|
2263
2263
|
color: e.color,
|
|
@@ -2306,7 +2306,7 @@ var Ot = /* @__PURE__ */ e({ default: () => M }), kt = ["id"], At = ["id"], jt =
|
|
|
2306
2306
|
id: e.id,
|
|
2307
2307
|
groupId: e.groupId,
|
|
2308
2308
|
scaleLabel: e.scaleLabel,
|
|
2309
|
-
name:
|
|
2309
|
+
name: h(V.value.chart.grid.labels.yAxis.serieNameFormatter, r, r, e),
|
|
2310
2310
|
color: H.value.useIndividualScale && !H.value.isStacked ? e.unique ? e.color : e.groupColor : e.color,
|
|
2311
2311
|
scale: e.scale,
|
|
2312
2312
|
yOffset: e.yOffset,
|
|
@@ -2324,7 +2324,7 @@ var Ot = /* @__PURE__ */ e({ default: () => M }), kt = ["id"], At = ["id"], jt =
|
|
|
2324
2324
|
}))
|
|
2325
2325
|
};
|
|
2326
2326
|
});
|
|
2327
|
-
}), Nl =
|
|
2327
|
+
}), Nl = y(() => {
|
|
2328
2328
|
let e = V.value.line.interLine || {}, t = e.pairs || [], n = e.colors || [];
|
|
2329
2329
|
if (!t.length) return [];
|
|
2330
2330
|
let r = [];
|
|
@@ -2334,7 +2334,7 @@ var Ot = /* @__PURE__ */ e({ default: () => M }), kt = ["id"], At = ["id"], jt =
|
|
|
2334
2334
|
let o = Q.value.find((e) => e.name === i), s = Q.value.find((e) => e.name === a);
|
|
2335
2335
|
if (!o || !s || o.type !== "line" || s.type !== "line") return;
|
|
2336
2336
|
let c = n?.[t]?.[0] ?? o.color, l = n?.[t]?.[1] ?? s.color;
|
|
2337
|
-
|
|
2337
|
+
he({
|
|
2338
2338
|
lineA: o.plots,
|
|
2339
2339
|
lineB: s.plots,
|
|
2340
2340
|
smoothA: !!o.smooth,
|
|
@@ -2350,7 +2350,7 @@ var Ot = /* @__PURE__ */ e({ default: () => M }), kt = ["id"], At = ["id"], jt =
|
|
|
2350
2350
|
});
|
|
2351
2351
|
});
|
|
2352
2352
|
}), r;
|
|
2353
|
-
}), Pl =
|
|
2353
|
+
}), Pl = y(() => {
|
|
2354
2354
|
let e = Z.value[0]?.index ?? null, t = G.value ? e : R.value;
|
|
2355
2355
|
return {
|
|
2356
2356
|
timeLabel: G.value ? {
|
|
@@ -2376,12 +2376,12 @@ var Ot = /* @__PURE__ */ e({ default: () => M }), kt = ["id"], At = ["id"], jt =
|
|
|
2376
2376
|
_t(() => {
|
|
2377
2377
|
let e = ++Il, t = V.value.chart.grid.labels.xAxisLabels.datetimeFormatter;
|
|
2378
2378
|
(async () => {
|
|
2379
|
-
let n = await
|
|
2379
|
+
let n = await Me(t.locale).catch(() => Me("en"));
|
|
2380
2380
|
e === Il && (Fl.value = n.data);
|
|
2381
2381
|
})();
|
|
2382
2382
|
});
|
|
2383
|
-
let Ll =
|
|
2384
|
-
let e = V.value.chart.grid.labels.xAxisLabels.datetimeFormatter, t =
|
|
2383
|
+
let Ll = y(() => {
|
|
2384
|
+
let e = V.value.chart.grid.labels.xAxisLabels.datetimeFormatter, t = je({
|
|
2385
2385
|
useUTC: e.useUTC,
|
|
2386
2386
|
locale: Fl.value,
|
|
2387
2387
|
januaryAsYear: e.januaryAsYear
|
|
@@ -2390,7 +2390,7 @@ var Ot = /* @__PURE__ */ e({ default: () => M }), kt = ["id"], At = ["id"], jt =
|
|
|
2390
2390
|
let r = V.value.chart.grid.labels.xAxisLabels.values?.[e];
|
|
2391
2391
|
return r == null ? "" : t.formatDate(new Date(r), n);
|
|
2392
2392
|
};
|
|
2393
|
-
}), Rl =
|
|
2393
|
+
}), Rl = y(() => (V.value.chart.grid.labels.xAxisLabels.values || []).map((e, t) => ({
|
|
2394
2394
|
text: Ll.value(t, V.value.chart.zoom.timeFormat),
|
|
2395
2395
|
absoluteIndex: t
|
|
2396
2396
|
}))), zl = /* @__PURE__ */ new Map();
|
|
@@ -2421,10 +2421,10 @@ var Ot = /* @__PURE__ */ e({ default: () => M }), kt = ["id"], At = ["id"], jt =
|
|
|
2421
2421
|
function Hl(e) {
|
|
2422
2422
|
let t = Vl(e);
|
|
2423
2423
|
if (zl.has(t)) return zl.get(t);
|
|
2424
|
-
let
|
|
2424
|
+
let r = V.value.chart.tooltip.backgroundColor, i = "", a = "";
|
|
2425
2425
|
switch (aa.value[e.type]) {
|
|
2426
2426
|
case "bar":
|
|
2427
|
-
|
|
2427
|
+
i = `<svg viewBox="0 0 40 40" height="14" width="14">${Fi.pattern ? `<rect x="0" y="0" rx="1" stroke="none" height="40" width="40" fill="${e.color}" />` : ""}<rect x="0" y="0" rx="1" stroke="none" height="40" width="40" fill="${Fi.pattern ? `url(#pattern_${F.value}_${e.slotAbsoluteIndex})` : e.color}" /></svg>`;
|
|
2428
2428
|
break;
|
|
2429
2429
|
case "line":
|
|
2430
2430
|
!e.shape || ![
|
|
@@ -2434,7 +2434,7 @@ var Ot = /* @__PURE__ */ e({ default: () => M }), kt = ["id"], At = ["id"], jt =
|
|
|
2434
2434
|
"diamond",
|
|
2435
2435
|
"pentagon",
|
|
2436
2436
|
"hexagon"
|
|
2437
|
-
].includes(e.shape) ?
|
|
2437
|
+
].includes(e.shape) ? a = `<circle cx="10" cy="8" r="4" stroke="${r}" stroke-width="0.5" fill="${e.color}" />` : e.shape === "triangle" ? a = `<path d="${n({
|
|
2438
2438
|
plot: {
|
|
2439
2439
|
x: 10,
|
|
2440
2440
|
y: 8
|
|
@@ -2442,7 +2442,7 @@ var Ot = /* @__PURE__ */ e({ default: () => M }), kt = ["id"], At = ["id"], jt =
|
|
|
2442
2442
|
radius: 4,
|
|
2443
2443
|
sides: 3,
|
|
2444
2444
|
rotation: .52
|
|
2445
|
-
}).path}" fill="${e.color}" stroke="${
|
|
2445
|
+
}).path}" fill="${e.color}" stroke="${r}" stroke-width="0.5" />` : e.shape === "square" ? a = `<path d="${n({
|
|
2446
2446
|
plot: {
|
|
2447
2447
|
x: 10,
|
|
2448
2448
|
y: 8
|
|
@@ -2450,7 +2450,7 @@ var Ot = /* @__PURE__ */ e({ default: () => M }), kt = ["id"], At = ["id"], jt =
|
|
|
2450
2450
|
radius: 4,
|
|
2451
2451
|
sides: 4,
|
|
2452
2452
|
rotation: .8
|
|
2453
|
-
}).path}" fill="${e.color}" stroke="${
|
|
2453
|
+
}).path}" fill="${e.color}" stroke="${r}" stroke-width="0.5" />` : e.shape === "diamond" ? a = `<path d="${n({
|
|
2454
2454
|
plot: {
|
|
2455
2455
|
x: 10,
|
|
2456
2456
|
y: 8
|
|
@@ -2458,7 +2458,7 @@ var Ot = /* @__PURE__ */ e({ default: () => M }), kt = ["id"], At = ["id"], jt =
|
|
|
2458
2458
|
radius: 4,
|
|
2459
2459
|
sides: 4,
|
|
2460
2460
|
rotation: 0
|
|
2461
|
-
}).path}" fill="${e.color}" stroke="${
|
|
2461
|
+
}).path}" fill="${e.color}" stroke="${r}" stroke-width="0.5" />` : e.shape === "pentagon" ? a = `<path d="${n({
|
|
2462
2462
|
plot: {
|
|
2463
2463
|
x: 10,
|
|
2464
2464
|
y: 8
|
|
@@ -2466,7 +2466,7 @@ var Ot = /* @__PURE__ */ e({ default: () => M }), kt = ["id"], At = ["id"], jt =
|
|
|
2466
2466
|
radius: 4,
|
|
2467
2467
|
sides: 5,
|
|
2468
2468
|
rotation: .95
|
|
2469
|
-
}).path}" fill="${e.color}" stroke="${
|
|
2469
|
+
}).path}" fill="${e.color}" stroke="${r}" stroke-width="0.5" />` : e.shape === "hexagon" ? a = `<path d="${n({
|
|
2470
2470
|
plot: {
|
|
2471
2471
|
x: 10,
|
|
2472
2472
|
y: 8
|
|
@@ -2474,13 +2474,13 @@ var Ot = /* @__PURE__ */ e({ default: () => M }), kt = ["id"], At = ["id"], jt =
|
|
|
2474
2474
|
radius: 4,
|
|
2475
2475
|
sides: 6,
|
|
2476
2476
|
rotation: 0
|
|
2477
|
-
}).path}" fill="${e.color}" stroke="${
|
|
2477
|
+
}).path}" fill="${e.color}" stroke="${r}" stroke-width="0.5" />` : e.shape === "star" && (a = `<polygon stroke="${r}" stroke-width="0.5" fill="${e.color}" points="${ee({
|
|
2478
2478
|
plot: {
|
|
2479
2479
|
x: 10,
|
|
2480
2480
|
y: 8
|
|
2481
2481
|
},
|
|
2482
2482
|
radius: 4
|
|
2483
|
-
})}" />`),
|
|
2483
|
+
})}" />`), i = `<svg viewBox="0 0 20 12" height="14" width="20"><rect rx="1.5" x="0" y="6.5" stroke="${r}" stroke-width="0.5" height="3" width="20" fill="${e.color}" />${a}</svg>`;
|
|
2484
2484
|
break;
|
|
2485
2485
|
case "plot":
|
|
2486
2486
|
if (!e.shape || ![
|
|
@@ -2491,11 +2491,11 @@ var Ot = /* @__PURE__ */ e({ default: () => M }), kt = ["id"], At = ["id"], jt =
|
|
|
2491
2491
|
"pentagon",
|
|
2492
2492
|
"hexagon"
|
|
2493
2493
|
].includes(e.shape)) {
|
|
2494
|
-
|
|
2494
|
+
i = `<svg viewBox="0 0 12 12" height="14" width="14"><circle cx="6" cy="6" r="6" stroke="${r}" stroke-width="1" fill="${e.color}" /></svg>`;
|
|
2495
2495
|
break;
|
|
2496
2496
|
}
|
|
2497
2497
|
if (e.shape === "star") {
|
|
2498
|
-
|
|
2498
|
+
i = `<svg viewBox="0 0 12 12" height="14" width="14"><polygon stroke="${r}" stroke-width="1" fill="${e.color}" points="${ee({
|
|
2499
2499
|
plot: {
|
|
2500
2500
|
x: 6,
|
|
2501
2501
|
y: 6
|
|
@@ -2505,7 +2505,7 @@ var Ot = /* @__PURE__ */ e({ default: () => M }), kt = ["id"], At = ["id"], jt =
|
|
|
2505
2505
|
break;
|
|
2506
2506
|
}
|
|
2507
2507
|
if (e.shape === "triangle") {
|
|
2508
|
-
|
|
2508
|
+
i = `<svg viewBox="0 0 12 12" height="14" width="14"><path d="${n({
|
|
2509
2509
|
plot: {
|
|
2510
2510
|
x: 6,
|
|
2511
2511
|
y: 6
|
|
@@ -2513,11 +2513,11 @@ var Ot = /* @__PURE__ */ e({ default: () => M }), kt = ["id"], At = ["id"], jt =
|
|
|
2513
2513
|
radius: 6,
|
|
2514
2514
|
sides: 3,
|
|
2515
2515
|
rotation: .52
|
|
2516
|
-
}).path}" fill="${e.color}" stroke="${
|
|
2516
|
+
}).path}" fill="${e.color}" stroke="${r}" stroke-width="1" /></svg>`;
|
|
2517
2517
|
break;
|
|
2518
2518
|
}
|
|
2519
2519
|
if (e.shape === "square") {
|
|
2520
|
-
|
|
2520
|
+
i = `<svg viewBox="0 0 12 12" height="14" width="14"><path d="${n({
|
|
2521
2521
|
plot: {
|
|
2522
2522
|
x: 6,
|
|
2523
2523
|
y: 6
|
|
@@ -2525,11 +2525,11 @@ var Ot = /* @__PURE__ */ e({ default: () => M }), kt = ["id"], At = ["id"], jt =
|
|
|
2525
2525
|
radius: 6,
|
|
2526
2526
|
sides: 4,
|
|
2527
2527
|
rotation: .8
|
|
2528
|
-
}).path}" fill="${e.color}" stroke="${
|
|
2528
|
+
}).path}" fill="${e.color}" stroke="${r}" stroke-width="1" /></svg>`;
|
|
2529
2529
|
break;
|
|
2530
2530
|
}
|
|
2531
2531
|
if (e.shape === "diamond") {
|
|
2532
|
-
|
|
2532
|
+
i = `<svg viewBox="0 0 12 12" height="14" width="14"><path d="${n({
|
|
2533
2533
|
plot: {
|
|
2534
2534
|
x: 6,
|
|
2535
2535
|
y: 6
|
|
@@ -2537,11 +2537,11 @@ var Ot = /* @__PURE__ */ e({ default: () => M }), kt = ["id"], At = ["id"], jt =
|
|
|
2537
2537
|
radius: 5,
|
|
2538
2538
|
sides: 4,
|
|
2539
2539
|
rotation: 0
|
|
2540
|
-
}).path}" fill="${e.color}" stroke="${
|
|
2540
|
+
}).path}" fill="${e.color}" stroke="${r}" stroke-width="1" /></svg>`;
|
|
2541
2541
|
break;
|
|
2542
2542
|
}
|
|
2543
2543
|
if (e.shape === "pentagon") {
|
|
2544
|
-
|
|
2544
|
+
i = `<svg viewBox="0 0 12 12" height="14" width="14"><path d="${n({
|
|
2545
2545
|
plot: {
|
|
2546
2546
|
x: 6,
|
|
2547
2547
|
y: 6
|
|
@@ -2549,11 +2549,11 @@ var Ot = /* @__PURE__ */ e({ default: () => M }), kt = ["id"], At = ["id"], jt =
|
|
|
2549
2549
|
radius: 5,
|
|
2550
2550
|
sides: 5,
|
|
2551
2551
|
rotation: .95
|
|
2552
|
-
}).path}" fill="${e.color}" stroke="${
|
|
2552
|
+
}).path}" fill="${e.color}" stroke="${r}" stroke-width="1" /></svg>`;
|
|
2553
2553
|
break;
|
|
2554
2554
|
}
|
|
2555
2555
|
if (e.shape === "hexagon") {
|
|
2556
|
-
|
|
2556
|
+
i = `<svg viewBox="0 0 12 12" height="14" width="14"><path d="${n({
|
|
2557
2557
|
plot: {
|
|
2558
2558
|
x: 6,
|
|
2559
2559
|
y: 6
|
|
@@ -2561,23 +2561,23 @@ var Ot = /* @__PURE__ */ e({ default: () => M }), kt = ["id"], At = ["id"], jt =
|
|
|
2561
2561
|
radius: 5,
|
|
2562
2562
|
sides: 6,
|
|
2563
2563
|
rotation: 0
|
|
2564
|
-
}).path}" fill="${e.color}" stroke="${
|
|
2564
|
+
}).path}" fill="${e.color}" stroke="${r}" stroke-width="1" /></svg>`;
|
|
2565
2565
|
break;
|
|
2566
2566
|
}
|
|
2567
2567
|
break;
|
|
2568
2568
|
default: break;
|
|
2569
2569
|
}
|
|
2570
|
-
return zl.set(t,
|
|
2570
|
+
return zl.set(t, i), i;
|
|
2571
2571
|
}
|
|
2572
|
-
let Ul =
|
|
2573
|
-
let e = "", t = tl.value.map((e) => e.value).filter((e) =>
|
|
2572
|
+
let Ul = y(() => {
|
|
2573
|
+
let e = "", t = tl.value.map((e) => e.value).filter((e) => me(e) && e !== null).reduce((e, t) => Math.abs(e) + Math.abs(t), 0), n = G.value ? { text: h(V.value.chart.grid.labels.xAxis.formatter, Z.value[0]?.point.raw?.x ?? Z.value[0]?.point.x, u({
|
|
2574
2574
|
v: Z.value[0]?.point.raw?.x ?? Z.value[0]?.point.x,
|
|
2575
2575
|
r: V.value.chart.tooltip.roundingValue
|
|
2576
2576
|
}), {
|
|
2577
2577
|
datapoint: null,
|
|
2578
2578
|
serriesIndex: null
|
|
2579
2579
|
}) } : Y.value[R.value], r = V.value.chart.tooltip.customFormat;
|
|
2580
|
-
if (
|
|
2580
|
+
if (Oe(r)) try {
|
|
2581
2581
|
let e = r(Bl(n));
|
|
2582
2582
|
if (typeof e == "string") return e;
|
|
2583
2583
|
} catch (e) {
|
|
@@ -2588,8 +2588,8 @@ var Ot = /* @__PURE__ */ e({ default: () => M }), kt = ["id"], At = ["id"], jt =
|
|
|
2588
2588
|
G.value || (e += `<div style="padding-bottom: 6px; margin-bottom: 4px; border-bottom: 1px solid ${V.value.chart.tooltip.borderColor}; width:100%">${V.value.chart.grid.labels.xAxisLabels.datetimeFormatter.enable && !V.value.chart.tooltip.useDefaultTimeFormat ? t : n.text}</div>`);
|
|
2589
2589
|
}
|
|
2590
2590
|
return tl.value.forEach((r) => {
|
|
2591
|
-
if (
|
|
2592
|
-
let i = Hl(r), a = V.value.chart.tooltip.showValue ?
|
|
2591
|
+
if (me(r.value)) {
|
|
2592
|
+
let i = Hl(r), a = V.value.chart.tooltip.showValue ? h(r.type === "line" ? V.value.line.labels.formatter : r.type === "bar" ? V.value.bar.labels.formatter : V.value.plot.labels.formatter, r.value, u({
|
|
2593
2593
|
p: r.prefix,
|
|
2594
2594
|
v: r.value,
|
|
2595
2595
|
s: r.suffix,
|
|
@@ -2610,8 +2610,8 @@ var Ot = /* @__PURE__ */ e({ default: () => M }), kt = ["id"], At = ["id"], jt =
|
|
|
2610
2610
|
</div>
|
|
2611
2611
|
</div>
|
|
2612
2612
|
</div>
|
|
2613
|
-
` : e += `<div style="display:flex;flex-direction:row; align-items:center;gap:3px;white-space:nowrap;"><div style="width:20px">${i}</div> ${r.name}: <b>${s}</b> ${V.value.chart.tooltip.showPercentage ? `(${
|
|
2614
|
-
v:
|
|
2613
|
+
` : e += `<div style="display:flex;flex-direction:row; align-items:center;gap:3px;white-space:nowrap;"><div style="width:20px">${i}</div> ${r.name}: <b>${s}</b> ${V.value.chart.tooltip.showPercentage ? `(${u({
|
|
2614
|
+
v: _(Math.abs(r.value) / t * 100),
|
|
2615
2615
|
s: "%",
|
|
2616
2616
|
r: V.value.chart.tooltip.roundingPercentage
|
|
2617
2617
|
})})` : ""}</div>`;
|
|
@@ -2619,7 +2619,7 @@ var Ot = /* @__PURE__ */ e({ default: () => M }), kt = ["id"], At = ["id"], jt =
|
|
|
2619
2619
|
V.value.chart.comments.showInTooltip && c && (e += `<div class="vue-data-ui-tooltip-comment" style="background:${r.color}20; padding: 6px; margin-bottom: 6px; border-left: 1px solid ${r.color}">${c}</div>`);
|
|
2620
2620
|
}
|
|
2621
2621
|
}), `<div style="border-radius:4px;padding:12px;font-variant-numeric: tabular-nums;color:${V.value.chart.tooltip.color}">${e}</div>`;
|
|
2622
|
-
}), Wl =
|
|
2622
|
+
}), Wl = y(() => {
|
|
2623
2623
|
if (!G.value) return [];
|
|
2624
2624
|
let e = /* @__PURE__ */ new Set(), t = [];
|
|
2625
2625
|
return K.value.forEach((n) => {
|
|
@@ -2633,7 +2633,7 @@ var Ot = /* @__PURE__ */ e({ default: () => M }), kt = ["id"], At = ["id"], jt =
|
|
|
2633
2633
|
});
|
|
2634
2634
|
function Gl(e) {
|
|
2635
2635
|
let t = Number(e);
|
|
2636
|
-
return Number.isFinite(t) ?
|
|
2636
|
+
return Number.isFinite(t) ? h(V.value.chart.grid.labels.xAxis.formatter, t, u({
|
|
2637
2637
|
v: t,
|
|
2638
2638
|
r: V.value.table.rounding
|
|
2639
2639
|
}), {
|
|
@@ -2657,7 +2657,7 @@ var Ot = /* @__PURE__ */ e({ default: () => M }), kt = ["id"], At = ["id"], jt =
|
|
|
2657
2657
|
}
|
|
2658
2658
|
function Yl(e, t) {
|
|
2659
2659
|
let n = ql(e, t);
|
|
2660
|
-
return yt(n) ?
|
|
2660
|
+
return yt(n) ? h(e.type === "line" ? V.value.line.labels.formatter : e.type === "bar" ? V.value.bar.labels.formatter : V.value.plot.labels.formatter, n, u({
|
|
2661
2661
|
p: e.prefix || V.value.chart.labels.prefix,
|
|
2662
2662
|
v: n,
|
|
2663
2663
|
s: e.suffix || V.value.chart.labels.suffix,
|
|
@@ -2667,7 +2667,7 @@ var Ot = /* @__PURE__ */ e({ default: () => M }), kt = ["id"], At = ["id"], jt =
|
|
|
2667
2667
|
function Xl(e) {
|
|
2668
2668
|
return K.value.map((t) => ql(t, e) ?? 0).reduce((e, t) => e + t, 0);
|
|
2669
2669
|
}
|
|
2670
|
-
let Zl =
|
|
2670
|
+
let Zl = y(() => {
|
|
2671
2671
|
if (G.value) return Wl.value.map((e) => {
|
|
2672
2672
|
let t = Xl(e);
|
|
2673
2673
|
return {
|
|
@@ -2690,7 +2690,7 @@ var Ot = /* @__PURE__ */ e({ default: () => M }), kt = ["id"], At = ["id"], jt =
|
|
|
2690
2690
|
});
|
|
2691
2691
|
}
|
|
2692
2692
|
return e;
|
|
2693
|
-
}), Ql =
|
|
2693
|
+
}), Ql = y(() => Lo.value.length === 0 ? {
|
|
2694
2694
|
head: [],
|
|
2695
2695
|
body: [],
|
|
2696
2696
|
config: {},
|
|
@@ -2702,7 +2702,7 @@ var Ot = /* @__PURE__ */ e({ default: () => M }), kt = ["id"], At = ["id"], jt =
|
|
|
2702
2702
|
type: e.type
|
|
2703
2703
|
})),
|
|
2704
2704
|
body: Zl.value.map((e) => [e.period].concat(e.csvValues))
|
|
2705
|
-
}), $l =
|
|
2705
|
+
}), $l = y(() => {
|
|
2706
2706
|
let e = V.value.table.showSum, t = [G.value ? V.value.chart.grid.labels.axis.xLabel || "X" : ""].concat(K.value.map((e) => e.name));
|
|
2707
2707
|
e && (t = t.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>"));
|
|
2708
2708
|
let n = Zl.value.map((t) => [t.period].concat(t.formattedValues, e ? t.formattedSum : [])), r = {
|
|
@@ -2730,8 +2730,8 @@ var Ot = /* @__PURE__ */ e({ default: () => M }), kt = ["id"], At = ["id"], jt =
|
|
|
2730
2730
|
[V.value.chart.title.text],
|
|
2731
2731
|
[V.value.chart.title.subtitle.text],
|
|
2732
2732
|
[""]
|
|
2733
|
-
], n = [G.value ? V.value.chart.grid.labels.axis.xLabel || "X" : V.value.table.columnNames.period, ...Ql.value.head.map((e) => e.label)], r = Ql.value.body, i =
|
|
2734
|
-
e ? e(i) :
|
|
2733
|
+
], n = [G.value ? V.value.chart.grid.labels.axis.xLabel || "X" : V.value.table.columnNames.period, ...Ql.value.head.map((e) => e.label)], r = Ql.value.body, i = se(t.concat([n]).concat(r));
|
|
2734
|
+
e ? e(i) : m({
|
|
2735
2735
|
csvContent: i,
|
|
2736
2736
|
title: V.value.chart.title.text || "vue-ui-xy"
|
|
2737
2737
|
});
|
|
@@ -2774,43 +2774,43 @@ var Ot = /* @__PURE__ */ e({ default: () => M }), kt = ["id"], At = ["id"], jt =
|
|
|
2774
2774
|
B.value.dataLabels = V.value.chart.grid.labels.fontSize, B.value.yAxis = V.value.chart.grid.labels.axis.fontSize, B.value.xAxis = V.value.chart.grid.labels.xAxisLabels.fontSize, B.value.plotLabels = V.value.chart.labels.fontSize, qa.value.plot = V.value.plot.radius, qa.value.line = V.value.line.radius, qa.value.selectedLine = V.value.line.dot.selectedRadius;
|
|
2775
2775
|
return;
|
|
2776
2776
|
}
|
|
2777
|
-
B.value.dataLabels =
|
|
2777
|
+
B.value.dataLabels = c({
|
|
2778
2778
|
relator: na.value,
|
|
2779
2779
|
adjuster: 400,
|
|
2780
2780
|
source: V.value.chart.grid.labels.fontSize,
|
|
2781
2781
|
threshold: 10,
|
|
2782
2782
|
fallback: 10
|
|
2783
|
-
}), B.value.yAxis =
|
|
2783
|
+
}), B.value.yAxis = c({
|
|
2784
2784
|
relator: P.value,
|
|
2785
2785
|
adjuster: 1e3,
|
|
2786
2786
|
source: V.value.chart.grid.labels.axis.fontSize,
|
|
2787
2787
|
threshold: 10,
|
|
2788
2788
|
fallback: 10
|
|
2789
|
-
}), B.value.xAxis =
|
|
2789
|
+
}), B.value.xAxis = c({
|
|
2790
2790
|
relator: P.value,
|
|
2791
2791
|
adjuster: 1e3,
|
|
2792
2792
|
source: V.value.chart.grid.labels.xAxisLabels.fontSize,
|
|
2793
2793
|
threshold: 10,
|
|
2794
2794
|
fallback: 10
|
|
2795
|
-
}), B.value.plotLabels =
|
|
2795
|
+
}), B.value.plotLabels = c({
|
|
2796
2796
|
relator: P.value,
|
|
2797
2797
|
adjuster: 800,
|
|
2798
2798
|
source: V.value.chart.labels.fontSize,
|
|
2799
2799
|
threshold: 10,
|
|
2800
2800
|
fallback: 10
|
|
2801
|
-
}), qa.value.plot =
|
|
2801
|
+
}), qa.value.plot = c({
|
|
2802
2802
|
relator: P.value,
|
|
2803
2803
|
adjuster: 800,
|
|
2804
2804
|
source: V.value.plot.radius,
|
|
2805
2805
|
threshold: 1,
|
|
2806
2806
|
fallback: 1
|
|
2807
|
-
}), qa.value.line =
|
|
2807
|
+
}), qa.value.line = c({
|
|
2808
2808
|
relator: P.value,
|
|
2809
2809
|
adjuster: 800,
|
|
2810
2810
|
source: V.value.line.radius,
|
|
2811
2811
|
threshold: 1,
|
|
2812
2812
|
fallback: 0
|
|
2813
|
-
}), qa.value.selectedLine =
|
|
2813
|
+
}), qa.value.selectedLine = c({
|
|
2814
2814
|
relator: P.value,
|
|
2815
2815
|
adjuster: 800,
|
|
2816
2816
|
source: V.value.line.dot.selectedRadius,
|
|
@@ -2819,23 +2819,23 @@ var Ot = /* @__PURE__ */ e({ default: () => M }), kt = ["id"], At = ["id"], jt =
|
|
|
2819
2819
|
});
|
|
2820
2820
|
}
|
|
2821
2821
|
function su() {
|
|
2822
|
-
if (
|
|
2822
|
+
if (be(M.dataset) ? (t({
|
|
2823
2823
|
componentName: "VueUiXy",
|
|
2824
2824
|
type: "dataset",
|
|
2825
2825
|
debug: eo.value
|
|
2826
|
-
}), ao.value = !0) : M.dataset.forEach((e,
|
|
2827
|
-
[null, void 0].includes(e.name) && (
|
|
2826
|
+
}), ao.value = !0) : M.dataset.forEach((e, n) => {
|
|
2827
|
+
[null, void 0].includes(e.name) && (t({
|
|
2828
2828
|
componentName: "VueUiXy",
|
|
2829
2829
|
type: "datasetSerieAttribute",
|
|
2830
2830
|
property: "name (string)",
|
|
2831
|
-
index:
|
|
2831
|
+
index: n,
|
|
2832
2832
|
debug: eo.value
|
|
2833
2833
|
}), ao.value = !0);
|
|
2834
2834
|
}), eo.value && M.dataset.forEach((e) => {
|
|
2835
2835
|
e.series.forEach((t, n) => {
|
|
2836
|
-
|
|
2836
|
+
me(t) || console.warn(`VueUiXy has detected an unsafe value in your dataset:\n-----> The serie '${e.name}' contains the value '${t}' at index ${n}.\n'${t}' was converted to null to allow the chart to display.`);
|
|
2837
2837
|
});
|
|
2838
|
-
}),
|
|
2838
|
+
}), be(M.dataset) || (ao.value = V.value.loading), _a.value = V.value.chart.userOptions.showOnChartHover, va.value = V.value.chart.userOptions.keepStateOnChartLeave, ya.value = !V.value.chart.userOptions.showOnChartHover, $a(), V.value.responsive) {
|
|
2839
2839
|
let e = Bi.value.parentNode;
|
|
2840
2840
|
Qi.value && ($i.value && Qi.value.unobserve($i.value), Qi.value.disconnect(), Qi.value = null, $i.value = null);
|
|
2841
2841
|
let { height: t, width: n } = e.getBoundingClientRect(), r = null, i = 0;
|
|
@@ -2867,7 +2867,7 @@ var Ot = /* @__PURE__ */ e({ default: () => M }), kt = ["id"], At = ["id"], jt =
|
|
|
2867
2867
|
su(), Cs(), document.addEventListener("mousemove", cu, { passive: !0 }), document.addEventListener("scroll", $o, { passive: !0 });
|
|
2868
2868
|
}), ct(() => {
|
|
2869
2869
|
document.removeEventListener("scroll", $o, { passive: !0 }), document.removeEventListener("mousemove", cu, { passive: !0 }), Qi.value && ($i.value && Qi.value.unobserve($i.value), Qi.value.disconnect(), Qi.value = null, $i.value = null), gu(), As();
|
|
2870
|
-
}),
|
|
2870
|
+
}), He({
|
|
2871
2871
|
timeLabelsEls: Yi,
|
|
2872
2872
|
timeLabels: Y,
|
|
2873
2873
|
slicer: U,
|
|
@@ -2892,19 +2892,19 @@ var Ot = /* @__PURE__ */ e({ default: () => M }), kt = ["id"], At = ["id"], jt =
|
|
|
2892
2892
|
width: P,
|
|
2893
2893
|
rotation: V.value.chart.grid.labels.xAxisLabels.autoRotate.angle
|
|
2894
2894
|
});
|
|
2895
|
-
let lu = D(!1), uu = D(null), du = D(200), fu =
|
|
2895
|
+
let lu = D(!1), uu = D(null), du = D(200), fu = y(() => R.value ?? I.value ?? 0), pu = y(() => {
|
|
2896
2896
|
if (!G.value) return null;
|
|
2897
|
-
if (
|
|
2897
|
+
if (De(Ea.value)) return Number(Ea.value);
|
|
2898
2898
|
let e = Z.value[0];
|
|
2899
|
-
return
|
|
2899
|
+
return De(e?.point?.x) ? Number(e.point.x) : null;
|
|
2900
2900
|
});
|
|
2901
2901
|
function mu() {
|
|
2902
2902
|
let e = Math.ceil(du.value || 200);
|
|
2903
2903
|
return Math.min(Math.max(e, 1), 200);
|
|
2904
2904
|
}
|
|
2905
2905
|
function hu() {
|
|
2906
|
-
let e = mu(), t = (G.value &&
|
|
2907
|
-
return
|
|
2906
|
+
let e = mu(), t = (G.value && De(pu.value) ? hl({ x: pu.value }) : kc(fu.value)) - e / 2 - (200 - e) / 2, n = J.value?.left - (200 - e) / 2, r = J.value?.right - (200 + e) / 2;
|
|
2907
|
+
return _(Math.max(n, Math.min(t, r)));
|
|
2908
2908
|
}
|
|
2909
2909
|
function gu() {
|
|
2910
2910
|
ja.value !== null && (cancelAnimationFrame(ja.value), ja.value = null), Aa.value && z.value && Aa.value.unobserve(z.value), Aa.value &&= (Aa.value.disconnect(), null), Ma.value &&= (Ma.value(), null), z.value = null;
|
|
@@ -2915,7 +2915,7 @@ var Ot = /* @__PURE__ */ e({ default: () => M }), kt = ["id"], At = ["id"], jt =
|
|
|
2915
2915
|
});
|
|
2916
2916
|
}
|
|
2917
2917
|
function vu(e) {
|
|
2918
|
-
!Aa.value || !e || (z.value && z.value !== e && (Aa.value.unobserve(z.value), z.value = null), e !== z.value && (
|
|
2918
|
+
!Aa.value || !e || (z.value && z.value !== e && (Aa.value.unobserve(z.value), z.value = null), e !== z.value && (ot(() => {
|
|
2919
2919
|
e.offsetParent !== null && _u(e.offsetWidth || e.getBoundingClientRect().width || 200);
|
|
2920
2920
|
}), Aa.value.observe(e), z.value = e));
|
|
2921
2921
|
}
|
|
@@ -2934,14 +2934,14 @@ var Ot = /* @__PURE__ */ e({ default: () => M }), kt = ["id"], At = ["id"], jt =
|
|
|
2934
2934
|
});
|
|
2935
2935
|
});
|
|
2936
2936
|
});
|
|
2937
|
-
let yu =
|
|
2937
|
+
let yu = y(() => {
|
|
2938
2938
|
if (G.value) {
|
|
2939
2939
|
if (!Number.isFinite(Number(pu.value))) return "";
|
|
2940
2940
|
} else if ([null, void 0].includes(R.value) && [null, void 0].includes(I.value)) return "";
|
|
2941
2941
|
let e = (R.value == null ? 0 : R.value) || (I.value == null ? 0 : I.value), t = V.value.chart.timeTag.customFormat;
|
|
2942
2942
|
if (lu.value = !1, G.value) {
|
|
2943
2943
|
let e = pu.value;
|
|
2944
|
-
if (
|
|
2944
|
+
if (Oe(t)) try {
|
|
2945
2945
|
let n = t({
|
|
2946
2946
|
absoluteIndex: e,
|
|
2947
2947
|
seriesIndex: e,
|
|
@@ -2955,12 +2955,12 @@ var Ot = /* @__PURE__ */ e({ default: () => M }), kt = ["id"], At = ["id"], jt =
|
|
|
2955
2955
|
} catch {
|
|
2956
2956
|
console.warn("Custom format cannot be applied on timeTag."), lu.value = !1;
|
|
2957
2957
|
}
|
|
2958
|
-
return
|
|
2958
|
+
return u({
|
|
2959
2959
|
v: e,
|
|
2960
2960
|
r: V.value.chart.grid.labels.xAxis.rounding
|
|
2961
2961
|
});
|
|
2962
2962
|
}
|
|
2963
|
-
if (
|
|
2963
|
+
if (Oe(t)) try {
|
|
2964
2964
|
let n = t({
|
|
2965
2965
|
absoluteIndex: e + U.value.start,
|
|
2966
2966
|
seriesIndex: e,
|
|
@@ -2978,17 +2978,17 @@ var Ot = /* @__PURE__ */ e({ default: () => M }), kt = ["id"], At = ["id"], jt =
|
|
|
2978
2978
|
});
|
|
2979
2979
|
function bu({ serie: e, plot: t, type: n }) {
|
|
2980
2980
|
if (!yt(t.value)) return "";
|
|
2981
|
-
let r =
|
|
2981
|
+
let r = u({
|
|
2982
2982
|
p: e.prefix || V.value.chart.labels.prefix,
|
|
2983
2983
|
v: t.value,
|
|
2984
2984
|
s: e.suffix || V.value.chart.labels.suffix,
|
|
2985
2985
|
r: V.value[n].labels.rounding
|
|
2986
2986
|
}), i = t.datasetXValue;
|
|
2987
|
-
return
|
|
2988
|
-
content: G.value &&
|
|
2987
|
+
return ce({
|
|
2988
|
+
content: G.value && De(i) ? `x: ${u({
|
|
2989
2989
|
v: i,
|
|
2990
2990
|
r: V.value.chart.grid.labels.xAxis.rounding
|
|
2991
|
-
})}\ny: ${r}` :
|
|
2991
|
+
})}\ny: ${r}` : h(V.value[n].labels.formatter, t.value, r, {
|
|
2992
2992
|
datapoint: t,
|
|
2993
2993
|
serie: e
|
|
2994
2994
|
}),
|
|
@@ -3001,14 +3001,14 @@ var Ot = /* @__PURE__ */ e({ default: () => M }), kt = ["id"], At = ["id"], jt =
|
|
|
3001
3001
|
function xu({ plot: e }) {
|
|
3002
3002
|
let t = V.value.bar.labels.offsetY, n = Math.abs(qs(e)), r = e.value < 0, i = {
|
|
3003
3003
|
x: (H.value.useIndividualScale && H.value.isStacked ? e.x + Js.value.line / 2 : Xs(e) + Ys() / 2 - Xc.value / 2) + V.value.bar.labels.offsetX,
|
|
3004
|
-
y:
|
|
3004
|
+
y: _(e.y) + (V.value.bar.labels.alwaysOnTop ? t - (r ? n : 0) : e.value >= 0 ? t : -t * 3)
|
|
3005
3005
|
};
|
|
3006
3006
|
return `translate(${i.x}, ${i.y}) rotate(${V.value.bar.labels.rotation})`;
|
|
3007
3007
|
}
|
|
3008
3008
|
function Su({ plot: e, type: t }) {
|
|
3009
3009
|
let n = V.value[t].labels.offsetY, r = {
|
|
3010
3010
|
x: e.x + V.value[t].labels.offsetX,
|
|
3011
|
-
y:
|
|
3011
|
+
y: _(e.y) + (V.value[t].labels.alwaysOnTop || e.value >= 0 ? n : -n * 3)
|
|
3012
3012
|
};
|
|
3013
3013
|
return `translate(${r.x}, ${r.y}) rotate(${V.value[t].labels.rotation})`;
|
|
3014
3014
|
}
|
|
@@ -3017,22 +3017,22 @@ var Ot = /* @__PURE__ */ e({ default: () => M }), kt = ["id"], At = ["id"], jt =
|
|
|
3017
3017
|
let n = e.value >= 0;
|
|
3018
3018
|
return V.value[t].labels.rotation === 0 ? "middle" : V.value[t].labels.alwaysOnTop || n ? "start" : "end";
|
|
3019
3019
|
}
|
|
3020
|
-
let wu =
|
|
3020
|
+
let wu = y(() => G.value ? De(Ea.value) ? hl({ x: Number(Ea.value) }) : De(ec.value) ? ec.value : null : kc((R.value === null ? 0 : R.value) || (I.value === null ? 0 : I.value))), Tu = y(() => V.value.chart.highlighter.crosshairs.show && hs.value), Eu = y(() => [
|
|
3021
3021
|
...Q.value,
|
|
3022
3022
|
...$.value,
|
|
3023
3023
|
...Al.value
|
|
3024
3024
|
].flatMap((e) => (e.plots || []).filter((t, n) => ku(e, t, n)).filter((e) => yt(e.value)).map((t) => ({
|
|
3025
3025
|
...t,
|
|
3026
3026
|
serie: e,
|
|
3027
|
-
x:
|
|
3028
|
-
y:
|
|
3029
|
-
})))), Du =
|
|
3027
|
+
x: _(t.x),
|
|
3028
|
+
y: _(t.y)
|
|
3029
|
+
})))), Du = y(() => {
|
|
3030
3030
|
if (!Tu.value) return null;
|
|
3031
3031
|
if (G.value) {
|
|
3032
3032
|
let e = Z.value[0], t = e?.point?.raw?.x ?? e?.point?.x;
|
|
3033
|
-
return
|
|
3033
|
+
return De(t) ? {
|
|
3034
3034
|
x: wu.value,
|
|
3035
|
-
text:
|
|
3035
|
+
text: h(V.value.chart.grid.labels.xAxis.formatter, t, u({
|
|
3036
3036
|
v: t,
|
|
3037
3037
|
r: V.value.chart.tooltip.roundingValue
|
|
3038
3038
|
}))
|
|
@@ -3072,7 +3072,7 @@ var Ot = /* @__PURE__ */ e({ default: () => M }), kt = ["id"], At = ["id"], jt =
|
|
|
3072
3072
|
});
|
|
3073
3073
|
}), n;
|
|
3074
3074
|
}
|
|
3075
|
-
let Mu =
|
|
3075
|
+
let Mu = y(() => ju(Al.value, "bar")), Nu = y(() => ju($.value, "plot")), Pu = y(() => ju(Q.value, "line"));
|
|
3076
3076
|
gt(() => M.dataset, (e) => {
|
|
3077
3077
|
if (Array.isArray(e) && e.length > 0 && (ao.value = !1), V.value.chart.zoom.keepState) {
|
|
3078
3078
|
let e = fo.value;
|
|
@@ -3118,10 +3118,10 @@ var Ot = /* @__PURE__ */ e({ default: () => M }), kt = ["id"], At = ["id"], jt =
|
|
|
3118
3118
|
}), gt(V, () => {
|
|
3119
3119
|
$a();
|
|
3120
3120
|
}, { immediate: !0 });
|
|
3121
|
-
let zu =
|
|
3121
|
+
let zu = y(() => {
|
|
3122
3122
|
let e = V.value.table.useDialog && !V.value.showTable, t = H.value.showTable;
|
|
3123
3123
|
return {
|
|
3124
|
-
component: e ? Ni :
|
|
3124
|
+
component: e ? Ni : Ye,
|
|
3125
3125
|
title: `${V.value.chart.title.text}${V.value.chart.title.subtitle.text ? `: ${V.value.chart.title.subtitle.text}` : ""}`,
|
|
3126
3126
|
props: e ? {
|
|
3127
3127
|
backgroundColor: V.value.table.th.backgroundColor,
|
|
@@ -3154,19 +3154,19 @@ var Ot = /* @__PURE__ */ e({ default: () => M }), kt = ["id"], At = ["id"], jt =
|
|
|
3154
3154
|
function Bu() {
|
|
3155
3155
|
H.value.showTable = !1, Zi.value && Zi.value.setTableIconState(!1);
|
|
3156
3156
|
}
|
|
3157
|
-
let Vu =
|
|
3157
|
+
let Vu = y(() => Ro.value.map((e) => ({
|
|
3158
3158
|
shape: e.type === "bar" ? "square" : e.shape ?? "circle",
|
|
3159
3159
|
color: e.color,
|
|
3160
3160
|
name: e.name
|
|
3161
|
-
}))), Hu =
|
|
3161
|
+
}))), Hu = y(() => V.value.chart.backgroundColor), Uu = y(() => V.value.chart.legend), { exportSvg: Wu, getSvg: Gu } = Re({
|
|
3162
3162
|
svg: L,
|
|
3163
|
-
title:
|
|
3163
|
+
title: y(() => V.value.chart.title),
|
|
3164
3164
|
legend: Uu,
|
|
3165
3165
|
legendItems: Vu,
|
|
3166
3166
|
backgroundColor: Hu
|
|
3167
3167
|
});
|
|
3168
3168
|
async function Ku({ isCb: e }) {
|
|
3169
|
-
Ta.value = !0, await
|
|
3169
|
+
Ta.value = !0, await ot();
|
|
3170
3170
|
try {
|
|
3171
3171
|
if (e) {
|
|
3172
3172
|
let { blob: e, url: t, text: n, dataUrl: r } = await Gu();
|
|
@@ -3245,10 +3245,10 @@ var Ot = /* @__PURE__ */ e({ default: () => M }), kt = ["id"], At = ["id"], jt =
|
|
|
3245
3245
|
function $u(e) {
|
|
3246
3246
|
let t = U.value.end - U.value.start;
|
|
3247
3247
|
if (t <= 0) return;
|
|
3248
|
-
let n = J.value.width / t, r =
|
|
3248
|
+
let n = J.value.width / t, r = le(J.value.left + n * e + n / 2, J.value.top + J.value.height / 2, L.value);
|
|
3249
3249
|
r && (Oa.value = r);
|
|
3250
3250
|
}
|
|
3251
|
-
let ed =
|
|
3251
|
+
let ed = y(() => {
|
|
3252
3252
|
if (!$l.value) return null;
|
|
3253
3253
|
let e = V.value.table.showSum, t = [V.value.table.columnNames.period].concat(K.value.map((e) => e.name));
|
|
3254
3254
|
return e && (t = t.concat(V.value.table.columnNames.total)), {
|
|
@@ -3256,7 +3256,7 @@ var Ot = /* @__PURE__ */ e({ default: () => M }), kt = ["id"], At = ["id"], jt =
|
|
|
3256
3256
|
rows: $l.value.body
|
|
3257
3257
|
};
|
|
3258
3258
|
});
|
|
3259
|
-
return
|
|
3259
|
+
return qe({
|
|
3260
3260
|
getData: dc,
|
|
3261
3261
|
getImage: fc,
|
|
3262
3262
|
generatePdf: bo,
|
|
@@ -3273,9 +3273,9 @@ var Ot = /* @__PURE__ */ e({ default: () => M }), kt = ["id"], At = ["id"], jt =
|
|
|
3273
3273
|
toggleFullscreen: au,
|
|
3274
3274
|
copyAlt: Ju,
|
|
3275
3275
|
resetZoom: Ps
|
|
3276
|
-
}), (t, n) => (E(),
|
|
3276
|
+
}), (t, n) => (E(), x("div", {
|
|
3277
3277
|
id: `vue-ui-xy_${F.value}`,
|
|
3278
|
-
class:
|
|
3278
|
+
class: st(`vue-data-ui-component vue-ui-xy ${sa.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${V.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
3279
3279
|
ref_key: "chart",
|
|
3280
3280
|
ref: Bi,
|
|
3281
3281
|
style: T(`background:${V.value.chart.backgroundColor}; color:${V.value.chart.color};width:100%;font-family:${V.value.chart.fontFamily};${V.value.responsive ? "height: 100%" : ""}`),
|
|
@@ -3283,11 +3283,11 @@ var Ot = /* @__PURE__ */ e({ default: () => M }), kt = ["id"], At = ["id"], jt =
|
|
|
3283
3283
|
onMouseleave: is,
|
|
3284
3284
|
onClick: lc
|
|
3285
3285
|
}, [
|
|
3286
|
-
|
|
3286
|
+
S("div", {
|
|
3287
3287
|
id: `chart-instructions-${F.value}`,
|
|
3288
3288
|
class: "sr-only"
|
|
3289
|
-
}, [
|
|
3290
|
-
ed.value?.rows?.length ? (E(), Ze
|
|
3289
|
+
}, [S("p", null, ft(V.value.a11y.translations.keyboardNavigation), 1)], 8, At),
|
|
3290
|
+
ed.value?.rows?.length ? (E(), $e(Ze, {
|
|
3291
3291
|
key: 0,
|
|
3292
3292
|
uid: F.value,
|
|
3293
3293
|
head: ed.value.headers,
|
|
@@ -3300,8 +3300,8 @@ var Ot = /* @__PURE__ */ e({ default: () => M }), kt = ["id"], At = ["id"], jt =
|
|
|
3300
3300
|
"body",
|
|
3301
3301
|
"notice",
|
|
3302
3302
|
"caption"
|
|
3303
|
-
])) :
|
|
3304
|
-
V.value.chart.userOptions.buttons.annotator && L.value ? (E(),
|
|
3303
|
+
])) : b("", !0),
|
|
3304
|
+
V.value.chart.userOptions.buttons.annotator && L.value ? (E(), $e(A(Mi), {
|
|
3305
3305
|
key: 1,
|
|
3306
3306
|
svgRef: L.value,
|
|
3307
3307
|
backgroundColor: V.value.chart.backgroundColor,
|
|
@@ -3311,11 +3311,11 @@ var Ot = /* @__PURE__ */ e({ default: () => M }), kt = ["id"], At = ["id"], jt =
|
|
|
3311
3311
|
onClose: as
|
|
3312
3312
|
}, {
|
|
3313
3313
|
"annotator-action-close": j(() => [k(t.$slots, "annotator-action-close", {}, void 0, !0)]),
|
|
3314
|
-
"annotator-action-color": j(({ color: e }) => [k(t.$slots, "annotator-action-color",
|
|
3315
|
-
"annotator-action-draw": j(({ mode: e }) => [k(t.$slots, "annotator-action-draw",
|
|
3316
|
-
"annotator-action-undo": j(({ disabled: e }) => [k(t.$slots, "annotator-action-undo",
|
|
3317
|
-
"annotator-action-redo": j(({ disabled: e }) => [k(t.$slots, "annotator-action-redo",
|
|
3318
|
-
"annotator-action-delete": j(({ disabled: e }) => [k(t.$slots, "annotator-action-delete",
|
|
3314
|
+
"annotator-action-color": j(({ color: e }) => [k(t.$slots, "annotator-action-color", w(C({ color: e })), void 0, !0)]),
|
|
3315
|
+
"annotator-action-draw": j(({ mode: e }) => [k(t.$slots, "annotator-action-draw", w(C({ mode: e })), void 0, !0)]),
|
|
3316
|
+
"annotator-action-undo": j(({ disabled: e }) => [k(t.$slots, "annotator-action-undo", w(C({ disabled: e })), void 0, !0)]),
|
|
3317
|
+
"annotator-action-redo": j(({ disabled: e }) => [k(t.$slots, "annotator-action-redo", w(C({ disabled: e })), void 0, !0)]),
|
|
3318
|
+
"annotator-action-delete": j(({ disabled: e }) => [k(t.$slots, "annotator-action-delete", w(C({ disabled: e })), void 0, !0)]),
|
|
3319
3319
|
_: 3
|
|
3320
3320
|
}, 8, [
|
|
3321
3321
|
"svgRef",
|
|
@@ -3323,21 +3323,21 @@ var Ot = /* @__PURE__ */ e({ default: () => M }), kt = ["id"], At = ["id"], jt =
|
|
|
3323
3323
|
"color",
|
|
3324
3324
|
"active",
|
|
3325
3325
|
"isCursorPointer"
|
|
3326
|
-
])) :
|
|
3327
|
-
Sc.value ? (E(),
|
|
3326
|
+
])) : b("", !0),
|
|
3327
|
+
Sc.value ? (E(), x("div", {
|
|
3328
3328
|
key: 2,
|
|
3329
3329
|
ref_key: "noTitle",
|
|
3330
3330
|
ref: Gi,
|
|
3331
3331
|
class: "vue-data-ui-no-title-space",
|
|
3332
3332
|
style: "height:36px; width: 100%; background:transparent"
|
|
3333
|
-
}, null, 512)) :
|
|
3334
|
-
V.value.chart.title.show ? (E(),
|
|
3333
|
+
}, null, 512)) : b("", !0),
|
|
3334
|
+
V.value.chart.title.show ? (E(), x("div", {
|
|
3335
3335
|
key: 3,
|
|
3336
3336
|
ref_key: "chartTitle",
|
|
3337
3337
|
ref: Vi,
|
|
3338
3338
|
class: "vue-ui-xy-title",
|
|
3339
3339
|
style: T(`font-family:${V.value.chart.fontFamily}`)
|
|
3340
|
-
}, [(E(),
|
|
3340
|
+
}, [(E(), $e(We, {
|
|
3341
3341
|
key: `title_${ma.value}`,
|
|
3342
3342
|
config: {
|
|
3343
3343
|
title: {
|
|
@@ -3349,9 +3349,9 @@ var Ot = /* @__PURE__ */ e({ default: () => M }), kt = ["id"], At = ["id"], jt =
|
|
|
3349
3349
|
...V.value.chart.title.subtitle
|
|
3350
3350
|
}
|
|
3351
3351
|
}
|
|
3352
|
-
}, null, 8, ["config"]))], 4)) :
|
|
3353
|
-
|
|
3354
|
-
V.value.chart.userOptions.show && (va.value || ya.value) ? (E(),
|
|
3352
|
+
}, null, 8, ["config"]))], 4)) : b("", !0),
|
|
3353
|
+
S("div", { id: `legend-top-${F.value}` }, null, 8, jt),
|
|
3354
|
+
V.value.chart.userOptions.show && (va.value || ya.value) ? (E(), $e(A(Oi), {
|
|
3355
3355
|
ref_key: "userOptionsRef",
|
|
3356
3356
|
ref: Zi,
|
|
3357
3357
|
key: `user_options_${fa.value}`,
|
|
@@ -3394,10 +3394,10 @@ var Ot = /* @__PURE__ */ e({ default: () => M }), kt = ["id"], At = ["id"], jt =
|
|
|
3394
3394
|
onToggleAnnotator: as,
|
|
3395
3395
|
onCopyAlt: Ju,
|
|
3396
3396
|
style: T({ visibility: va.value ? ya.value ? "visible" : "hidden" : "visible" })
|
|
3397
|
-
},
|
|
3397
|
+
}, et({ _: 2 }, [
|
|
3398
3398
|
t.$slots.menuIcon ? {
|
|
3399
3399
|
name: "menuIcon",
|
|
3400
|
-
fn: j(({ isOpen: e, color: n }) => [k(t.$slots, "menuIcon",
|
|
3400
|
+
fn: j(({ isOpen: e, color: n }) => [k(t.$slots, "menuIcon", w(C({
|
|
3401
3401
|
isOpen: e,
|
|
3402
3402
|
color: n
|
|
3403
3403
|
})), void 0, !0)]),
|
|
@@ -3440,12 +3440,12 @@ var Ot = /* @__PURE__ */ e({ default: () => M }), kt = ["id"], At = ["id"], jt =
|
|
|
3440
3440
|
} : void 0,
|
|
3441
3441
|
t.$slots.optionStack ? {
|
|
3442
3442
|
name: "optionStack",
|
|
3443
|
-
fn: j(({ isStack: e }) => [k(t.$slots, "optionStack",
|
|
3443
|
+
fn: j(({ isStack: e }) => [k(t.$slots, "optionStack", w(C({ isStack: e })), void 0, !0)]),
|
|
3444
3444
|
key: "8"
|
|
3445
3445
|
} : void 0,
|
|
3446
3446
|
t.$slots.optionFullscreen ? {
|
|
3447
3447
|
name: "optionFullscreen",
|
|
3448
|
-
fn: j(({ toggleFullscreen: e, isFullscreen: n }) => [k(t.$slots, "optionFullscreen",
|
|
3448
|
+
fn: j(({ toggleFullscreen: e, isFullscreen: n }) => [k(t.$slots, "optionFullscreen", w(C({
|
|
3449
3449
|
toggleFullscreen: e,
|
|
3450
3450
|
isFullscreen: n
|
|
3451
3451
|
})), void 0, !0)]),
|
|
@@ -3453,7 +3453,7 @@ var Ot = /* @__PURE__ */ e({ default: () => M }), kt = ["id"], At = ["id"], jt =
|
|
|
3453
3453
|
} : void 0,
|
|
3454
3454
|
t.$slots.optionAnnotator ? {
|
|
3455
3455
|
name: "optionAnnotator",
|
|
3456
|
-
fn: j(({ toggleAnnotator: e, isAnnotator: n }) => [k(t.$slots, "optionAnnotator",
|
|
3456
|
+
fn: j(({ toggleAnnotator: e, isAnnotator: n }) => [k(t.$slots, "optionAnnotator", w(C({
|
|
3457
3457
|
toggleAnnotator: e,
|
|
3458
3458
|
isAnnotator: n
|
|
3459
3459
|
})), void 0, !0)]),
|
|
@@ -3461,7 +3461,7 @@ var Ot = /* @__PURE__ */ e({ default: () => M }), kt = ["id"], At = ["id"], jt =
|
|
|
3461
3461
|
} : void 0,
|
|
3462
3462
|
t.$slots.optionAltCopy ? {
|
|
3463
3463
|
name: "optionAltCopy",
|
|
3464
|
-
fn: j(({ altCopy: e }) => [k(t.$slots, "optionAltCopy",
|
|
3464
|
+
fn: j(({ altCopy: e }) => [k(t.$slots, "optionAltCopy", w(C({ altCopy: e })), void 0, !0)]),
|
|
3465
3465
|
key: "11"
|
|
3466
3466
|
} : void 0,
|
|
3467
3467
|
t.$slots["custom-menu-before"] ? {
|
|
@@ -3474,12 +3474,12 @@ var Ot = /* @__PURE__ */ e({ default: () => M }), kt = ["id"], At = ["id"], jt =
|
|
|
3474
3474
|
fn: j(() => [k(t.$slots, "custom-menu-after", {}, void 0, !0)]),
|
|
3475
3475
|
key: "13"
|
|
3476
3476
|
} : void 0
|
|
3477
|
-
]), 1032, /* @__PURE__ */ "backgroundColor.color.isPrinting.isImaging.uid.hasTooltip.hasPdf.hasXls.hasImg.hasSvg.hasLabel.hasTable.hasStack.hasFullscreen.hasAltCopy.isStacked.isFullscreen.chartElement.position.isTooltip.titles.hasAnnotator.isAnnotation.callbacks.tableDialog.printScale.isCursorPointer.onGeneratePdf.style".split("."))) :
|
|
3478
|
-
|
|
3477
|
+
]), 1032, /* @__PURE__ */ "backgroundColor.color.isPrinting.isImaging.uid.hasTooltip.hasPdf.hasXls.hasImg.hasSvg.hasLabel.hasTable.hasStack.hasFullscreen.hasAltCopy.isStacked.isFullscreen.chartElement.position.isTooltip.titles.hasAnnotator.isAnnotation.callbacks.tableDialog.printScale.isCursorPointer.onGeneratePdf.style".split("."))) : b("", !0),
|
|
3478
|
+
S("div", Mt, [(E(), x("svg", {
|
|
3479
3479
|
ref_key: "svgRef",
|
|
3480
3480
|
ref: L,
|
|
3481
3481
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3482
|
-
class:
|
|
3482
|
+
class: st([{
|
|
3483
3483
|
"vue-data-ui-fullscreen--on": sa.value,
|
|
3484
3484
|
"vue-data-ui-fulscreen--off": !sa.value
|
|
3485
3485
|
}, "vue-ui-xy-svg vue-data-ui-svg"]),
|
|
@@ -3502,187 +3502,187 @@ var Ot = /* @__PURE__ */ e({ default: () => M }), kt = ["id"], At = ["id"], jt =
|
|
|
3502
3502
|
onFocus: Xu,
|
|
3503
3503
|
onBlur: Zu,
|
|
3504
3504
|
onKeydown: Qu
|
|
3505
|
-
}, [
|
|
3505
|
+
}, [S("g", {
|
|
3506
3506
|
ref_key: "G",
|
|
3507
3507
|
ref: Ki,
|
|
3508
3508
|
class: "vue-data-ui-g"
|
|
3509
3509
|
}, [
|
|
3510
|
-
|
|
3511
|
-
t.$slots["chart-background"] ? (E(),
|
|
3510
|
+
nt(A(ji)),
|
|
3511
|
+
t.$slots["chart-background"] ? (E(), x("foreignObject", {
|
|
3512
3512
|
key: 0,
|
|
3513
3513
|
x: Math.max(0, J.value?.left),
|
|
3514
3514
|
y: J.value?.top,
|
|
3515
3515
|
width: Math.max(0, J.value?.width),
|
|
3516
3516
|
height: Math.max(0, J.value?.height),
|
|
3517
3517
|
style: { pointerEvents: "none" }
|
|
3518
|
-
}, [k(t.$slots, "chart-background", {}, void 0, !0)], 8, Pt)) :
|
|
3519
|
-
X.value > 0 ? (E(),
|
|
3520
|
-
|
|
3521
|
-
V.value.chart.grid.labels.xAxis.showBaseline ? (E(),
|
|
3518
|
+
}, [k(t.$slots, "chart-background", {}, void 0, !0)], 8, Pt)) : b("", !0),
|
|
3519
|
+
X.value > 0 ? (E(), x("g", Ft, [
|
|
3520
|
+
S("g", It, [
|
|
3521
|
+
V.value.chart.grid.labels.xAxis.showBaseline ? (E(), x("line", {
|
|
3522
3522
|
key: 0,
|
|
3523
3523
|
stroke: V.value.chart.grid.stroke,
|
|
3524
3524
|
"stroke-width": "1",
|
|
3525
3525
|
x1: J.value?.left,
|
|
3526
3526
|
x2: J.value?.right,
|
|
3527
|
-
y1: A(
|
|
3528
|
-
y2: A(
|
|
3527
|
+
y1: A(g)(J.value?.bottom),
|
|
3528
|
+
y2: A(g)(J.value?.bottom),
|
|
3529
3529
|
"stroke-linecap": "round",
|
|
3530
3530
|
style: { animation: "none !important" }
|
|
3531
|
-
}, null, 8, Lt)) :
|
|
3532
|
-
H.value.useIndividualScale ? V.value.chart.grid.showHorizontalLines ? (E(!0),
|
|
3531
|
+
}, null, 8, Lt)) : b("", !0),
|
|
3532
|
+
H.value.useIndividualScale ? V.value.chart.grid.showHorizontalLines ? (E(!0), x(v, { key: 2 }, O(Ml.value, (e) => (E(), x("g", { key: `individual_grid_${e.groupId || e.id}` }, [e.id === N.value && e.yLabels.length ? (E(!0), x(v, { key: 0 }, O(e.yLabels, (t) => (E(), x("line", {
|
|
3533
3533
|
key: `selected_individual_grid_line_${e.groupId || e.id}_${t.value}_${t.y}`,
|
|
3534
3534
|
x1: J.value?.left,
|
|
3535
3535
|
x2: J.value?.right,
|
|
3536
|
-
y1: A(
|
|
3537
|
-
y2: A(
|
|
3536
|
+
y1: A(g)(t.y),
|
|
3537
|
+
y2: A(g)(t.y),
|
|
3538
3538
|
stroke: e.color,
|
|
3539
3539
|
"stroke-width": .5,
|
|
3540
3540
|
"stroke-linecap": "round",
|
|
3541
3541
|
style: { animation: "none !important" }
|
|
3542
|
-
}, null, 8, Vt))), 128)) : e.yLabels.length ? (E(!0),
|
|
3542
|
+
}, null, 8, Vt))), 128)) : e.yLabels.length ? (E(!0), x(v, { key: 1 }, O(e.yLabels, (t) => (E(), x("line", {
|
|
3543
3543
|
key: `individual_grid_line_${e.groupId || e.id}_${t.value}_${t.y}`,
|
|
3544
3544
|
x1: J.value?.left,
|
|
3545
3545
|
x2: J.value?.right,
|
|
3546
|
-
y1: A(
|
|
3547
|
-
y2: A(
|
|
3546
|
+
y1: A(g)(t.y),
|
|
3547
|
+
y2: A(g)(t.y),
|
|
3548
3548
|
stroke: V.value.chart.grid.stroke,
|
|
3549
3549
|
"stroke-width": .5,
|
|
3550
3550
|
"stroke-linecap": "round",
|
|
3551
3551
|
style: { animation: "none !important" }
|
|
3552
|
-
}, null, 8, Ht))), 128)) :
|
|
3552
|
+
}, null, 8, Ht))), 128)) : b("", !0)]))), 128)) : b("", !0) : (E(), x(v, { key: 1 }, [V.value.chart.grid.labels.yAxis.showBaseline ? (E(), x("line", {
|
|
3553
3553
|
key: 0,
|
|
3554
3554
|
class: "vue-ui-xy-y-axis",
|
|
3555
3555
|
stroke: V.value.chart.grid.stroke,
|
|
3556
3556
|
"stroke-width": "1",
|
|
3557
3557
|
x1: q.value ? J.value?.right : J.value?.left,
|
|
3558
3558
|
x2: q.value ? J.value?.right : J.value?.left,
|
|
3559
|
-
y1: A(
|
|
3560
|
-
y2: A(
|
|
3559
|
+
y1: A(g)(J.value?.top),
|
|
3560
|
+
y2: A(g)(J.value?.bottom),
|
|
3561
3561
|
"stroke-linecap": "round",
|
|
3562
3562
|
style: { animation: "none !important" }
|
|
3563
|
-
}, null, 8, Rt)) :
|
|
3563
|
+
}, null, 8, Rt)) : b("", !0), V.value.chart.grid.showHorizontalLines ? (E(), x("g", zt, [(E(!0), x(v, null, O(nl.value, (e) => (E(), x("line", {
|
|
3564
3564
|
key: `horizontal_grid_line_${e.value}_${e.y}`,
|
|
3565
3565
|
x1: J.value?.left,
|
|
3566
3566
|
x2: J.value?.right,
|
|
3567
|
-
y1: A(
|
|
3568
|
-
y2: A(
|
|
3567
|
+
y1: A(g)(e.y),
|
|
3568
|
+
y2: A(g)(e.y),
|
|
3569
3569
|
stroke: V.value.chart.grid.stroke,
|
|
3570
3570
|
"stroke-width": .5,
|
|
3571
3571
|
"stroke-linecap": "round",
|
|
3572
3572
|
style: { animation: "none !important" }
|
|
3573
|
-
}, null, 8, Bt))), 128))])) :
|
|
3574
|
-
V.value.chart.grid.showVerticalLines ? (E(),
|
|
3573
|
+
}, null, 8, Bt))), 128))])) : b("", !0)], 64)),
|
|
3574
|
+
V.value.chart.grid.showVerticalLines ? (E(), x("g", Ut, [S("path", {
|
|
3575
3575
|
d: Yo.value,
|
|
3576
3576
|
"stroke-width": .5,
|
|
3577
3577
|
stroke: V.value.chart.grid.stroke,
|
|
3578
3578
|
"stroke-linecap": "round",
|
|
3579
3579
|
style: { animation: "none !important" }
|
|
3580
|
-
}, null, 8, Wt)])) :
|
|
3581
|
-
V.value.chart.grid.labels.xAxisLabels.show ? (E(),
|
|
3580
|
+
}, null, 8, Wt)])) : b("", !0),
|
|
3581
|
+
V.value.chart.grid.labels.xAxisLabels.show ? (E(), x("g", Gt, [S("path", {
|
|
3582
3582
|
d: Xo.value,
|
|
3583
3583
|
stroke: V.value.chart.grid.stroke,
|
|
3584
3584
|
"stroke-width": 1,
|
|
3585
3585
|
"stroke-linecap": "round",
|
|
3586
3586
|
style: { animation: "none !important" }
|
|
3587
|
-
}, null, 8, Kt)])) :
|
|
3587
|
+
}, null, 8, Kt)])) : b("", !0)
|
|
3588
3588
|
]),
|
|
3589
|
-
(E(!0),
|
|
3589
|
+
(E(!0), x(v, null, O(Al.value, (e, n) => (E(), x("defs", { key: `def_rect_${n}` }, [t.$slots["bar-gradient"] ? k(t.$slots, "bar-gradient", at({
|
|
3590
3590
|
key: 0,
|
|
3591
3591
|
ref_for: !0
|
|
3592
3592
|
}, {
|
|
3593
3593
|
series: e,
|
|
3594
3594
|
positiveId: `rectGradient_pos_${n}_${F.value}`,
|
|
3595
3595
|
negativeId: `rectGradient_neg_${n}_${F.value}`
|
|
3596
|
-
}), void 0, !0) : (E(),
|
|
3596
|
+
}), void 0, !0) : (E(), x(v, { key: 1 }, [S("linearGradient", {
|
|
3597
3597
|
id: `rectGradient_pos_${n}_${F.value}`,
|
|
3598
3598
|
x2: "0%",
|
|
3599
3599
|
y2: "100%"
|
|
3600
3600
|
}, [
|
|
3601
|
-
|
|
3601
|
+
S("stop", {
|
|
3602
3602
|
offset: "0%",
|
|
3603
3603
|
"stop-color": e.color
|
|
3604
3604
|
}, null, 8, Jt),
|
|
3605
|
-
|
|
3605
|
+
S("stop", {
|
|
3606
3606
|
offset: "62%",
|
|
3607
|
-
"stop-color": `${A(
|
|
3607
|
+
"stop-color": `${A(Ae)(e.color, .02)}`
|
|
3608
3608
|
}, null, 8, Yt),
|
|
3609
|
-
|
|
3609
|
+
S("stop", {
|
|
3610
3610
|
offset: "100%",
|
|
3611
|
-
"stop-color": `${A(
|
|
3611
|
+
"stop-color": `${A(Ae)(e.color, .05)}`
|
|
3612
3612
|
}, null, 8, Xt)
|
|
3613
|
-
], 8, qt),
|
|
3613
|
+
], 8, qt), S("linearGradient", {
|
|
3614
3614
|
id: `rectGradient_neg_${n}_${F.value}`,
|
|
3615
3615
|
x2: "0%",
|
|
3616
3616
|
y2: "100%"
|
|
3617
3617
|
}, [
|
|
3618
|
-
|
|
3618
|
+
S("stop", {
|
|
3619
3619
|
offset: "0%",
|
|
3620
|
-
"stop-color": `${A(
|
|
3620
|
+
"stop-color": `${A(Ae)(e.color, .05)}`
|
|
3621
3621
|
}, null, 8, Qt),
|
|
3622
|
-
|
|
3622
|
+
S("stop", {
|
|
3623
3623
|
offset: "38%",
|
|
3624
|
-
"stop-color": `${A(
|
|
3624
|
+
"stop-color": `${A(Ae)(e.color, .02)}`
|
|
3625
3625
|
}, null, 8, $t),
|
|
3626
|
-
|
|
3626
|
+
S("stop", {
|
|
3627
3627
|
offset: "100%",
|
|
3628
3628
|
"stop-color": e.color
|
|
3629
3629
|
}, null, 8, en)
|
|
3630
3630
|
], 8, Zt)], 64))]))), 128)),
|
|
3631
|
-
(E(!0),
|
|
3631
|
+
(E(!0), x(v, null, O($.value, (e, t) => (E(), x("defs", { key: `def_plot_${t}` }, [S("radialGradient", {
|
|
3632
3632
|
id: `plotGradient_${t}_${F.value}`,
|
|
3633
3633
|
cx: "50%",
|
|
3634
3634
|
cy: "50%",
|
|
3635
3635
|
r: "50%",
|
|
3636
3636
|
fx: "50%",
|
|
3637
3637
|
fy: "50%"
|
|
3638
|
-
}, [
|
|
3638
|
+
}, [S("stop", {
|
|
3639
3639
|
offset: "0%",
|
|
3640
|
-
"stop-color": `${A(
|
|
3641
|
-
}, null, 8, nn),
|
|
3640
|
+
"stop-color": `${A(Ae)(e.color, .05)}`
|
|
3641
|
+
}, null, 8, nn), S("stop", {
|
|
3642
3642
|
offset: "100%",
|
|
3643
3643
|
"stop-color": e.color
|
|
3644
3644
|
}, null, 8, rn)], 8, tn)]))), 128)),
|
|
3645
|
-
(E(!0),
|
|
3645
|
+
(E(!0), x(v, null, O(Q.value, (e, n) => (E(), x(v, { key: `def_line_${e.id}` }, [S("defs", null, [S("radialGradient", {
|
|
3646
3646
|
id: `lineGradient_${n}_${F.value}`,
|
|
3647
3647
|
cx: "50%",
|
|
3648
3648
|
cy: "50%",
|
|
3649
3649
|
r: "50%",
|
|
3650
3650
|
fx: "50%",
|
|
3651
3651
|
fy: "50%"
|
|
3652
|
-
}, [
|
|
3652
|
+
}, [S("stop", {
|
|
3653
3653
|
offset: "0%",
|
|
3654
|
-
"stop-color": `${A(
|
|
3655
|
-
}, null, 8, on),
|
|
3654
|
+
"stop-color": `${A(Ae)(e.color, .05)}`
|
|
3655
|
+
}, null, 8, on), S("stop", {
|
|
3656
3656
|
offset: "100%",
|
|
3657
3657
|
"stop-color": e.color
|
|
3658
|
-
}, null, 8, sn)], 8, an), t.$slots["area-gradient"] ? k(t.$slots, "area-gradient",
|
|
3658
|
+
}, null, 8, sn)], 8, an), t.$slots["area-gradient"] ? k(t.$slots, "area-gradient", at({
|
|
3659
3659
|
key: 0,
|
|
3660
3660
|
ref_for: !0
|
|
3661
3661
|
}, {
|
|
3662
3662
|
series: e,
|
|
3663
3663
|
id: `areaGradient_${n}_${F.value}`
|
|
3664
|
-
}), void 0, !0) : (E(),
|
|
3664
|
+
}), void 0, !0) : (E(), x("linearGradient", {
|
|
3665
3665
|
key: 1,
|
|
3666
3666
|
id: `areaGradient_${n}_${F.value}`,
|
|
3667
3667
|
x1: "0%",
|
|
3668
3668
|
x2: "100%",
|
|
3669
3669
|
y1: "0%",
|
|
3670
3670
|
y2: "0%"
|
|
3671
|
-
}, [
|
|
3671
|
+
}, [S("stop", {
|
|
3672
3672
|
offset: "0%",
|
|
3673
|
-
"stop-color": `${A(
|
|
3674
|
-
}, null, 8, ln),
|
|
3673
|
+
"stop-color": `${A(p)(A(Ae)(e.color, .03), V.value.line.area.opacity)}`
|
|
3674
|
+
}, null, 8, ln), S("stop", {
|
|
3675
3675
|
offset: "100%",
|
|
3676
|
-
"stop-color": `${A(
|
|
3677
|
-
}, null, 8, un)], 8, cn))]), e.temperatureColors && !e.isFlatTemperatureLine ? (E(),
|
|
3676
|
+
"stop-color": `${A(p)(e.color, V.value.line.area.opacity)}`
|
|
3677
|
+
}, null, 8, un)], 8, cn))]), e.temperatureColors && !e.isFlatTemperatureLine ? (E(), x("defs", dn, [S("linearGradient", {
|
|
3678
3678
|
id: `temperature_grad_line_${n}_${F.value}`,
|
|
3679
3679
|
gradientTransform: "rotate(90)"
|
|
3680
|
-
}, [(E(!0),
|
|
3680
|
+
}, [(E(!0), x(v, null, O(e.temperatureColors, (t, r) => (E(), x("stop", {
|
|
3681
3681
|
key: `temperature_grad_stop_${n}_${r}_${F.value}`,
|
|
3682
3682
|
"stop-color": t,
|
|
3683
|
-
offset: A(
|
|
3684
|
-
}, null, 8, pn))), 128))], 8, fn)])) :
|
|
3685
|
-
(E(!0),
|
|
3683
|
+
offset: A(te)(r, e.temperatureColors.length)
|
|
3684
|
+
}, null, 8, pn))), 128))], 8, fn)])) : b("", !0)], 64))), 128)),
|
|
3685
|
+
(E(!0), x(v, null, O(Cc.value, (e) => (E(), x("g", { key: `highlight_area_${e.from}_${e.span}_${e.color}` }, [e.show ? (E(), x(v, { key: 0 }, [(E(!0), x(v, null, O(e.span, (t, n) => (E(), x("g", { key: `highlight_area_rect_${e.from}_${n}` }, [S("rect", {
|
|
3686
3686
|
style: T({
|
|
3687
3687
|
transition: "none",
|
|
3688
3688
|
opacity: +(e.from + n >= U.value.start && e.from + n <= U.value.end - 1)
|
|
@@ -3691,8 +3691,8 @@ var Ot = /* @__PURE__ */ e({ default: () => M }), kt = ["id"], At = ["id"], jt =
|
|
|
3691
3691
|
y: J.value?.top,
|
|
3692
3692
|
height: J.value.height < 0 ? 10 : J.value.height,
|
|
3693
3693
|
width: Mc(e.from + n - U.value.start),
|
|
3694
|
-
fill: A(
|
|
3695
|
-
}, null, 12, mn)]))), 128)), (E(!0),
|
|
3694
|
+
fill: A(p)(e.color, e.opacity)
|
|
3695
|
+
}, null, 12, mn)]))), 128)), (E(!0), x(v, null, O(e.span, (t, n) => (E(), x("g", { key: `highlight_area_caption_${e.from}_${n}` }, [e.caption.text && n === 0 ? (E(), x("foreignObject", {
|
|
3696
3696
|
key: 0,
|
|
3697
3697
|
x: jc(e.from + n - U.value.start) - (e.caption.width === "auto" ? 0 : e.caption.width / 2 - Fc(e.span) / 2),
|
|
3698
3698
|
y: J.value?.top + e.caption.offsetY,
|
|
@@ -3702,8 +3702,8 @@ var Ot = /* @__PURE__ */ e({ default: () => M }), kt = ["id"], At = ["id"], jt =
|
|
|
3702
3702
|
}),
|
|
3703
3703
|
height: "1",
|
|
3704
3704
|
width: e.caption.width === "auto" ? Fc(e.span) : e.caption.width
|
|
3705
|
-
}, [
|
|
3706
|
-
ts.value && !G.value ? (E(),
|
|
3705
|
+
}, [S("div", { style: T(`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"}`) }, ft(e.caption.text), 5)], 12, hn)) : b("", !0)]))), 128))], 64)) : b("", !0)]))), 128)),
|
|
3706
|
+
ts.value && !G.value ? (E(), x("g", gn, [(E(!0), x(v, null, O(X.value, (e, t) => (E(), x("g", { key: `tooltip_trap_highlighter_${t}` }, [S("rect", {
|
|
3707
3707
|
x: jc(t),
|
|
3708
3708
|
y: J.value?.top,
|
|
3709
3709
|
height: J.value.height < 0 ? 10 : J.value.height,
|
|
@@ -3712,18 +3712,18 @@ var Ot = /* @__PURE__ */ e({ default: () => M }), kt = ["id"], At = ["id"], jt =
|
|
|
3712
3712
|
I.value,
|
|
3713
3713
|
R.value,
|
|
3714
3714
|
la.value
|
|
3715
|
-
].includes(t) ? A(
|
|
3715
|
+
].includes(t) ? A(p)(V.value.chart.highlighter.color, V.value.chart.highlighter.crosshairs.show ? 0 : V.value.chart.highlighter.opacity) : "transparent",
|
|
3716
3716
|
style: {
|
|
3717
3717
|
transition: "none !important",
|
|
3718
3718
|
animation: "none !important"
|
|
3719
3719
|
}
|
|
3720
|
-
}, null, 8, _n)]))), 128))])) :
|
|
3721
|
-
Al.value.length ? (E(!0),
|
|
3720
|
+
}, null, 8, _n)]))), 128))])) : b("", !0),
|
|
3721
|
+
Al.value.length ? (E(!0), x(v, { key: 1 }, O(Al.value, (e, n) => (E(), x("g", {
|
|
3722
3722
|
key: `serie_bar_${e.id}`,
|
|
3723
|
-
class:
|
|
3723
|
+
class: st(`serie_bar_${n}`),
|
|
3724
3724
|
style: T(`opacity:${N.value ? N.value === e.groupId ? 1 : .2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
3725
|
-
}, [(E(!0),
|
|
3726
|
-
A(yt)(r.value) ? (E(),
|
|
3725
|
+
}, [(E(!0), x(v, null, O(e.plots, (r, i) => (E(), x("g", { key: `bar_plot_${n}_${i}` }, [
|
|
3726
|
+
A(yt)(r.value) ? (E(), x("rect", {
|
|
3727
3727
|
key: 0,
|
|
3728
3728
|
x: Xs(r) + Qc.value / 2,
|
|
3729
3729
|
y: H.value.useIndividualScale ? Qs(r) : Zs(r),
|
|
@@ -3734,8 +3734,8 @@ var Ot = /* @__PURE__ */ e({ default: () => M }), kt = ["id"], At = ["id"], jt =
|
|
|
3734
3734
|
stroke: V.value.bar.border.useSerieColor ? e.color : V.value.bar.border.stroke,
|
|
3735
3735
|
"stroke-width": V.value.bar.border.strokeWidth,
|
|
3736
3736
|
style: T({ transition: A(ro) || !V.value.bar.showTransition ? void 0 : `all ${V.value.bar.transitionDurationMs}ms ease-in-out` })
|
|
3737
|
-
}, null, 12, vn)) :
|
|
3738
|
-
A(yt)(r.value) && t.$slots.pattern ? (E(),
|
|
3737
|
+
}, null, 12, vn)) : b("", !0),
|
|
3738
|
+
A(yt)(r.value) && t.$slots.pattern ? (E(), x("rect", {
|
|
3739
3739
|
key: 1,
|
|
3740
3740
|
x: Xs(r) - Qc.value / 2,
|
|
3741
3741
|
y: H.value.useIndividualScale ? Qs(r) : Zs(r),
|
|
@@ -3746,37 +3746,37 @@ var Ot = /* @__PURE__ */ e({ default: () => M }), kt = ["id"], At = ["id"], jt =
|
|
|
3746
3746
|
stroke: V.value.bar.border.useSerieColor ? e.color : V.value.bar.border.stroke,
|
|
3747
3747
|
"stroke-width": V.value.bar.border.strokeWidth,
|
|
3748
3748
|
style: T({ transition: A(ro) || !V.value.bar.showTransition ? void 0 : `all ${V.value.bar.transitionDurationMs}ms ease-in-out` })
|
|
3749
|
-
}, null, 12, yn)) :
|
|
3750
|
-
r.comment && V.value.chart.comments.show ? (E(),
|
|
3749
|
+
}, null, 12, yn)) : b("", !0),
|
|
3750
|
+
r.comment && V.value.chart.comments.show ? (E(), x("foreignObject", {
|
|
3751
3751
|
key: 2,
|
|
3752
3752
|
style: { overflow: "visible" },
|
|
3753
3753
|
height: "12",
|
|
3754
3754
|
width: Zc.value + V.value.chart.comments.width,
|
|
3755
3755
|
x: Xs(r) - V.value.chart.comments.width / 2 + V.value.chart.comments.offsetX,
|
|
3756
|
-
y: A(
|
|
3756
|
+
y: A(_)(r.y) + V.value.chart.comments.offsetY + 6
|
|
3757
3757
|
}, [k(t.$slots, "plot-comment", { plot: {
|
|
3758
3758
|
...r,
|
|
3759
3759
|
color: e.color,
|
|
3760
3760
|
seriesIndex: n,
|
|
3761
3761
|
datapointIndex: i
|
|
3762
|
-
} }, void 0, !0)], 8, bn)) :
|
|
3763
|
-
]))), 128))], 6))), 128)) :
|
|
3764
|
-
!H.value.useIndividualScale && V.value.chart.grid.labels.zeroLine.show ? (E(),
|
|
3762
|
+
} }, void 0, !0)], 8, bn)) : b("", !0)
|
|
3763
|
+
]))), 128))], 6))), 128)) : b("", !0),
|
|
3764
|
+
!H.value.useIndividualScale && V.value.chart.grid.labels.zeroLine.show ? (E(), x("line", {
|
|
3765
3765
|
key: 2,
|
|
3766
3766
|
stroke: V.value.chart.grid.stroke,
|
|
3767
3767
|
"stroke-width": "1",
|
|
3768
3768
|
x1: J.value?.left,
|
|
3769
3769
|
x2: J.value?.right,
|
|
3770
|
-
y1: A(
|
|
3771
|
-
y2: A(
|
|
3770
|
+
y1: A(g)(Gs.value),
|
|
3771
|
+
y2: A(g)(Gs.value),
|
|
3772
3772
|
"stroke-linecap": "round",
|
|
3773
3773
|
style: { animation: "none !important" }
|
|
3774
|
-
}, null, 8, xn)) :
|
|
3775
|
-
!V.value.chart.highlighter.crosshairs.show && (V.value.chart.highlighter.useLine || G.value) && hs.value ? (E(),
|
|
3774
|
+
}, null, 8, xn)) : b("", !0),
|
|
3775
|
+
!V.value.chart.highlighter.crosshairs.show && (V.value.chart.highlighter.useLine || G.value) && hs.value ? (E(), x("g", Sn, [S("line", {
|
|
3776
3776
|
x1: wu.value,
|
|
3777
3777
|
x2: wu.value,
|
|
3778
|
-
y1: A(
|
|
3779
|
-
y2: A(
|
|
3778
|
+
y1: A(g)(J.value?.top),
|
|
3779
|
+
y2: A(g)(J.value?.bottom),
|
|
3780
3780
|
stroke: V.value.chart.highlighter.color,
|
|
3781
3781
|
"stroke-width": V.value.chart.highlighter.lineWidth,
|
|
3782
3782
|
"stroke-dasharray": V.value.chart.highlighter.lineDasharray,
|
|
@@ -3786,41 +3786,41 @@ var Ot = /* @__PURE__ */ e({ default: () => M }), kt = ["id"], At = ["id"], jt =
|
|
|
3786
3786
|
animation: "none !important",
|
|
3787
3787
|
"pointer-events": "none"
|
|
3788
3788
|
}
|
|
3789
|
-
}, null, 8, Cn)])) :
|
|
3790
|
-
Tu.value ? (E(),
|
|
3791
|
-
|
|
3792
|
-
x1: V.value.chart.highlighter.crosshairs.stopOnPoint ? A(
|
|
3793
|
-
x2: V.value.chart.highlighter.crosshairs.stopOnPoint ? A(
|
|
3794
|
-
y1: A(
|
|
3795
|
-
y2: A(
|
|
3789
|
+
}, null, 8, Cn)])) : b("", !0),
|
|
3790
|
+
Tu.value ? (E(), x("g", wn, [(E(!0), x(v, null, O(Eu.value, (e) => (E(), x("g", { key: `crosshair_${e.serie.id}_${e.index}` }, [
|
|
3791
|
+
S("line", {
|
|
3792
|
+
x1: V.value.chart.highlighter.crosshairs.stopOnPoint ? A(g)(e.x) : J.value.left,
|
|
3793
|
+
x2: V.value.chart.highlighter.crosshairs.stopOnPoint ? A(g)(Ou(e.x)) : J.value.right,
|
|
3794
|
+
y1: A(g)(e.y),
|
|
3795
|
+
y2: A(g)(e.y),
|
|
3796
3796
|
stroke: V.value.chart.highlighter.crosshairs.stroke,
|
|
3797
3797
|
"stroke-width": V.value.chart.highlighter.crosshairs.strokeWidth,
|
|
3798
3798
|
"stroke-dasharray": V.value.chart.highlighter.crosshairs.strokeDasharray,
|
|
3799
3799
|
"stroke-linecap": "round",
|
|
3800
3800
|
style: { "pointer-events": "none" }
|
|
3801
3801
|
}, null, 8, Tn),
|
|
3802
|
-
|
|
3803
|
-
x1: A(
|
|
3804
|
-
x2: A(
|
|
3805
|
-
y1: V.value.chart.highlighter.crosshairs.stopOnPoint ? A(
|
|
3806
|
-
y2: V.value.chart.highlighter.crosshairs.stopOnPoint ? A(
|
|
3802
|
+
S("line", {
|
|
3803
|
+
x1: A(g)(e.x),
|
|
3804
|
+
x2: A(g)(e.x),
|
|
3805
|
+
y1: V.value.chart.highlighter.crosshairs.stopOnPoint ? A(g)(e.y) : J.value.top,
|
|
3806
|
+
y2: V.value.chart.highlighter.crosshairs.stopOnPoint ? A(g)(J.value.bottom) : J.value.bottom,
|
|
3807
3807
|
stroke: V.value.chart.highlighter.crosshairs.stroke,
|
|
3808
3808
|
"stroke-width": V.value.chart.highlighter.crosshairs.strokeWidth,
|
|
3809
3809
|
"stroke-dasharray": V.value.chart.highlighter.crosshairs.strokeDasharray,
|
|
3810
3810
|
"stroke-linecap": "round",
|
|
3811
3811
|
style: { "pointer-events": "none" }
|
|
3812
3812
|
}, null, 8, En),
|
|
3813
|
-
|
|
3814
|
-
cx: A(
|
|
3815
|
-
cy: A(
|
|
3813
|
+
S("circle", {
|
|
3814
|
+
cx: A(g)(Ou(e.x)),
|
|
3815
|
+
cy: A(g)(e.y),
|
|
3816
3816
|
r: V.value.chart.highlighter.crosshairs.dot.radius,
|
|
3817
3817
|
fill: V.value.chart.highlighter.crosshairs.dot.fill,
|
|
3818
3818
|
stroke: V.value.chart.highlighter.crosshairs.dot.stroke,
|
|
3819
3819
|
"stroke-width": V.value.chart.highlighter.crosshairs.dot.strokeWidth,
|
|
3820
3820
|
style: { "pointer-events": "none" }
|
|
3821
3821
|
}, null, 8, Dn)
|
|
3822
|
-
]))), 128))])) :
|
|
3823
|
-
V.value.chart.grid.frame.show ? (E(),
|
|
3822
|
+
]))), 128))])) : b("", !0),
|
|
3823
|
+
V.value.chart.grid.frame.show ? (E(), x("rect", {
|
|
3824
3824
|
key: 5,
|
|
3825
3825
|
style: {
|
|
3826
3826
|
pointerEvents: "none",
|
|
@@ -3837,50 +3837,50 @@ var Ot = /* @__PURE__ */ e({ default: () => M }), kt = ["id"], At = ["id"], jt =
|
|
|
3837
3837
|
"stroke-linecap": V.value.chart.grid.frame.strokeLinecap,
|
|
3838
3838
|
"stroke-linejoin": V.value.chart.grid.frame.strokeLinejoin,
|
|
3839
3839
|
"stroke-dasharray": V.value.chart.grid.frame.strokeDasharray
|
|
3840
|
-
}, null, 8, On)) :
|
|
3841
|
-
V.value.chart.grid.labels.show ? (E(),
|
|
3840
|
+
}, null, 8, On)) : b("", !0),
|
|
3841
|
+
V.value.chart.grid.labels.show ? (E(), x("g", {
|
|
3842
3842
|
key: 6,
|
|
3843
3843
|
ref_key: "scaleLabels",
|
|
3844
3844
|
ref: Xi,
|
|
3845
3845
|
opacity: Tu.value ? .2 : 1,
|
|
3846
3846
|
style: { transition: "opacity 0.2s" }
|
|
3847
|
-
}, [H.value.useIndividualScale ? (E(),
|
|
3847
|
+
}, [H.value.useIndividualScale ? (E(), x(v, { key: 0 }, [(E(!0), x(v, null, O(Ml.value, (e) => (E(), x("g", { key: `individual_scale_axis_${e.groupId || e.id}` }, [S("line", {
|
|
3848
3848
|
x1: H.value.isStacked ? q.value ? J.value.right : J.value.left : q.value ? e.x : e.x - J.value.individualOffsetX,
|
|
3849
3849
|
x2: H.value.isStacked ? q.value ? J.value.right : J.value.left : q.value ? e.x : e.x - J.value.individualOffsetX,
|
|
3850
|
-
y1: H.value.isStacked ? A(
|
|
3851
|
-
y2: H.value.isStacked ? A(
|
|
3850
|
+
y1: H.value.isStacked ? A(g)(J.value?.bottom - e.yOffset - e.individualHeight) : A(g)(J.value?.top),
|
|
3851
|
+
y2: H.value.isStacked ? A(g)(J.value?.bottom - e.yOffset) : A(g)(J.value?.bottom),
|
|
3852
3852
|
stroke: e.color,
|
|
3853
3853
|
"stroke-width": V.value.chart.grid.stroke,
|
|
3854
3854
|
"stroke-linecap": "round",
|
|
3855
3855
|
style: T(`opacity:${N.value ? N.value === e.groupId ? 1 : .3 : 1};transition:opacity 0.2s ease-in-out; animation: none !important`)
|
|
3856
|
-
}, null, 12, An)]))), 128)), (E(!0),
|
|
3856
|
+
}, null, 12, An)]))), 128)), (E(!0), x(v, null, O(Ml.value, (e) => (E(), x("g", {
|
|
3857
3857
|
key: `individual_scale_label_${e.groupId || e.id}`,
|
|
3858
3858
|
style: T(`opacity:${N.value ? N.value === e.groupId ? 1 : .3 : 1};transition:opacity 0.2s ease-in-out`)
|
|
3859
3859
|
}, [
|
|
3860
|
-
|
|
3860
|
+
S("text", {
|
|
3861
3861
|
fill: e.color,
|
|
3862
3862
|
"font-size": B.value.dataLabels * .8,
|
|
3863
3863
|
"text-anchor": "middle",
|
|
3864
3864
|
transform: `translate(${H.value.isStacked ? q.value ? J.value.right + V.value.chart.grid.labels.yAxis.crosshairSize + V.value.chart.grid.labels.yAxis.scaleValueOffsetX + 5 + V.value.chart.grid.labels.yAxis.labelWidth + J.value.individualOffsetX + V.value.chart.grid.labels.axis.yLabelOffsetX : J.value.left - V.value.chart.grid.labels.yAxis.crosshairSize - V.value.chart.grid.labels.yAxis.scaleValueOffsetX - V.value.chart.grid.labels.yAxis.labelWidth - V.value.chart.grid.labels.axis.yLabelOffsetX : q.value ? e.x + V.value.chart.grid.labels.yAxis.crosshairSize + V.value.chart.grid.labels.yAxis.scaleValueOffsetX + 5 + V.value.chart.grid.labels.yAxis.labelWidth + V.value.chart.grid.labels.axis.yLabelOffsetX : e.x - B.value.dataLabels * .8 / 2}, ${H.value.isStacked ? J.value?.bottom - e.yOffset - e.individualHeight / 2 : J.value?.top + J.value.height / 2}) rotate(-90)`
|
|
3865
3865
|
}, ft(e.name) + " " + ft(e.scaleLabel && e.unique && e.scaleLabel !== e.id ? `- ${e.scaleLabel}` : ""), 9, jn),
|
|
3866
|
-
(E(!0),
|
|
3866
|
+
(E(!0), x(v, null, O(e.yLabels, (t, n) => (E(), x(v, { key: `individual_scale_y_crosshair_${e.groupId || e.id}_${t.value}_${n}` }, [V.value.chart.grid.labels.yAxis.showCrosshairs ? (E(), x("line", {
|
|
3867
3867
|
key: 0,
|
|
3868
3868
|
x1: H.value.isStacked ? q.value ? J.value.right : J.value.left : q.value ? e.x : e.x + 3 - V.value.chart.grid.labels.yAxis.crosshairSize - J.value.individualOffsetX,
|
|
3869
3869
|
x2: H.value.isStacked ? q.value ? J.value.right + V.value.chart.grid.labels.yAxis.crosshairSize : J.value.left - V.value.chart.grid.labels.yAxis.crosshairSize : q.value ? e.x + V.value.chart.grid.labels.yAxis.crosshairSize : e.x - J.value.individualOffsetX,
|
|
3870
|
-
y1: A(
|
|
3871
|
-
y2: A(
|
|
3870
|
+
y1: A(g)(t.y),
|
|
3871
|
+
y2: A(g)(t.y),
|
|
3872
3872
|
stroke: e.color,
|
|
3873
3873
|
"stroke-width": 1,
|
|
3874
3874
|
"stroke-linecap": "round",
|
|
3875
3875
|
style: { animation: "none !important" }
|
|
3876
|
-
}, null, 8, Mn)) :
|
|
3877
|
-
(E(!0),
|
|
3876
|
+
}, null, 8, Mn)) : b("", !0)], 64))), 128)),
|
|
3877
|
+
(E(!0), x(v, null, O(e.yLabels, (t, n) => (E(), x("text", {
|
|
3878
3878
|
key: `individual_scale_y_label_${e.groupId || e.id}_${t.value}_${n}`,
|
|
3879
|
-
transform: `translate(${H.value.isStacked ? q.value ? J.value.right + V.value.chart.grid.labels.yAxis.crosshairSize + V.value.chart.grid.labels.yAxis.scaleValueOffsetX + 5 : J.value.left - V.value.chart.grid.labels.yAxis.crosshairSize - V.value.chart.grid.labels.yAxis.scaleValueOffsetX - 5 : q.value ? e.x + V.value.chart.grid.labels.yAxis.crosshairSize + V.value.chart.grid.labels.yAxis.scaleValueOffsetX + 5 : e.x - 5 - J.value.individualOffsetX}, ${A(
|
|
3879
|
+
transform: `translate(${H.value.isStacked ? q.value ? J.value.right + V.value.chart.grid.labels.yAxis.crosshairSize + V.value.chart.grid.labels.yAxis.scaleValueOffsetX + 5 : J.value.left - V.value.chart.grid.labels.yAxis.crosshairSize - V.value.chart.grid.labels.yAxis.scaleValueOffsetX - 5 : q.value ? e.x + V.value.chart.grid.labels.yAxis.crosshairSize + V.value.chart.grid.labels.yAxis.scaleValueOffsetX + 5 : e.x - 5 - J.value.individualOffsetX}, ${A(g)(t.y) + B.value.dataLabels / 3})`,
|
|
3880
3880
|
"text-anchor": q.value ? "start" : "end",
|
|
3881
3881
|
"font-size": B.value.dataLabels,
|
|
3882
3882
|
fill: e.color
|
|
3883
|
-
}, ft(A(
|
|
3883
|
+
}, ft(A(h)(V.value.chart.grid.labels.yAxis.formatter, t.value, A(u)({
|
|
3884
3884
|
p: t.prefix,
|
|
3885
3885
|
v: t.value,
|
|
3886
3886
|
s: t.suffix,
|
|
@@ -3889,31 +3889,31 @@ var Ot = /* @__PURE__ */ e({ default: () => M }), kt = ["id"], At = ["id"], jt =
|
|
|
3889
3889
|
datapoint: t.datapoint,
|
|
3890
3890
|
seriesIndex: n
|
|
3891
3891
|
})), 9, Nn))), 128))
|
|
3892
|
-
], 4))), 128))], 64)) : (E(!0),
|
|
3892
|
+
], 4))), 128))], 64)) : (E(!0), x(v, { key: 1 }, O(nl.value, (e, t) => (E(), x("g", { key: `yLabel_${t}` }, [A(yt)(e) && e.value >= W.value.min && e.value <= W.value.max && V.value.chart.grid.labels.yAxis.showCrosshairs ? (E(), x("line", {
|
|
3893
3893
|
key: 0,
|
|
3894
3894
|
x1: q.value ? J.value?.right : J.value?.left,
|
|
3895
3895
|
x2: q.value ? J.value?.right + V.value.chart.grid.labels.yAxis.crosshairSize : J.value?.left - V.value.chart.grid.labels.yAxis.crosshairSize,
|
|
3896
|
-
y1: A(
|
|
3897
|
-
y2: A(
|
|
3896
|
+
y1: A(g)(e.y),
|
|
3897
|
+
y2: A(g)(e.y),
|
|
3898
3898
|
stroke: V.value.chart.grid.stroke,
|
|
3899
3899
|
"stroke-width": "1",
|
|
3900
3900
|
"stroke-linecap": "round",
|
|
3901
3901
|
style: { animation: "none !important" }
|
|
3902
|
-
}, null, 8, Pn)) :
|
|
3902
|
+
}, null, 8, Pn)) : b("", !0), e.value >= W.value.min && e.value <= W.value.max ? (E(), x("text", {
|
|
3903
3903
|
key: 1,
|
|
3904
|
-
transform: `translate(${q.value ? J.value.right + V.value.chart.grid.labels.yAxis.crosshairSize + V.value.chart.grid.labels.yAxis.scaleValueOffsetX + 5 : J.value.scaleLabelX - V.value.chart.grid.labels.yAxis.crosshairSize}, ${A(
|
|
3904
|
+
transform: `translate(${q.value ? J.value.right + V.value.chart.grid.labels.yAxis.crosshairSize + V.value.chart.grid.labels.yAxis.scaleValueOffsetX + 5 : J.value.scaleLabelX - V.value.chart.grid.labels.yAxis.crosshairSize}, ${A(_)(e.y + B.value.dataLabels / 3)})`,
|
|
3905
3905
|
"font-size": B.value.dataLabels,
|
|
3906
3906
|
"text-anchor": q.value ? "start" : "end",
|
|
3907
3907
|
fill: V.value.chart.grid.labels.color
|
|
3908
|
-
}, ft(A(yt)(e.value) ? A(
|
|
3908
|
+
}, ft(A(yt)(e.value) ? A(h)(V.value.chart.grid.labels.yAxis.formatter, e.value, A(u)({
|
|
3909
3909
|
p: e.prefix,
|
|
3910
3910
|
v: e.value,
|
|
3911
3911
|
s: e.suffix,
|
|
3912
3912
|
r: V.value.chart.grid.labels.yAxis.rounding
|
|
3913
|
-
})) : ""), 9, Fn)) :
|
|
3914
|
-
Tu.value ? (E(),
|
|
3913
|
+
})) : ""), 9, Fn)) : b("", !0)]))), 128))], 8, kn)) : b("", !0),
|
|
3914
|
+
Tu.value ? (E(), x("g", In, [(E(!0), x(v, null, O(Eu.value, (e) => (E(), x("text", {
|
|
3915
3915
|
key: `crosshair_y_label_${e.serie.id}_${e.index}`,
|
|
3916
|
-
transform: `translate(${q.value ? J.value.right + V.value.chart.grid.labels.yAxis.crosshairSize + V.value.chart.grid.labels.yAxis.scaleValueOffsetX + 5 : J.value.scaleLabelX - V.value.chart.grid.labels.yAxis.crosshairSize}, ${A(
|
|
3916
|
+
transform: `translate(${q.value ? J.value.right + V.value.chart.grid.labels.yAxis.crosshairSize + V.value.chart.grid.labels.yAxis.scaleValueOffsetX + 5 : J.value.scaleLabelX - V.value.chart.grid.labels.yAxis.crosshairSize}, ${A(g)(e.y) + B.value.dataLabels / 3})`,
|
|
3917
3917
|
"font-size": B.value.dataLabels,
|
|
3918
3918
|
"text-anchor": q.value ? "start" : "end",
|
|
3919
3919
|
fill: V.value.chart.grid.labels.color,
|
|
@@ -3922,7 +3922,7 @@ var Ot = /* @__PURE__ */ e({ default: () => M }), kt = ["id"], At = ["id"], jt =
|
|
|
3922
3922
|
animation: "none !important",
|
|
3923
3923
|
"pointer-events": "none"
|
|
3924
3924
|
}
|
|
3925
|
-
}, ft(A(
|
|
3925
|
+
}, ft(A(h)(V.value.chart.grid.labels.yAxis.formatter, e.value, A(u)({
|
|
3926
3926
|
p: e.serie.prefix || V.value.chart.labels.prefix,
|
|
3927
3927
|
v: e.value,
|
|
3928
3928
|
s: e.serie.suffix || V.value.chart.labels.suffix,
|
|
@@ -3930,10 +3930,10 @@ var Ot = /* @__PURE__ */ e({ default: () => M }), kt = ["id"], At = ["id"], jt =
|
|
|
3930
3930
|
}), {
|
|
3931
3931
|
datapoint: e.serie,
|
|
3932
3932
|
seriesIndex: e.index
|
|
3933
|
-
})), 9, Ln))), 128))])) :
|
|
3934
|
-
Du.value ? (E(),
|
|
3933
|
+
})), 9, Ln))), 128))])) : b("", !0),
|
|
3934
|
+
Du.value ? (E(), x("g", Rn, [S("circle", {
|
|
3935
3935
|
cx: wu.value,
|
|
3936
|
-
cy: A(
|
|
3936
|
+
cy: A(g)(J.value?.bottom),
|
|
3937
3937
|
r: V.value.chart.highlighter.crosshairs.dot.radius,
|
|
3938
3938
|
fill: V.value.chart.highlighter.crosshairs.dot.fill,
|
|
3939
3939
|
stroke: V.value.chart.highlighter.crosshairs.dot.stroke,
|
|
@@ -3943,12 +3943,12 @@ var Ot = /* @__PURE__ */ e({ default: () => M }), kt = ["id"], At = ["id"], jt =
|
|
|
3943
3943
|
animation: "none !important",
|
|
3944
3944
|
"pointer-events": "none"
|
|
3945
3945
|
}
|
|
3946
|
-
}, null, 8, zn)])) :
|
|
3947
|
-
(E(!0),
|
|
3946
|
+
}, null, 8, zn)])) : b("", !0),
|
|
3947
|
+
(E(!0), x(v, null, O($.value, (e, n) => (E(), x("g", {
|
|
3948
3948
|
key: `serie_plot_${e.id}`,
|
|
3949
|
-
class:
|
|
3949
|
+
class: st(`serie_plot_${n}`),
|
|
3950
3950
|
style: T(`opacity:${N.value ? N.value === e.groupId ? 1 : .2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
3951
|
-
}, [(E(!0),
|
|
3951
|
+
}, [(E(!0), x(v, null, O(e.plots, (r, i) => (E(), x("g", { key: `circle_plot_${e.id}_${i}` }, [r && A(yt)(r.value) ? (E(), $e(Ke, {
|
|
3952
3952
|
key: 0,
|
|
3953
3953
|
shape: [
|
|
3954
3954
|
"triangle",
|
|
@@ -3960,8 +3960,8 @@ var Ot = /* @__PURE__ */ e({ default: () => M }), kt = ["id"], At = ["id"], jt =
|
|
|
3960
3960
|
].includes(e.shape) ? e.shape : "circle",
|
|
3961
3961
|
color: V.value.plot.useGradient ? `url(#plotGradient_${n}_${F.value})` : V.value.plot.dot.useSerieColor ? e.color : V.value.plot.dot.fill,
|
|
3962
3962
|
plot: {
|
|
3963
|
-
x: A(
|
|
3964
|
-
y: A(
|
|
3963
|
+
x: A(_)(r.x),
|
|
3964
|
+
y: A(_)(r.y)
|
|
3965
3965
|
},
|
|
3966
3966
|
radius: ku(e, r, i) ? (qa.value.plot || 6) * 1.5 : (il(e.plots, i), qa.value.plot || 6),
|
|
3967
3967
|
stroke: V.value.plot.dot.useSerieColor ? V.value.chart.backgroundColor : e.color,
|
|
@@ -3977,24 +3977,24 @@ var Ot = /* @__PURE__ */ e({ default: () => M }), kt = ["id"], At = ["id"], jt =
|
|
|
3977
3977
|
"strokeWidth",
|
|
3978
3978
|
"transition",
|
|
3979
3979
|
"still"
|
|
3980
|
-
])) :
|
|
3980
|
+
])) : b("", !0), r.comment && V.value.chart.comments.show ? (E(), x("foreignObject", {
|
|
3981
3981
|
key: 1,
|
|
3982
3982
|
style: { overflow: "visible" },
|
|
3983
3983
|
height: "12",
|
|
3984
3984
|
width: V.value.chart.comments.width,
|
|
3985
3985
|
x: r.x - V.value.chart.comments.width / 2 + V.value.chart.comments.offsetX,
|
|
3986
3986
|
y: r.y + V.value.chart.comments.offsetY + 6
|
|
3987
|
-
}, [
|
|
3987
|
+
}, [S("div", Vn, [k(t.$slots, "plot-comment", { plot: {
|
|
3988
3988
|
...r,
|
|
3989
3989
|
color: e.color,
|
|
3990
3990
|
seriesIndex: n,
|
|
3991
3991
|
datapointIndex: i
|
|
3992
|
-
} }, void 0, !0)])], 8, Bn)) :
|
|
3993
|
-
(E(!0),
|
|
3992
|
+
} }, void 0, !0)])], 8, Bn)) : b("", !0)]))), 128))], 6))), 128)),
|
|
3993
|
+
(E(!0), x(v, null, O(Q.value, (e, t) => (E(), x("g", {
|
|
3994
3994
|
key: `serie_line_${e.id}`,
|
|
3995
|
-
class:
|
|
3995
|
+
class: st(`serie_line_${t}`),
|
|
3996
3996
|
style: T(`opacity:${N.value ? N.value === e.groupId ? 1 : .2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
3997
|
-
}, [e.hasDashedSegments ? (E(),
|
|
3997
|
+
}, [e.hasDashedSegments ? (E(), x(v, { key: 0 }, [e.smooth ? (E(!0), x(v, { key: 0 }, O(e.dashedSmooth, (t, n) => (E(), x("path", {
|
|
3998
3998
|
key: `line_coating_smooth_segment_${e.id}_${n}`,
|
|
3999
3999
|
fill: "none",
|
|
4000
4000
|
"stroke-linecap": "round",
|
|
@@ -4004,7 +4004,7 @@ var Ot = /* @__PURE__ */ e({ default: () => M }), kt = ["id"], At = ["id"], jt =
|
|
|
4004
4004
|
"stroke-width": V.value.line.strokeWidth + 1,
|
|
4005
4005
|
"stroke-dasharray": t.dashed ? V.value.line.strokeWidth * 2 : 0,
|
|
4006
4006
|
style: T({ transition: ul() })
|
|
4007
|
-
}, null, 12, Hn))), 128)) : (E(!0),
|
|
4007
|
+
}, null, 12, Hn))), 128)) : (E(!0), x(v, { key: 1 }, O(e.dashedStraight, (t, n) => (E(), x("path", {
|
|
4008
4008
|
key: `line_coating_straight_segment_${e.id}_${n}`,
|
|
4009
4009
|
fill: "none",
|
|
4010
4010
|
"stroke-linecap": "round",
|
|
@@ -4014,7 +4014,7 @@ var Ot = /* @__PURE__ */ e({ default: () => M }), kt = ["id"], At = ["id"], jt =
|
|
|
4014
4014
|
"stroke-width": V.value.line.strokeWidth + 1,
|
|
4015
4015
|
"stroke-dasharray": t.dashed ? V.value.line.strokeWidth * 2 : 0,
|
|
4016
4016
|
style: T({ transition: ul() })
|
|
4017
|
-
}, null, 12, Un))), 128))], 64)) : e.smooth && e.plots.length > 1 && e.curve ? (E(),
|
|
4017
|
+
}, null, 12, Un))), 128))], 64)) : e.smooth && e.plots.length > 1 && e.curve ? (E(), x("path", {
|
|
4018
4018
|
key: 1,
|
|
4019
4019
|
d: `M${e.curve}`,
|
|
4020
4020
|
stroke: V.value.chart.backgroundColor,
|
|
@@ -4024,7 +4024,7 @@ var Ot = /* @__PURE__ */ e({ default: () => M }), kt = ["id"], At = ["id"], jt =
|
|
|
4024
4024
|
"stroke-linecap": "round",
|
|
4025
4025
|
"stroke-linejoin": "round",
|
|
4026
4026
|
style: T({ transition: ul() })
|
|
4027
|
-
}, null, 12, Wn)) : e.plots.length > 1 && e.straight ? (E(),
|
|
4027
|
+
}, null, 12, Wn)) : e.plots.length > 1 && e.straight ? (E(), x("path", {
|
|
4028
4028
|
key: 2,
|
|
4029
4029
|
d: `M${e.straight}`,
|
|
4030
4030
|
stroke: V.value.chart.backgroundColor,
|
|
@@ -4034,13 +4034,13 @@ var Ot = /* @__PURE__ */ e({ default: () => M }), kt = ["id"], At = ["id"], jt =
|
|
|
4034
4034
|
"stroke-linecap": "round",
|
|
4035
4035
|
"stroke-linejoin": "round",
|
|
4036
4036
|
style: T({ transition: ul() })
|
|
4037
|
-
}, null, 12, Gn)) :
|
|
4038
|
-
t.$slots.pattern ? (E(),
|
|
4037
|
+
}, null, 12, Gn)) : b("", !0)], 6))), 128)),
|
|
4038
|
+
t.$slots.pattern ? (E(), x("defs", Kn, [(E(!0), x(v, null, O(Lo.value, (e, n) => k(t.$slots, "pattern", at({ key: `serie_pattern_slot_${e.id}` }, { ref_for: !0 }, {
|
|
4039
4039
|
...e,
|
|
4040
4040
|
seriesIndex: e.slotAbsoluteIndex,
|
|
4041
4041
|
patternId: `pattern_${F.value}_${n}`
|
|
4042
|
-
}), void 0, !0)), 128))])) :
|
|
4043
|
-
Nl.value.length && !H.value.isStacked ? (E(),
|
|
4042
|
+
}), void 0, !0)), 128))])) : b("", !0),
|
|
4043
|
+
Nl.value.length && !H.value.isStacked ? (E(), x("g", qn, [(E(!0), x(v, null, O(Nl.value, (e) => (E(), x("path", {
|
|
4044
4044
|
key: e.key,
|
|
4045
4045
|
d: e.d,
|
|
4046
4046
|
fill: e.color,
|
|
@@ -4048,34 +4048,34 @@ var Ot = /* @__PURE__ */ e({ default: () => M }), kt = ["id"], At = ["id"], jt =
|
|
|
4048
4048
|
stroke: "none",
|
|
4049
4049
|
"pointer-events": "none",
|
|
4050
4050
|
style: T({ transition: ul() })
|
|
4051
|
-
}, null, 12, Jn))), 128))])) :
|
|
4052
|
-
(E(!0),
|
|
4051
|
+
}, null, 12, Jn))), 128))])) : b("", !0),
|
|
4052
|
+
(E(!0), x(v, null, O(Q.value, (e, n) => (E(), x("g", {
|
|
4053
4053
|
key: `serie_line_above_${e.id}`,
|
|
4054
|
-
class:
|
|
4054
|
+
class: st(`serie_line_${n}`),
|
|
4055
4055
|
style: T(`opacity:${N.value ? N.value === e.groupId ? 1 : .2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
4056
4056
|
}, [
|
|
4057
|
-
e.useArea && e.plots.length > 1 ? (E(),
|
|
4057
|
+
e.useArea && e.plots.length > 1 ? (E(), x("g", Yn, [e.smooth ? (E(!0), x(v, { key: 0 }, O(e.curveAreas, (r, i) => (E(), x(v, { key: i }, [r ? (E(), x("path", {
|
|
4058
4058
|
key: 0,
|
|
4059
4059
|
d: r,
|
|
4060
|
-
fill: V.value.line.area.useGradient ? `url(#areaGradient_${n}_${F.value})` : A(
|
|
4060
|
+
fill: V.value.line.area.useGradient ? `url(#areaGradient_${n}_${F.value})` : A(p)(e.color, V.value.line.area.opacity),
|
|
4061
4061
|
style: T({ transition: ul() })
|
|
4062
|
-
}, null, 12, Xn)) :
|
|
4062
|
+
}, null, 12, Xn)) : b("", !0), t.$slots.pattern && r ? (E(), x("path", {
|
|
4063
4063
|
key: 1,
|
|
4064
4064
|
d: r,
|
|
4065
4065
|
fill: `url(#pattern_${F.value}_${e.slotAbsoluteIndex})`,
|
|
4066
4066
|
style: T({ transition: ul() })
|
|
4067
|
-
}, null, 12, Zn)) :
|
|
4067
|
+
}, null, 12, Zn)) : b("", !0)], 64))), 128)) : (E(!0), x(v, { key: 1 }, O(e.area.split(";"), (r, i) => (E(), x(v, { key: i }, [r ? (E(), x("path", {
|
|
4068
4068
|
key: 0,
|
|
4069
4069
|
d: `M${r}Z`,
|
|
4070
|
-
fill: V.value.line.area.useGradient ? `url(#areaGradient_${n}_${F.value})` : A(
|
|
4070
|
+
fill: V.value.line.area.useGradient ? `url(#areaGradient_${n}_${F.value})` : A(p)(e.color, V.value.line.area.opacity),
|
|
4071
4071
|
style: T({ transition: ul() })
|
|
4072
|
-
}, null, 12, Qn)) :
|
|
4072
|
+
}, null, 12, Qn)) : b("", !0), t.$slots.pattern && r ? (E(), x("path", {
|
|
4073
4073
|
key: 1,
|
|
4074
4074
|
d: `M${r}Z`,
|
|
4075
4075
|
fill: `url(#pattern_${F.value}_${e.slotAbsoluteIndex})`,
|
|
4076
4076
|
style: T({ transition: ul() })
|
|
4077
|
-
}, null, 12, $n)) :
|
|
4078
|
-
!e.hasDashedSegments && e.smooth && e.plots.length > 1 && e.curve ? (E(),
|
|
4077
|
+
}, null, 12, $n)) : b("", !0)], 64))), 128))])) : b("", !0),
|
|
4078
|
+
!e.hasDashedSegments && e.smooth && e.plots.length > 1 && e.curve ? (E(), x("path", {
|
|
4079
4079
|
key: 1,
|
|
4080
4080
|
d: `M${e.curve}`,
|
|
4081
4081
|
stroke: e.temperatureColors && !e.isFlatTemperatureLine ? `url(#temperature_grad_line_${n}_${F.value})` : e.color,
|
|
@@ -4084,7 +4084,7 @@ var Ot = /* @__PURE__ */ e({ default: () => M }), kt = ["id"], At = ["id"], jt =
|
|
|
4084
4084
|
fill: "none",
|
|
4085
4085
|
"stroke-linecap": "round",
|
|
4086
4086
|
style: T({ transition: ul() })
|
|
4087
|
-
}, null, 12, er)) : e.hasDashedSegments ? (E(),
|
|
4087
|
+
}, null, 12, er)) : e.hasDashedSegments ? (E(), x(v, { key: 2 }, [e.smooth ? (E(!0), x(v, { key: 0 }, O(e.dashedSmooth, (t, r) => (E(), x("path", {
|
|
4088
4088
|
key: `line_smooth_segment_${e.id}_${r}`,
|
|
4089
4089
|
fill: "none",
|
|
4090
4090
|
"stroke-linecap": "round",
|
|
@@ -4094,7 +4094,7 @@ var Ot = /* @__PURE__ */ e({ default: () => M }), kt = ["id"], At = ["id"], jt =
|
|
|
4094
4094
|
"stroke-width": V.value.line.strokeWidth,
|
|
4095
4095
|
"stroke-dasharray": t.dashed ? V.value.line.strokeWidth * 2 : 0,
|
|
4096
4096
|
style: T({ transition: ul() })
|
|
4097
|
-
}, null, 12, tr))), 128)) : (E(!0),
|
|
4097
|
+
}, null, 12, tr))), 128)) : (E(!0), x(v, { key: 1 }, O(e.dashedStraight, (t, r) => (E(), x("path", {
|
|
4098
4098
|
key: `line_straight_segment_${e.id}_${r}`,
|
|
4099
4099
|
fill: "none",
|
|
4100
4100
|
"stroke-linecap": "round",
|
|
@@ -4104,7 +4104,7 @@ var Ot = /* @__PURE__ */ e({ default: () => M }), kt = ["id"], At = ["id"], jt =
|
|
|
4104
4104
|
"stroke-width": V.value.line.strokeWidth,
|
|
4105
4105
|
"stroke-dasharray": t.dashed ? V.value.line.strokeWidth * 2 : 0,
|
|
4106
4106
|
style: T({ transition: ul() })
|
|
4107
|
-
}, null, 12, nr))), 128))], 64)) : e.plots.length > 1 && e.straight ? (E(),
|
|
4107
|
+
}, null, 12, nr))), 128))], 64)) : e.plots.length > 1 && e.straight ? (E(), x("path", {
|
|
4108
4108
|
key: 3,
|
|
4109
4109
|
d: `M${e.straight}`,
|
|
4110
4110
|
stroke: e.temperatureColors && !e.isFlatTemperatureLine ? `url(#temperature_grad_line_${n}_${F.value})` : e.color,
|
|
@@ -4114,8 +4114,8 @@ var Ot = /* @__PURE__ */ e({ default: () => M }), kt = ["id"], At = ["id"], jt =
|
|
|
4114
4114
|
"stroke-linecap": "round",
|
|
4115
4115
|
"stroke-linejoin": "round",
|
|
4116
4116
|
style: T({ transition: ul() })
|
|
4117
|
-
}, null, 12, rr)) :
|
|
4118
|
-
(E(!0),
|
|
4117
|
+
}, null, 12, rr)) : b("", !0),
|
|
4118
|
+
(E(!0), x(v, null, O(e.plots, (r, i) => (E(), x(v, { key: `circle_line_${e.id}_${i}` }, [!xc.value.linePlot && r && A(yt)(r.value) || xc.value.linePlot && r && A(yt)(r.value) && (R.value !== null && R.value === i || I.value !== null && I.value === i) || il(e.plots, i) ? (E(), $e(Ke, {
|
|
4119
4119
|
key: 0,
|
|
4120
4120
|
shape: [
|
|
4121
4121
|
"triangle",
|
|
@@ -4127,8 +4127,8 @@ var Ot = /* @__PURE__ */ e({ default: () => M }), kt = ["id"], At = ["id"], jt =
|
|
|
4127
4127
|
].includes(e.shape) ? e.shape : "circle",
|
|
4128
4128
|
color: V.value.line.useGradient ? `url(#lineGradient_${n}_${F.value})` : V.value.line.dot.useSerieColor ? e.color : V.value.line.dot.fill,
|
|
4129
4129
|
plot: {
|
|
4130
|
-
x: A(
|
|
4131
|
-
y: A(
|
|
4130
|
+
x: A(_)(r.x),
|
|
4131
|
+
y: A(_)(r.y)
|
|
4132
4132
|
},
|
|
4133
4133
|
radius: ku(e, r, i) ? Ja.value || 0 : (il(e.plots, i), qa.value.line || 0),
|
|
4134
4134
|
stroke: V.value.line.dot.useSerieColor ? V.value.chart.backgroundColor : e.color,
|
|
@@ -4144,21 +4144,21 @@ var Ot = /* @__PURE__ */ e({ default: () => M }), kt = ["id"], At = ["id"], jt =
|
|
|
4144
4144
|
"strokeWidth",
|
|
4145
4145
|
"transition",
|
|
4146
4146
|
"still"
|
|
4147
|
-
])) :
|
|
4147
|
+
])) : b("", !0), r.comment && V.value.chart.comments.show ? (E(), x("foreignObject", {
|
|
4148
4148
|
key: 1,
|
|
4149
4149
|
style: { overflow: "visible" },
|
|
4150
4150
|
height: "12",
|
|
4151
4151
|
width: V.value.chart.comments.width,
|
|
4152
4152
|
x: r.x - V.value.chart.comments.width / 2 + V.value.chart.comments.offsetX,
|
|
4153
4153
|
y: r.y + V.value.chart.comments.offsetY + 6
|
|
4154
|
-
}, [
|
|
4154
|
+
}, [S("div", ar, [k(t.$slots, "plot-comment", { plot: {
|
|
4155
4155
|
...r,
|
|
4156
4156
|
color: e.color,
|
|
4157
4157
|
seriesIndex: n,
|
|
4158
4158
|
datapointIndex: i
|
|
4159
|
-
} }, void 0, !0)])], 8, ir)) :
|
|
4159
|
+
} }, void 0, !0)])], 8, ir)) : b("", !0)], 64))), 128))
|
|
4160
4160
|
], 6))), 128)),
|
|
4161
|
-
(V.value.bar.labels.show || V.value.bar.serieName.show) && H.value.dataLabels.show ? (E(),
|
|
4161
|
+
(V.value.bar.labels.show || V.value.bar.serieName.show) && H.value.dataLabels.show ? (E(), x("g", or, [(E(!0), x(v, null, O(Mu.value, (e) => (E(), x("text", {
|
|
4162
4162
|
key: e.key,
|
|
4163
4163
|
"text-anchor": Cu({
|
|
4164
4164
|
plot: e.plot,
|
|
@@ -4175,7 +4175,7 @@ var Ot = /* @__PURE__ */ e({ default: () => M }), kt = ["id"], At = ["id"], jt =
|
|
|
4175
4175
|
plot: e.plot,
|
|
4176
4176
|
type: "bar"
|
|
4177
4177
|
})
|
|
4178
|
-
}, null, 12, sr))), 128)), (E(!0),
|
|
4178
|
+
}, null, 12, sr))), 128)), (E(!0), x(v, null, O(Al.value, (e, t) => (E(), x(v, { key: `xLabel_bar_${e.id}` }, [(E(!0), x(v, null, O(e.plots, (n, r) => (E(), x(v, { key: `xLabel_bar_${t}_${r}` }, [n && V.value.bar.serieName.show ? (E(), x("text", {
|
|
4179
4179
|
key: 0,
|
|
4180
4180
|
x: H.value.useIndividualScale && H.value.isStacked ? n.x + Js.value.line / 2 : n.x + Ys() * 1.1,
|
|
4181
4181
|
y: n.y + (n.value > 0 ? V.value.bar.serieName.offsetY : -V.value.bar.serieName.offsetY * 3),
|
|
@@ -4184,11 +4184,11 @@ var Ot = /* @__PURE__ */ e({ default: () => M }), kt = ["id"], At = ["id"], jt =
|
|
|
4184
4184
|
fill: V.value.bar.serieName.useSerieColor ? e.color : V.value.bar.serieName.color,
|
|
4185
4185
|
"font-weight": V.value.bar.serieName.bold ? "bold" : "normal",
|
|
4186
4186
|
style: T(`opacity:${N.value ? N.value === e.groupId ? 1 : .2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
4187
|
-
}, ft(V.value.bar.serieName.useAbbreviation ? A(
|
|
4187
|
+
}, ft(V.value.bar.serieName.useAbbreviation ? A(Ce)({
|
|
4188
4188
|
source: e.name,
|
|
4189
4189
|
length: V.value.bar.serieName.abbreviationSize
|
|
4190
|
-
}) : e.name), 13, cr)) :
|
|
4191
|
-
V.value.plot.labels.show && H.value.dataLabels.show ? (E(),
|
|
4190
|
+
}) : e.name), 13, cr)) : b("", !0)], 64))), 128))], 64))), 128))])) : b("", !0),
|
|
4191
|
+
V.value.plot.labels.show && H.value.dataLabels.show ? (E(), x("g", lr, [(E(!0), x(v, null, O(Nu.value, (e) => (E(), x("text", {
|
|
4192
4192
|
key: e.key,
|
|
4193
4193
|
transform: Su({
|
|
4194
4194
|
plot: e.plot,
|
|
@@ -4208,11 +4208,11 @@ var Ot = /* @__PURE__ */ e({ default: () => M }), kt = ["id"], At = ["id"], jt =
|
|
|
4208
4208
|
plot: e.plot,
|
|
4209
4209
|
type: "plot"
|
|
4210
4210
|
})
|
|
4211
|
-
}, null, 12, ur))), 128))])) : (E(),
|
|
4211
|
+
}, null, 12, ur))), 128))])) : (E(), x("g", dr, [(E(!0), x(v, null, O($.value, (e, t) => (E(), x(v, { key: `xLabel_plot_${e.id}` }, [(E(!0), x(v, null, O(e.plots, (n, r) => (E(), x(v, { key: `xLabel_plot_${t}_${r}` }, [V.value.plot.tag.followValue ? (E(), x(v, { key: 1 }, [[
|
|
4212
4212
|
I.value,
|
|
4213
4213
|
R.value,
|
|
4214
4214
|
la.value
|
|
4215
|
-
].includes(r) && e.useTag ? (E(),
|
|
4215
|
+
].includes(r) && e.useTag ? (E(), x("line", {
|
|
4216
4216
|
key: 0,
|
|
4217
4217
|
class: "vue-ui-xy-tag-plot",
|
|
4218
4218
|
x1: J.value?.left,
|
|
@@ -4223,36 +4223,36 @@ var Ot = /* @__PURE__ */ e({ default: () => M }), kt = ["id"], At = ["id"], jt =
|
|
|
4223
4223
|
"stroke-linecap": "round",
|
|
4224
4224
|
"stroke-dasharray": "2",
|
|
4225
4225
|
stroke: e.color
|
|
4226
|
-
}, null, 8, gr)) :
|
|
4226
|
+
}, null, 8, gr)) : b("", !0)], 64)) : (E(), x(v, { key: 0 }, [n && r === 0 && e.useTag && e.useTag === "start" ? (E(), x("foreignObject", {
|
|
4227
4227
|
key: 0,
|
|
4228
4228
|
x: n.x,
|
|
4229
4229
|
y: n.y - 20,
|
|
4230
4230
|
height: 24,
|
|
4231
4231
|
width: "150",
|
|
4232
4232
|
style: T(`overflow: visible; opacity:${N.value ? N.value === e.groupId ? 1 : .2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
4233
|
-
}, [
|
|
4234
|
-
style: T(`padding: 3px; background:${A(
|
|
4235
|
-
innerHTML: A(
|
|
4233
|
+
}, [S("div", {
|
|
4234
|
+
style: T(`padding: 3px; background:${A(p)(e.color, 80)};color:${A(we)(e.color)};width:fit-content;font-size:${B.value.plotLabels}px;border-radius: 2px;`),
|
|
4235
|
+
innerHTML: A(h)(V.value.plot.tag.formatter, n.value, e.name, {
|
|
4236
4236
|
datapoint: n,
|
|
4237
4237
|
seriesIndex: r,
|
|
4238
4238
|
serieName: e.name
|
|
4239
4239
|
})
|
|
4240
|
-
}, null, 12, pr)], 12, fr)) :
|
|
4240
|
+
}, null, 12, pr)], 12, fr)) : b("", !0), n && r === e.plots.length - 1 && e.useTag && e.useTag === "end" ? (E(), x("foreignObject", {
|
|
4241
4241
|
key: 1,
|
|
4242
4242
|
x: n.x - e.name.length * (B.value.plotLabels / 2),
|
|
4243
4243
|
y: n.y - 20,
|
|
4244
4244
|
height: 24,
|
|
4245
4245
|
width: "150",
|
|
4246
4246
|
style: T(`overflow: visible; opacity:${N.value ? N.value === e.groupId ? 1 : .2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
4247
|
-
}, [
|
|
4248
|
-
style: T(`padding: 3px; background:${A(
|
|
4249
|
-
innerHTML: A(
|
|
4247
|
+
}, [S("div", {
|
|
4248
|
+
style: T(`padding: 3px; background:${A(p)(e.color, 80)};color:${A(we)(e.color)};width:fit-content;font-size:${B.value.plotLabels}px;border-radius: 2px;`),
|
|
4249
|
+
innerHTML: A(h)(V.value.plot.tag.formatter, n.value, e.name, {
|
|
4250
4250
|
datapoint: n,
|
|
4251
4251
|
seriesIndex: r,
|
|
4252
4252
|
serieName: e.name
|
|
4253
4253
|
})
|
|
4254
|
-
}, null, 12, hr)], 12, mr)) :
|
|
4255
|
-
V.value.line.labels.show && H.value.dataLabels.show ? (E(),
|
|
4254
|
+
}, null, 12, hr)], 12, mr)) : b("", !0)], 64))], 64))), 128))], 64))), 128))])),
|
|
4255
|
+
V.value.line.labels.show && H.value.dataLabels.show ? (E(), x("g", _r, [(E(!0), x(v, null, O(Pu.value, (e) => (E(), x("text", {
|
|
4256
4256
|
key: e.key,
|
|
4257
4257
|
transform: Su({
|
|
4258
4258
|
plot: e.plot,
|
|
@@ -4272,11 +4272,11 @@ var Ot = /* @__PURE__ */ e({ default: () => M }), kt = ["id"], At = ["id"], jt =
|
|
|
4272
4272
|
plot: e.plot,
|
|
4273
4273
|
type: "line"
|
|
4274
4274
|
})
|
|
4275
|
-
}, null, 12, vr))), 128))])) : (E(),
|
|
4275
|
+
}, null, 12, vr))), 128))])) : (E(), x("g", yr, [(E(!0), x(v, null, O(Q.value, (e, t) => (E(), x(v, { key: `xLabel_line_${e.id}` }, [(E(!0), x(v, null, O(e.plots, (n, r) => (E(), x(v, { key: `xLabel_line_${t}_${r}` }, [V.value.line.tag.followValue ? (E(), x(v, { key: 1 }, [[
|
|
4276
4276
|
I.value,
|
|
4277
4277
|
R.value,
|
|
4278
4278
|
la.value
|
|
4279
|
-
].includes(r) && e.useTag ? (E(),
|
|
4279
|
+
].includes(r) && e.useTag ? (E(), x("line", {
|
|
4280
4280
|
key: 0,
|
|
4281
4281
|
class: "vue-ui-xy-tag-line",
|
|
4282
4282
|
x1: J.value?.left,
|
|
@@ -4287,43 +4287,43 @@ var Ot = /* @__PURE__ */ e({ default: () => M }), kt = ["id"], At = ["id"], jt =
|
|
|
4287
4287
|
"stroke-linecap": "round",
|
|
4288
4288
|
"stroke-dasharray": "2",
|
|
4289
4289
|
stroke: e.color
|
|
4290
|
-
}, null, 8, wr)) :
|
|
4290
|
+
}, null, 8, wr)) : b("", !0)], 64)) : (E(), x(v, { key: 0 }, [n && r === 0 && e.useTag && e.useTag === "start" ? (E(), x("foreignObject", {
|
|
4291
4291
|
key: 0,
|
|
4292
4292
|
x: n.x,
|
|
4293
4293
|
y: n.y - 20,
|
|
4294
4294
|
height: 24,
|
|
4295
4295
|
width: "150",
|
|
4296
4296
|
style: T(`overflow: visible; opacity:${N.value ? N.value === e.groupId ? 1 : .2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
4297
|
-
}, [
|
|
4298
|
-
style: T(`padding: 3px; background:${A(
|
|
4299
|
-
innerHTML: A(
|
|
4297
|
+
}, [S("div", {
|
|
4298
|
+
style: T(`padding: 3px; background:${A(p)(e.color, 80)};color:${A(we)(e.color)};width:fit-content;font-size:${B.value.plotLabels}px;border-radius: 2px;`),
|
|
4299
|
+
innerHTML: A(h)(V.value.line.tag.formatter, n.value, e.name, {
|
|
4300
4300
|
datapoint: n,
|
|
4301
4301
|
seriesIndex: r,
|
|
4302
4302
|
serieName: e.name
|
|
4303
4303
|
})
|
|
4304
|
-
}, null, 12, xr)], 12, br)) :
|
|
4304
|
+
}, null, 12, xr)], 12, br)) : b("", !0), n && r === e.plots.length - 1 && e.useTag && e.useTag === "end" ? (E(), x("foreignObject", {
|
|
4305
4305
|
key: 1,
|
|
4306
4306
|
x: n.x,
|
|
4307
4307
|
y: n.y - 20,
|
|
4308
4308
|
height: 24,
|
|
4309
4309
|
width: "150",
|
|
4310
4310
|
style: T(`overflow: visible; opacity:${N.value ? N.value === e.groupId ? 1 : .2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
4311
|
-
}, [
|
|
4312
|
-
style: T(`padding: 3px; background:${A(
|
|
4313
|
-
innerHTML: A(
|
|
4311
|
+
}, [S("div", {
|
|
4312
|
+
style: T(`padding: 3px; background:${A(p)(e.color, 80)};color:${A(we)(e.color)};width:fit-content;font-size:${B.value.plotLabels}px;border-radius: 2px;`),
|
|
4313
|
+
innerHTML: A(h)(V.value.line.tag.formatter, n.value, e.name, {
|
|
4314
4314
|
datapoint: n,
|
|
4315
4315
|
seriesIndex: r,
|
|
4316
4316
|
serieName: e.name
|
|
4317
4317
|
})
|
|
4318
|
-
}, null, 12, Cr)], 12, Sr)) :
|
|
4319
|
-
(E(!0),
|
|
4318
|
+
}, null, 12, Cr)], 12, Sr)) : b("", !0)], 64))], 64))), 128))], 64))), 128))])),
|
|
4319
|
+
(E(!0), x(v, null, O(Q.value, (e, t) => (E(), x(v, { key: `xLabel_line_${e.id}` }, [(E(!0), x(v, null, O(e.plots, (n, r) => (E(), x(v, { key: `xLabel_line_${t}_${r}` }, [n && r === 0 && e.showSerieName && e.showSerieName === "start" ? (E(), x("text", {
|
|
4320
4320
|
key: 0,
|
|
4321
4321
|
x: n.x - B.value.plotLabels,
|
|
4322
4322
|
y: n.y,
|
|
4323
4323
|
"font-size": B.value.plotLabels,
|
|
4324
4324
|
"text-anchor": "end",
|
|
4325
4325
|
fill: e.color,
|
|
4326
|
-
innerHTML: A(
|
|
4326
|
+
innerHTML: A(l)({
|
|
4327
4327
|
content: e.name,
|
|
4328
4328
|
fontSize: B.value.plotLabels,
|
|
4329
4329
|
fill: e.color,
|
|
@@ -4332,14 +4332,14 @@ var Ot = /* @__PURE__ */ e({ default: () => M }), kt = ["id"], At = ["id"], jt =
|
|
|
4332
4332
|
maxWords: 2
|
|
4333
4333
|
}),
|
|
4334
4334
|
style: T(`opacity:${N.value ? N.value === e.groupId ? 1 : .2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
4335
|
-
}, null, 12, Tr)) :
|
|
4335
|
+
}, null, 12, Tr)) : b("", !0), n && r === e.plots.length - 1 && e.showSerieName && e.showSerieName === "end" ? (E(), x("text", {
|
|
4336
4336
|
key: 1,
|
|
4337
4337
|
x: n.x + B.value.plotLabels,
|
|
4338
4338
|
y: n.y,
|
|
4339
4339
|
"font-size": B.value.plotLabels,
|
|
4340
4340
|
"text-anchor": "start",
|
|
4341
4341
|
fill: e.color,
|
|
4342
|
-
innerHTML: A(
|
|
4342
|
+
innerHTML: A(l)({
|
|
4343
4343
|
content: e.name,
|
|
4344
4344
|
fontSize: B.value.plotLabels,
|
|
4345
4345
|
fill: e.color,
|
|
@@ -4348,15 +4348,15 @@ var Ot = /* @__PURE__ */ e({ default: () => M }), kt = ["id"], At = ["id"], jt =
|
|
|
4348
4348
|
maxWords: 2
|
|
4349
4349
|
}),
|
|
4350
4350
|
style: T(`opacity:${N.value ? N.value === e.groupId ? 1 : .2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
4351
|
-
}, null, 12, Er)) :
|
|
4352
|
-
(E(!0),
|
|
4351
|
+
}, null, 12, Er)) : b("", !0)], 64))), 128))], 64))), 128)),
|
|
4352
|
+
(E(!0), x(v, null, O($.value, (e, t) => (E(), x(v, { key: `xLabel_plot_${e.id}` }, [(E(!0), x(v, null, O(e.plots, (n, r) => (E(), x(v, { key: `xLabel_plot_${t}_${r}` }, [n && r === 0 && e.showSerieName && e.showSerieName === "start" ? (E(), x("text", {
|
|
4353
4353
|
key: 0,
|
|
4354
4354
|
x: n.x - B.value.plotLabels,
|
|
4355
4355
|
y: n.y,
|
|
4356
4356
|
"font-size": B.value.plotLabels,
|
|
4357
4357
|
"text-anchor": "end",
|
|
4358
4358
|
fill: e.color,
|
|
4359
|
-
innerHTML: A(
|
|
4359
|
+
innerHTML: A(l)({
|
|
4360
4360
|
content: e.name,
|
|
4361
4361
|
fontSize: B.value.plotLabels,
|
|
4362
4362
|
fill: e.color,
|
|
@@ -4365,14 +4365,14 @@ var Ot = /* @__PURE__ */ e({ default: () => M }), kt = ["id"], At = ["id"], jt =
|
|
|
4365
4365
|
maxWords: 2
|
|
4366
4366
|
}),
|
|
4367
4367
|
style: T(`opacity:${N.value ? N.value === e.groupId ? 1 : .2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
4368
|
-
}, null, 12, Dr)) :
|
|
4368
|
+
}, null, 12, Dr)) : b("", !0), n && r === e.plots.length - 1 && e.showSerieName && e.showSerieName === "end" ? (E(), x("text", {
|
|
4369
4369
|
key: 1,
|
|
4370
4370
|
x: n.x + B.value.plotLabels,
|
|
4371
4371
|
y: n.y,
|
|
4372
4372
|
"font-size": B.value.plotLabels,
|
|
4373
4373
|
"text-anchor": "start",
|
|
4374
4374
|
fill: e.color,
|
|
4375
|
-
innerHTML: A(
|
|
4375
|
+
innerHTML: A(l)({
|
|
4376
4376
|
content: e.name,
|
|
4377
4377
|
fontSize: B.value.plotLabels,
|
|
4378
4378
|
fill: e.color,
|
|
@@ -4381,13 +4381,13 @@ var Ot = /* @__PURE__ */ e({ default: () => M }), kt = ["id"], At = ["id"], jt =
|
|
|
4381
4381
|
maxWords: 2
|
|
4382
4382
|
}),
|
|
4383
4383
|
style: T(`opacity:${N.value ? N.value === e.groupId ? 1 : .2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
4384
|
-
}, null, 12, Or)) :
|
|
4385
|
-
(E(!0),
|
|
4384
|
+
}, null, 12, Or)) : b("", !0)], 64))), 128))], 64))), 128)),
|
|
4385
|
+
(E(!0), x(v, null, O([
|
|
4386
4386
|
...$.value,
|
|
4387
4387
|
...Q.value,
|
|
4388
4388
|
...Al.value
|
|
4389
|
-
], (e, t) => (E(),
|
|
4390
|
-
|
|
4389
|
+
], (e, t) => (E(), x(v, { key: `progression-${t}` }, [Object.hasOwn(e, "useProgression") && e.useProgression === !0 && !isNaN(A(xe)(e.plots).trend) ? (E(), x("g", kr, [
|
|
4390
|
+
S("defs", null, [S("marker", {
|
|
4391
4391
|
id: `progression_arrow_${t}`,
|
|
4392
4392
|
markerWidth: "9",
|
|
4393
4393
|
markerHeight: "9",
|
|
@@ -4397,44 +4397,44 @@ var Ot = /* @__PURE__ */ e({ default: () => M }), kt = ["id"], At = ["id"], jt =
|
|
|
4397
4397
|
refY: 7 / 2,
|
|
4398
4398
|
orient: "auto",
|
|
4399
4399
|
overflow: "visible"
|
|
4400
|
-
}, [
|
|
4400
|
+
}, [S("polygon", {
|
|
4401
4401
|
points: "0,0 7,3.5 0,7",
|
|
4402
4402
|
fill: e.color,
|
|
4403
4403
|
stroke: V.value.chart.backgroundColor,
|
|
4404
4404
|
"stroke-width": "1",
|
|
4405
4405
|
"stroke-linejoin": "round"
|
|
4406
4406
|
}, null, 8, jr)], 8, Ar)]),
|
|
4407
|
-
e.plots.length > 1 ? (E(),
|
|
4407
|
+
e.plots.length > 1 ? (E(), x("line", {
|
|
4408
4408
|
key: 0,
|
|
4409
|
-
x1: A(
|
|
4410
|
-
x2: A(
|
|
4411
|
-
y1: A(
|
|
4412
|
-
y2: A(
|
|
4409
|
+
x1: A(xe)(e.plots).x1 + (e.type === "bar" ? Ys() : 0),
|
|
4410
|
+
x2: A(xe)(e.plots).x2 + (e.type === "bar" ? Ys() : 0),
|
|
4411
|
+
y1: A(g)(A(xe)(e.plots).y1),
|
|
4412
|
+
y2: A(g)(A(xe)(e.plots).y2),
|
|
4413
4413
|
"stroke-width": 1,
|
|
4414
4414
|
stroke: V.value.chart.backgroundColor,
|
|
4415
4415
|
"stroke-dasharray": 2,
|
|
4416
4416
|
"stroke-linecap": "round",
|
|
4417
4417
|
"stroke-linejoin": "round",
|
|
4418
4418
|
"marker-end": `url(#progression_arrow_${t})`
|
|
4419
|
-
}, null, 8, Mr)) :
|
|
4420
|
-
e.plots.length > 1 ? (E(),
|
|
4419
|
+
}, null, 8, Mr)) : b("", !0),
|
|
4420
|
+
e.plots.length > 1 ? (E(), x("line", {
|
|
4421
4421
|
key: 1,
|
|
4422
|
-
x1: A(
|
|
4423
|
-
x2: A(
|
|
4424
|
-
y1: A(
|
|
4425
|
-
y2: A(
|
|
4422
|
+
x1: A(xe)(e.plots).x1 + (e.type === "bar" ? Ys() : 0),
|
|
4423
|
+
x2: A(xe)(e.plots).x2 + (e.type === "bar" ? Ys() : 0),
|
|
4424
|
+
y1: A(g)(A(xe)(e.plots).y1),
|
|
4425
|
+
y2: A(g)(A(xe)(e.plots).y2),
|
|
4426
4426
|
"stroke-width": 1,
|
|
4427
4427
|
stroke: e.color,
|
|
4428
4428
|
"stroke-dasharray": 2,
|
|
4429
4429
|
"stroke-linecap": "round",
|
|
4430
4430
|
"stroke-linejoin": "round",
|
|
4431
4431
|
"marker-end": `url(#progression_arrow_${t})`
|
|
4432
|
-
}, null, 8, Nr)) :
|
|
4433
|
-
e.plots.length > 1 ? (E(),
|
|
4432
|
+
}, null, 8, Nr)) : b("", !0),
|
|
4433
|
+
e.plots.length > 1 ? (E(), x("text", {
|
|
4434
4434
|
key: 2,
|
|
4435
4435
|
"text-anchor": "middle",
|
|
4436
|
-
x: A(
|
|
4437
|
-
y: A(
|
|
4436
|
+
x: A(xe)(e.plots).x2 + (e.type === "bar" ? Ys() : 0),
|
|
4437
|
+
y: A(xe)(e.plots).y2 - 12,
|
|
4438
4438
|
"font-size": B.value.plotLabels,
|
|
4439
4439
|
fill: e.color,
|
|
4440
4440
|
stroke: V.value.chart.backgroundColor,
|
|
@@ -4442,28 +4442,28 @@ var Ot = /* @__PURE__ */ e({ default: () => M }), kt = ["id"], At = ["id"], jt =
|
|
|
4442
4442
|
"stroke-linecap": "round",
|
|
4443
4443
|
"stroke-linejoin": "round",
|
|
4444
4444
|
"paint-order": "stroke fill"
|
|
4445
|
-
}, ft(A(
|
|
4446
|
-
v: A(
|
|
4445
|
+
}, ft(A(u)({
|
|
4446
|
+
v: A(xe)(e.plots).trend * 100,
|
|
4447
4447
|
s: "%",
|
|
4448
4448
|
r: 2
|
|
4449
|
-
})), 9, Pr)) :
|
|
4450
|
-
])) :
|
|
4451
|
-
H.value.useIndividualScale && !H.value.isStacked ? (E(),
|
|
4449
|
+
})), 9, Pr)) : b("", !0)
|
|
4450
|
+
])) : b("", !0)], 64))), 128)),
|
|
4451
|
+
H.value.useIndividualScale && !H.value.isStacked ? (E(), x(v, { key: 16 }, [S("defs", null, [(E(!0), x(v, null, O(Ml.value, (e, t) => (E(), x("linearGradient", {
|
|
4452
4452
|
key: `individual_scale_gradient_${e.groupId || e.id || t}`,
|
|
4453
4453
|
id: `individual_scale_gradient_${F.value}_${t}`,
|
|
4454
4454
|
x1: q.value ? "100%" : "0%",
|
|
4455
4455
|
x2: q.value ? "0%" : "100%",
|
|
4456
4456
|
y1: "0%",
|
|
4457
4457
|
y2: "0%"
|
|
4458
|
-
}, [
|
|
4458
|
+
}, [S("stop", {
|
|
4459
4459
|
offset: "0%",
|
|
4460
4460
|
"stop-color": V.value.chart.backgroundColor,
|
|
4461
4461
|
"stop-opacity": "0"
|
|
4462
|
-
}, null, 8, Ir),
|
|
4462
|
+
}, null, 8, Ir), S("stop", {
|
|
4463
4463
|
offset: "100%",
|
|
4464
4464
|
"stop-color": e.color,
|
|
4465
4465
|
"stop-opacity": "0.2"
|
|
4466
|
-
}, null, 8, Lr)], 8, Fr))), 128))]), (E(!0),
|
|
4466
|
+
}, null, 8, Lr)], 8, Fr))), 128))]), (E(!0), x(v, null, O(Ml.value, (e, t) => (E(), x("rect", {
|
|
4467
4467
|
key: `individual_scale_background_${e.groupId || e.id || t}`,
|
|
4468
4468
|
x: q.value ? e.x : e.x - V.value.chart.grid.labels.yAxis.labelWidth - J.value.individualOffsetX,
|
|
4469
4469
|
y: J.value?.top,
|
|
@@ -4472,8 +4472,8 @@ var Ot = /* @__PURE__ */ e({ default: () => M }), kt = ["id"], At = ["id"], jt =
|
|
|
4472
4472
|
fill: N.value === e.groupId ? `url(#individual_scale_gradient_${F.value}_${t})` : "transparent",
|
|
4473
4473
|
onMouseenter: (t) => N.value = e.groupId,
|
|
4474
4474
|
onMouseleave: n[0] ||= (e) => N.value = null
|
|
4475
|
-
}, null, 40, Rr))), 128))], 64)) :
|
|
4476
|
-
|
|
4475
|
+
}, null, 40, Rr))), 128))], 64)) : b("", !0),
|
|
4476
|
+
S("g", null, [V.value.chart.grid.labels.axis.yLabel && !H.value.useIndividualScale ? (E(), x("text", {
|
|
4477
4477
|
key: 0,
|
|
4478
4478
|
ref_key: "yAxisLabel",
|
|
4479
4479
|
ref: Ji,
|
|
@@ -4482,7 +4482,7 @@ var Ot = /* @__PURE__ */ e({ default: () => M }), kt = ["id"], At = ["id"], jt =
|
|
|
4482
4482
|
transform: `translate(${q.value ? J.value.right + J.value.scaleLabelsOffset + V.value.chart.grid.labels.axis.yLabelOffsetX + B.value.yAxis : V.value.chart.grid.labels.axis.fontSize + V.value.chart.grid.labels.axis.yLabelOffsetX}, ${J.value?.top + J.value.height / 2}) rotate(-90)`,
|
|
4483
4483
|
"text-anchor": "middle",
|
|
4484
4484
|
style: { transition: "none" }
|
|
4485
|
-
}, ft(V.value.chart.grid.labels.axis.yLabel), 9, zr)) :
|
|
4485
|
+
}, ft(V.value.chart.grid.labels.axis.yLabel), 9, zr)) : b("", !0), V.value.chart.grid.labels.axis.xLabel ? (E(), x("text", {
|
|
4486
4486
|
key: 1,
|
|
4487
4487
|
ref_key: "xAxisLabel",
|
|
4488
4488
|
ref: qi,
|
|
@@ -4491,14 +4491,14 @@ var Ot = /* @__PURE__ */ e({ default: () => M }), kt = ["id"], At = ["id"], jt =
|
|
|
4491
4491
|
y: na.value - 3,
|
|
4492
4492
|
"font-size": B.value.yAxis,
|
|
4493
4493
|
fill: V.value.chart.grid.labels.color
|
|
4494
|
-
}, ft(V.value.chart.grid.labels.axis.xLabel), 9, Br)) :
|
|
4495
|
-
V.value.chart.grid.labels.xAxisLabels.show ? (E(),
|
|
4494
|
+
}, ft(V.value.chart.grid.labels.axis.xLabel), 9, Br)) : b("", !0)]),
|
|
4495
|
+
V.value.chart.grid.labels.xAxisLabels.show ? (E(), x("g", {
|
|
4496
4496
|
key: 17,
|
|
4497
4497
|
ref_key: "timeLabelsEls",
|
|
4498
4498
|
ref: Yi,
|
|
4499
4499
|
opacity: Tu.value ? .1 : 1,
|
|
4500
4500
|
style: { transition: "opacity 0.2s" }
|
|
4501
|
-
}, [t.$slots["time-label"] ? (E(!0),
|
|
4501
|
+
}, [t.$slots["time-label"] ? (E(!0), x(v, { key: 0 }, O(pl.value, (e, n) => k(t.$slots, "time-label", at({
|
|
4502
4502
|
key: `time_label_${e.id}`,
|
|
4503
4503
|
ref_for: !0
|
|
4504
4504
|
}, {
|
|
@@ -4511,7 +4511,7 @@ var Ot = /* @__PURE__ */ e({ default: () => M }), kt = ["id"], At = ["id"], jt =
|
|
|
4511
4511
|
content: e.text,
|
|
4512
4512
|
textAnchor: V.value.chart.grid.labels.xAxisLabels.rotation > 0 ? "start" : V.value.chart.grid.labels.xAxisLabels.rotation < 0 ? "end" : "middle",
|
|
4513
4513
|
show: e && e.text
|
|
4514
|
-
}), void 0, !0)), 128)) : (E(!0),
|
|
4514
|
+
}), void 0, !0)), 128)) : (E(!0), x(v, { key: 1 }, O(pl.value, (e, t) => (E(), x("g", { key: `time_label_${t}` }, [e && e.text ? (E(), x(v, { key: 0 }, [String(e.text).includes("\n") ? (E(), x("text", {
|
|
4515
4515
|
key: 1,
|
|
4516
4516
|
class: "vue-data-ui-time-label",
|
|
4517
4517
|
"text-anchor": V.value.chart.grid.labels.xAxisLabels.rotation > 0 ? "start" : V.value.chart.grid.labels.xAxisLabels.rotation < 0 ? "end" : "middle",
|
|
@@ -4519,7 +4519,7 @@ var Ot = /* @__PURE__ */ e({ default: () => M }), kt = ["id"], At = ["id"], jt =
|
|
|
4519
4519
|
fill: V.value.chart.grid.labels.xAxisLabels.color,
|
|
4520
4520
|
transform: `translate(${ml(e, t)}, ${J.value?.bottom + B.value.xAxis * 1.5}), rotate(${V.value.chart.grid.labels.xAxisLabels.rotation})`,
|
|
4521
4521
|
style: T({ cursor: Zo() && Qa.value ? "pointer" : "default" }),
|
|
4522
|
-
innerHTML: A(
|
|
4522
|
+
innerHTML: A(ce)({
|
|
4523
4523
|
content: String(e.text),
|
|
4524
4524
|
fontSize: B.value.xAxis,
|
|
4525
4525
|
fill: V.value.chart.grid.labels.xAxisLabels.color,
|
|
@@ -4527,7 +4527,7 @@ var Ot = /* @__PURE__ */ e({ default: () => M }), kt = ["id"], At = ["id"], jt =
|
|
|
4527
4527
|
y: 0
|
|
4528
4528
|
}),
|
|
4529
4529
|
onClick: (n) => fs(e, t)
|
|
4530
|
-
}, null, 12, Ur)) : (E(),
|
|
4530
|
+
}, null, 12, Ur)) : (E(), x("text", {
|
|
4531
4531
|
key: 0,
|
|
4532
4532
|
class: "vue-data-ui-time-label",
|
|
4533
4533
|
"text-anchor": V.value.chart.grid.labels.xAxisLabels.rotation > 0 ? "start" : V.value.chart.grid.labels.xAxisLabels.rotation < 0 ? "end" : "middle",
|
|
@@ -4536,8 +4536,8 @@ var Ot = /* @__PURE__ */ e({ default: () => M }), kt = ["id"], At = ["id"], jt =
|
|
|
4536
4536
|
transform: `translate(${ml(e, t)}, ${J.value?.bottom + B.value.xAxis * 1.5}), rotate(${V.value.chart.grid.labels.xAxisLabels.rotation})`,
|
|
4537
4537
|
style: T({ cursor: Zo() && Qa.value ? "pointer" : "default" }),
|
|
4538
4538
|
onClick: (n) => fs(e, t)
|
|
4539
|
-
}, ft(e.text || ""), 13, Hr))], 64)) :
|
|
4540
|
-
Du.value ? (E(),
|
|
4539
|
+
}, ft(e.text || ""), 13, Hr))], 64)) : b("", !0)]))), 128))], 8, Vr)) : b("", !0),
|
|
4540
|
+
Du.value ? (E(), x("g", Wr, [S("text", {
|
|
4541
4541
|
class: "vue-data-ui-time-label",
|
|
4542
4542
|
"text-anchor": V.value.chart.grid.labels.xAxisLabels.rotation > 0 ? "start" : V.value.chart.grid.labels.xAxisLabels.rotation < 0 ? "end" : "middle",
|
|
4543
4543
|
"font-size": B.value.xAxis,
|
|
@@ -4549,16 +4549,16 @@ var Ot = /* @__PURE__ */ e({ default: () => M }), kt = ["id"], At = ["id"], jt =
|
|
|
4549
4549
|
animation: "none !important",
|
|
4550
4550
|
"pointer-events": "none"
|
|
4551
4551
|
},
|
|
4552
|
-
innerHTML: A(
|
|
4552
|
+
innerHTML: A(ce)({
|
|
4553
4553
|
content: String(Du.value.text),
|
|
4554
4554
|
fontSize: B.value.xAxis,
|
|
4555
4555
|
fill: V.value.chart.grid.labels.xAxisLabels.color,
|
|
4556
4556
|
x: 0,
|
|
4557
4557
|
y: 0
|
|
4558
4558
|
})
|
|
4559
|
-
}, null, 8, Gr)])) :
|
|
4560
|
-
rl.value.length && !H.value.isStacked ? (E(),
|
|
4561
|
-
e.yTop && e.show && isFinite(e.yTop) ? (E(),
|
|
4559
|
+
}, null, 8, Gr)])) : b("", !0),
|
|
4560
|
+
rl.value.length && !H.value.isStacked ? (E(), x("g", Kr, [(E(!0), x(v, null, O(rl.value, (e) => (E(), x("g", { key: e.id }, [
|
|
4561
|
+
e.yTop && e.show && isFinite(e.yTop) ? (E(), x("line", {
|
|
4562
4562
|
key: 0,
|
|
4563
4563
|
x1: e.x1,
|
|
4564
4564
|
y1: e.yTop,
|
|
@@ -4569,8 +4569,8 @@ var Ot = /* @__PURE__ */ e({ default: () => M }), kt = ["id"], At = ["id"], jt =
|
|
|
4569
4569
|
"stroke-dasharray": e.config.line.strokeDasharray,
|
|
4570
4570
|
"stroke-linecap": "round",
|
|
4571
4571
|
style: { animation: "none !important" }
|
|
4572
|
-
}, null, 8, qr)) :
|
|
4573
|
-
e.yBottom && e.show && isFinite(e.yBottom) ? (E(),
|
|
4572
|
+
}, null, 8, qr)) : b("", !0),
|
|
4573
|
+
e.yBottom && e.show && isFinite(e.yBottom) ? (E(), x("line", {
|
|
4574
4574
|
key: 1,
|
|
4575
4575
|
x1: e.x1,
|
|
4576
4576
|
y1: e.yBottom,
|
|
@@ -4581,24 +4581,24 @@ var Ot = /* @__PURE__ */ e({ default: () => M }), kt = ["id"], At = ["id"], jt =
|
|
|
4581
4581
|
"stroke-dasharray": e.config.line.strokeDasharray,
|
|
4582
4582
|
"stroke-linecap": "round",
|
|
4583
4583
|
style: { animation: "none !important" }
|
|
4584
|
-
}, null, 8, Jr)) :
|
|
4585
|
-
e.hasArea && e.show && isFinite(e.yTop) && isFinite(e.yBottom) ? (E(),
|
|
4584
|
+
}, null, 8, Jr)) : b("", !0),
|
|
4585
|
+
e.hasArea && e.show && isFinite(e.yTop) && isFinite(e.yBottom) ? (E(), x("rect", {
|
|
4586
4586
|
key: 2,
|
|
4587
4587
|
y: Math.min(e.yTop, e.yBottom),
|
|
4588
4588
|
x: e.x1,
|
|
4589
4589
|
width: J.value.width,
|
|
4590
|
-
height: A(
|
|
4591
|
-
fill: A(
|
|
4590
|
+
height: A(_)(e.areaHeight, 0),
|
|
4591
|
+
fill: A(p)(e.config.area.fill, e.config.area.opacity),
|
|
4592
4592
|
style: { animation: "none !important" }
|
|
4593
|
-
}, null, 8, Yr)) :
|
|
4594
|
-
e.config.label.text && e.show && isFinite(e._box.y) ? (E(),
|
|
4593
|
+
}, null, 8, Yr)) : b("", !0),
|
|
4594
|
+
e.config.label.text && e.show && isFinite(e._box.y) ? (E(), x("rect", at({
|
|
4595
4595
|
key: 3,
|
|
4596
4596
|
class: "vue-ui-xy-annotation-label-box"
|
|
4597
4597
|
}, { ref_for: !0 }, e._box, { style: {
|
|
4598
4598
|
animation: "none !important",
|
|
4599
4599
|
transition: "none !important"
|
|
4600
|
-
} }), null, 16)) :
|
|
4601
|
-
e.config.label.text && e.show && isFinite(e._text.y) ? (E(),
|
|
4600
|
+
} }), null, 16)) : b("", !0),
|
|
4601
|
+
e.config.label.text && e.show && isFinite(e._text.y) ? (E(), x("text", {
|
|
4602
4602
|
key: 4,
|
|
4603
4603
|
id: e.id,
|
|
4604
4604
|
class: "vue-ui-xy-annotation-label",
|
|
@@ -4607,31 +4607,31 @@ var Ot = /* @__PURE__ */ e({ default: () => M }), kt = ["id"], At = ["id"], jt =
|
|
|
4607
4607
|
"font-size": e.config.label.fontSize,
|
|
4608
4608
|
fill: e.config.label.color,
|
|
4609
4609
|
"text-anchor": e.config.label.textAnchor
|
|
4610
|
-
}, ft(e.config.label.text), 9, Xr)) :
|
|
4611
|
-
]))), 128))])) :
|
|
4612
|
-
!Tu.value && V.value.chart.timeTag.show && (G.value ? A(
|
|
4610
|
+
}, ft(e.config.label.text), 9, Xr)) : b("", !0)
|
|
4611
|
+
]))), 128))])) : b("", !0),
|
|
4612
|
+
!Tu.value && V.value.chart.timeTag.show && (G.value ? A(De)(pu.value) : ![null, void 0].includes(R.value) || ![null, void 0].includes(I.value)) ? (E(), x("g", Zr, [(E(), x("foreignObject", {
|
|
4613
4613
|
x: hu(),
|
|
4614
4614
|
y: J.value?.bottom,
|
|
4615
4615
|
width: "200",
|
|
4616
4616
|
height: "40",
|
|
4617
4617
|
style: { overflow: "visible !important" }
|
|
4618
|
-
}, [
|
|
4618
|
+
}, [S("div", {
|
|
4619
4619
|
ref_key: "timeTagEl",
|
|
4620
4620
|
ref: uu,
|
|
4621
4621
|
class: "vue-ui-xy-time-tag",
|
|
4622
4622
|
style: T(`width: fit-content;margin: 0 auto;text-align:center;padding:3px 12px;background:${V.value.chart.timeTag.backgroundColor};color:${V.value.chart.timeTag.color};font-size:${V.value.chart.timeTag.fontSize}px`),
|
|
4623
4623
|
innerHTML: yu.value
|
|
4624
|
-
}, null, 12, $r)], 8, Qr)),
|
|
4625
|
-
cx: G.value && A(
|
|
4624
|
+
}, null, 12, $r)], 8, Qr)), S("circle", {
|
|
4625
|
+
cx: G.value && A(De)(pu.value) ? hl({ x: pu.value }) : kc((R.value === null ? 0 : R.value) || (I.value === null ? 0 : I.value)),
|
|
4626
4626
|
cy: J.value?.bottom,
|
|
4627
4627
|
r: V.value.chart.timeTag.circleMarker.radius,
|
|
4628
4628
|
fill: V.value.chart.timeTag.circleMarker.color
|
|
4629
|
-
}, null, 8, ei)])) :
|
|
4630
|
-
])) :
|
|
4631
|
-
mo.value ? (E(),
|
|
4629
|
+
}, null, 8, ei)])) : b("", !0)
|
|
4630
|
+
])) : b("", !0),
|
|
4631
|
+
mo.value ? (E(), x("rect", at({ key: 2 }, _o.value, {
|
|
4632
4632
|
"data-start": U.value.start,
|
|
4633
4633
|
"data-end": U.value.end
|
|
4634
|
-
}), null, 16, ti)) :
|
|
4634
|
+
}), null, 16, ti)) : b("", !0),
|
|
4635
4635
|
k(t.$slots, "svg", { svg: {
|
|
4636
4636
|
...Ua.value,
|
|
4637
4637
|
slicer: U.value,
|
|
@@ -4644,16 +4644,16 @@ var Ot = /* @__PURE__ */ e({ default: () => M }), kt = ["id"], At = ["id"], jt =
|
|
|
4644
4644
|
],
|
|
4645
4645
|
drawingArea: J.value
|
|
4646
4646
|
} }, void 0, !0)
|
|
4647
|
-
], 512)], 46, Nt)), t.$slots.hint ? (E(),
|
|
4647
|
+
], 512)], 46, Nt)), t.$slots.hint ? (E(), x("div", ni, [k(t.$slots, "hint", w(C({
|
|
4648
4648
|
hint: V.value.a11y.translations.keyboardNavigation,
|
|
4649
4649
|
isVisible: Yu.value
|
|
4650
|
-
})), void 0, !0)])) :
|
|
4651
|
-
t.$slots.watermark ? (E(),
|
|
4652
|
-
(E(!0),
|
|
4650
|
+
})), void 0, !0)])) : b("", !0)]),
|
|
4651
|
+
t.$slots.watermark ? (E(), x("div", ri, [k(t.$slots, "watermark", w(C({ isPrinting: A(vo) || A(yo) || wa.value || Ta.value })), void 0, !0)])) : b("", !0),
|
|
4652
|
+
(E(!0), x(v, null, O(Q.value, (e, t) => (E(), x(v, { key: `tag_line_${e.id}` }, [(E(!0), x(v, null, O(e.plots, (n, r) => (E(), x(v, { key: `tag_line_${t}_${r}` }, [[
|
|
4653
4653
|
I.value,
|
|
4654
4654
|
R.value,
|
|
4655
4655
|
la.value
|
|
4656
|
-
].includes(r) && e.useTag && e.useTag === "end" && V.value.line.tag.followValue ? (E(),
|
|
4656
|
+
].includes(r) && e.useTag && e.useTag === "end" && V.value.line.tag.followValue ? (E(), x("div", {
|
|
4657
4657
|
key: 0,
|
|
4658
4658
|
ref_for: !0,
|
|
4659
4659
|
ref: (e) => es(t, r, e, "right", "line"),
|
|
@@ -4661,14 +4661,14 @@ var Ot = /* @__PURE__ */ e({ default: () => M }), kt = ["id"], At = ["id"], jt =
|
|
|
4661
4661
|
"data-tag": "right",
|
|
4662
4662
|
style: T({
|
|
4663
4663
|
position: "fixed",
|
|
4664
|
-
top: A(
|
|
4664
|
+
top: A(o)({
|
|
4665
4665
|
svgElement: L.value,
|
|
4666
4666
|
x: J.value?.right + V.value.line.tag.fontSize / 1.5,
|
|
4667
4667
|
y: n.y,
|
|
4668
4668
|
element: ba.value[`${t}_${r}_right_line`],
|
|
4669
4669
|
position: "right"
|
|
4670
4670
|
})?.top + "px",
|
|
4671
|
-
left: A(
|
|
4671
|
+
left: A(o)({
|
|
4672
4672
|
svgElement: L.value,
|
|
4673
4673
|
x: J.value?.right + V.value.line.tag.fontSize / 1.5,
|
|
4674
4674
|
y: n.y,
|
|
@@ -4678,27 +4678,27 @@ var Ot = /* @__PURE__ */ e({ default: () => M }), kt = ["id"], At = ["id"], jt =
|
|
|
4678
4678
|
height: "fit-content",
|
|
4679
4679
|
width: "fit-content",
|
|
4680
4680
|
background: e.color,
|
|
4681
|
-
color: A(
|
|
4681
|
+
color: A(we)(e.color),
|
|
4682
4682
|
padding: "0 6px",
|
|
4683
4683
|
fontSize: V.value.line.tag.fontSize + "px",
|
|
4684
4684
|
opacity: 1
|
|
4685
4685
|
})
|
|
4686
|
-
}, [(E(),
|
|
4686
|
+
}, [(E(), x("svg", ii, [S("path", {
|
|
4687
4687
|
d: "M 0,10 10,0 10,20 Z",
|
|
4688
4688
|
fill: e.color,
|
|
4689
4689
|
stroke: "none"
|
|
4690
|
-
}, null, 8, ai)])),
|
|
4690
|
+
}, null, 8, ai)])), S("div", {
|
|
4691
4691
|
class: "vue-ui-xy-tag-content",
|
|
4692
|
-
innerHTML: A(
|
|
4692
|
+
innerHTML: A(h)(V.value.line.tag.formatter, n.value, e.name, {
|
|
4693
4693
|
datapoint: n,
|
|
4694
4694
|
seriesIndex: r,
|
|
4695
4695
|
serieName: e.name
|
|
4696
4696
|
})
|
|
4697
|
-
}, null, 8, oi)], 4)) :
|
|
4697
|
+
}, null, 8, oi)], 4)) : b("", !0), [
|
|
4698
4698
|
I.value,
|
|
4699
4699
|
R.value,
|
|
4700
4700
|
la.value
|
|
4701
|
-
].includes(r) && e.useTag && e.useTag === "start" && V.value.line.tag.followValue ? (E(),
|
|
4701
|
+
].includes(r) && e.useTag && e.useTag === "start" && V.value.line.tag.followValue ? (E(), x("div", {
|
|
4702
4702
|
key: 1,
|
|
4703
4703
|
ref_for: !0,
|
|
4704
4704
|
ref: (e) => es(t, r, e, "left", "line"),
|
|
@@ -4706,14 +4706,14 @@ var Ot = /* @__PURE__ */ e({ default: () => M }), kt = ["id"], At = ["id"], jt =
|
|
|
4706
4706
|
"data-tag": "left",
|
|
4707
4707
|
style: T({
|
|
4708
4708
|
position: "fixed",
|
|
4709
|
-
top: A(
|
|
4709
|
+
top: A(o)({
|
|
4710
4710
|
svgElement: L.value,
|
|
4711
4711
|
x: J.value?.left - V.value.line.tag.fontSize / 1.5,
|
|
4712
4712
|
y: n.y,
|
|
4713
4713
|
element: ba.value[`${t}_${r}_left_line`],
|
|
4714
4714
|
position: "left"
|
|
4715
4715
|
})?.top + "px",
|
|
4716
|
-
left: A(
|
|
4716
|
+
left: A(o)({
|
|
4717
4717
|
svgElement: L.value,
|
|
4718
4718
|
x: J.value?.left - V.value.line.tag.fontSize / 1.5,
|
|
4719
4719
|
y: n.y,
|
|
@@ -4723,28 +4723,28 @@ var Ot = /* @__PURE__ */ e({ default: () => M }), kt = ["id"], At = ["id"], jt =
|
|
|
4723
4723
|
height: "fit-content",
|
|
4724
4724
|
width: "fit-content",
|
|
4725
4725
|
background: e.color,
|
|
4726
|
-
color: A(
|
|
4726
|
+
color: A(we)(e.color),
|
|
4727
4727
|
padding: "0 6px",
|
|
4728
4728
|
fontSize: V.value.line.tag.fontSize + "px",
|
|
4729
4729
|
opacity: 1
|
|
4730
4730
|
})
|
|
4731
|
-
}, [(E(),
|
|
4731
|
+
}, [(E(), x("svg", si, [S("path", {
|
|
4732
4732
|
d: "M 0,0 10,10 0,20 Z",
|
|
4733
4733
|
fill: e.color,
|
|
4734
4734
|
stroke: "none"
|
|
4735
|
-
}, null, 8, ci)])),
|
|
4735
|
+
}, null, 8, ci)])), S("div", {
|
|
4736
4736
|
class: "vue-ui-xy-tag-content",
|
|
4737
|
-
innerHTML: A(
|
|
4737
|
+
innerHTML: A(h)(V.value.line.tag.formatter, n.value, e.name, {
|
|
4738
4738
|
datapoint: n,
|
|
4739
4739
|
seriesIndex: r,
|
|
4740
4740
|
serieName: e.name
|
|
4741
4741
|
})
|
|
4742
|
-
}, null, 8, li)], 4)) :
|
|
4743
|
-
(E(!0),
|
|
4742
|
+
}, null, 8, li)], 4)) : b("", !0)], 64))), 128))], 64))), 128)),
|
|
4743
|
+
(E(!0), x(v, null, O($.value, (e, t) => (E(), x(v, { key: `tag_plot_${e.id}` }, [(E(!0), x(v, null, O(e.plots, (n, r) => (E(), x(v, { key: `tag_plot_${t}_${r}` }, [[
|
|
4744
4744
|
I.value,
|
|
4745
4745
|
R.value,
|
|
4746
4746
|
la.value
|
|
4747
|
-
].includes(r) && e.useTag && e.useTag === "end" && V.value.plot.tag.followValue ? (E(),
|
|
4747
|
+
].includes(r) && e.useTag && e.useTag === "end" && V.value.plot.tag.followValue ? (E(), x("div", {
|
|
4748
4748
|
key: 0,
|
|
4749
4749
|
ref_for: !0,
|
|
4750
4750
|
ref: (e) => es(t, r, e, "right", "plot"),
|
|
@@ -4752,14 +4752,14 @@ var Ot = /* @__PURE__ */ e({ default: () => M }), kt = ["id"], At = ["id"], jt =
|
|
|
4752
4752
|
"data-tag": "right",
|
|
4753
4753
|
style: T({
|
|
4754
4754
|
position: "fixed",
|
|
4755
|
-
top: A(
|
|
4755
|
+
top: A(o)({
|
|
4756
4756
|
svgElement: L.value,
|
|
4757
4757
|
x: J.value?.right + V.value.plot.tag.fontSize / 1.5,
|
|
4758
4758
|
y: n.y,
|
|
4759
4759
|
element: ba.value[`${t}_${r}_right_plot`],
|
|
4760
4760
|
position: "right"
|
|
4761
4761
|
})?.top + "px",
|
|
4762
|
-
left: A(
|
|
4762
|
+
left: A(o)({
|
|
4763
4763
|
svgElement: L.value,
|
|
4764
4764
|
x: J.value?.right + V.value.plot.tag.fontSize / 1.5,
|
|
4765
4765
|
y: n.y,
|
|
@@ -4769,27 +4769,27 @@ var Ot = /* @__PURE__ */ e({ default: () => M }), kt = ["id"], At = ["id"], jt =
|
|
|
4769
4769
|
height: "fit-content",
|
|
4770
4770
|
width: "fit-content",
|
|
4771
4771
|
background: e.color,
|
|
4772
|
-
color: A(
|
|
4772
|
+
color: A(we)(e.color),
|
|
4773
4773
|
padding: "0 6px",
|
|
4774
4774
|
fontSize: V.value.plot.tag.fontSize + "px",
|
|
4775
4775
|
opacity: 1
|
|
4776
4776
|
})
|
|
4777
|
-
}, [(E(),
|
|
4777
|
+
}, [(E(), x("svg", ui, [S("path", {
|
|
4778
4778
|
d: "M 0,10 10,0 10,20 Z",
|
|
4779
4779
|
fill: e.color,
|
|
4780
4780
|
stroke: "none"
|
|
4781
|
-
}, null, 8, di)])),
|
|
4781
|
+
}, null, 8, di)])), S("div", {
|
|
4782
4782
|
class: "vue-ui-xy-tag-content",
|
|
4783
|
-
innerHTML: A(
|
|
4783
|
+
innerHTML: A(h)(V.value.plot.tag.formatter, n.value, e.name, {
|
|
4784
4784
|
datapoint: n,
|
|
4785
4785
|
seriesIndex: r,
|
|
4786
4786
|
serieName: e.name
|
|
4787
4787
|
})
|
|
4788
|
-
}, null, 8, fi)], 4)) :
|
|
4788
|
+
}, null, 8, fi)], 4)) : b("", !0), [
|
|
4789
4789
|
I.value,
|
|
4790
4790
|
R.value,
|
|
4791
4791
|
la.value
|
|
4792
|
-
].includes(r) && e.useTag && e.useTag === "start" && V.value.plot.tag.followValue ? (E(),
|
|
4792
|
+
].includes(r) && e.useTag && e.useTag === "start" && V.value.plot.tag.followValue ? (E(), x("div", {
|
|
4793
4793
|
key: 1,
|
|
4794
4794
|
ref_for: !0,
|
|
4795
4795
|
ref: (e) => es(t, r, e, "left", "plot"),
|
|
@@ -4797,14 +4797,14 @@ var Ot = /* @__PURE__ */ e({ default: () => M }), kt = ["id"], At = ["id"], jt =
|
|
|
4797
4797
|
"data-tag": "left",
|
|
4798
4798
|
style: T({
|
|
4799
4799
|
position: "fixed",
|
|
4800
|
-
top: A(
|
|
4800
|
+
top: A(o)({
|
|
4801
4801
|
svgElement: L.value,
|
|
4802
4802
|
x: J.value?.left - V.value.plot.tag.fontSize / 1.5,
|
|
4803
4803
|
y: n.y,
|
|
4804
4804
|
element: ba.value[`${t}_${r}_left_plot`],
|
|
4805
4805
|
position: "left"
|
|
4806
4806
|
})?.top + "px",
|
|
4807
|
-
left: A(
|
|
4807
|
+
left: A(o)({
|
|
4808
4808
|
svgElement: L.value,
|
|
4809
4809
|
x: J.value?.left - V.value.plot.tag.fontSize / 1.5,
|
|
4810
4810
|
y: n.y,
|
|
@@ -4814,24 +4814,24 @@ var Ot = /* @__PURE__ */ e({ default: () => M }), kt = ["id"], At = ["id"], jt =
|
|
|
4814
4814
|
height: "fit-content",
|
|
4815
4815
|
width: "fit-content",
|
|
4816
4816
|
background: e.color,
|
|
4817
|
-
color: A(
|
|
4817
|
+
color: A(we)(e.color),
|
|
4818
4818
|
padding: "0 6px",
|
|
4819
4819
|
fontSize: V.value.plot.tag.fontSize + "px",
|
|
4820
4820
|
opacity: 1
|
|
4821
4821
|
})
|
|
4822
|
-
}, [(E(),
|
|
4822
|
+
}, [(E(), x("svg", pi, [S("path", {
|
|
4823
4823
|
d: "M 0,0 10,10 0,20 Z",
|
|
4824
4824
|
fill: e.color,
|
|
4825
4825
|
stroke: "none"
|
|
4826
|
-
}, null, 8, mi)])),
|
|
4826
|
+
}, null, 8, mi)])), S("div", {
|
|
4827
4827
|
class: "vue-ui-xy-tag-content",
|
|
4828
|
-
innerHTML: A(
|
|
4828
|
+
innerHTML: A(h)(V.value.plot.tag.formatter, n.value, e.name, {
|
|
4829
4829
|
datapoint: n,
|
|
4830
4830
|
seriesIndex: r,
|
|
4831
4831
|
serieName: e.name
|
|
4832
4832
|
})
|
|
4833
|
-
}, null, 8, hi)], 4)) :
|
|
4834
|
-
V.value.chart.zoom.show && fo.value > 6 && Za.value && bs.value ? (E(),
|
|
4833
|
+
}, null, 8, hi)], 4)) : b("", !0)], 64))), 128))], 64))), 128)),
|
|
4834
|
+
V.value.chart.zoom.show && fo.value > 6 && Za.value && bs.value ? (E(), $e(Je, {
|
|
4835
4835
|
key: 6,
|
|
4836
4836
|
ref_key: "chartSlicer",
|
|
4837
4837
|
ref: Hi,
|
|
@@ -4899,21 +4899,21 @@ var Ot = /* @__PURE__ */ e({ default: () => M }), kt = ["id"], At = ["id"], jt =
|
|
|
4899
4899
|
"onUpdate:end": Ns,
|
|
4900
4900
|
"onUpdate:start": Ms
|
|
4901
4901
|
}, {
|
|
4902
|
-
"reset-action": j(({ reset: e }) => [k(t.$slots, "reset-action",
|
|
4902
|
+
"reset-action": j(({ reset: e }) => [k(t.$slots, "reset-action", w(C({ reset: e })), void 0, !0)]),
|
|
4903
4903
|
_: 3
|
|
4904
|
-
}, 8, /* @__PURE__ */ "uuid.allMinimaps.background.borderColor.customFormat.cutNullValues.enableRangeHandles.enableSelectionDrag.end.focusOnDrag.focusRangeRatio.fontSize.useResetSlot.immediate.inputColor.isPreview.labelLeft.labelRight.max.min.precision.useValueRange.minimap.minimapCompact.minimapFrameColor.minimapIndicatorColor.minimapLineColor.minimapMerged.minimapSelectedColor.minimapSelectedColorOpacity.minimapSelectedIndex.minimapSelectionRadius.preciseLabels.refreshStartPoint.refreshEndPoint.selectColor.selectedSeries.smoothMinimap.start.textColor.timeLabels.usePreciseLabels.valueEnd.valueStart.verticalHandles.minScale.maxScale.maxWidth.additionalMinimapHeight.handleType.handleIconColor.handleBorderWidth.handleBorderColor.handleFill.handleWidth.isCursorPointer".split("."))) :
|
|
4905
|
-
|
|
4906
|
-
Sa.value && (V.value.chart.legend.show || t.$slots.legend) ? (E(),
|
|
4904
|
+
}, 8, /* @__PURE__ */ "uuid.allMinimaps.background.borderColor.customFormat.cutNullValues.enableRangeHandles.enableSelectionDrag.end.focusOnDrag.focusRangeRatio.fontSize.useResetSlot.immediate.inputColor.isPreview.labelLeft.labelRight.max.min.precision.useValueRange.minimap.minimapCompact.minimapFrameColor.minimapIndicatorColor.minimapLineColor.minimapMerged.minimapSelectedColor.minimapSelectedColorOpacity.minimapSelectedIndex.minimapSelectionRadius.preciseLabels.refreshStartPoint.refreshEndPoint.selectColor.selectedSeries.smoothMinimap.start.textColor.timeLabels.usePreciseLabels.valueEnd.valueStart.verticalHandles.minScale.maxScale.maxWidth.additionalMinimapHeight.handleType.handleIconColor.handleBorderWidth.handleBorderColor.handleFill.handleWidth.isCursorPointer".split("."))) : b("", !0),
|
|
4905
|
+
S("div", { id: `legend-bottom-${F.value}` }, null, 8, gi),
|
|
4906
|
+
Sa.value && (V.value.chart.legend.show || t.$slots.legend) ? (E(), $e(Qe, {
|
|
4907
4907
|
key: 7,
|
|
4908
4908
|
to: V.value.chart.legend.position === "top" ? `#legend-top-${F.value}` : `#legend-bottom-${F.value}`
|
|
4909
|
-
}, [
|
|
4909
|
+
}, [S("div", {
|
|
4910
4910
|
ref_key: "chartLegend",
|
|
4911
4911
|
ref: Ui
|
|
4912
|
-
}, [k(t.$slots, "legend", { legend: Ro.value }, () => [V.value.chart.legend.show ? (E(),
|
|
4912
|
+
}, [k(t.$slots, "legend", { legend: Ro.value }, () => [V.value.chart.legend.show ? (E(), x("div", {
|
|
4913
4913
|
key: 0,
|
|
4914
4914
|
class: "vue-ui-xy-legend",
|
|
4915
4915
|
style: T({ fontSize: `var(--legend-font-size, ${V.value.chart.legend.fontSize ?? 14}px)` })
|
|
4916
|
-
}, [V.value.chart.legend.selectAllToggle.show && Ro.value.length > 2 && !A(ro) ? (E(),
|
|
4916
|
+
}, [V.value.chart.legend.selectAllToggle.show && Ro.value.length > 2 && !A(ro) ? (E(), $e(Xe, {
|
|
4917
4917
|
key: 0,
|
|
4918
4918
|
backgroundColor: V.value.chart.legend.selectAllToggle.backgroundColor,
|
|
4919
4919
|
color: V.value.chart.legend.selectAllToggle.color,
|
|
@@ -4925,19 +4925,19 @@ var Ot = /* @__PURE__ */ e({ default: () => M }), kt = ["id"], At = ["id"], jt =
|
|
|
4925
4925
|
"color",
|
|
4926
4926
|
"fontSize",
|
|
4927
4927
|
"checked"
|
|
4928
|
-
])) :
|
|
4928
|
+
])) : b("", !0), (E(!0), x(v, null, O(Ro.value, (e, n) => (E(), x("div", {
|
|
4929
4929
|
key: `div_legend_item_${n}`,
|
|
4930
4930
|
onClick: (t) => gc(e),
|
|
4931
4931
|
onKeydown: (t) => mc(t, e),
|
|
4932
4932
|
role: "button",
|
|
4933
4933
|
tabindex: "0",
|
|
4934
|
-
class:
|
|
4934
|
+
class: st({
|
|
4935
4935
|
"vue-ui-xy-legend-item-alone": Ro.value.length === 1,
|
|
4936
4936
|
"vue-ui-xy-legend-item": !0,
|
|
4937
4937
|
"vue-ui-xy-legend-item-segregated": da.value.has(e.id)
|
|
4938
4938
|
}),
|
|
4939
4939
|
style: T({ cursor: Qa.value ? "pointer" : "default" })
|
|
4940
|
-
}, [aa.value[e.type] === "line" ? (E(),
|
|
4940
|
+
}, [aa.value[e.type] === "line" ? (E(), x("svg", vi, [S("rect", {
|
|
4941
4941
|
x: "0",
|
|
4942
4942
|
y: "7.5",
|
|
4943
4943
|
rx: "1.5",
|
|
@@ -4946,7 +4946,7 @@ var Ot = /* @__PURE__ */ e({ default: () => M }), kt = ["id"], At = ["id"], jt =
|
|
|
4946
4946
|
height: "3",
|
|
4947
4947
|
width: "20",
|
|
4948
4948
|
fill: e.color
|
|
4949
|
-
}, null, 8, yi),
|
|
4949
|
+
}, null, 8, yi), nt(Ke, {
|
|
4950
4950
|
plot: {
|
|
4951
4951
|
x: 10,
|
|
4952
4952
|
y: 9
|
|
@@ -4967,7 +4967,7 @@ var Ot = /* @__PURE__ */ e({ default: () => M }), kt = ["id"], At = ["id"], jt =
|
|
|
4967
4967
|
"color",
|
|
4968
4968
|
"shape",
|
|
4969
4969
|
"stroke"
|
|
4970
|
-
])])) : aa.value[e.type] === "bar" ? (E(),
|
|
4970
|
+
])])) : aa.value[e.type] === "bar" ? (E(), x("svg", bi, [aa.value[e.type] === "bar" && t.$slots.pattern ? (E(), x("rect", {
|
|
4971
4971
|
key: 0,
|
|
4972
4972
|
x: "4",
|
|
4973
4973
|
y: "4",
|
|
@@ -4976,7 +4976,7 @@ var Ot = /* @__PURE__ */ e({ default: () => M }), kt = ["id"], At = ["id"], jt =
|
|
|
4976
4976
|
width: "32",
|
|
4977
4977
|
stroke: "none",
|
|
4978
4978
|
fill: e.color
|
|
4979
|
-
}, null, 8, xi)) :
|
|
4979
|
+
}, null, 8, xi)) : b("", !0), aa.value[e.type] === "bar" ? (E(), x("rect", {
|
|
4980
4980
|
key: 1,
|
|
4981
4981
|
x: "4",
|
|
4982
4982
|
y: "4",
|
|
@@ -4985,7 +4985,7 @@ var Ot = /* @__PURE__ */ e({ default: () => M }), kt = ["id"], At = ["id"], jt =
|
|
|
4985
4985
|
width: "32",
|
|
4986
4986
|
stroke: "none",
|
|
4987
4987
|
fill: t.$slots.pattern ? `url(#pattern_${F.value}_${e.slotAbsoluteIndex})` : e.color
|
|
4988
|
-
}, null, 8, Si)) :
|
|
4988
|
+
}, null, 8, Si)) : b("", !0)])) : (E(), x("svg", Ci, [nt(Ke, {
|
|
4989
4989
|
plot: {
|
|
4990
4990
|
x: 6,
|
|
4991
4991
|
y: 6
|
|
@@ -5000,14 +5000,14 @@ var Ot = /* @__PURE__ */ e({ default: () => M }), kt = ["id"], At = ["id"], jt =
|
|
|
5000
5000
|
"hexagon",
|
|
5001
5001
|
"star"
|
|
5002
5002
|
].includes(e.shape) ? e.shape : "circle"
|
|
5003
|
-
}, null, 8, ["color", "shape"])])),
|
|
5004
|
-
t.$slots.source ? (E(),
|
|
5003
|
+
}, null, 8, ["color", "shape"])])), S("span", { style: T(`color:${V.value.chart.legend.color}`) }, ft(e.name), 5)], 46, _i))), 128))], 4)) : b("", !0)], !0)], 512)], 8, ["to"])) : b("", !0),
|
|
5004
|
+
t.$slots.source ? (E(), x("div", {
|
|
5005
5005
|
key: 8,
|
|
5006
5006
|
ref_key: "source",
|
|
5007
5007
|
ref: Wi,
|
|
5008
5008
|
dir: "auto"
|
|
5009
|
-
}, [k(t.$slots, "source", {}, void 0, !0)], 512)) :
|
|
5010
|
-
|
|
5009
|
+
}, [k(t.$slots, "source", {}, void 0, !0)], 512)) : b("", !0),
|
|
5010
|
+
nt(A(Di), {
|
|
5011
5011
|
teleportTo: V.value.chart.tooltip.teleportTo,
|
|
5012
5012
|
show: H.value.showTooltip && ca.value,
|
|
5013
5013
|
backgroundColor: V.value.chart.tooltip.backgroundColor,
|
|
@@ -5031,9 +5031,9 @@ var Ot = /* @__PURE__ */ e({ default: () => M }), kt = ["id"], At = ["id"], jt =
|
|
|
5031
5031
|
isA11yMode: Da.value != null,
|
|
5032
5032
|
a11yPosition: Oa.value
|
|
5033
5033
|
}, {
|
|
5034
|
-
"tooltip-before": j(() => [k(t.$slots, "tooltip-before",
|
|
5035
|
-
tooltip: j(() => [k(t.$slots, "tooltip",
|
|
5036
|
-
"tooltip-after": j(() => [k(t.$slots, "tooltip-after",
|
|
5034
|
+
"tooltip-before": j(() => [k(t.$slots, "tooltip-before", w(C({ ...Pl.value })), void 0, !0)]),
|
|
5035
|
+
tooltip: j(() => [k(t.$slots, "tooltip", w(C({ ...Pl.value })), void 0, !0)]),
|
|
5036
|
+
"tooltip-after": j(() => [k(t.$slots, "tooltip-after", w(C({ ...Pl.value })), void 0, !0)]),
|
|
5037
5037
|
_: 3
|
|
5038
5038
|
}, 8, [
|
|
5039
5039
|
"teleportTo",
|
|
@@ -5059,26 +5059,26 @@ var Ot = /* @__PURE__ */ e({ default: () => M }), kt = ["id"], At = ["id"], jt =
|
|
|
5059
5059
|
"isA11yMode",
|
|
5060
5060
|
"a11yPosition"
|
|
5061
5061
|
]),
|
|
5062
|
-
Za.value && V.value.chart.userOptions.buttons.table ? (E(),
|
|
5062
|
+
Za.value && V.value.chart.userOptions.buttons.table ? (E(), $e(ut(zu.value.component), at({ key: 9 }, zu.value.props, {
|
|
5063
5063
|
ref_key: "tableUnit",
|
|
5064
5064
|
ref: Ca,
|
|
5065
5065
|
onClose: Bu
|
|
5066
|
-
}),
|
|
5067
|
-
content: j(() => [
|
|
5066
|
+
}), et({
|
|
5067
|
+
content: j(() => [S("div", { style: T(`${A(vo) || V.value.table.useDialog ? "" : "max-height:400px"};${V.value.table.useDialog ? "height: fit-content; " : ""};overflow:auto;width:100%;${V.value.table.useDialog ? "" : "margin-top:48px"}`) }, [S("div", wi, [vt(S("input", {
|
|
5068
5068
|
type: "checkbox",
|
|
5069
5069
|
"onUpdate:modelValue": n[4] ||= (e) => ha.value = e
|
|
5070
|
-
}, null, 512), [[ht, ha.value]]),
|
|
5070
|
+
}, null, 512), [[ht, ha.value]]), S("div", {
|
|
5071
5071
|
onClick: n[5] ||= (e) => ha.value = !ha.value,
|
|
5072
5072
|
style: T({ cursor: Qa.value ? "pointer" : "default" })
|
|
5073
|
-
}, [
|
|
5073
|
+
}, [nt(A(ki), {
|
|
5074
5074
|
name: "chartLine",
|
|
5075
5075
|
size: 20,
|
|
5076
5076
|
stroke: V.value.chart.color
|
|
5077
|
-
}, null, 8, ["stroke"])], 4)]), ha.value ? (E(),
|
|
5077
|
+
}, null, 8, ["stroke"])], 4)]), ha.value ? (E(), $e(A(Ai), {
|
|
5078
5078
|
key: `sparkline_${ga.value}`,
|
|
5079
5079
|
dataset: Tc.value,
|
|
5080
5080
|
config: Ec.value
|
|
5081
|
-
}, null, 8, ["dataset", "config"])) : (E(),
|
|
5081
|
+
}, null, 8, ["dataset", "config"])) : (E(), $e(A(Ei), {
|
|
5082
5082
|
key: `table_${pa.value}`,
|
|
5083
5083
|
colNames: $l.value.colNames,
|
|
5084
5084
|
head: $l.value.head,
|
|
@@ -5088,8 +5088,8 @@ var Ot = /* @__PURE__ */ e({ default: () => M }), kt = ["id"], At = ["id"], jt =
|
|
|
5088
5088
|
withCloseButton: !V.value.table.useDialog,
|
|
5089
5089
|
onClose: Bu
|
|
5090
5090
|
}, {
|
|
5091
|
-
th: j(({ th: e }) => [
|
|
5092
|
-
td: j(({ td: e }) => [
|
|
5091
|
+
th: j(({ th: e }) => [S("div", { innerHTML: e }, null, 8, Ti)]),
|
|
5092
|
+
td: j(({ td: e }) => [tt(ft(isNaN(Number(e)) ? e : A(u)({
|
|
5093
5093
|
p: V.value.chart.labels.prefix,
|
|
5094
5094
|
v: e,
|
|
5095
5095
|
s: V.value.chart.labels.suffix,
|
|
@@ -5107,21 +5107,21 @@ var Ot = /* @__PURE__ */ e({ default: () => M }), kt = ["id"], At = ["id"], jt =
|
|
|
5107
5107
|
_: 2
|
|
5108
5108
|
}, [V.value.table.useDialog ? {
|
|
5109
5109
|
name: "title",
|
|
5110
|
-
fn: j(() => [
|
|
5110
|
+
fn: j(() => [tt(ft(zu.value.title), 1)]),
|
|
5111
5111
|
key: "0"
|
|
5112
5112
|
} : void 0, V.value.table.useDialog ? {
|
|
5113
5113
|
name: "actions",
|
|
5114
|
-
fn: j(() => [
|
|
5114
|
+
fn: j(() => [S("button", {
|
|
5115
5115
|
tabindex: "0",
|
|
5116
5116
|
class: "vue-ui-user-options-button",
|
|
5117
5117
|
onClick: n[3] ||= (e) => eu(V.value.chart.userOptions.callbacks.csv)
|
|
5118
|
-
}, [
|
|
5118
|
+
}, [nt(A(ki), {
|
|
5119
5119
|
name: "fileCsv",
|
|
5120
5120
|
stroke: zu.value.props.color
|
|
5121
5121
|
}, null, 8, ["stroke"])])]),
|
|
5122
5122
|
key: "1"
|
|
5123
|
-
} : void 0]), 1040)) :
|
|
5124
|
-
k(t.$slots, "skeleton", {}, () => [A(ro) ? (E(),
|
|
5123
|
+
} : void 0]), 1040)) : b("", !0),
|
|
5124
|
+
k(t.$slots, "skeleton", {}, () => [A(ro) ? (E(), $e(Le, { key: 0 })) : b("", !0)], !0)
|
|
5125
5125
|
], 46, kt));
|
|
5126
5126
|
}
|
|
5127
5127
|
}, [["__scopeId", "data-v-961f1d98"]]);
|