vue-data-ui 3.25.11 → 3.25.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{Arrow-DLn-pcrh.js → Arrow-BhZDUeMp.js} +1 -1
- package/dist/{BaseDraggableDialog-Gm4Q30j0.js → BaseDraggableDialog-Ck6R5Q0K.js} +2 -2
- package/dist/{BaseIcon-D8R6_sKH.js → BaseIcon-Dlz7gfx0.js} +1 -1
- package/dist/{BaseLegendToggle-CXQrLjd-.js → BaseLegendToggle-DGG65LAR.js} +1 -1
- package/dist/{BaseZoomControls-BTzjVDPM.js → BaseZoomControls-BK0PxEa8.js} +2 -2
- package/dist/{ColorPicker-CUy15T72.js → ColorPicker-DMTwxvi_.js} +2 -2
- package/dist/{DataTable-oiM9uWrQ.js → DataTable-BD1eZ0zB.js} +2 -2
- package/dist/{HillActions-Dn8aKOVJ.js → HillActions-CiP2m7Nz.js} +1 -1
- package/dist/{Legend-X4kF4PvW.js → Legend-C0Ln0VNe.js} +2 -2
- package/dist/{NonSvgPenAndPaper-DFXjpRyl.js → NonSvgPenAndPaper-BjrMLISf.js} +3 -3
- package/dist/{PackageVersion-CEvZNFTz.js → PackageVersion-D5QkTJQU.js} +1 -1
- package/dist/{PenAndPaper-Cd3nItcO.js → PenAndPaper-XdUD8uB3.js} +3 -3
- package/dist/{Shape-CIqU-p2F.js → Shape-VCdxvFV9.js} +3 -3
- package/dist/{SlicerPreview-Ccss7Vsq.js → SlicerPreview-BJ4usfYd.js} +21 -21
- package/dist/{SparkTooltip-L3SliZbR.js → SparkTooltip-B1gRxPfb.js} +6 -6
- package/dist/{Title-CPHi-evi.js → Title-DeqmC-vN.js} +1 -1
- package/dist/{Tooltip-hhrkQ3Lk.js → Tooltip-DZ4a3XJQ.js} +1 -1
- package/dist/{UserOptions-qo_Tsqci.js → UserOptions-wFD9vo9g.js} +2 -2
- package/dist/components/arrow.js +1 -1
- package/dist/components/vue-ui-3d-bar.js +1 -1
- package/dist/components/vue-ui-accordion.js +1 -1
- package/dist/components/vue-ui-age-pyramid.js +1 -1
- package/dist/components/vue-ui-annotator.js +1 -1
- package/dist/components/vue-ui-bullet.js +1 -1
- package/dist/components/vue-ui-bump.js +1 -1
- package/dist/components/vue-ui-candlestick.js +1 -1
- package/dist/components/vue-ui-carousel-table.js +1 -1
- package/dist/components/vue-ui-chestnut.js +1 -1
- package/dist/components/vue-ui-chord.js +1 -1
- package/dist/components/vue-ui-circle-pack.js +1 -1
- package/dist/components/vue-ui-cursor.js +1 -1
- package/dist/components/vue-ui-dag.js +1 -1
- package/dist/components/vue-ui-dashboard.js +1 -1
- package/dist/components/vue-ui-digits.js +1 -1
- package/dist/components/vue-ui-donut-evolution.js +1 -1
- package/dist/components/vue-ui-donut.js +1 -1
- package/dist/components/vue-ui-dumbbell.js +1 -1
- package/dist/components/vue-ui-flow.js +1 -1
- package/dist/components/vue-ui-funnel.js +1 -1
- package/dist/components/vue-ui-galaxy.js +1 -1
- package/dist/components/vue-ui-gauge.js +1 -1
- package/dist/components/vue-ui-geo.js +1 -1
- package/dist/components/vue-ui-gizmo.js +1 -1
- package/dist/components/vue-ui-heatmap.js +1 -1
- package/dist/components/vue-ui-hill.js +1 -1
- package/dist/components/vue-ui-history-plot.js +1 -1
- package/dist/components/vue-ui-horizontal-bar.js +1 -1
- package/dist/components/vue-ui-icon.js +1 -1
- package/dist/components/vue-ui-kpi.js +1 -1
- package/dist/components/vue-ui-label.js +1 -1
- package/dist/components/vue-ui-mini-loader.js +1 -1
- package/dist/components/vue-ui-molecule.js +1 -1
- package/dist/components/vue-ui-mood-radar.js +1 -1
- package/dist/components/vue-ui-nested-donuts.js +1 -1
- package/dist/components/vue-ui-onion.js +1 -1
- package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
- package/dist/components/vue-ui-quadrant.js +1 -1
- package/dist/components/vue-ui-quick-chart.js +1 -1
- package/dist/components/vue-ui-radar.js +1 -1
- package/dist/components/vue-ui-rating.js +1 -1
- package/dist/components/vue-ui-relation-circle.js +1 -1
- package/dist/components/vue-ui-ridgeline.js +1 -1
- package/dist/components/vue-ui-rings.js +1 -1
- package/dist/components/vue-ui-scatter.js +1 -1
- package/dist/components/vue-ui-skeleton.js +1 -1
- package/dist/components/vue-ui-smiley.js +1 -1
- package/dist/components/vue-ui-spark-trend.js +1 -1
- package/dist/components/vue-ui-sparkbar.js +1 -1
- package/dist/components/vue-ui-sparkgauge.js +1 -1
- package/dist/components/vue-ui-sparkhistogram.js +1 -1
- package/dist/components/vue-ui-sparkline.js +1 -1
- package/dist/components/vue-ui-sparkstackbar.js +1 -1
- package/dist/components/vue-ui-stackbar.js +1 -1
- package/dist/components/vue-ui-stackline.js +1 -1
- package/dist/components/vue-ui-strip-plot.js +1 -1
- package/dist/components/vue-ui-table-heatmap.js +1 -1
- package/dist/components/vue-ui-table-sparkline.js +1 -1
- package/dist/components/vue-ui-table.js +1 -1
- package/dist/components/vue-ui-thermometer.js +1 -1
- package/dist/components/vue-ui-timer.js +1 -1
- package/dist/components/vue-ui-tiremarks.js +1 -1
- package/dist/components/vue-ui-treemap.js +1 -1
- package/dist/components/vue-ui-vertical-bar.js +1 -1
- package/dist/components/vue-ui-waffle.js +1 -1
- package/dist/components/vue-ui-wheel.js +1 -1
- package/dist/components/vue-ui-word-cloud.js +1 -1
- package/dist/components/vue-ui-world.js +1 -1
- package/dist/components/vue-ui-xy-canvas.js +1 -1
- package/dist/components/vue-ui-xy.js +1 -1
- package/dist/{dom-to-png-BR4imuKV.js → dom-to-png-DdqmzDdY.js} +1 -1
- package/dist/exposedLib-BBtjpydc.js +28 -0
- package/dist/{img-BkMKbWsI.js → img-W50sC9SC.js} +1 -1
- package/dist/{labelUtils-BXX2NzRe.js → labelUtils-Dvm-7rse.js} +1 -1
- package/dist/{lib-Dql7cqyA.js → lib-DOpaUOQx.js} +191 -88
- package/dist/{package-B10eQN5L.js → package-Cmcke8zR.js} +1 -1
- package/dist/{pdf-BSOs_GZz.js → pdf-zGbDDpCi.js} +1 -1
- package/dist/{render-common-CZ6-MONw.js → render-common-CG1wuHZY.js} +16 -16
- package/dist/ssr/vue-ui-donut.js +1 -1
- package/dist/ssr/vue-ui-xy.js +1 -1
- package/dist/ssr.js +2 -2
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.ts +6 -0
- package/dist/{useConfig-D32D002m.js → useConfig-C2uy4ltq.js} +2 -0
- package/dist/{useNestedProp-Chvyfpl-.js → useNestedProp-Bux0f4iY.js} +1 -1
- package/dist/{useObjectBindings-Cd_WuYIn.js → useObjectBindings-CEuNiBIT.js} +1 -1
- package/dist/{usePrinter-hohanNCX.js → usePrinter-BBBooAGP.js} +2 -2
- package/dist/utils.js +13 -13
- package/dist/{vue-data-ui-zJ1rNxIN.js → vue-data-ui-BVzA0tEV.js} +70 -70
- package/dist/vue-data-ui.js +75 -75
- package/dist/{vue-ui-3d-bar-CKTAkCAN.js → vue-ui-3d-bar-Ckauu3d4.js} +536 -536
- package/dist/{vue-ui-accordion-DmkL8A59.js → vue-ui-accordion-yHZMJLaY.js} +4 -4
- package/dist/vue-ui-age-pyramid-BczIt1-U.js +1305 -0
- package/dist/{vue-ui-annotator-BLYRy--7.js → vue-ui-annotator-BGB6K6u0.js} +60 -60
- package/dist/{vue-ui-bullet-Ck398xn8.js → vue-ui-bullet-BoTsLccZ.js} +84 -84
- package/dist/{vue-ui-bump-DyA47yse.js → vue-ui-bump-B5ztSSQO.js} +105 -105
- package/dist/{vue-ui-candlestick-DCavjk1j.js → vue-ui-candlestick-BJtdA4Yu.js} +98 -98
- package/dist/vue-ui-carousel-table-D-3KSWok.js +467 -0
- package/dist/vue-ui-chestnut-W2l-W0_e.js +2016 -0
- package/dist/{vue-ui-chord-GgA7QFUH.js → vue-ui-chord-BFPQsMj8.js} +63 -63
- package/dist/{vue-ui-circle-pack-BUXTVdy3.js → vue-ui-circle-pack-BtPc1BR3.js} +50 -50
- package/dist/{vue-ui-cursor-CEejESe_.js → vue-ui-cursor-CpNOiwkt.js} +61 -61
- package/dist/{vue-ui-dag-C1c6scxC.js → vue-ui-dag-i-zPwLcN.js} +44 -44
- package/dist/{vue-ui-dashboard-BZBJM7dN.js → vue-ui-dashboard-DtaW9a2P.js} +70 -70
- package/dist/{vue-ui-digits-CsougDlU.js → vue-ui-digits-BIlec9af.js} +4 -4
- package/dist/{vue-ui-donut-lBgSYKgO.js → vue-ui-donut-Bgf-n95J.js} +551 -551
- package/dist/{vue-ui-donut-Be9jKelz.js → vue-ui-donut-CJlBEyxu.js} +203 -203
- package/dist/vue-ui-donut-evolution-C0BKntfL.js +1552 -0
- package/dist/{vue-ui-dumbbell-CwmA5x9G.js → vue-ui-dumbbell-C112YLkC.js} +87 -87
- package/dist/{vue-ui-flow-CRhh8SSN.js → vue-ui-flow-j4bDg9Zd.js} +99 -99
- package/dist/{vue-ui-funnel-DH1hW8Gw.js → vue-ui-funnel-CVHpfBCW.js} +40 -40
- package/dist/vue-ui-galaxy-ChGpUWh8.js +1097 -0
- package/dist/{vue-ui-gauge-CV4-Rn7K.js → vue-ui-gauge-Cp00vXfG.js} +190 -190
- package/dist/{vue-ui-geo-BocLrguL.js → vue-ui-geo-B4hDk5NO.js} +12 -12
- package/dist/{vue-ui-gizmo-6wKlI5PC.js → vue-ui-gizmo-D6nCCsS4.js} +54 -54
- package/dist/vue-ui-heatmap-scVJc1cw.js +1606 -0
- package/dist/{vue-ui-hill-CeIZZFf5.js → vue-ui-hill-DnYUHGAK.js} +21 -21
- package/dist/vue-ui-history-plot-C5qAMaaW.js +1710 -0
- package/dist/{vue-ui-horizontal-bar-D2aw-8tx.js → vue-ui-horizontal-bar-nEG4uvpv.js} +85 -85
- package/dist/{vue-ui-kpi-BQ967gzv.js → vue-ui-kpi-DOxId6xg.js} +12 -12
- package/dist/{vue-ui-label-Cs4ZlAqr.js → vue-ui-label-BDKY7BI7.js} +4 -4
- package/dist/{vue-ui-mini-loader-wGeACd-Y.js → vue-ui-mini-loader-BknVs9VJ.js} +3 -3
- package/dist/vue-ui-molecule-_x232mMu.js +941 -0
- package/dist/vue-ui-mood-radar-D-F4855V.js +1111 -0
- package/dist/{vue-ui-nested-donuts-DT2zkLx2.js → vue-ui-nested-donuts-0E5IllFW.js} +481 -481
- package/dist/vue-ui-onion-Eip0S1H7.js +1247 -0
- package/dist/vue-ui-parallel-coordinate-plot-DO0sQdJw.js +1444 -0
- package/dist/vue-ui-quadrant-CA0ClWfL.js +1979 -0
- package/dist/{vue-ui-quick-chart-CkPu6GMh.js → vue-ui-quick-chart-D-VuAoll.js} +169 -169
- package/dist/vue-ui-radar-BTD7Y0Ps.js +1386 -0
- package/dist/vue-ui-rating-C_Qj6gnP.js +359 -0
- package/dist/vue-ui-relation-circle-CcxLBVFV.js +905 -0
- package/dist/vue-ui-ridgeline-BZrzbbhb.js +1630 -0
- package/dist/{vue-ui-rings-CBtHZ5Pp.js → vue-ui-rings-CO48GOP2.js} +78 -78
- package/dist/{vue-ui-scatter-DzePsQEe.js → vue-ui-scatter-DrxUgZbQ.js} +136 -136
- package/dist/{vue-ui-skeleton-C347nFnE.js → vue-ui-skeleton-CeKjW4MX.js} +510 -510
- package/dist/{vue-ui-smiley-BIjAIpJ9.js → vue-ui-smiley-BvRwx69s.js} +6 -6
- package/dist/{vue-ui-spark-trend-Di_7Da43.js → vue-ui-spark-trend-DnujGRyt.js} +96 -96
- package/dist/{vue-ui-sparkbar-CbJ-fKc6.js → vue-ui-sparkbar-Cd_uhYGD.js} +113 -113
- package/dist/vue-ui-sparkgauge-hT31YEtt.js +268 -0
- package/dist/vue-ui-sparkhistogram-PKlTYhKA.js +589 -0
- package/dist/vue-ui-sparkline-BSu1uRvP.js +1610 -0
- package/dist/{vue-ui-sparkstackbar-IM_l98X-.js → vue-ui-sparkstackbar-R0ij2vi1.js} +183 -183
- package/dist/vue-ui-stackbar-BrzzkGFk.js +2369 -0
- package/dist/vue-ui-stackline-zEX3gR3y.js +2483 -0
- package/dist/{vue-ui-strip-plot-CVV0t6mb.js → vue-ui-strip-plot-DR3N56rS.js} +253 -253
- package/dist/{vue-ui-table-nAGCIZKg.js → vue-ui-table-Bg6BeLrf.js} +117 -117
- package/dist/{vue-ui-table-heatmap-D5F5bLx5.js → vue-ui-table-heatmap-C1b1Pcp8.js} +95 -95
- package/dist/vue-ui-table-sparkline-CkVXyequ.js +738 -0
- package/dist/{vue-ui-thermometer-Ccr2ZnzI.js → vue-ui-thermometer-CqkaMF7Z.js} +23 -23
- package/dist/{vue-ui-timer-DkW-P6EG.js → vue-ui-timer-CgJvNwBv.js} +13 -13
- package/dist/{vue-ui-tiremarks-Bf2anKLr.js → vue-ui-tiremarks-B078YJ9M.js} +30 -30
- package/dist/{vue-ui-treemap-Wy61KlkN.js → vue-ui-treemap-Cfjf8mDl.js} +77 -77
- package/dist/vue-ui-waffle-BZIcPa0l.js +1633 -0
- package/dist/{vue-ui-wheel-DGhu_B8n.js → vue-ui-wheel-CPTm8AHn.js} +185 -185
- package/dist/{vue-ui-word-cloud-CdRMst8U.js → vue-ui-word-cloud-DnGblUwj.js} +46 -46
- package/dist/{vue-ui-world-Bc4hMzzB.js → vue-ui-world-KkcpeKqp.js} +133 -133
- package/dist/vue-ui-xy-C6lVqZnx.js +5367 -0
- package/dist/{vue-ui-xy-CbgQs7yW.js → vue-ui-xy-ClCV7xA5.js} +169 -169
- package/dist/{vue-ui-xy-canvas-R2xbgDOy.js → vue-ui-xy-canvas-BlpCbXKR.js} +435 -435
- package/package.json +1 -1
- package/dist/exposedLib-CG3aXJ-v.js +0 -28
- package/dist/vue-ui-age-pyramid-SpPactMh.js +0 -1305
- package/dist/vue-ui-carousel-table-DCnVD0BJ.js +0 -467
- package/dist/vue-ui-chestnut-BDBdizBp.js +0 -2016
- package/dist/vue-ui-donut-evolution-vLMhwz4K.js +0 -1552
- package/dist/vue-ui-galaxy-CiqILfxR.js +0 -1097
- package/dist/vue-ui-heatmap-DGXXRsr4.js +0 -1606
- package/dist/vue-ui-history-plot-CporPpg9.js +0 -1710
- package/dist/vue-ui-molecule-CvDC9Ht5.js +0 -941
- package/dist/vue-ui-mood-radar-BK1va5-H.js +0 -1111
- package/dist/vue-ui-onion-DPMikBzZ.js +0 -1247
- package/dist/vue-ui-parallel-coordinate-plot-DMPxUL3p.js +0 -1444
- package/dist/vue-ui-quadrant-DFkIeJXo.js +0 -1979
- package/dist/vue-ui-radar-B3OOLJal.js +0 -1386
- package/dist/vue-ui-rating-Criq0ofQ.js +0 -359
- package/dist/vue-ui-relation-circle-I6e5UxgY.js +0 -905
- package/dist/vue-ui-ridgeline-FmmdCdy9.js +0 -1630
- package/dist/vue-ui-sparkgauge-Bb9-yFTb.js +0 -268
- package/dist/vue-ui-sparkhistogram-kbbbDVul.js +0 -589
- package/dist/vue-ui-sparkline-BF0Fdo6v.js +0 -1587
- package/dist/vue-ui-stackbar-CaEXVeo5.js +0 -2369
- package/dist/vue-ui-stackline-MgvhcBfm.js +0 -2483
- package/dist/vue-ui-table-sparkline-Bf2hjBwq.js +0 -738
- package/dist/vue-ui-waffle-CkIFp-AN.js +0 -1633
- package/dist/vue-ui-xy-DybWfQrI.js +0 -5298
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
|
|
2
|
-
import {
|
|
2
|
+
import { $ as t, $t as n, Et as r, Ft as i, Gt as a, J as o, P as s, Rt as c, S as ee, Vt as l, X as te, _ as ne, at as u, b as d, et as re, f, ft as ie, h as ae, i as p, p as oe, t as se, tn as ce, w as le } from "./lib-DOpaUOQx.js";
|
|
3
3
|
import { n as ue, t as de } from "./useHints-Dq_w2E8B.js";
|
|
4
4
|
import { t as fe } from "./useTimeLabels-d2f-W1L4.js";
|
|
5
|
-
import { t as pe } from "./useConfig-
|
|
6
|
-
import { t as me } from "./usePrinter-
|
|
5
|
+
import { t as pe } from "./useConfig-C2uy4ltq.js";
|
|
6
|
+
import { t as me } from "./usePrinter-BBBooAGP.js";
|
|
7
7
|
import { n as he, t as ge } from "./BaseScanner-Dzc8VT3j.js";
|
|
8
|
-
import { t as _e } from "./useNestedProp-
|
|
8
|
+
import { t as _e } from "./useNestedProp-Bux0f4iY.js";
|
|
9
9
|
import { t as ve } from "./useThemeCheck-C43Tcqmk.js";
|
|
10
10
|
import { t as ye } from "./useChartExport-iwOqiIWX.js";
|
|
11
11
|
import { t as be } from "./useTransitions-g_zBREk2.js";
|
|
12
12
|
import { t as xe } from "./useStableElementSize-C7KADDKj.js";
|
|
13
13
|
import { t as Se } from "./useTimeLabelCollider-AEcY4Ioe.js";
|
|
14
|
-
import { t as Ce } from "./img-
|
|
14
|
+
import { t as Ce } from "./img-W50sC9SC.js";
|
|
15
15
|
import { t as we } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
16
16
|
import { l as Te, t as Ee } from "./useResponsive-ZtArZtUf.js";
|
|
17
|
-
import { t as De } from "./SlicerPreview-
|
|
18
|
-
import { t as Oe } from "./BaseLegendToggle-
|
|
17
|
+
import { t as De } from "./SlicerPreview-BJ4usfYd.js";
|
|
18
|
+
import { t as Oe } from "./BaseLegendToggle-DGG65LAR.js";
|
|
19
19
|
import { t as ke } from "./A11yDataTable-DdRsVULz.js";
|
|
20
20
|
import { t as Ae } from "./useChartAccessibility-DYqac8yF.js";
|
|
21
21
|
import { t as je } from "./vue_ui_quick_chart-mZBdml3Z.js";
|
|
@@ -37,9 +37,9 @@ function Ke({ dataset: e, barLineSwitch: t = 6, debug: n = !0 }) {
|
|
|
37
37
|
let r = null, i = null, a = 0;
|
|
38
38
|
if ((typeof e == "number" || typeof e == "string") && n && console.warn(`The provided dataset (${e}) is not sufficient to build a chart`), Je(e) && (j(e) && (r = e.length < t ? A.BAR : A.LINE, i = e, a = e.length), Ye(e))) {
|
|
39
39
|
if (!Ze(e)) return n && console.warn("The objects in the dataset array have a different data structure. Either keys or value types are different."), !1;
|
|
40
|
-
let o = Object.keys(e[0]),
|
|
40
|
+
let o = Object.keys(e[0]), s = Object.values(e[0]);
|
|
41
41
|
if (!o.some((e) => Qe(e))) return n && console.warn("The data type of the dataset objects in the array must contain one of the following keys: DATA, SERIES, VALUE, VALUES, NUM. Casing is not important."), !1;
|
|
42
|
-
$e(
|
|
42
|
+
$e(s, (e) => typeof e == "number") && (r = A.DONUT, i = e), $e(s, (e) => Array.isArray(e) && j(e)) && (r = et(e) > t ? A.LINE : A.BAR, a = et(e), i = e.map((e) => ({
|
|
43
43
|
...e,
|
|
44
44
|
data: tt(e, (e) => j(e))
|
|
45
45
|
}))), e = e.map((e) => M(e)), i = i.map((e) => M(e));
|
|
@@ -432,7 +432,7 @@ var N = /* @__PURE__ */ e({ default: () => On }), nt = ["id"], rt = ["id"], it =
|
|
|
432
432
|
"copyAlt"
|
|
433
433
|
],
|
|
434
434
|
setup(e, { expose: we, emit: Ge }) {
|
|
435
|
-
let qe = Ie(() => import("./BaseIcon-
|
|
435
|
+
let qe = Ie(() => import("./BaseIcon-Dlz7gfx0.js").then((e) => e.n)), Je = Ie(() => import("./PackageVersion-D5QkTJQU.js").then((e) => e.t)), Xe = Ie(() => import("./PenAndPaper-XdUD8uB3.js").then((e) => e.t)), Ze = Ie(() => import("./Tooltip-DZ4a3XJQ.js")), Qe = Ie(() => import("./UserOptions-wFD9vo9g.js").then((e) => e.n)), { vue_ui_quick_chart: $e } = pe(), { isThemeValid: et, warnInvalidTheme: tt } = ve(), M = e, N = w(null), On = w(null), kn = w(null), An = w(null), P = w(te()), F = w(!1), jn = w(null), Mn = w(""), I = w(null), Nn = w(null), Pn = w(null), L = w([]), Fn = w(0), In = w(0), Ln = w(!1), Rn = w(null), zn = w(null), R = w(null), Bn = w(null), Vn = w(null), Hn = w(null), Un = Ve(null), Wn = w(!1), Gn = w(0), Kn = w(0), qn = w(!1);
|
|
436
436
|
function Jn() {
|
|
437
437
|
Un.value = N.value?.parentNode ?? null;
|
|
438
438
|
}
|
|
@@ -485,7 +485,7 @@ var N = /* @__PURE__ */ e({ default: () => On }), nt = ["id"], rt = ["id"], it =
|
|
|
485
485
|
}), $n = h(() => z.value.debug), er = h(() => z.value.useCursorPointer), V = w(null), tr = w({
|
|
486
486
|
x: 0,
|
|
487
487
|
y: 0
|
|
488
|
-
}), H = w("pointer"), nr = w(!1), rr = h(() =>
|
|
488
|
+
}), H = w("pointer"), nr = w(!1), rr = h(() => ce({
|
|
489
489
|
dafaultConfig: {
|
|
490
490
|
backgroundColor: "#99999930",
|
|
491
491
|
customPalette: ["#BABABA"],
|
|
@@ -522,7 +522,7 @@ var N = /* @__PURE__ */ e({ default: () => On }), nt = ["id"], rt = ["id"], it =
|
|
|
522
522
|
55,
|
|
523
523
|
89
|
|
524
524
|
],
|
|
525
|
-
skeletonConfig:
|
|
525
|
+
skeletonConfig: ce({
|
|
526
526
|
defaultConfig: z.value,
|
|
527
527
|
userConfig: rr.value
|
|
528
528
|
})
|
|
@@ -534,12 +534,12 @@ var N = /* @__PURE__ */ e({ default: () => On }), nt = ["id"], rt = ["id"], it =
|
|
|
534
534
|
let e = _e({
|
|
535
535
|
userConfig: M.config,
|
|
536
536
|
defaultConfig: $e
|
|
537
|
-
}), t = {},
|
|
538
|
-
if (
|
|
537
|
+
}), t = {}, r = e.theme;
|
|
538
|
+
if (r) {
|
|
539
539
|
if (!et.value(e)) tt(e), t = e;
|
|
540
540
|
else {
|
|
541
541
|
let i = _e({
|
|
542
|
-
userConfig: je[
|
|
542
|
+
userConfig: je[r] || M.config,
|
|
543
543
|
defaultConfig: e
|
|
544
544
|
});
|
|
545
545
|
t = {
|
|
@@ -547,14 +547,14 @@ var N = /* @__PURE__ */ e({ default: () => On }), nt = ["id"], rt = ["id"], it =
|
|
|
547
547
|
userConfig: M.config,
|
|
548
548
|
defaultConfig: i
|
|
549
549
|
}),
|
|
550
|
-
customPalette: e.customPalette.length ? e.customPalette :
|
|
550
|
+
customPalette: e.customPalette.length ? e.customPalette : n[r] || l
|
|
551
551
|
};
|
|
552
552
|
}
|
|
553
553
|
} else t = e;
|
|
554
554
|
return t;
|
|
555
555
|
}
|
|
556
556
|
function mr(e) {
|
|
557
|
-
let t =
|
|
557
|
+
let t = re(e);
|
|
558
558
|
return t?.tooltipPosition && delete t.tooltipPosition, JSON.stringify(t);
|
|
559
559
|
}
|
|
560
560
|
let hr = mr(M.config);
|
|
@@ -575,7 +575,7 @@ var N = /* @__PURE__ */ e({ default: () => On }), nt = ["id"], rt = ["id"], it =
|
|
|
575
575
|
let gr = h(() => le(z.value.customPalette)), U = Ge, _r = h(() => {
|
|
576
576
|
let e = Ke({
|
|
577
577
|
debug: $n.value,
|
|
578
|
-
dataset:
|
|
578
|
+
dataset: a(ar.value, [
|
|
579
579
|
"serie",
|
|
580
580
|
"series",
|
|
581
581
|
"data",
|
|
@@ -588,7 +588,7 @@ var N = /* @__PURE__ */ e({ default: () => On }), nt = ["id"], rt = ["id"], it =
|
|
|
588
588
|
return !e && $n.value && console.error("VueUiQuickChart : Dataset is not processable"), e;
|
|
589
589
|
}), W = w(_r.value), vr = h(() => !!W.value), G = h(() => W.value ? W.value.type : null);
|
|
590
590
|
Ue(() => G.value, (e) => {
|
|
591
|
-
e ||
|
|
591
|
+
e || u({
|
|
592
592
|
componentName: "VueUiQuickChart",
|
|
593
593
|
type: "dataset",
|
|
594
594
|
debug: $n.value
|
|
@@ -610,7 +610,7 @@ var N = /* @__PURE__ */ e({ default: () => On }), nt = ["id"], rt = ["id"], it =
|
|
|
610
610
|
Ln.value = !0, Jn(), Qn.start(), Er(), Xn();
|
|
611
611
|
});
|
|
612
612
|
function Er() {
|
|
613
|
-
if (
|
|
613
|
+
if (c(M.dataset) || (or.value = z.value.loading), z.value.responsive) {
|
|
614
614
|
let e = Te(() => {
|
|
615
615
|
let { width: e, height: t } = Ee({
|
|
616
616
|
chart: N.value,
|
|
@@ -715,12 +715,12 @@ var N = /* @__PURE__ */ e({ default: () => On }), nt = ["id"], rt = ["id"], it =
|
|
|
715
715
|
id: `donut_${t}`
|
|
716
716
|
})).map((e, t) => ({
|
|
717
717
|
...e,
|
|
718
|
-
color: e.COLOR ? ee(e.COLOR) : gr.value[t + z.value.paletteStartIndex] ||
|
|
718
|
+
color: e.COLOR ? ee(e.COLOR) : gr.value[t + z.value.paletteStartIndex] || l[t + z.value.paletteStartIndex] || l[(t + z.value.paletteStartIndex) % l.length],
|
|
719
719
|
immutableValue: e.value
|
|
720
720
|
}));
|
|
721
|
-
function n(e,
|
|
722
|
-
return
|
|
723
|
-
v: isNaN(e.value / Or(
|
|
721
|
+
function n(e, n) {
|
|
722
|
+
return t({
|
|
723
|
+
v: isNaN(e.value / Or(n)) ? 0 : e.value / Or(n) * 100,
|
|
724
724
|
s: "%",
|
|
725
725
|
r: z.value.dataLabelRoundingPercentage
|
|
726
726
|
});
|
|
@@ -732,39 +732,39 @@ var N = /* @__PURE__ */ e({ default: () => On }), nt = ["id"], rt = ["id"], it =
|
|
|
732
732
|
let n = _r.value.dataset.find((t, n) => `donut_${n}` === e).VALUE;
|
|
733
733
|
return Math.abs(String(Number(n.toFixed(0))).length - String(Number(t.toFixed(0))).length);
|
|
734
734
|
}
|
|
735
|
-
function s({ datapoint: n, seriesIndex:
|
|
735
|
+
function s({ datapoint: n, seriesIndex: i, triggerMode: a = "pointer" }) {
|
|
736
736
|
jn.value = {
|
|
737
737
|
datapoint: n,
|
|
738
|
-
seriesIndex:
|
|
738
|
+
seriesIndex: i,
|
|
739
739
|
config: z.value,
|
|
740
740
|
dataset: e
|
|
741
|
-
}, I.value = n.id, V.value =
|
|
742
|
-
let
|
|
741
|
+
}, I.value = n.id, V.value = i, H.value = a;
|
|
742
|
+
let o = z.value.tooltipCustomFormat;
|
|
743
743
|
if (z.value.events.datapointEnter && z.value.events.datapointEnter({
|
|
744
744
|
datapoint: n,
|
|
745
|
-
seriesIndex:
|
|
746
|
-
}),
|
|
745
|
+
seriesIndex: i
|
|
746
|
+
}), r(o) && ie(() => o({
|
|
747
747
|
datapoint: n,
|
|
748
|
-
seriesIndex:
|
|
748
|
+
seriesIndex: i,
|
|
749
749
|
series: e,
|
|
750
750
|
config: z.value
|
|
751
|
-
}))) Mn.value =
|
|
751
|
+
}))) Mn.value = o({
|
|
752
752
|
datapoint: n,
|
|
753
|
-
seriesIndex:
|
|
753
|
+
seriesIndex: i,
|
|
754
754
|
series: e,
|
|
755
755
|
config: z.value
|
|
756
756
|
});
|
|
757
757
|
else {
|
|
758
758
|
let e = "";
|
|
759
|
-
e += `<div style="width:100%;text-align:center;border-bottom:1px solid ${z.value.tooltipBorderColor};padding-bottom:6px;margin-bottom:3px;">${n.name}</div>`, e += `<div style="display:flex;flex-direction:row;gap:6px;align-items:center;"><svg viewBox="0 0 12 12" height="14" width="14"><circle cx="6" cy="6" r="6" stroke="none" fill="${n.color}"/></svg>`, e += `<b>${p(z.value.formatter, n.value,
|
|
759
|
+
e += `<div style="width:100%;text-align:center;border-bottom:1px solid ${z.value.tooltipBorderColor};padding-bottom:6px;margin-bottom:3px;">${n.name}</div>`, e += `<div style="display:flex;flex-direction:row;gap:6px;align-items:center;"><svg viewBox="0 0 12 12" height="14" width="14"><circle cx="6" cy="6" r="6" stroke="none" fill="${n.color}"/></svg>`, e += `<b>${p(z.value.formatter, n.value, t({
|
|
760
760
|
p: z.value.valuePrefix,
|
|
761
761
|
v: n.value,
|
|
762
762
|
s: z.value.valueSuffix,
|
|
763
763
|
r: z.value.dataLabelRoundingValue
|
|
764
764
|
}), {
|
|
765
765
|
datapoint: n,
|
|
766
|
-
seriesIndex:
|
|
767
|
-
})}</b>`, e += `<span>(${
|
|
766
|
+
seriesIndex: i
|
|
767
|
+
})}</b>`, e += `<span>(${t({
|
|
768
768
|
v: n.proportion * 100,
|
|
769
769
|
s: "%",
|
|
770
770
|
r: z.value.dataLabelRoundingPercentage
|
|
@@ -772,7 +772,7 @@ var N = /* @__PURE__ */ e({ default: () => On }), nt = ["id"], rt = ["id"], it =
|
|
|
772
772
|
}
|
|
773
773
|
F.value = !0;
|
|
774
774
|
}
|
|
775
|
-
function
|
|
775
|
+
function c({ datapoint: e, seriesIndex: t }) {
|
|
776
776
|
z.value.events.datapointLeave && z.value.events.datapointLeave({
|
|
777
777
|
datapoint: e,
|
|
778
778
|
seriesIndex: t
|
|
@@ -784,31 +784,31 @@ var N = /* @__PURE__ */ e({ default: () => On }), nt = ["id"], rt = ["id"], it =
|
|
|
784
784
|
seriesIndex: t
|
|
785
785
|
}), U("selectDatapoint", e);
|
|
786
786
|
}
|
|
787
|
-
let
|
|
787
|
+
let ne = {
|
|
788
788
|
centerX: K.value.width / 2,
|
|
789
789
|
centerY: K.value.height / 2
|
|
790
|
-
},
|
|
790
|
+
}, u = e.filter((e) => !L.value.includes(e.id)).map((e) => e.value || 0).reduce((e, t) => e + t, 0), d = e.map((e, t) => ({
|
|
791
791
|
...e,
|
|
792
|
-
proportion: (e.value || 0) /
|
|
792
|
+
proportion: (e.value || 0) / u,
|
|
793
793
|
value: e.value || 0,
|
|
794
794
|
absoluteValue: _r.value.dataset.find((t, n) => `donut_${n}` === e.id).VALUE,
|
|
795
795
|
shape: "circle"
|
|
796
|
-
})),
|
|
796
|
+
})), re = K.value.width / 2, f = K.value.height / 2, ae = K.value.height * z.value.donutRadiusRatio;
|
|
797
797
|
return {
|
|
798
798
|
dataset: d.filter((e) => !L.value.includes(e.id)),
|
|
799
799
|
legend: d,
|
|
800
|
-
drawingArea:
|
|
800
|
+
drawingArea: ne,
|
|
801
801
|
displayArcPercentage: n,
|
|
802
802
|
isArcBigEnough: a,
|
|
803
803
|
useTooltip: s,
|
|
804
|
-
killTooltip:
|
|
804
|
+
killTooltip: c,
|
|
805
805
|
selectDatapoint: te,
|
|
806
806
|
getSpaces: o,
|
|
807
|
-
total:
|
|
808
|
-
cx:
|
|
809
|
-
cy:
|
|
807
|
+
total: u,
|
|
808
|
+
cx: re,
|
|
809
|
+
cy: f,
|
|
810
810
|
radius: ae,
|
|
811
|
-
chart: i({ series: e.filter((e) => !L.value.includes(e.id)) },
|
|
811
|
+
chart: i({ series: e.filter((e) => !L.value.includes(e.id)) }, re, f, ae, ae, 1.99999, 2, 1, 360, 105.25, K.value.height * Lr.value)
|
|
812
812
|
};
|
|
813
813
|
}), X = w({
|
|
814
814
|
start: 0,
|
|
@@ -890,7 +890,7 @@ var N = /* @__PURE__ */ e({ default: () => On }), nt = ["id"], rt = ["id"], it =
|
|
|
890
890
|
absoluteValues: W.value.dataset,
|
|
891
891
|
absoluteIndices: W.value.dataset.map((e, t) => t).slice(X.value.start, X.value.end),
|
|
892
892
|
name: z.value.title,
|
|
893
|
-
color: gr.value[z.value.paletteStartIndex] ||
|
|
893
|
+
color: gr.value[z.value.paletteStartIndex] || l[z.value.paletteStartIndex],
|
|
894
894
|
id: "line_0"
|
|
895
895
|
}]), Ye(W.value.dataset) && (a = W.value.dataset.map((e, t) => ({
|
|
896
896
|
...e,
|
|
@@ -899,7 +899,7 @@ var N = /* @__PURE__ */ e({ default: () => On }), nt = ["id"], rt = ["id"], it =
|
|
|
899
899
|
id: `line_${t}`
|
|
900
900
|
})).map((e, t) => ({
|
|
901
901
|
...e,
|
|
902
|
-
color: e.COLOR ? ee(e.COLOR) : gr.value[t + z.value.paletteStartIndex] ||
|
|
902
|
+
color: e.COLOR ? ee(e.COLOR) : gr.value[t + z.value.paletteStartIndex] || l[t + z.value.paletteStartIndex] || l[(t + z.value.paletteStartIndex) % l.length],
|
|
903
903
|
values: e.values.slice(X.value.start, X.value.end),
|
|
904
904
|
absoluteValues: e.values,
|
|
905
905
|
absoluteIndices: e.values.map((e, t) => t).slice(X.value.start, X.value.end)
|
|
@@ -908,16 +908,16 @@ var N = /* @__PURE__ */ e({ default: () => On }), nt = ["id"], rt = ["id"], it =
|
|
|
908
908
|
max: Math.max(...a.filter((e) => !L.value.includes(e.id)).flatMap((e) => e.values)),
|
|
909
909
|
min: Math.min(...a.filter((e) => !L.value.includes(e.id)).flatMap((e) => e.values)),
|
|
910
910
|
maxSeries: Math.max(...a.map((e) => e.values.length))
|
|
911
|
-
}, s = o.max === o.min ? ne(Math.min(o.min, 0), o.min === 0 ? 1 : Math.max(o.min, 0), z.value.xyScaleSegments) : ne(o.min < 0 ? o.min : 0, o.max < 0 ? 0 : o.max, z.value.xyScaleSegments),
|
|
912
|
-
y: i.bottom - i.height * ((e +
|
|
911
|
+
}, s = o.max === o.min ? ne(Math.min(o.min, 0), o.min === 0 ? 1 : Math.max(o.min, 0), z.value.xyScaleSegments) : ne(o.min < 0 ? o.min : 0, o.max < 0 ? 0 : o.max, z.value.xyScaleSegments), c = o.min < 0 ? Math.abs(o.min) : 0, te = o.max < 0 ? i.top : i.bottom - c / (s.max + c) * i.height, u = i.width / o.maxSeries, d = s.ticks.map((e) => ({
|
|
912
|
+
y: i.bottom - i.height * ((e + c) / (s.max + c)),
|
|
913
913
|
x: i.left - 8,
|
|
914
914
|
value: e
|
|
915
|
-
})),
|
|
915
|
+
})), re = a.map((e, t) => ({
|
|
916
916
|
...e,
|
|
917
917
|
shape: "circle",
|
|
918
918
|
coordinates: e.values.map((e, t) => ({
|
|
919
919
|
x: i.left + u * (t + 1) - u / 2,
|
|
920
|
-
y: i.bottom - (e +
|
|
920
|
+
y: i.bottom - (e + c) / (s.max + c) * i.height,
|
|
921
921
|
value: e
|
|
922
922
|
}))
|
|
923
923
|
})).map((e) => {
|
|
@@ -929,7 +929,7 @@ var N = /* @__PURE__ */ e({ default: () => On }), nt = ["id"], rt = ["id"], it =
|
|
|
929
929
|
linePath: t.join(" ")
|
|
930
930
|
};
|
|
931
931
|
});
|
|
932
|
-
function
|
|
932
|
+
function f(e) {
|
|
933
933
|
return a.map((t) => ({
|
|
934
934
|
...t,
|
|
935
935
|
value: t.values[e],
|
|
@@ -938,43 +938,43 @@ var N = /* @__PURE__ */ e({ default: () => On }), nt = ["id"], rt = ["id"], it =
|
|
|
938
938
|
}
|
|
939
939
|
function ae(e, n = "pointer") {
|
|
940
940
|
I.value = e, J.value = e, V.value = e, H.value = n;
|
|
941
|
-
let
|
|
941
|
+
let i = f(e);
|
|
942
942
|
jn.value = {
|
|
943
|
-
datapoint:
|
|
943
|
+
datapoint: i,
|
|
944
944
|
seriesIndex: e,
|
|
945
945
|
config: z.value,
|
|
946
946
|
dataset: a
|
|
947
947
|
};
|
|
948
|
-
let
|
|
948
|
+
let o = z.value.tooltipCustomFormat;
|
|
949
949
|
if (z.value.events.datapointEnter && z.value.events.datapointEnter({
|
|
950
|
-
datapoint:
|
|
950
|
+
datapoint: i,
|
|
951
951
|
seriesIndex: e + X.value.start
|
|
952
|
-
}),
|
|
953
|
-
datapoint:
|
|
952
|
+
}), r(o) && ie(() => o({
|
|
953
|
+
datapoint: i,
|
|
954
954
|
seriesIndex: e,
|
|
955
955
|
series: a,
|
|
956
956
|
config: z.value
|
|
957
|
-
}))) Mn.value =
|
|
958
|
-
datapoint:
|
|
957
|
+
}))) Mn.value = o({
|
|
958
|
+
datapoint: i,
|
|
959
959
|
seriesIndex: e,
|
|
960
960
|
series: a,
|
|
961
961
|
config: z.value
|
|
962
962
|
});
|
|
963
963
|
else {
|
|
964
964
|
let e = "";
|
|
965
|
-
$.value[
|
|
965
|
+
$.value[i[0].absoluteIndex] && (e += `<div style="border-bottom:1px solid ${z.value.tooltipBorderColor};padding-bottom:6px;margin-bottom:3px;">${$.value[i[0].absoluteIndex].text}</div>`), i.forEach((n, r) => {
|
|
966
966
|
e += `
|
|
967
967
|
<div style="display:flex; flex-wrap: wrap; align-items:center; gap:3px;">
|
|
968
|
-
<svg viewBox="0 0 12 12" height="14" width="12"><circle cx="6" cy="6" r="6" stroke="none" fill="${
|
|
969
|
-
<span>${
|
|
970
|
-
<b>${p(z.value.formatter,
|
|
968
|
+
<svg viewBox="0 0 12 12" height="14" width="12"><circle cx="6" cy="6" r="6" stroke="none" fill="${n.color}"/></svg>
|
|
969
|
+
<span>${n.name}:</span>
|
|
970
|
+
<b>${p(z.value.formatter, n.value, t({
|
|
971
971
|
p: z.value.valuePrefix,
|
|
972
|
-
v:
|
|
972
|
+
v: n.value,
|
|
973
973
|
s: z.value.valueSuffix,
|
|
974
974
|
r: z.value.dataLabelRoundingValue
|
|
975
975
|
}), {
|
|
976
|
-
datapoint:
|
|
977
|
-
seriesIndex:
|
|
976
|
+
datapoint: n,
|
|
977
|
+
seriesIndex: r
|
|
978
978
|
})}
|
|
979
979
|
</b>
|
|
980
980
|
</div>
|
|
@@ -984,14 +984,14 @@ var N = /* @__PURE__ */ e({ default: () => On }), nt = ["id"], rt = ["id"], it =
|
|
|
984
984
|
F.value = !0;
|
|
985
985
|
}
|
|
986
986
|
function oe(e) {
|
|
987
|
-
let t =
|
|
987
|
+
let t = f(e);
|
|
988
988
|
z.value.events.datapointLeave && z.value.events.datapointLeave({
|
|
989
989
|
datapoint: t,
|
|
990
990
|
seriesIndex: e + X.value.start
|
|
991
991
|
}), I.value = null, J.value = null, F.value = !1, V.value = null, H.value = "pointer";
|
|
992
992
|
}
|
|
993
993
|
function se(e) {
|
|
994
|
-
let t =
|
|
994
|
+
let t = f(e);
|
|
995
995
|
z.value.events.datapointClick && z.value.events.datapointClick({
|
|
996
996
|
datapoint: t,
|
|
997
997
|
seriesIndex: e + X.value.start
|
|
@@ -999,8 +999,8 @@ var N = /* @__PURE__ */ e({ default: () => On }), nt = ["id"], rt = ["id"], it =
|
|
|
999
999
|
}
|
|
1000
1000
|
return {
|
|
1001
1001
|
absoluteZero: te,
|
|
1002
|
-
dataset:
|
|
1003
|
-
legend:
|
|
1002
|
+
dataset: re.filter((e) => !L.value.includes(e.id)),
|
|
1003
|
+
legend: re,
|
|
1004
1004
|
drawingArea: i,
|
|
1005
1005
|
extremes: o,
|
|
1006
1006
|
slotSize: u,
|
|
@@ -1033,7 +1033,7 @@ var N = /* @__PURE__ */ e({ default: () => On }), nt = ["id"], rt = ["id"], it =
|
|
|
1033
1033
|
absoluteValues: W.value.dataset,
|
|
1034
1034
|
absoluteIndices: W.value.dataset.map((e, t) => t).slice(X.value.start, X.value.end),
|
|
1035
1035
|
name: z.value.title,
|
|
1036
|
-
color: gr.value[z.value.paletteStartIndex] ||
|
|
1036
|
+
color: gr.value[z.value.paletteStartIndex] || l[z.value.paletteStartIndex],
|
|
1037
1037
|
id: "bar_0"
|
|
1038
1038
|
}]), Ye(W.value.dataset) && (a = W.value.dataset.map((e, t) => ({
|
|
1039
1039
|
...e,
|
|
@@ -1042,7 +1042,7 @@ var N = /* @__PURE__ */ e({ default: () => On }), nt = ["id"], rt = ["id"], it =
|
|
|
1042
1042
|
id: `bar_${t}`
|
|
1043
1043
|
})).map((e, t) => ({
|
|
1044
1044
|
...e,
|
|
1045
|
-
color: e.COLOR ? ee(e.COLOR) : gr.value[t + z.value.paletteStartIndex] ||
|
|
1045
|
+
color: e.COLOR ? ee(e.COLOR) : gr.value[t + z.value.paletteStartIndex] || l[t + z.value.paletteStartIndex] || l[(t + z.value.paletteStartIndex) % l.length],
|
|
1046
1046
|
values: e.values.slice(X.value.start, X.value.end),
|
|
1047
1047
|
absoluteValues: e.values,
|
|
1048
1048
|
absoluteIndices: e.values.map((e, t) => t).slice(X.value.start, X.value.end)
|
|
@@ -1051,33 +1051,33 @@ var N = /* @__PURE__ */ e({ default: () => On }), nt = ["id"], rt = ["id"], it =
|
|
|
1051
1051
|
max: Math.max(...a.filter((e) => !L.value.includes(e.id)).flatMap((e) => e.values)) < 0 ? 0 : Math.max(...a.filter((e) => !L.value.includes(e.id)).flatMap((e) => e.values)) ?? 1,
|
|
1052
1052
|
min: Math.min(...a.filter((e) => !L.value.includes(e.id)).flatMap((e) => e.values)) ?? 0,
|
|
1053
1053
|
maxSeries: Math.max(...a.filter((e) => !L.value.includes(e.id)).map((e) => e.values.length)) ?? 0
|
|
1054
|
-
}, s = o.min === o.max ? ne(Math.min(o.min, 0), o.min === 0 ? 1 : Math.max(o.min, 0), z.value.xyScaleSegments) : ne(o.min < 0 ? o.min : 0, o.max, z.value.xyScaleSegments),
|
|
1055
|
-
y: i.bottom - i.height * ((e +
|
|
1054
|
+
}, s = o.min === o.max ? ne(Math.min(o.min, 0), o.min === 0 ? 1 : Math.max(o.min, 0), z.value.xyScaleSegments) : ne(o.min < 0 ? o.min : 0, o.max, z.value.xyScaleSegments), c = s.min < 0 ? Math.abs(s.min) : 0, te = i.bottom - c / (s.max + c) * i.height, u = i.width / o.maxSeries, d = s.ticks.map((e) => ({
|
|
1055
|
+
y: i.bottom - i.height * ((e + c) / (s.max + c)),
|
|
1056
1056
|
x: i.left - 8,
|
|
1057
1057
|
value: e
|
|
1058
|
-
})),
|
|
1058
|
+
})), re = a.map((e, t) => ({
|
|
1059
1059
|
...e,
|
|
1060
1060
|
shape: "square",
|
|
1061
1061
|
coordinates: e.values.map((e, n) => {
|
|
1062
|
-
let r = (e +
|
|
1062
|
+
let r = (e + c) / (o.max + c) * i.height, s = Math.abs(e) / Math.abs(o.min) * (i.height - te), ee = c / (o.max + c) * i.height, l = u / a.filter((e) => !L.value.includes(e.id)).length - z.value.barGap / a.filter((e) => !L.value.includes(e.id)).length;
|
|
1063
1063
|
return {
|
|
1064
|
-
x: i.left + u * n +
|
|
1064
|
+
x: i.left + u * n + l * t + z.value.barGap / 2,
|
|
1065
1065
|
y: e > 0 ? i.bottom - r : te,
|
|
1066
|
-
height: e > 0 ? r -
|
|
1066
|
+
height: e > 0 ? r - ee : s,
|
|
1067
1067
|
value: e,
|
|
1068
|
-
width:
|
|
1068
|
+
width: l
|
|
1069
1069
|
};
|
|
1070
1070
|
})
|
|
1071
|
-
})),
|
|
1071
|
+
})), f = a.filter((e) => !L.value.includes(e.id)).map((e, t) => ({
|
|
1072
1072
|
...e,
|
|
1073
1073
|
coordinates: e.values.map((e, n) => {
|
|
1074
|
-
let r = (e +
|
|
1074
|
+
let r = (e + c) / (o.max + c) * i.height, s = Math.abs(e) / (o.max + c) * i.height, ee = c / (o.max + c) * i.height, l = u / a.filter((e) => !L.value.includes(e.id)).length - z.value.barGap / a.filter((e) => !L.value.includes(e.id)).length;
|
|
1075
1075
|
return {
|
|
1076
|
-
x: i.left + u * n +
|
|
1076
|
+
x: i.left + u * n + l * t + z.value.barGap / 2,
|
|
1077
1077
|
y: e > 0 ? i.bottom - r : te,
|
|
1078
|
-
height: e > 0 ? r -
|
|
1078
|
+
height: e > 0 ? r - ee : s,
|
|
1079
1079
|
value: e,
|
|
1080
|
-
width:
|
|
1080
|
+
width: l
|
|
1081
1081
|
};
|
|
1082
1082
|
})
|
|
1083
1083
|
}));
|
|
@@ -1090,43 +1090,43 @@ var N = /* @__PURE__ */ e({ default: () => On }), nt = ["id"], rt = ["id"], it =
|
|
|
1090
1090
|
}
|
|
1091
1091
|
function oe(e, n = "pointer") {
|
|
1092
1092
|
I.value = e, J.value = e, V.value = e, H.value = n;
|
|
1093
|
-
let
|
|
1093
|
+
let i = ae(e);
|
|
1094
1094
|
jn.value = {
|
|
1095
|
-
datapoint:
|
|
1095
|
+
datapoint: i,
|
|
1096
1096
|
seriesIndex: e,
|
|
1097
1097
|
config: z.value,
|
|
1098
1098
|
dataset: a
|
|
1099
1099
|
};
|
|
1100
|
-
let
|
|
1100
|
+
let o = z.value.tooltipCustomFormat;
|
|
1101
1101
|
if (z.value.events.datapointEnter && z.value.events.datapointEnter({
|
|
1102
|
-
datapoint:
|
|
1102
|
+
datapoint: i,
|
|
1103
1103
|
seriesIndex: e + X.value.start
|
|
1104
|
-
}),
|
|
1105
|
-
datapoint:
|
|
1104
|
+
}), r(o) && ie(() => o({
|
|
1105
|
+
datapoint: i,
|
|
1106
1106
|
seriesIndex: e,
|
|
1107
1107
|
series: a,
|
|
1108
1108
|
config: z.value
|
|
1109
|
-
}))) Mn.value =
|
|
1110
|
-
point:
|
|
1109
|
+
}))) Mn.value = o({
|
|
1110
|
+
point: i,
|
|
1111
1111
|
seriesIndex: e,
|
|
1112
1112
|
series: a,
|
|
1113
1113
|
config: z.value
|
|
1114
1114
|
});
|
|
1115
1115
|
else {
|
|
1116
1116
|
let e = "";
|
|
1117
|
-
$.value[
|
|
1117
|
+
$.value[i[0].absoluteIndex] && (e += `<div style="border-bottom:1px solid ${z.value.tooltipBorderColor};padding-bottom:6px;margin-bottom:3px;">${$.value[i[0].absoluteIndex].text}</div>`), i.forEach((n, r) => {
|
|
1118
1118
|
e += `
|
|
1119
1119
|
<div style="display:flex; flex-wrap: wrap; align-items:center; gap:3px;">
|
|
1120
|
-
<svg viewBox="0 0 12 12" height="14" width="12"><rect x=0 y="0" width="12" height="12" rx="1" stroke="none" fill="${
|
|
1121
|
-
<span>${
|
|
1122
|
-
<b>${p(z.value.formatter,
|
|
1120
|
+
<svg viewBox="0 0 12 12" height="14" width="12"><rect x=0 y="0" width="12" height="12" rx="1" stroke="none" fill="${n.color}"/></svg>
|
|
1121
|
+
<span>${n.name}:</span>
|
|
1122
|
+
<b>${p(z.value.formatter, n.value, t({
|
|
1123
1123
|
p: z.value.valuePrefix,
|
|
1124
|
-
v:
|
|
1124
|
+
v: n.value,
|
|
1125
1125
|
s: z.value.valueSuffix,
|
|
1126
1126
|
r: z.value.dataLabelRoundingValue
|
|
1127
1127
|
}), {
|
|
1128
|
-
datapoint:
|
|
1129
|
-
seriesIndex:
|
|
1128
|
+
datapoint: n,
|
|
1129
|
+
seriesIndex: r
|
|
1130
1130
|
})}
|
|
1131
1131
|
</b>
|
|
1132
1132
|
</div>
|
|
@@ -1151,9 +1151,9 @@ var N = /* @__PURE__ */ e({ default: () => On }), nt = ["id"], rt = ["id"], it =
|
|
|
1151
1151
|
}
|
|
1152
1152
|
return {
|
|
1153
1153
|
absoluteZero: te,
|
|
1154
|
-
dataset:
|
|
1155
|
-
absoluteDataset:
|
|
1156
|
-
legend:
|
|
1154
|
+
dataset: f.filter((e) => !L.value.includes(e.id)),
|
|
1155
|
+
absoluteDataset: f,
|
|
1156
|
+
legend: re,
|
|
1157
1157
|
drawingArea: i,
|
|
1158
1158
|
extremes: o,
|
|
1159
1159
|
slotSize: u,
|
|
@@ -1322,8 +1322,8 @@ var N = /* @__PURE__ */ e({ default: () => On }), nt = ["id"], rt = ["id"], it =
|
|
|
1322
1322
|
}
|
|
1323
1323
|
return;
|
|
1324
1324
|
}
|
|
1325
|
-
let a = V.value, o = J.value,
|
|
1326
|
-
if (
|
|
1325
|
+
let a = V.value, o = J.value, s = a !== null && a >= 0 && a < hi.value, c = o !== null && o >= 0 && o < hi.value;
|
|
1326
|
+
if (s ? n ? (a += 1, a >= hi.value && (a = 0)) : t && (--a, a < 0 && (a = hi.value - 1)) : c ? (a = n ? o + 1 : o - 1, a >= hi.value && (a = 0), a < 0 && (a = hi.value - 1)) : a = n ? 0 : hi.value - 1, G.value === A.DONUT) {
|
|
1327
1327
|
let e = Y.value?.chart?.[a];
|
|
1328
1328
|
if (!e) return;
|
|
1329
1329
|
yi(a), Y.value.useTooltip({
|
|
@@ -1371,32 +1371,32 @@ var N = /* @__PURE__ */ e({ default: () => On }), nt = ["id"], rt = ["id"], it =
|
|
|
1371
1371
|
"Percentage"
|
|
1372
1372
|
],
|
|
1373
1373
|
rows: (Y.value?.dataset ?? []).map((e) => {
|
|
1374
|
-
let
|
|
1374
|
+
let n = Y.value?.total ? t({
|
|
1375
1375
|
v: e.value / Y.value.total * 100,
|
|
1376
1376
|
s: "%",
|
|
1377
1377
|
r: z.value.dataLabelRoundingPercentage
|
|
1378
1378
|
}) : "0%";
|
|
1379
1379
|
return [
|
|
1380
1380
|
e.name,
|
|
1381
|
-
p(z.value.formatter, e.value,
|
|
1381
|
+
p(z.value.formatter, e.value, t({
|
|
1382
1382
|
p: z.value.valuePrefix,
|
|
1383
1383
|
v: e.value,
|
|
1384
1384
|
s: z.value.valueSuffix,
|
|
1385
1385
|
r: z.value.dataLabelRoundingValue
|
|
1386
1386
|
})),
|
|
1387
|
-
|
|
1387
|
+
n
|
|
1388
1388
|
];
|
|
1389
1389
|
})
|
|
1390
1390
|
};
|
|
1391
1391
|
if (G.value === A.LINE || G.value === A.BAR) {
|
|
1392
|
-
let e = G.value === A.LINE ? Z.value?.dataset ?? [] : Q.value?.dataset ?? [],
|
|
1392
|
+
let e = G.value === A.LINE ? Z.value?.dataset ?? [] : Q.value?.dataset ?? [], n = G.value === A.LINE ? Z.value?.extremes?.maxSeries ?? 0 : Q.value?.extremes?.maxSeries ?? 0;
|
|
1393
1393
|
return {
|
|
1394
1394
|
headers: ["Index", ...e.map((e) => e.name)],
|
|
1395
|
-
rows: Array.from({ length:
|
|
1396
|
-
let
|
|
1397
|
-
return p(z.value.formatter,
|
|
1395
|
+
rows: Array.from({ length: n }, (n, r) => [$.value?.[r + X.value.start]?.text ?? String(r + X.value.start), ...e.map((e) => {
|
|
1396
|
+
let n = e.values?.[r];
|
|
1397
|
+
return p(z.value.formatter, n, t({
|
|
1398
1398
|
p: z.value.valuePrefix,
|
|
1399
|
-
v:
|
|
1399
|
+
v: n,
|
|
1400
1400
|
s: z.value.valueSuffix,
|
|
1401
1401
|
r: z.value.dataLabelRoundingValue
|
|
1402
1402
|
}));
|
|
@@ -1417,7 +1417,7 @@ var N = /* @__PURE__ */ e({ default: () => On }), nt = ["id"], rt = ["id"], it =
|
|
|
1417
1417
|
toggleAnnotator: ri,
|
|
1418
1418
|
toggleFullscreen: ei,
|
|
1419
1419
|
copyAlt: pi
|
|
1420
|
-
}), (e,
|
|
1420
|
+
}), (e, n) => vr.value ? (C(), _("div", {
|
|
1421
1421
|
key: 0,
|
|
1422
1422
|
id: `${G.value}_${P.value}`,
|
|
1423
1423
|
ref_key: "quickChart",
|
|
@@ -1428,8 +1428,8 @@ var N = /* @__PURE__ */ e({ default: () => On }), nt = ["id"], rt = ["id"], it =
|
|
|
1428
1428
|
"vue-data-ui-wrapper-fullscreen": $r.value
|
|
1429
1429
|
}),
|
|
1430
1430
|
style: S(`background:${z.value.backgroundColor};color:${z.value.color};font-family:${z.value.fontFamily}; position: relative; ${z.value.responsive ? "height: 100%" : ""}`),
|
|
1431
|
-
onMouseenter:
|
|
1432
|
-
onMouseleave:
|
|
1431
|
+
onMouseenter: n[2] ||= () => fr(!0),
|
|
1432
|
+
onMouseleave: n[3] ||= () => fr(!1)
|
|
1433
1433
|
}, [
|
|
1434
1434
|
v("div", {
|
|
1435
1435
|
id: `chart-instructions-${P.value}`,
|
|
@@ -1613,7 +1613,7 @@ var N = /* @__PURE__ */ e({ default: () => On }), nt = ["id"], rt = ["id"], it =
|
|
|
1613
1613
|
key: 0,
|
|
1614
1614
|
ref_key: "svgRef",
|
|
1615
1615
|
ref: sr,
|
|
1616
|
-
xmlns: O(
|
|
1616
|
+
xmlns: O(se),
|
|
1617
1617
|
"aria-describedby": `chart-instructions-${P.value}`,
|
|
1618
1618
|
viewBox: Dr.value,
|
|
1619
1619
|
style: S(`max-width:100%;overflow:visible;background:transparent;color:${z.value.color}`),
|
|
@@ -1658,7 +1658,7 @@ var N = /* @__PURE__ */ e({ default: () => On }), nt = ["id"], rt = ["id"], it =
|
|
|
1658
1658
|
in: "SourceGraphic",
|
|
1659
1659
|
stdDeviation: 2,
|
|
1660
1660
|
id: `blur_std_${P.value}`
|
|
1661
|
-
}, null, 8, dt),
|
|
1661
|
+
}, null, 8, dt), n[4] ||= v("feColorMatrix", {
|
|
1662
1662
|
type: "saturate",
|
|
1663
1663
|
values: "0"
|
|
1664
1664
|
}, null, -1)], 8, ut), v("filter", {
|
|
@@ -1674,7 +1674,7 @@ var N = /* @__PURE__ */ e({ default: () => On }), nt = ["id"], rt = ["id"], it =
|
|
|
1674
1674
|
G.value === A.DONUT ? (C(), _(m, { key: 3 }, [
|
|
1675
1675
|
z.value.showDataLabels ? (C(), _("g", mt, [(C(!0), _(m, null, T(Y.value.chart, (e, t) => (C(), _(m, null, [Y.value.isArcBigEnough(e) ? (C(), _("path", {
|
|
1676
1676
|
key: 0,
|
|
1677
|
-
d: O(
|
|
1677
|
+
d: O(ae)(e, {
|
|
1678
1678
|
x: K.value.width / 2,
|
|
1679
1679
|
y: K.value.height / 2
|
|
1680
1680
|
}, 16, 16, !1, !1, K.value.height * Lr.value, 12, z.value.donutCurvedMarkers),
|
|
@@ -1715,7 +1715,7 @@ var N = /* @__PURE__ */ e({ default: () => On }), nt = ["id"], rt = ["id"], it =
|
|
|
1715
1715
|
seriesIndex: t
|
|
1716
1716
|
})
|
|
1717
1717
|
}, null, 40, yt))), 256))]),
|
|
1718
|
-
z.value.showDataLabels ? (C(), _("g", bt, [(C(!0), _(m, null, T(Y.value.chart, (e,
|
|
1718
|
+
z.value.showDataLabels ? (C(), _("g", bt, [(C(!0), _(m, null, T(Y.value.chart, (e, n) => (C(), _(m, null, [
|
|
1719
1719
|
Y.value.isArcBigEnough(e) ? (C(), _("circle", {
|
|
1720
1720
|
key: 0,
|
|
1721
1721
|
cx: O(f)(e).x,
|
|
@@ -1734,14 +1734,14 @@ var N = /* @__PURE__ */ e({ default: () => On }), nt = ["id"], rt = ["id"], it =
|
|
|
1734
1734
|
fill: z.value.color,
|
|
1735
1735
|
"font-size": z.value.dataLabelFontSize,
|
|
1736
1736
|
filter: kr(e.id)
|
|
1737
|
-
}, D(Y.value.displayArcPercentage(e, Y.value.chart)) + " (" + D(O(p)(z.value.formatter, e.value, O(
|
|
1737
|
+
}, D(Y.value.displayArcPercentage(e, Y.value.chart)) + " (" + D(O(p)(z.value.formatter, e.value, O(t)({
|
|
1738
1738
|
p: z.value.valuePrefix,
|
|
1739
1739
|
v: e.value,
|
|
1740
1740
|
s: z.value.valueSuffix,
|
|
1741
1741
|
r: z.value.dataLabelRoundingValue
|
|
1742
1742
|
}), {
|
|
1743
1743
|
datapoint: e,
|
|
1744
|
-
seriesIndex:
|
|
1744
|
+
seriesIndex: n
|
|
1745
1745
|
})) + ") ", 9, St)) : g("", !0),
|
|
1746
1746
|
Y.value.isArcBigEnough(e, !0, 20) ? (C(), _("text", {
|
|
1747
1747
|
key: 2,
|
|
@@ -1765,7 +1765,7 @@ var N = /* @__PURE__ */ e({ default: () => On }), nt = ["id"], rt = ["id"], it =
|
|
|
1765
1765
|
y: Y.value.drawingArea.centerY + z.value.donutTotalLabelFontSize,
|
|
1766
1766
|
"font-size": z.value.donutTotalLabelFontSize,
|
|
1767
1767
|
fill: z.value.color
|
|
1768
|
-
}, D(O(
|
|
1768
|
+
}, D(O(t)({
|
|
1769
1769
|
p: z.value.valuePrefix,
|
|
1770
1770
|
v: Y.value.total,
|
|
1771
1771
|
s: z.value.valueSuffix,
|
|
@@ -1813,7 +1813,7 @@ var N = /* @__PURE__ */ e({ default: () => On }), nt = ["id"], rt = ["id"], it =
|
|
|
1813
1813
|
class: "yLabels",
|
|
1814
1814
|
ref_key: "scaleLabels",
|
|
1815
1815
|
ref: Bn
|
|
1816
|
-
}, [(C(!0), _(m, null, T(Z.value.yLabels, (e,
|
|
1816
|
+
}, [(C(!0), _(m, null, T(Z.value.yLabels, (e, n) => (C(), _(m, { key: `sl_${n}` }, [e.y <= Z.value.drawingArea.bottom ? (C(), _("path", {
|
|
1817
1817
|
key: 0,
|
|
1818
1818
|
class: b({ "vue-data-ui-transition": O(B) }),
|
|
1819
1819
|
d: `M${e.x + 4},${e.y} ${Z.value.drawingArea.left},${e.y}`,
|
|
@@ -1827,14 +1827,14 @@ var N = /* @__PURE__ */ e({ default: () => On }), nt = ["id"], rt = ["id"], it =
|
|
|
1827
1827
|
"text-anchor": "end",
|
|
1828
1828
|
"font-size": z.value.xyLabelsYFontSize,
|
|
1829
1829
|
fill: z.value.color
|
|
1830
|
-
}, D(O(p)(z.value.formatter, e.value, O(
|
|
1830
|
+
}, D(O(p)(z.value.formatter, e.value, O(t)({
|
|
1831
1831
|
p: z.value.valuePrefix,
|
|
1832
1832
|
v: e.value,
|
|
1833
1833
|
s: z.value.valueSuffix,
|
|
1834
1834
|
r: z.value.dataLabelRoundingValue
|
|
1835
1835
|
}), {
|
|
1836
1836
|
datapoint: e,
|
|
1837
|
-
seriesIndex:
|
|
1837
|
+
seriesIndex: n
|
|
1838
1838
|
})), 11, Pt)) : g("", !0)], 64))), 128))], 512)) : g("", !0),
|
|
1839
1839
|
z.value.xyShowScale && z.value.xyPeriods.length ? (C(), _("g", Ft, [(C(!0), _(m, null, T($.value.map((e) => e.text), (e, t) => (C(), _(m, null, [!z.value.xyPeriodsShowOnlyAtModulo || z.value.xyPeriodsShowOnlyAtModulo && t % Math.floor((X.value.end - X.value.start) / Qr.value) === 0 || X.value.end - X.value.start <= Qr.value ? (C(), _("line", {
|
|
1840
1840
|
key: 0,
|
|
@@ -1855,7 +1855,7 @@ var N = /* @__PURE__ */ e({ default: () => On }), nt = ["id"], rt = ["id"], it =
|
|
|
1855
1855
|
"text-anchor": z.value.xyPeriodLabelsRotation > 0 ? "start" : z.value.xyPeriodLabelsRotation < 0 ? "end" : "middle",
|
|
1856
1856
|
fill: z.value.color,
|
|
1857
1857
|
transform: `translate(${Z.value.drawingArea.left + Z.value.slotSize * (t + 1) - Z.value.slotSize / 2}, ${Z.value.drawingArea.bottom + z.value.xyLabelsXFontSize + 6}), rotate(${z.value.xyPeriodLabelsRotation})`,
|
|
1858
|
-
innerHTML: O(
|
|
1858
|
+
innerHTML: O(o)({
|
|
1859
1859
|
content: String(e),
|
|
1860
1860
|
fontSize: z.value.xyLabelsXFontSize,
|
|
1861
1861
|
fill: z.value.color,
|
|
@@ -1877,7 +1877,7 @@ var N = /* @__PURE__ */ e({ default: () => On }), nt = ["id"], rt = ["id"], it =
|
|
|
1877
1877
|
ref_for: !0,
|
|
1878
1878
|
ref_key: "pathWrapper",
|
|
1879
1879
|
ref: Rn,
|
|
1880
|
-
d: `M ${O(
|
|
1880
|
+
d: `M ${O(s)(e.coordinates)}`,
|
|
1881
1881
|
stroke: z.value.backgroundColor,
|
|
1882
1882
|
"stroke-width": z.value.lineStrokeWidth + 1,
|
|
1883
1883
|
"stroke-linecap": "round",
|
|
@@ -1887,7 +1887,7 @@ var N = /* @__PURE__ */ e({ default: () => On }), nt = ["id"], rt = ["id"], it =
|
|
|
1887
1887
|
ref_for: !0,
|
|
1888
1888
|
ref_key: "pathTop",
|
|
1889
1889
|
ref: zn,
|
|
1890
|
-
d: `M ${O(
|
|
1890
|
+
d: `M ${O(s)(e.coordinates)}`,
|
|
1891
1891
|
stroke: e.color,
|
|
1892
1892
|
"stroke-width": z.value.lineStrokeWidth,
|
|
1893
1893
|
"stroke-linecap": "round",
|
|
@@ -1927,21 +1927,21 @@ var N = /* @__PURE__ */ e({ default: () => On }), nt = ["id"], rt = ["id"], it =
|
|
|
1927
1927
|
"vue-data-ui-transition": O(B)
|
|
1928
1928
|
})
|
|
1929
1929
|
}, null, 10, Gt))), 128))]))), 128))]),
|
|
1930
|
-
z.value.showDataLabels ? (C(), _("g", Kt, [(C(!0), _(m, null, T(Z.value.dataset, (e,
|
|
1930
|
+
z.value.showDataLabels ? (C(), _("g", Kt, [(C(!0), _(m, null, T(Z.value.dataset, (e, n) => (C(), _(m, { key: `ds_${e.id}` }, [(C(!0), _(m, null, T(e.coordinates, (n, r) => (C(), _("text", {
|
|
1931
1931
|
class: b(["vue-ui-quick-chart-label", { "vue-data-ui-transition": O(B) }]),
|
|
1932
|
-
key: `plot_${e.id}_${
|
|
1932
|
+
key: `plot_${e.id}_${r + X.value.start}`,
|
|
1933
1933
|
"text-anchor": "middle",
|
|
1934
1934
|
"font-size": z.value.dataLabelFontSize,
|
|
1935
1935
|
fill: e.color,
|
|
1936
|
-
transform: `translate(${
|
|
1937
|
-
}, D(O(p)(z.value.formatter, O(d)(
|
|
1936
|
+
transform: `translate(${n.x}, ${O(d)(n.y) - z.value.dataLabelFontSize / 2})`
|
|
1937
|
+
}, D(O(p)(z.value.formatter, O(d)(n.value), O(t)({
|
|
1938
1938
|
p: z.value.valuePrefix,
|
|
1939
|
-
v: O(d)(
|
|
1939
|
+
v: O(d)(n.value),
|
|
1940
1940
|
s: z.value.valueSuffix,
|
|
1941
1941
|
r: z.value.dataLabelRoundingValue
|
|
1942
1942
|
}), {
|
|
1943
|
-
datapoint:
|
|
1944
|
-
seriesIndex:
|
|
1943
|
+
datapoint: n,
|
|
1944
|
+
seriesIndex: r
|
|
1945
1945
|
})), 11, qt))), 128))], 64))), 128))])) : g("", !0),
|
|
1946
1946
|
dr.value ? (C(), _("g", Jt, [(C(!0), _(m, null, T(Z.value.extremes.maxSeries, (e, t) => (C(), _("rect", {
|
|
1947
1947
|
x: Z.value.drawingArea.left + t * Z.value.slotSize,
|
|
@@ -1996,7 +1996,7 @@ var N = /* @__PURE__ */ e({ default: () => On }), nt = ["id"], rt = ["id"], it =
|
|
|
1996
1996
|
class: "yLabels",
|
|
1997
1997
|
ref_key: "scaleLabels",
|
|
1998
1998
|
ref: Bn
|
|
1999
|
-
}, [(C(!0), _(m, null, T(Q.value.yLabels, (e,
|
|
1999
|
+
}, [(C(!0), _(m, null, T(Q.value.yLabels, (e, n) => (C(), _(m, { key: `sl_${n}` }, [e.y <= Q.value.drawingArea.bottom ? (C(), _("path", {
|
|
2000
2000
|
key: 0,
|
|
2001
2001
|
class: b({ "vue-data-ui-transition": O(B) }),
|
|
2002
2002
|
d: `M${e.x + 4},${e.y} ${Q.value.drawingArea.left},${e.y}`,
|
|
@@ -2010,14 +2010,14 @@ var N = /* @__PURE__ */ e({ default: () => On }), nt = ["id"], rt = ["id"], it =
|
|
|
2010
2010
|
"text-anchor": "end",
|
|
2011
2011
|
"font-size": z.value.xyLabelsYFontSize,
|
|
2012
2012
|
fill: z.value.color
|
|
2013
|
-
}, D(O(p)(z.value.formatter, e.value, O(
|
|
2013
|
+
}, D(O(p)(z.value.formatter, e.value, O(t)({
|
|
2014
2014
|
p: z.value.valuePrefix,
|
|
2015
2015
|
v: e.value,
|
|
2016
2016
|
s: z.value.valueSuffix,
|
|
2017
2017
|
r: z.value.dataLabelRoundingValue
|
|
2018
2018
|
}), {
|
|
2019
2019
|
datapoint: e,
|
|
2020
|
-
seriesIndex:
|
|
2020
|
+
seriesIndex: n
|
|
2021
2021
|
})), 11, rn)) : g("", !0)], 64))), 128))], 512)) : g("", !0),
|
|
2022
2022
|
z.value.xyShowScale && z.value.xyPeriods.length ? (C(), _("g", an, [(C(!0), _(m, null, T(z.value.xyPeriods.slice(X.value.start, X.value.end), (e, t) => (C(), _("line", {
|
|
2023
2023
|
x1: Q.value.drawingArea.left + Q.value.slotSize * (t + 1) - Q.value.slotSize / 2,
|
|
@@ -2037,7 +2037,7 @@ var N = /* @__PURE__ */ e({ default: () => On }), nt = ["id"], rt = ["id"], it =
|
|
|
2037
2037
|
"text-anchor": z.value.xyPeriodLabelsRotation > 0 ? "start" : z.value.xyPeriodLabelsRotation < 0 ? "end" : "middle",
|
|
2038
2038
|
fill: z.value.color,
|
|
2039
2039
|
transform: `translate(${Q.value.drawingArea.left + Q.value.slotSize * (t + 1) - Q.value.slotSize / 2}, ${Q.value.drawingArea.bottom + z.value.xyLabelsXFontSize + 6}), rotate(${z.value.xyPeriodLabelsRotation})`,
|
|
2040
|
-
innerHTML: O(
|
|
2040
|
+
innerHTML: O(o)({
|
|
2041
2041
|
content: String(e),
|
|
2042
2042
|
fontSize: z.value.xyLabelsXFontSize,
|
|
2043
2043
|
fill: z.value.color,
|
|
@@ -2063,21 +2063,21 @@ var N = /* @__PURE__ */ e({ default: () => On }), nt = ["id"], rt = ["id"], it =
|
|
|
2063
2063
|
"stroke-linecap": "round",
|
|
2064
2064
|
class: b({ "vue-data-ui-transition": O(B) })
|
|
2065
2065
|
}, null, 10, dn))), 256))], 64))), 256))]),
|
|
2066
|
-
z.value.showDataLabels ? (C(), _("g", fn, [(C(!0), _(m, null, T(Q.value.dataset, (e,
|
|
2066
|
+
z.value.showDataLabels ? (C(), _("g", fn, [(C(!0), _(m, null, T(Q.value.dataset, (e, n) => (C(), _(m, { key: `ds_${e.id}` }, [(C(!0), _(m, null, T(e.coordinates, (n, r) => (C(), _("text", {
|
|
2067
2067
|
class: b({ "vue-data-ui-transition": O(B) }),
|
|
2068
|
-
key: `plot_${
|
|
2069
|
-
transform: `translate(${
|
|
2068
|
+
key: `plot_${r + X.value.start}`,
|
|
2069
|
+
transform: `translate(${n.x + n.width / 2}, ${O(d)(n.y) - z.value.dataLabelFontSize / 2})`,
|
|
2070
2070
|
"text-anchor": "middle",
|
|
2071
2071
|
"font-size": z.value.dataLabelFontSize,
|
|
2072
2072
|
fill: e.color
|
|
2073
|
-
}, D(O(p)(z.value.formatter, O(d)(
|
|
2073
|
+
}, D(O(p)(z.value.formatter, O(d)(n.value), O(t)({
|
|
2074
2074
|
p: z.value.valuePrefix,
|
|
2075
|
-
v: O(d)(
|
|
2075
|
+
v: O(d)(n.value),
|
|
2076
2076
|
s: z.value.valueSuffix,
|
|
2077
2077
|
r: z.value.dataLabelRoundingValue
|
|
2078
2078
|
}), {
|
|
2079
|
-
datapoint:
|
|
2080
|
-
seriesIndex:
|
|
2079
|
+
datapoint: n,
|
|
2080
|
+
seriesIndex: r
|
|
2081
2081
|
})), 11, pn))), 128))], 64))), 128))])) : g("", !0),
|
|
2082
2082
|
dr.value && L.value.length < Q.value.legend.length ? (C(), _("g", mn, [(C(!0), _(m, null, T(Q.value.extremes.maxSeries, (e, t) => (C(), _("rect", {
|
|
2083
2083
|
x: Q.value.drawingArea.left + t * Q.value.slotSize,
|
|
@@ -2170,9 +2170,9 @@ var N = /* @__PURE__ */ e({ default: () => On }), nt = ["id"], rt = ["id"], it =
|
|
|
2170
2170
|
verticalHandles: z.value.zoomMinimap.verticalHandles,
|
|
2171
2171
|
minimapSelectedIndex: J.value,
|
|
2172
2172
|
start: X.value.start,
|
|
2173
|
-
"onUpdate:start":
|
|
2173
|
+
"onUpdate:start": n[0] ||= (e) => X.value.start = e,
|
|
2174
2174
|
end: X.value.end,
|
|
2175
|
-
"onUpdate:end":
|
|
2175
|
+
"onUpdate:end": n[1] ||= (e) => X.value.end = e,
|
|
2176
2176
|
refreshStartPoint: z.value.zoomStartIndex === null ? 0 : z.value.zoomStartIndex,
|
|
2177
2177
|
refreshEndPoint: z.value.zoomEndIndex === null ? W.value.maxSeriesLength : z.value.zoomEndIndex + 1,
|
|
2178
2178
|
enableRangeHandles: z.value.zoomEnableRangeHandles,
|
|
@@ -2225,44 +2225,44 @@ var N = /* @__PURE__ */ e({ default: () => On }), nt = ["id"], rt = ["id"], it =
|
|
|
2225
2225
|
"checked",
|
|
2226
2226
|
"isCursorPointer"
|
|
2227
2227
|
])) : g("", !0),
|
|
2228
|
-
G.value === A.DONUT ? (C(!0), _(m, { key: 1 }, T(Y.value.legend, (
|
|
2228
|
+
G.value === A.DONUT ? (C(!0), _(m, { key: 1 }, T(Y.value.legend, (n, r) => (C(), _("div", {
|
|
2229
2229
|
class: "vue-ui-quick-chart-legend-item",
|
|
2230
|
-
onClick: (e) => Fr(
|
|
2231
|
-
style: S(`cursor: ${Y.value.legend.length > 1 && er.value ? "pointer" : "default"}; opacity:${L.value.includes(
|
|
2230
|
+
onClick: (e) => Fr(n, Y.value.dataset),
|
|
2231
|
+
style: S(`cursor: ${Y.value.legend.length > 1 && er.value ? "pointer" : "default"}; opacity:${L.value.includes(n.id) ? "0.5" : "1"}`),
|
|
2232
2232
|
role: "button",
|
|
2233
2233
|
tabindex: "0",
|
|
2234
2234
|
onKeydown: (e) => {
|
|
2235
2235
|
mi(e, () => {
|
|
2236
|
-
Fr(
|
|
2236
|
+
Fr(n, Y.value.dataset);
|
|
2237
2237
|
});
|
|
2238
2238
|
}
|
|
2239
2239
|
}, [z.value.useCustomLegend ? E(e.$slots, "legend", Le({ ref_for: !0 }, { legend: {
|
|
2240
|
-
...
|
|
2241
|
-
isSegregated: L.value.includes(
|
|
2240
|
+
...n,
|
|
2241
|
+
isSegregated: L.value.includes(n.id),
|
|
2242
2242
|
segregate: () => {
|
|
2243
|
-
Fr(
|
|
2243
|
+
Fr(n, Y.value.dataset);
|
|
2244
2244
|
}
|
|
2245
2245
|
} }), void 0, !0, 0) : (C(), _(m, { key: 1 }, [
|
|
2246
2246
|
Fe(O(qe), {
|
|
2247
2247
|
name: z.value.legendIcon,
|
|
2248
|
-
stroke:
|
|
2248
|
+
stroke: n.color,
|
|
2249
2249
|
size: z.value.legendIconSize
|
|
2250
2250
|
}, null, 8, [
|
|
2251
2251
|
"name",
|
|
2252
2252
|
"stroke",
|
|
2253
2253
|
"size"
|
|
2254
2254
|
]),
|
|
2255
|
-
v("span", { style: S(`font-size:${z.value.legendFontSize}px`) }, D(
|
|
2256
|
-
v("span", { style: S(`font-size:${z.value.legendFontSize}px;font-variant-numeric:tabular-nums`) }, D(L.value.includes(
|
|
2255
|
+
v("span", { style: S(`font-size:${z.value.legendFontSize}px`) }, D(n.name), 5),
|
|
2256
|
+
v("span", { style: S(`font-size:${z.value.legendFontSize}px;font-variant-numeric:tabular-nums`) }, D(L.value.includes(n.id) ? "-" : O(p)(z.value.formatter, n.absoluteValue, O(t)({
|
|
2257
2257
|
p: z.value.valuePrefix,
|
|
2258
|
-
v:
|
|
2258
|
+
v: n.absoluteValue,
|
|
2259
2259
|
s: z.value.valueSuffix,
|
|
2260
2260
|
r: z.value.dataLabelRoundingValue
|
|
2261
2261
|
}), {
|
|
2262
|
-
datapoint:
|
|
2263
|
-
seriesIndex:
|
|
2262
|
+
datapoint: n,
|
|
2263
|
+
seriesIndex: r
|
|
2264
2264
|
})), 5),
|
|
2265
|
-
L.value.includes(
|
|
2265
|
+
L.value.includes(n.id) ? (C(), _("span", {
|
|
2266
2266
|
key: 0,
|
|
2267
2267
|
style: S(`font-size:${z.value.legendFontSize}px`)
|
|
2268
2268
|
}, " ( - % ) ", 4)) : Pr.value ? (C(), _("span", {
|
|
@@ -2271,8 +2271,8 @@ var N = /* @__PURE__ */ e({ default: () => On }), nt = ["id"], rt = ["id"], it =
|
|
|
2271
2271
|
}, " ( - % ) ", 4)) : (C(), _("span", {
|
|
2272
2272
|
key: 2,
|
|
2273
2273
|
style: S(`font-size:${z.value.legendFontSize}px; font-variant-numeric: tabular-nums;`)
|
|
2274
|
-
}, " (" + D(O(
|
|
2275
|
-
v:
|
|
2274
|
+
}, " (" + D(O(t)({
|
|
2275
|
+
v: n.value / Y.value.total * 100,
|
|
2276
2276
|
s: "%",
|
|
2277
2277
|
r: z.value.dataLabelRoundingPercentage
|
|
2278
2278
|
})) + ") ", 5))
|
|
@@ -2356,7 +2356,7 @@ var N = /* @__PURE__ */ e({ default: () => On }), nt = ["id"], rt = ["id"], it =
|
|
|
2356
2356
|
parent: N.value,
|
|
2357
2357
|
content: Mn.value,
|
|
2358
2358
|
isFullscreen: $r.value,
|
|
2359
|
-
isCustom: O(
|
|
2359
|
+
isCustom: O(r)(z.value.tooltipCustomFormat),
|
|
2360
2360
|
smooth: z.value.tooltipSmooth,
|
|
2361
2361
|
smoothForce: z.value.tooltipSmoothForce,
|
|
2362
2362
|
smoothSnapThreshold: z.value.tooltipSmoothSnapThreshold,
|
|
@@ -2396,7 +2396,7 @@ var N = /* @__PURE__ */ e({ default: () => On }), nt = ["id"], rt = ["id"], it =
|
|
|
2396
2396
|
], 46, nt)) : (C(), _("div", Dn, [Fe(O(qe), {
|
|
2397
2397
|
name: "circleCancel",
|
|
2398
2398
|
stroke: "red"
|
|
2399
|
-
}),
|
|
2399
|
+
}), n[5] ||= v("span", null, "Dataset is not processable", -1)]));
|
|
2400
2400
|
}
|
|
2401
2401
|
}, [["__scopeId", "data-v-0c7f3834"]]);
|
|
2402
2402
|
//#endregion
|