vue-data-ui 3.1.0 → 3.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{Arrow-DvG07exK.js → Arrow-BotYLY2I.js} +1 -1
- package/dist/{BaseDraggableDialog-O7900pGp.js → BaseDraggableDialog-Dkpr-qUQ.js} +2 -2
- package/dist/{BaseIcon-DHtro8us.js → BaseIcon-BLg8FaQ2.js} +5 -3
- package/dist/{ColorPicker-CpWzNn4r.js → ColorPicker-C2sMVpbA.js} +2 -2
- package/dist/{DataTable-DJjA2_wf.js → DataTable-BRN1-1ob.js} +2 -2
- package/dist/{Legend-2-dC7DVb.js → Legend-DLzeDl3-.js} +2 -2
- package/dist/{NonSvgPenAndPaper-DHeE4Yuv.js → NonSvgPenAndPaper-Dp53d2re.js} +3 -3
- package/dist/{PackageVersion-DU12WH3O.js → PackageVersion-Jz9FlNXl.js} +1 -1
- package/dist/{PenAndPaper-B7QEDgx4.js → PenAndPaper-TgGWddgD.js} +3 -3
- package/dist/{Shape-Dj2Hl33H.js → Shape-Bmpx9GRg.js} +1 -1
- package/dist/{Slicer-D99HytqX.js → Slicer-DeWHn8zH.js} +2 -2
- package/dist/{SparkTooltip-B-wL07rI.js → SparkTooltip-C6fJOQ0j.js} +1 -1
- package/dist/{Title-Dq2_Z9kR.js → Title-AGmmsSi_.js} +1 -1
- package/dist/{Tooltip-Y219DXZO.js → Tooltip-le0yZk_t.js} +1 -1
- package/dist/{UserOptions-BuGfCdAY.js → UserOptions-DEFwuQIo.js} +125 -108
- package/dist/{dom-to-png-BhciAKaM.js → dom-to-png-C7V0EktO.js} +1 -1
- package/dist/{img-JOqdlnUs.js → img-DvuphHeJ.js} +1 -1
- package/dist/{index-CDQbCd41.js → index-BFqW8WA0.js} +97 -74
- package/dist/pdf-Bdf65IBz.js +79 -0
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +25 -2
- package/dist/types/vue-data-ui.d.ts +25 -2
- package/dist/{useAutoSizeLabelsInsideViewbox-Bky5KGFZ.js → useAutoSizeLabelsInsideViewbox-N1I6Rk6M.js} +1 -1
- package/dist/{useNestedProp-BPEHGiYX.js → useNestedProp-BSZCnuGl.js} +1 -1
- package/dist/{usePrinter-Bnl1YeUU.js → usePrinter-DDIKRiOp.js} +13 -12
- package/dist/useTableResponsive-Cbx-ACcP.js +22 -0
- package/dist/{vue-data-ui-DcNYz3cZ.js → vue-data-ui-vwh3dolO.js} +64 -64
- package/dist/vue-data-ui.js +1 -1
- package/dist/{vue-ui-3d-bar-BNIFAeN-.js → vue-ui-3d-bar-DNw3RWRt.js} +371 -366
- package/dist/{vue-ui-accordion-Bf_LHFFX.js → vue-ui-accordion-Cv747Pg6.js} +3 -3
- package/dist/{vue-ui-age-pyramid-Bz-l1afR.js → vue-ui-age-pyramid-B1Yun-v7.js} +200 -195
- package/dist/{vue-ui-annotator-BcfRH2BF.js → vue-ui-annotator-B_5hOApA.js} +2 -2
- package/dist/{vue-ui-bullet-DK1aM9fX.js → vue-ui-bullet-C2Aj7Lcx.js} +7 -7
- package/dist/{vue-ui-candlestick-D6mMjvtu.js → vue-ui-candlestick-BBYqZVUp.js} +225 -220
- package/dist/{vue-ui-carousel-table-Vp5f238W.js → vue-ui-carousel-table-DPIOnp9J.js} +4 -4
- package/dist/{vue-ui-chestnut-BKc4v-lf.js → vue-ui-chestnut-C4B0wEFn.js} +484 -487
- package/dist/{vue-ui-chord-CquhRjf0.js → vue-ui-chord-B9Zml1V7.js} +272 -266
- package/dist/{vue-ui-circle-pack-D6zLgxa3.js → vue-ui-circle-pack-CLn19BHH.js} +6 -6
- package/dist/{vue-ui-cursor-DIXb2S93.js → vue-ui-cursor-AVEV-uv3.js} +2 -2
- package/dist/vue-ui-dashboard-DwNYa1I4.js +412 -0
- package/dist/{vue-ui-digits-CLAIo9gW.js → vue-ui-digits-Dr4OHGU0.js} +2 -2
- package/dist/{vue-ui-donut-evolution-C3r0YhKz.js → vue-ui-donut-evolution-hJh-1Z48.js} +310 -304
- package/dist/{vue-ui-donut-C8h_tCSO.js → vue-ui-donut-xseR2SnT.js} +348 -343
- package/dist/{vue-ui-dumbbell-D-t4M00E.js → vue-ui-dumbbell-FdTx7uAG.js} +293 -287
- package/dist/{vue-ui-flow-D7_D_UNm.js → vue-ui-flow-Bh6FqlC1.js} +263 -257
- package/dist/{vue-ui-funnel-B0QOfZRz.js → vue-ui-funnel-BlsKhHbk.js} +206 -200
- package/dist/{vue-ui-galaxy-Ccw5uNes.js → vue-ui-galaxy-C0B8stYi.js} +243 -238
- package/dist/{vue-ui-gauge-DvW7nFmK.js → vue-ui-gauge-B1-UiZwV.js} +7 -7
- package/dist/{vue-ui-gizmo-WGQxvGPy.js → vue-ui-gizmo-Df_SCjOI.js} +3 -3
- package/dist/{vue-ui-heatmap-BQkLujyp.js → vue-ui-heatmap-NfRSd6fU.js} +370 -375
- package/dist/{vue-ui-history-plot-eU33r_Ot.js → vue-ui-history-plot-Ce-DJ8xC.js} +305 -299
- package/dist/{vue-ui-kpi-CKg2i71M.js → vue-ui-kpi-CH3rWyiG.js} +3 -3
- package/dist/{vue-ui-mini-loader-BmkGQsm_.js → vue-ui-mini-loader-D9EVnpxk.js} +2 -2
- package/dist/{vue-ui-molecule-Dlu0hjSg.js → vue-ui-molecule-C973vfYh.js} +188 -183
- package/dist/{vue-ui-mood-radar-DQaxfw9R.js → vue-ui-mood-radar-DdLxBhlO.js} +197 -192
- package/dist/{vue-ui-nested-donuts-Djj9Aw_i.js → vue-ui-nested-donuts-tARXMYzx.js} +326 -320
- package/dist/{vue-ui-onion-ZgsErXis.js → vue-ui-onion-BC9czZGG.js} +8 -8
- package/dist/{vue-ui-parallel-coordinate-plot-B5fB22Jc.js → vue-ui-parallel-coordinate-plot-CxDIkZKr.js} +401 -395
- package/dist/{vue-ui-quadrant-CMevCtXH.js → vue-ui-quadrant-Bpm5ZoTp.js} +339 -334
- package/dist/{vue-ui-quick-chart-DcparKSX.js → vue-ui-quick-chart-Bkc_JBCw.js} +6 -6
- package/dist/{vue-ui-radar-DFbxoKCK.js → vue-ui-radar-DVJQYNeL.js} +248 -243
- package/dist/{vue-ui-rating-ZUpxCWrk.js → vue-ui-rating-DITnRSiS.js} +2 -2
- package/dist/{vue-ui-relation-circle-eNKJY4Sx.js → vue-ui-relation-circle-D_OTYUmS.js} +7 -7
- package/dist/{vue-ui-ridgeline-D4shpQZd.js → vue-ui-ridgeline-Gc1c4LXq.js} +267 -263
- package/dist/{vue-ui-rings-TdTHMbsa.js → vue-ui-rings-CUT1N_kK.js} +229 -224
- package/dist/{vue-ui-scatter-CVuV9ljU.js → vue-ui-scatter-DwnZHy0V.js} +359 -354
- package/dist/{vue-ui-skeleton-CFxBU2-p.js → vue-ui-skeleton-CeyaKpZd.js} +3 -3
- package/dist/{vue-ui-smiley-Har3B3aQ.js → vue-ui-smiley-B9yNexWr.js} +2 -2
- package/dist/{vue-ui-spark-trend-FPk-XEwI.js → vue-ui-spark-trend-DTYVcrHV.js} +3 -3
- package/dist/{vue-ui-sparkbar-V3eJ0w0t.js → vue-ui-sparkbar-BzxynYoW.js} +3 -3
- package/dist/{vue-ui-sparkgauge-DKTGkWnJ.js → vue-ui-sparkgauge-DoznCX5h.js} +3 -3
- package/dist/{vue-ui-sparkhistogram-DJsgFwHs.js → vue-ui-sparkhistogram-DoZpd0H2.js} +4 -4
- package/dist/{vue-ui-sparkline-Dmrm5SL5.js → vue-ui-sparkline-ZKit-hgG.js} +3 -3
- package/dist/{vue-ui-sparkstackbar-B0Pl7VMI.js → vue-ui-sparkstackbar-DjoqH_Xs.js} +3 -3
- package/dist/{vue-ui-stackbar-CNsgBPhj.js → vue-ui-stackbar-J-gxI4Xn.js} +310 -304
- package/dist/{vue-ui-strip-plot-CYAWwYOM.js → vue-ui-strip-plot-CO7NVeFi.js} +246 -240
- package/dist/{vue-ui-table-heatmap-COI9LRqC.js → vue-ui-table-heatmap-BEFdai_O.js} +5 -5
- package/dist/{vue-ui-table-Dn6H98rP.js → vue-ui-table-rmbBw_0d.js} +3 -3
- package/dist/{vue-ui-table-sparkline-B7Gg5FfJ.js → vue-ui-table-sparkline-CjgaQXbc.js} +4 -4
- package/dist/{vue-ui-thermometer-Bgynq5El.js → vue-ui-thermometer--aqaJwFo.js} +7 -7
- package/dist/{vue-ui-timer-CXng51v5.js → vue-ui-timer-qFNHDcU_.js} +5 -5
- package/dist/{vue-ui-tiremarks-Cy1U3hO1.js → vue-ui-tiremarks-DA8fzQHo.js} +6 -6
- package/dist/{vue-ui-treemap-BsvIvRmE.js → vue-ui-treemap-DGC9zxon.js} +262 -256
- package/dist/{vue-ui-vertical-bar-DHqWeDIf.js → vue-ui-vertical-bar-DOCeCCqz.js} +297 -298
- package/dist/{vue-ui-waffle-D1Mscj3N.js → vue-ui-waffle-DD9jtkcQ.js} +257 -252
- package/dist/{vue-ui-wheel-DpV-N5tF.js → vue-ui-wheel-87VStrfJ.js} +6 -6
- package/dist/vue-ui-word-cloud-CCMfa9H1.js +817 -0
- package/dist/{vue-ui-world-DYz6zw3x.js → vue-ui-world-Cm3Hn1-2.js} +257 -252
- package/dist/{vue-ui-xy-B1nqNbzw.js → vue-ui-xy-C2SnbN6w.js} +1453 -1447
- package/dist/{vue-ui-xy-canvas-D4wd-Asd.js → vue-ui-xy-canvas-WxSJqoiF.js} +235 -229
- package/package.json +1 -1
- package/dist/pdf-Dd-LIJqz.js +0 -61
- package/dist/vue-ui-dashboard-DmiriAK7.js +0 -325
- package/dist/vue-ui-word-cloud-MaNQ3Kdk.js +0 -811
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { defineAsyncComponent as H, computed as A, ref as _, toRefs as
|
|
2
|
-
import { u as
|
|
3
|
-
import { t as
|
|
4
|
-
import { u as
|
|
5
|
-
import { u as
|
|
6
|
-
import { u as
|
|
1
|
+
import { defineAsyncComponent as H, computed as A, ref as _, toRefs as wt, watch as xe, onMounted as Ct, createElementBlock as c, openBlock as u, unref as n, normalizeStyle as j, normalizeClass as qe, createBlock as Q, createCommentVNode as p, createSlots as Ye, withCtx as S, renderSlot as P, normalizeProps as de, guardReactiveProps as ce, createVNode as Ke, createElementVNode as i, Fragment as C, renderList as M, toDisplayString as z, withKeys as Je, withModifiers as Qe, mergeProps as we, resolveDynamicComponent as Mt, createTextVNode as et, nextTick as tt } from "vue";
|
|
2
|
+
import { u as Ft, c as lt, t as Tt, a as Pt, p as ve, b as Dt, d as At, e as St, o as Ot, f as he, g as Ce, l as R, m as ot, h as Bt, i as O, X as It, s as $, j as X, k as fe, n as st, q as pe, r as G, v as jt, w as zt } from "./index-BFqW8WA0.js";
|
|
3
|
+
import { t as Nt, u as Lt } from "./useResponsive-DfdjqQps.js";
|
|
4
|
+
import { u as Wt, B as Et } from "./BaseScanner-BgWxam9d.js";
|
|
5
|
+
import { u as Rt } from "./usePrinter-DDIKRiOp.js";
|
|
6
|
+
import { u as at } from "./useNestedProp-BSZCnuGl.js";
|
|
7
7
|
import { u as Gt } from "./useUserOptionState-BIvW1Kz7.js";
|
|
8
|
-
import { u as
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import { _ as
|
|
12
|
-
const
|
|
8
|
+
import { u as Vt } from "./useChartAccessibility-9icAAmYg.js";
|
|
9
|
+
import Ut from "./img-DvuphHeJ.js";
|
|
10
|
+
import Ht from "./Title-AGmmsSi_.js";
|
|
11
|
+
import { _ as Xt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
12
|
+
const Zt = ["id"], qt = ["xmlns", "viewBox"], Yt = ["width", "height"], Kt = ["id"], Jt = ["stop-color"], Qt = ["stop-color"], el = ["id"], tl = ["stop-color"], ll = ["stop-color"], ol = ["id"], sl = ["stop-color"], al = ["stop-color"], nl = ["id"], rl = ["stop-color"], ul = ["stop-color"], il = ["id"], dl = ["stop-color"], cl = ["stop-color"], vl = ["stop-color"], hl = ["stop-color"], fl = ["stop-color"], pl = { key: 1 }, yl = ["id"], kl = ["stop-color"], gl = ["stop-color"], $l = ["id"], _l = ["stop-color"], ml = ["stop-color"], bl = ["id"], xl = ["stop-color"], wl = ["stop-color"], Cl = ["id"], Ml = ["x", "y", "font-size", "font-weight", "fill"], Fl = ["x", "y"], Tl = ["cx", "cy", "stroke", "opacity"], Pl = ["d", "stroke"], Dl = ["d", "stroke"], Al = { key: 4 }, Sl = { key: 0 }, Ol = ["stroke-dasharray", "d", "stroke", "stroke-width"], Bl = ["stroke-dasharray", "d", "stroke", "stroke-width"], Il = ["stroke-dasharray", "d", "stroke", "stroke-width"], jl = ["stroke-dasharray", "d", "stroke", "stroke-width"], zl = { key: 1 }, Nl = ["d", "stroke", "stroke-width", "fill"], Ll = ["d", "stroke", "stroke-width", "fill"], Wl = ["d", "stroke", "stroke-width", "fill"], El = { key: 2 }, Rl = ["d", "fill", "onMouseenter", "onClick", "onMouseout"], Gl = ["d", "fill", "onMouseenter", "onClick", "onMouseout"], Vl = ["d", "fill", "onMouseenter", "onClick", "onMouseout"], Ul = ["d", "onMouseenter", "onClick", "onMouseout"], Hl = ["d"], Xl = ["d", "stroke"], Zl = ["onClick"], ql = ["stroke", "d"], Yl = ["cx", "cy", "fill", "stroke"], Kl = ["x", "y", "width", "height"], Jl = ["x", "y", "width", "height"], Ql = { key: 3 }, eo = ["d", "stroke"], to = ["d", "fill", "stroke"], lo = { key: 0 }, oo = ["text-anchor", "x", "y", "fill", "font-size"], so = ["text-anchor", "x", "y", "fill", "font-size"], ao = { key: 4 }, no = ["d", "fill", "stroke"], ro = { key: 5 }, uo = { key: 0 }, io = ["stroke-dasharray", "d", "stroke", "stroke-width"], co = ["stroke-dasharray", "d", "stroke", "stroke-width"], vo = ["stroke-dasharray", "d", "stroke", "stroke-width"], ho = ["stroke-dasharray", "d", "stroke", "stroke-width"], fo = ["d", "stroke", "stroke-width", "fill"], po = ["d", "stroke", "stroke-width", "fill"], yo = ["d"], ko = { key: 1 }, go = ["onClick"], $o = ["id"], _o = ["stop-color"], mo = ["stop-color"], bo = ["id"], xo = ["stop-color"], wo = ["stop-color"], Co = ["stop-color"], Mo = ["stop-color"], Fo = ["stop-color"], To = ["onMouseenter", "onClick", "onMouseout", "d", "fill"], Po = ["onMouseenter", "onClick", "onMouseout", "d"], Do = ["onMouseenter", "onClick", "onMouseout", "d", "fill"], Ao = ["onClick"], So = ["stroke", "d"], Oo = ["cx", "cy", "fill", "stroke"], Bo = ["x", "y", "width", "height"], Io = ["x", "y", "width", "height"], jo = { key: 3 }, zo = ["d", "stroke"], No = ["d", "fill", "stroke"], Lo = { key: 0 }, Wo = ["text-anchor", "x", "y", "fill", "font-size"], Eo = ["text-anchor", "x", "y", "fill", "font-size"], Ro = { key: 4 }, Go = ["d", "fill", "stroke"], Vo = {
|
|
13
13
|
key: 3,
|
|
14
14
|
class: "vue-data-ui-watermark"
|
|
15
|
-
},
|
|
15
|
+
}, Uo = ["innerHTML"], Ho = {
|
|
16
16
|
__name: "vue-ui-3d-bar",
|
|
17
17
|
props: {
|
|
18
18
|
config: {
|
|
@@ -29,14 +29,14 @@ const Xt = ["id"], Zt = ["xmlns", "viewBox"], qt = ["width", "height"], Yt = ["i
|
|
|
29
29
|
}
|
|
30
30
|
},
|
|
31
31
|
emits: ["selectDatapoint"],
|
|
32
|
-
setup(
|
|
33
|
-
const
|
|
34
|
-
...
|
|
32
|
+
setup(nt, { expose: rt, emit: ut }) {
|
|
33
|
+
const it = H(() => import("./BaseIcon-BLg8FaQ2.js")), dt = H(() => import("./vue-ui-accordion-Cv747Pg6.js")), ct = H(() => import("./DataTable-BRN1-1ob.js")), vt = H(() => import("./PenAndPaper-TgGWddgD.js")), ht = H(() => import("./UserOptions-DEFwuQIo.js")), ft = H(() => import("./PackageVersion-Jz9FlNXl.js")), pt = H(() => import("./BaseDraggableDialog-Dkpr-qUQ.js")), { vue_ui_3d_bar: yt } = Ft(), D = nt, se = ut, Me = A(() => !!D.dataset && Object.keys(D.dataset).length), F = _(lt()), N = _(null), B = _(!1), Fe = _(0), Te = _(0), Pe = _(null), ee = _(null), ae = _(null), De = _(null), te = _(!1), le = _(null), ye = _(null), e = _(ge()), { loading: Z, FINAL_DATASET: I } = Wt({
|
|
34
|
+
...wt(D),
|
|
35
35
|
FINAL_CONFIG: e,
|
|
36
|
-
prepareConfig:
|
|
36
|
+
prepareConfig: ge,
|
|
37
37
|
callback: () => {
|
|
38
38
|
Promise.resolve().then(async () => {
|
|
39
|
-
await
|
|
39
|
+
await tt(), Le();
|
|
40
40
|
});
|
|
41
41
|
},
|
|
42
42
|
skeletonDataset: {
|
|
@@ -67,7 +67,7 @@ const Xt = ["id"], Zt = ["xmlns", "viewBox"], qt = ["width", "height"], Yt = ["i
|
|
|
67
67
|
}
|
|
68
68
|
]
|
|
69
69
|
},
|
|
70
|
-
skeletonConfig:
|
|
70
|
+
skeletonConfig: Tt({
|
|
71
71
|
defaultConfig: e.value,
|
|
72
72
|
userConfig: {
|
|
73
73
|
customPalette: ["#808080", "#ADADAD", "#DBDBDB"],
|
|
@@ -88,39 +88,39 @@ const Xt = ["id"], Zt = ["xmlns", "viewBox"], qt = ["width", "height"], Yt = ["i
|
|
|
88
88
|
}
|
|
89
89
|
}
|
|
90
90
|
})
|
|
91
|
-
}), { userOptionsVisible:
|
|
92
|
-
function
|
|
93
|
-
const a =
|
|
91
|
+
}), { userOptionsVisible: ke, setUserOptionsVisibility: Ae, keepUserOptionState: Se } = Gt({ config: e.value }), { svgRef: Oe } = Vt({ config: e.value.style.chart.title });
|
|
92
|
+
function ge() {
|
|
93
|
+
const a = at({
|
|
94
94
|
userConfig: D.config,
|
|
95
|
-
defaultConfig:
|
|
95
|
+
defaultConfig: yt
|
|
96
96
|
});
|
|
97
97
|
return a.theme ? {
|
|
98
|
-
...
|
|
99
|
-
userConfig:
|
|
98
|
+
...at({
|
|
99
|
+
userConfig: Dt.vue_ui_3d_bar[a.theme] || D.config,
|
|
100
100
|
defaultConfig: a
|
|
101
101
|
}),
|
|
102
102
|
customPalette: Pt[a.theme] || ve
|
|
103
103
|
} : a;
|
|
104
104
|
}
|
|
105
|
-
|
|
106
|
-
Z.value || (e.value =
|
|
105
|
+
xe(() => D.config, (a) => {
|
|
106
|
+
Z.value || (e.value = ge()), ke.value = !e.value.userOptions.showOnChartHover, We(), Fe.value += 1, Te.value += 1, V.value.showTable = e.value.table.show;
|
|
107
107
|
}, { deep: !0 });
|
|
108
|
-
const { isPrinting: Be, isImaging:
|
|
108
|
+
const { isPrinting: Be, isImaging: Ie, generatePdf: je, generateImage: ze } = Rt({
|
|
109
109
|
elementId: `3d_bar_${F.value}`,
|
|
110
110
|
fileName: e.value.style.chart.title.text || "vue-ui-3d-bar",
|
|
111
111
|
options: e.value.userOptions.print
|
|
112
|
-
}),
|
|
112
|
+
}), kt = A(() => At(e.value.customPalette)), V = _({
|
|
113
113
|
showTable: e.value.table.show
|
|
114
114
|
});
|
|
115
|
-
|
|
116
|
-
|
|
115
|
+
xe(e, () => {
|
|
116
|
+
V.value = {
|
|
117
117
|
showTable: e.value.table.show
|
|
118
118
|
};
|
|
119
119
|
}, { immediate: !0 });
|
|
120
|
-
const x = A(() =>
|
|
121
|
-
height:
|
|
122
|
-
width:
|
|
123
|
-
absoluteWidth:
|
|
120
|
+
const x = A(() => I.value.series && I.value.series.length), $e = _(e.value.style.chart.box.dimensions.width * (x.value ? 2 : 1)), Ne = _(e.value.style.chart.box.dimensions.height), o = A(() => ({
|
|
121
|
+
height: Ne.value,
|
|
122
|
+
width: $e.value,
|
|
123
|
+
absoluteWidth: $e.value,
|
|
124
124
|
top: e.value.style.chart.box.dimensions.top,
|
|
125
125
|
bottom: e.value.style.chart.box.dimensions.bottom,
|
|
126
126
|
left: e.value.style.chart.box.dimensions.left,
|
|
@@ -128,54 +128,54 @@ const Xt = ["id"], Zt = ["xmlns", "viewBox"], qt = ["width", "height"], Yt = ["i
|
|
|
128
128
|
perspective: e.value.style.chart.box.dimensions.perspective
|
|
129
129
|
})), w = A(() => {
|
|
130
130
|
if (x.value) {
|
|
131
|
-
const a =
|
|
131
|
+
const a = I.value.series.map((l) => l.value || 0).reduce((l, d) => l + d, 0), s = I.value.series.map((l, d) => ({
|
|
132
132
|
...l,
|
|
133
133
|
seriesIndex: d,
|
|
134
|
-
id:
|
|
134
|
+
id: lt(),
|
|
135
135
|
proportion: (l.value || 0) / a,
|
|
136
|
-
color:
|
|
136
|
+
color: St(l.color) || kt.value[d] || ve[d] || ve[d % ve.length],
|
|
137
137
|
breakdown: l.breakdown ? l.breakdown.sort((r, k) => k.value - r.value) : null
|
|
138
138
|
})).sort((l, d) => d.value - l.value), t = [];
|
|
139
139
|
let v = 0;
|
|
140
|
-
for (let l = 0; l <
|
|
140
|
+
for (let l = 0; l < s.length; l += 1)
|
|
141
141
|
t.push({
|
|
142
|
-
...
|
|
143
|
-
fill:
|
|
144
|
-
}), v +=
|
|
142
|
+
...s[l],
|
|
143
|
+
fill: gt(v, s[l].proportion, s[l].breakdown, s[l].color)
|
|
144
|
+
}), v += s[l].proportion;
|
|
145
145
|
return t;
|
|
146
146
|
}
|
|
147
147
|
return null;
|
|
148
|
-
}),
|
|
149
|
-
const a =
|
|
148
|
+
}), L = A(() => {
|
|
149
|
+
const a = o.value.width / 2;
|
|
150
150
|
return {
|
|
151
|
-
right: `M${a},${
|
|
152
|
-
left: `M${a},${
|
|
153
|
-
side: `M${a},${
|
|
154
|
-
topSides: `M${
|
|
155
|
-
tubeTop: `M${
|
|
156
|
-
tubeLeft: `M${
|
|
157
|
-
tubeRight: `M${
|
|
158
|
-
tubeBottom: `M${
|
|
151
|
+
right: `M${a},${o.value.top} ${o.value.width - o.value.right}, ${o.value.top + o.value.perspective} ${o.value.width - o.value.right},${o.value.height - o.value.bottom - o.value.perspective} ${a},${o.value.height - o.value.bottom}`,
|
|
152
|
+
left: `M${a},${o.value.top} ${o.value.left},${o.value.top + o.value.perspective} ${o.value.left},${o.value.height - o.value.bottom - o.value.perspective} ${a},${o.value.height - o.value.bottom}`,
|
|
153
|
+
side: `M${a},${o.value.height - o.value.bottom} ${a},${o.value.top + o.value.perspective * 2}`,
|
|
154
|
+
topSides: `M${o.value.left},${o.value.top + o.value.perspective} ${a},${o.value.top + o.value.perspective * 2} ${o.value.width - o.value.right},${o.value.top + o.value.perspective}`,
|
|
155
|
+
tubeTop: `M${o.value.left},${o.value.top + o.value.perspective} C ${o.value.left},${o.value.top - o.value.perspective / 3} ${o.value.width - o.value.right},${o.value.top - o.value.perspective / 3} ${o.value.width - o.value.right},${o.value.top + o.value.perspective} C ${o.value.width - o.value.right},${o.value.top + o.value.perspective * 2.3} ${o.value.left},${o.value.top + o.value.perspective * 2.3} ${o.value.left},${o.value.top + o.value.perspective}`,
|
|
156
|
+
tubeLeft: `M${o.value.left},${o.value.top + o.value.perspective} ${o.value.left},${o.value.height - o.value.bottom - o.value.perspective}`,
|
|
157
|
+
tubeRight: `M${o.value.width - o.value.right},${o.value.top + o.value.perspective} ${o.value.width - o.value.right},${o.value.height - o.value.bottom - o.value.perspective}`,
|
|
158
|
+
tubeBottom: `M${o.value.width - o.value.right},${o.value.height - o.value.bottom - o.value.perspective} C ${o.value.width - o.value.right},${o.value.height} ${o.value.left},${o.value.height} ${o.value.left},${o.value.height - o.value.bottom - o.value.perspective}`
|
|
159
159
|
};
|
|
160
|
-
}), q = _(e.value.style.chart.animation.use ? 0 :
|
|
161
|
-
function
|
|
162
|
-
let a = 0,
|
|
160
|
+
}), q = _(e.value.style.chart.animation.use ? 0 : I.value.percentage);
|
|
161
|
+
function Le() {
|
|
162
|
+
let a = 0, s = e.value.style.chart.animation.speed, t = 5e-3 * e.value.style.chart.animation.acceleration;
|
|
163
163
|
function v() {
|
|
164
|
-
q.value +=
|
|
164
|
+
q.value += s + a, a += t, q.value < I.value.percentage ? requestAnimationFrame(v) : q.value = I.value.percentage;
|
|
165
165
|
}
|
|
166
166
|
e.value.style.chart.animation.use && (q.value = 0, v());
|
|
167
167
|
}
|
|
168
|
-
|
|
169
|
-
|
|
168
|
+
Ct(() => {
|
|
169
|
+
We(), Le();
|
|
170
170
|
});
|
|
171
171
|
const ne = A(() => !!e.value.debug);
|
|
172
|
-
function
|
|
173
|
-
if (
|
|
172
|
+
function We() {
|
|
173
|
+
if (Ot(D.dataset) ? he({
|
|
174
174
|
componentName: "VueUi3dBar",
|
|
175
175
|
type: "dataset",
|
|
176
176
|
debug: ne.value
|
|
177
|
-
}) : D.dataset.series ? D.dataset.series.forEach((a,
|
|
178
|
-
|
|
177
|
+
}) : D.dataset.series ? D.dataset.series.forEach((a, s) => {
|
|
178
|
+
Ce({
|
|
179
179
|
datasetObject: a,
|
|
180
180
|
requiredAttributes: ["name", "value"]
|
|
181
181
|
}).forEach((t) => {
|
|
@@ -183,11 +183,11 @@ const Xt = ["id"], Zt = ["xmlns", "viewBox"], qt = ["width", "height"], Yt = ["i
|
|
|
183
183
|
componentName: "VueUi3dBar",
|
|
184
184
|
type: "datasetSerieAttribute",
|
|
185
185
|
property: t,
|
|
186
|
-
index:
|
|
186
|
+
index: s,
|
|
187
187
|
debug: ne.value
|
|
188
188
|
});
|
|
189
189
|
}), a.breakdown && a.breakdown.forEach((t, v) => {
|
|
190
|
-
|
|
190
|
+
Ce({
|
|
191
191
|
datasetObject: t,
|
|
192
192
|
requiredAttributes: ["name", "value"]
|
|
193
193
|
}).forEach((l) => {
|
|
@@ -195,12 +195,12 @@ const Xt = ["id"], Zt = ["xmlns", "viewBox"], qt = ["width", "height"], Yt = ["i
|
|
|
195
195
|
componentName: "VueUi3dBar",
|
|
196
196
|
type: "datasetSerieAttribute",
|
|
197
197
|
property: l,
|
|
198
|
-
index: `${
|
|
198
|
+
index: `${s} - ${v}`,
|
|
199
199
|
debug: ne.value
|
|
200
200
|
});
|
|
201
201
|
});
|
|
202
202
|
});
|
|
203
|
-
}) :
|
|
203
|
+
}) : Ce({
|
|
204
204
|
datasetObject: D.dataset,
|
|
205
205
|
requiredAttributes: ["percentage"]
|
|
206
206
|
}).forEach((a) => {
|
|
@@ -211,31 +211,31 @@ const Xt = ["id"], Zt = ["xmlns", "viewBox"], qt = ["width", "height"], Yt = ["i
|
|
|
211
211
|
debug: ne.value
|
|
212
212
|
});
|
|
213
213
|
}), e.value.responsive) {
|
|
214
|
-
const a =
|
|
215
|
-
const { width:
|
|
214
|
+
const a = Nt(() => {
|
|
215
|
+
const { width: s, height: t } = Lt({
|
|
216
216
|
chart: N.value,
|
|
217
217
|
title: e.value.style.chart.title.text ? Pe.value : null,
|
|
218
|
-
source:
|
|
218
|
+
source: De.value
|
|
219
219
|
});
|
|
220
220
|
requestAnimationFrame(() => {
|
|
221
|
-
|
|
221
|
+
Ne.value = t - 12, $e.value = s;
|
|
222
222
|
});
|
|
223
223
|
});
|
|
224
224
|
ee.value && (ae.value && ee.value.unobserve(ae.value), ee.value.disconnect()), ee.value = new ResizeObserver(a), ae.value = N.value.parentNode, ee.value.observe(ae.value);
|
|
225
225
|
}
|
|
226
226
|
}
|
|
227
|
-
const Y = A(() =>
|
|
228
|
-
function
|
|
229
|
-
const l =
|
|
230
|
-
let
|
|
231
|
-
return
|
|
232
|
-
...
|
|
233
|
-
value:
|
|
234
|
-
color: R(v,
|
|
235
|
-
})),
|
|
227
|
+
const Y = A(() => o.value.width / 4);
|
|
228
|
+
function gt(a, s, t, v) {
|
|
229
|
+
const l = o.value.height - o.value.bottom - o.value.top - o.value.perspective * 2, { width: d, height: r, bottom: k, right: E, left: g, perspective: y } = o.value, f = x.value ? d / 4 : d / 2, b = f * 2 + g, h = k + l * a, be = r - h - y - l * s / 2, mt = be > o.value.height / 2 ? "top" : "bottom", Ue = r * 0.25, bt = !!t;
|
|
230
|
+
let He = null, Xe = null;
|
|
231
|
+
return bt && (t = t.map((Ze, xt) => ({
|
|
232
|
+
...Ze,
|
|
233
|
+
value: Ze.value || 0,
|
|
234
|
+
color: R(v, xt / t.length)
|
|
235
|
+
})), He = ot(
|
|
236
236
|
{ series: t },
|
|
237
237
|
d / 2 + d / 5,
|
|
238
|
-
|
|
238
|
+
mt === "top" ? be - Ue : be + Ue,
|
|
239
239
|
d / 10,
|
|
240
240
|
d / 10,
|
|
241
241
|
1.99999,
|
|
@@ -244,10 +244,10 @@ const Xt = ["id"], Zt = ["xmlns", "viewBox"], qt = ["width", "height"], Yt = ["i
|
|
|
244
244
|
360,
|
|
245
245
|
105.25,
|
|
246
246
|
d / 20
|
|
247
|
-
),
|
|
247
|
+
), Xe = ot(
|
|
248
248
|
{ series: t },
|
|
249
249
|
d - b + d / 14,
|
|
250
|
-
r - h - y - l *
|
|
250
|
+
r - h - y - l * s / 2,
|
|
251
251
|
d / 40,
|
|
252
252
|
d / 40,
|
|
253
253
|
1.99999,
|
|
@@ -257,32 +257,32 @@ const Xt = ["id"], Zt = ["xmlns", "viewBox"], qt = ["width", "height"], Yt = ["i
|
|
|
257
257
|
105.25,
|
|
258
258
|
d / 40
|
|
259
259
|
)), {
|
|
260
|
-
donut:
|
|
261
|
-
miniDonut:
|
|
260
|
+
donut: He,
|
|
261
|
+
miniDonut: Xe,
|
|
262
262
|
donutR: d / 20,
|
|
263
263
|
CENTER_X: f,
|
|
264
264
|
sidePointer: {
|
|
265
265
|
x: d - b,
|
|
266
266
|
x2: d - b + d / 14,
|
|
267
267
|
xText: d - b + d / 9,
|
|
268
|
-
y: r - h - y - l *
|
|
269
|
-
topY: r - h - y - l *
|
|
270
|
-
height: l *
|
|
268
|
+
y: r - h - y - l * s / 2,
|
|
269
|
+
topY: r - h - y - l * s,
|
|
270
|
+
height: l * s
|
|
271
271
|
},
|
|
272
272
|
apexBottom: { y: r - h, x: f },
|
|
273
|
-
apexTop: { y: r - h - l *
|
|
274
|
-
right: `M${f},${r - h} ${f},${r - h - l *
|
|
275
|
-
left: `M${f},${r - h} ${f},${r - h - l *
|
|
276
|
-
liningTop: `M${g},${r - h - y - l *
|
|
277
|
-
liningTopShade: `M${g},${r - h - y - l *
|
|
278
|
-
top: `M${f},${r - h - l *
|
|
279
|
-
tubeTop: `M${g},${r - h - l *
|
|
273
|
+
apexTop: { y: r - h - l * s, x: f },
|
|
274
|
+
right: `M${f},${r - h} ${f},${r - h - l * s} ${d - b},${r - h - y - l * s} ${d - b},${r - h - y}Z`,
|
|
275
|
+
left: `M${f},${r - h} ${f},${r - h - l * s} ${g}, ${r - h - y - l * s} ${g},${r - h - y}Z`,
|
|
276
|
+
liningTop: `M${g},${r - h - y - l * s} ${f},${r - h - l * s} ${d - b},${r - h - y - l * s}`,
|
|
277
|
+
liningTopShade: `M${g},${r - h - y - l * s - 0.5} ${f},${r - h - l * s - 0.5} ${d - b},${r - h - y - l * s - 0.5}`,
|
|
278
|
+
top: `M${f},${r - h - l * s} ${g},${r - h - y - l * s} ${f},${r - h - y * 2 - l * s} ${d - b},${r - h - y - l * s} Z`,
|
|
279
|
+
tubeTop: `M${g},${r - h - l * s - y} C ${g},${r - h - l * s - y * 2.5} ${d - b},${r - h - l * s - y * 2.5} ${d - b},${r - h - l * s - y} C ${d - b},${r - h - l * s + y / 2} ${g},${r - h - l * s + y / 2} ${g},${r - h - l * s - y}`,
|
|
280
280
|
bottomTubeTop: `M ${d - b - 0.5},${r - h - y} C ${d - b - 0.5},${r - h + y / 2} ${g},${r - h + y / 2} ${g + 0.5},${r - h - y}`,
|
|
281
281
|
tubeBody: `M
|
|
282
|
-
${g},${r - h - l *
|
|
283
|
-
C ${g},${r - h - l *
|
|
284
|
-
${d - b},${r - h - l *
|
|
285
|
-
${d - b},${r - h - l *
|
|
282
|
+
${g},${r - h - l * s - y}
|
|
283
|
+
C ${g},${r - h - l * s + y / 2}
|
|
284
|
+
${d - b},${r - h - l * s + y / 2}
|
|
285
|
+
${d - b},${r - h - l * s - y}
|
|
286
286
|
L${d - b},${r - h - y}
|
|
287
287
|
C
|
|
288
288
|
${d - b},${r - h + y / 2}
|
|
@@ -291,17 +291,17 @@ const Xt = ["id"], Zt = ["xmlns", "viewBox"], qt = ["width", "height"], Yt = ["i
|
|
|
291
291
|
};
|
|
292
292
|
}
|
|
293
293
|
const K = A(() => {
|
|
294
|
-
const a = Bt(q.value / 100),
|
|
294
|
+
const a = Bt(q.value / 100), s = o.value.height - o.value.bottom - o.value.top - o.value.perspective * 2, { width: t, height: v, bottom: l, right: d, left: r, perspective: k } = o.value, E = x.value ? t / 4 : t / 2, g = x.value ? E * 2 + r : d, f = l + s * 0;
|
|
295
295
|
return {
|
|
296
|
-
right: `M${
|
|
297
|
-
left: `M${
|
|
298
|
-
top: `M${
|
|
299
|
-
tubeTop: `M${r},${v - f -
|
|
296
|
+
right: `M${E},${v - f} ${E},${v - f - s * a} ${t - g},${v - f - k - s * a} ${t - g},${v - f - k}Z`,
|
|
297
|
+
left: `M${E},${v - f} ${E},${v - f - s * a} ${r}, ${v - f - k - s * a} ${r},${v - f - k}Z`,
|
|
298
|
+
top: `M${E},${v - f - s * a} ${r},${v - f - k - s * a} ${E},${v - f - k * 2 - s * a} ${t - g},${v - f - k - s * a} Z`,
|
|
299
|
+
tubeTop: `M${r},${v - f - s * a - k} C ${r},${v - f - s * a - k * 2.5} ${t - g},${v - f - s * a - k * 2.5} ${t - g},${v - f - s * a - k} C ${t - g},${v - f - s * a + k / 2} ${r},${v - f - s * a + k / 2} ${r},${v - f - s * a - k}`,
|
|
300
300
|
tubeBody: `M
|
|
301
|
-
${r},${v - f -
|
|
302
|
-
C ${r},${v - f -
|
|
303
|
-
${t - g},${v - f -
|
|
304
|
-
${t - g},${v - f -
|
|
301
|
+
${r},${v - f - s * a - k}
|
|
302
|
+
C ${r},${v - f - s * a + k / 2}
|
|
303
|
+
${t - g},${v - f - s * a + k / 2}
|
|
304
|
+
${t - g},${v - f - s * a - k}
|
|
305
305
|
L${t - g},${v - k * 1.5}
|
|
306
306
|
C
|
|
307
307
|
${t - g},${v}
|
|
@@ -309,27 +309,27 @@ const Xt = ["id"], Zt = ["xmlns", "viewBox"], qt = ["width", "height"], Yt = ["i
|
|
|
309
309
|
${r},${v - f - k}Z`
|
|
310
310
|
};
|
|
311
311
|
}), m = _(null);
|
|
312
|
-
function
|
|
313
|
-
e.value.events.datapointEnter && !
|
|
312
|
+
function T(a, s = !1) {
|
|
313
|
+
e.value.events.datapointEnter && !s && e.value.events.datapointEnter({ datapoint: a, seriesIndex: a.seriesIndex }), e.value.events.datapointClick && s && e.value.events.datapointClick({ datapoint: a, seriesIndex: a.seriesIndex }), se("selectDatapoint", a), s || (m.value = a.id), s && B.value && (B.value = !1), s && !B.value && (B.value = !0);
|
|
314
314
|
}
|
|
315
315
|
function U(a) {
|
|
316
|
-
e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: a, seriesIndex: a.seriesIndex }), !
|
|
316
|
+
e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: a, seriesIndex: a.seriesIndex }), !B.value && (m.value = null);
|
|
317
317
|
}
|
|
318
|
-
function J(a,
|
|
319
|
-
const v =
|
|
318
|
+
function J(a, s, t = !1) {
|
|
319
|
+
const v = I.value.series.map((r) => r.value || 0).reduce((r, k) => r + k, 0), l = isNaN(a.value / v) ? 0 : a.value / v * 100, d = isNaN(a.value / Ee(s)) ? 0 : a.value / Ee(s) * 100;
|
|
320
320
|
return t ? d : l.toFixed(0) + "%";
|
|
321
321
|
}
|
|
322
|
-
function
|
|
323
|
-
return [...a].map((
|
|
322
|
+
function Ee(a) {
|
|
323
|
+
return [...a].map((s) => s.value).reduce((s, t) => s + t, 0);
|
|
324
324
|
}
|
|
325
325
|
const re = _(!1);
|
|
326
|
-
function
|
|
326
|
+
function Re(a) {
|
|
327
327
|
re.value = a;
|
|
328
328
|
}
|
|
329
|
-
function
|
|
330
|
-
return x.value ? w.value :
|
|
329
|
+
function $t() {
|
|
330
|
+
return x.value ? w.value : I.value.percentage;
|
|
331
331
|
}
|
|
332
|
-
const
|
|
332
|
+
const W = A(() => {
|
|
333
333
|
if (x.value) {
|
|
334
334
|
const a = w.value.flatMap((t) => t.breakdown && t.breakdown.length ? [{ name: t.name, color: t.color }, ...t.breakdown.map((v, l) => ({
|
|
335
335
|
name: v.name,
|
|
@@ -337,38 +337,38 @@ const Xt = ["id"], Zt = ["xmlns", "viewBox"], qt = ["width", "height"], Yt = ["i
|
|
|
337
337
|
}))] : {
|
|
338
338
|
name: t.name,
|
|
339
339
|
color: t.color
|
|
340
|
-
}),
|
|
341
|
-
return { head: a, body:
|
|
340
|
+
}), s = w.value.flatMap((t) => t.breakdown && t.breakdown.length ? [t.value, ...t.breakdown.map((v) => v.value)] : t.value);
|
|
341
|
+
return { head: a, body: s };
|
|
342
342
|
} else
|
|
343
343
|
return null;
|
|
344
344
|
});
|
|
345
|
-
function
|
|
345
|
+
function _e(a = null) {
|
|
346
346
|
if (!x.value) {
|
|
347
347
|
console.warn("VueUi3dBar : CSV download is only available in stack mode (providing dataset.series instead of dataset.percentage)");
|
|
348
348
|
return;
|
|
349
349
|
}
|
|
350
|
-
|
|
351
|
-
const
|
|
350
|
+
tt(() => {
|
|
351
|
+
const s = w.value.map((d) => d.value).reduce((d, r) => d + r, 0), t = W.value.head.map((d, r) => [[
|
|
352
352
|
d.name
|
|
353
|
-
], [
|
|
353
|
+
], [W.value.body[r]], [isNaN(W.value.body[r] / s) ? "-" : W.value.body[r] / s * 100]]), v = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [[""], ["val"], ["%"]]].concat(t), l = jt(v);
|
|
354
354
|
a ? a(l) : zt({ csvContent: l, title: e.value.style.chart.title.text || "vue-ui-3d-bar" });
|
|
355
355
|
});
|
|
356
356
|
}
|
|
357
357
|
const ue = A(() => {
|
|
358
|
-
const a = w.value.map((d) => d.value).reduce((d, r) => d + r, 0),
|
|
358
|
+
const a = w.value.map((d) => d.value).reduce((d, r) => d + r, 0), s = [
|
|
359
359
|
' <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>',
|
|
360
|
-
|
|
360
|
+
O({ p: e.value.style.chart.legend.prefix, v: a, s: e.value.style.chart.legend.suffix, r: e.value.table.td.roundingValue }),
|
|
361
361
|
"100%"
|
|
362
|
-
], t =
|
|
363
|
-
const k =
|
|
362
|
+
], t = W.value.head.map((d, r) => {
|
|
363
|
+
const k = O({ p: e.value.style.chart.legend.prefix, v: W.value.body[r], s: e.value.style.chart.legend.suffix, r: e.value.table.td.roundingValue });
|
|
364
364
|
return [
|
|
365
365
|
{
|
|
366
366
|
color: d.color,
|
|
367
367
|
name: d.name
|
|
368
368
|
},
|
|
369
369
|
k,
|
|
370
|
-
isNaN(
|
|
371
|
-
v:
|
|
370
|
+
isNaN(W.value.body[r] / a) ? "-" : O({
|
|
371
|
+
v: W.value.body[r] / a * 100,
|
|
372
372
|
s: "%",
|
|
373
373
|
r: e.value.table.td.roundingPercentage
|
|
374
374
|
})
|
|
@@ -393,34 +393,34 @@ const Xt = ["id"], Zt = ["xmlns", "viewBox"], qt = ["width", "height"], Yt = ["i
|
|
|
393
393
|
e.value.table.columnNames.value,
|
|
394
394
|
e.value.table.columnNames.percentage
|
|
395
395
|
],
|
|
396
|
-
head:
|
|
396
|
+
head: s,
|
|
397
397
|
body: t,
|
|
398
398
|
config: v
|
|
399
399
|
};
|
|
400
400
|
});
|
|
401
401
|
function Ge() {
|
|
402
|
-
|
|
402
|
+
V.value.showTable = !V.value.showTable;
|
|
403
403
|
}
|
|
404
404
|
const ie = _(!1);
|
|
405
|
-
function
|
|
405
|
+
function me() {
|
|
406
406
|
ie.value = !ie.value;
|
|
407
407
|
}
|
|
408
|
-
async function
|
|
408
|
+
async function _t({ scale: a = 2 } = {}) {
|
|
409
409
|
if (!N.value) return;
|
|
410
|
-
const { width:
|
|
410
|
+
const { width: s, height: t } = N.value.getBoundingClientRect(), v = s / t, { imageUri: l, base64: d } = await Ut({ domElement: N.value, base64: !0, img: !0, scale: a });
|
|
411
411
|
return {
|
|
412
412
|
imageUri: l,
|
|
413
413
|
base64: d,
|
|
414
414
|
title: e.value.style.chart.title.text,
|
|
415
|
-
width:
|
|
415
|
+
width: s,
|
|
416
416
|
height: t,
|
|
417
417
|
aspectRatio: v
|
|
418
418
|
};
|
|
419
419
|
}
|
|
420
420
|
const oe = A(() => {
|
|
421
|
-
const a = e.value.table.useDialog && !e.value.table.show,
|
|
421
|
+
const a = e.value.table.useDialog && !e.value.table.show, s = V.value.showTable;
|
|
422
422
|
return {
|
|
423
|
-
component: a ?
|
|
423
|
+
component: a ? pt : dt,
|
|
424
424
|
title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? `: ${e.value.style.chart.title.subtitle.text}` : ""}`,
|
|
425
425
|
props: a ? {
|
|
426
426
|
backgroundColor: e.value.table.th.backgroundColor,
|
|
@@ -433,7 +433,7 @@ const Xt = ["id"], Zt = ["xmlns", "viewBox"], qt = ["width", "height"], Yt = ["i
|
|
|
433
433
|
} : {
|
|
434
434
|
hideDetails: !0,
|
|
435
435
|
config: {
|
|
436
|
-
open:
|
|
436
|
+
open: s,
|
|
437
437
|
maxHeight: 1e4,
|
|
438
438
|
body: {
|
|
439
439
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
@@ -447,33 +447,37 @@ const Xt = ["id"], Zt = ["xmlns", "viewBox"], qt = ["width", "height"], Yt = ["i
|
|
|
447
447
|
}
|
|
448
448
|
};
|
|
449
449
|
});
|
|
450
|
-
|
|
450
|
+
xe(() => V.value.showTable, (a) => {
|
|
451
451
|
e.value.table.show || (a && e.value.table.useDialog && le.value ? le.value.open() : "close" in le.value && le.value.close());
|
|
452
|
-
})
|
|
453
|
-
|
|
454
|
-
|
|
452
|
+
});
|
|
453
|
+
function Ve() {
|
|
454
|
+
V.value.showTable = !1, ye.value && ye.value.setTableIconState(!1);
|
|
455
|
+
}
|
|
456
|
+
return rt({
|
|
457
|
+
getImage: _t,
|
|
458
|
+
generateCsv: _e,
|
|
455
459
|
generatePdf: je,
|
|
456
460
|
generateImage: ze,
|
|
457
|
-
getData:
|
|
461
|
+
getData: $t,
|
|
458
462
|
toggleTable: Ge,
|
|
459
|
-
toggleAnnotator:
|
|
460
|
-
toggleFullscreen:
|
|
461
|
-
}), (a,
|
|
463
|
+
toggleAnnotator: me,
|
|
464
|
+
toggleFullscreen: Re
|
|
465
|
+
}), (a, s) => (u(), c("div", {
|
|
462
466
|
ref_key: "bar3dChart",
|
|
463
467
|
ref: N,
|
|
464
|
-
class:
|
|
465
|
-
style:
|
|
468
|
+
class: qe("vue-ui-3d-bar"),
|
|
469
|
+
style: j(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;background:${e.value.style.chart.backgroundColor}`),
|
|
466
470
|
id: `3d_bar_${F.value}`,
|
|
467
|
-
onMouseenter:
|
|
468
|
-
onMouseleave:
|
|
471
|
+
onMouseenter: s[8] || (s[8] = () => n(Ae)(!0)),
|
|
472
|
+
onMouseleave: s[9] || (s[9] = () => n(Ae)(!1))
|
|
469
473
|
}, [
|
|
470
|
-
e.value.userOptions.buttons.annotator ? (u(), Q(n(
|
|
474
|
+
e.value.userOptions.buttons.annotator ? (u(), Q(n(vt), {
|
|
471
475
|
key: 0,
|
|
472
|
-
svgRef: n(
|
|
476
|
+
svgRef: n(Oe),
|
|
473
477
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
474
478
|
color: e.value.style.chart.color,
|
|
475
479
|
active: ie.value,
|
|
476
|
-
onClose:
|
|
480
|
+
onClose: me
|
|
477
481
|
}, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : p("", !0),
|
|
478
482
|
e.value.style.chart.title.text ? (u(), c("div", {
|
|
479
483
|
key: 1,
|
|
@@ -481,8 +485,8 @@ const Xt = ["id"], Zt = ["xmlns", "viewBox"], qt = ["width", "height"], Yt = ["i
|
|
|
481
485
|
ref: Pe,
|
|
482
486
|
style: "width:100%;background:transparent"
|
|
483
487
|
}, [
|
|
484
|
-
(u(), Q(
|
|
485
|
-
key: `title_${
|
|
488
|
+
(u(), Q(Ht, {
|
|
489
|
+
key: `title_${Fe.value}`,
|
|
486
490
|
config: {
|
|
487
491
|
title: {
|
|
488
492
|
cy: "3dBar-div-title",
|
|
@@ -495,14 +499,14 @@ const Xt = ["id"], Zt = ["xmlns", "viewBox"], qt = ["width", "height"], Yt = ["i
|
|
|
495
499
|
}
|
|
496
500
|
}, null, 8, ["config"]))
|
|
497
501
|
], 512)) : p("", !0),
|
|
498
|
-
e.value.userOptions.show &&
|
|
502
|
+
e.value.userOptions.show && Me.value && (n(Se) || n(ke)) ? (u(), Q(n(ht), {
|
|
499
503
|
key: 2,
|
|
500
|
-
ref_key: "
|
|
501
|
-
ref:
|
|
504
|
+
ref_key: "userOptionsRef",
|
|
505
|
+
ref: ye,
|
|
502
506
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
503
507
|
color: e.value.style.chart.color,
|
|
504
508
|
isPrinting: n(Be),
|
|
505
|
-
isImaging: n(
|
|
509
|
+
isImaging: n(Ie),
|
|
506
510
|
uid: F.value,
|
|
507
511
|
hasPdf: e.value.userOptions.buttons.pdf,
|
|
508
512
|
hasTable: !!x.value && e.value.userOptions.buttons.table,
|
|
@@ -516,87 +520,88 @@ const Xt = ["id"], Zt = ["xmlns", "viewBox"], qt = ["width", "height"], Yt = ["i
|
|
|
516
520
|
isAnnotation: ie.value,
|
|
517
521
|
callbacks: e.value.userOptions.callbacks,
|
|
518
522
|
printScale: e.value.userOptions.print.scale,
|
|
519
|
-
|
|
523
|
+
tableDialog: e.value.table.useDialog,
|
|
524
|
+
onToggleFullscreen: Re,
|
|
520
525
|
onGeneratePdf: n(je),
|
|
521
|
-
onGenerateCsv:
|
|
526
|
+
onGenerateCsv: _e,
|
|
522
527
|
onGenerateImage: n(ze),
|
|
523
528
|
onToggleTable: Ge,
|
|
524
|
-
onToggleAnnotator:
|
|
525
|
-
style:
|
|
526
|
-
visibility: n(
|
|
529
|
+
onToggleAnnotator: me,
|
|
530
|
+
style: j({
|
|
531
|
+
visibility: n(Se) ? n(ke) ? "visible" : "hidden" : "visible"
|
|
527
532
|
})
|
|
528
|
-
},
|
|
533
|
+
}, Ye({ _: 2 }, [
|
|
529
534
|
a.$slots.menuIcon ? {
|
|
530
535
|
name: "menuIcon",
|
|
531
536
|
fn: S(({ isOpen: t, color: v }) => [
|
|
532
|
-
|
|
537
|
+
P(a.$slots, "menuIcon", de(ce({ isOpen: t, color: v })), void 0, !0)
|
|
533
538
|
]),
|
|
534
539
|
key: "0"
|
|
535
540
|
} : void 0,
|
|
536
541
|
a.$slots.optionPdf ? {
|
|
537
542
|
name: "optionPdf",
|
|
538
543
|
fn: S(() => [
|
|
539
|
-
|
|
544
|
+
P(a.$slots, "optionPdf", {}, void 0, !0)
|
|
540
545
|
]),
|
|
541
546
|
key: "1"
|
|
542
547
|
} : void 0,
|
|
543
548
|
a.$slots.optionCsv ? {
|
|
544
549
|
name: "optionCsv",
|
|
545
550
|
fn: S(() => [
|
|
546
|
-
|
|
551
|
+
P(a.$slots, "optionCsv", {}, void 0, !0)
|
|
547
552
|
]),
|
|
548
553
|
key: "2"
|
|
549
554
|
} : void 0,
|
|
550
555
|
a.$slots.optionImg ? {
|
|
551
556
|
name: "optionImg",
|
|
552
557
|
fn: S(() => [
|
|
553
|
-
|
|
558
|
+
P(a.$slots, "optionImg", {}, void 0, !0)
|
|
554
559
|
]),
|
|
555
560
|
key: "3"
|
|
556
561
|
} : void 0,
|
|
557
562
|
a.$slots.optionTable ? {
|
|
558
563
|
name: "optionTable",
|
|
559
564
|
fn: S(() => [
|
|
560
|
-
|
|
565
|
+
P(a.$slots, "optionTable", {}, void 0, !0)
|
|
561
566
|
]),
|
|
562
567
|
key: "4"
|
|
563
568
|
} : void 0,
|
|
564
569
|
a.$slots.optionFullscreen ? {
|
|
565
570
|
name: "optionFullscreen",
|
|
566
571
|
fn: S(({ toggleFullscreen: t, isFullscreen: v }) => [
|
|
567
|
-
|
|
572
|
+
P(a.$slots, "optionFullscreen", de(ce({ toggleFullscreen: t, isFullscreen: v })), void 0, !0)
|
|
568
573
|
]),
|
|
569
574
|
key: "5"
|
|
570
575
|
} : void 0,
|
|
571
576
|
a.$slots.optionAnnotator ? {
|
|
572
577
|
name: "optionAnnotator",
|
|
573
578
|
fn: S(({ toggleAnnotator: t, isAnnotator: v }) => [
|
|
574
|
-
|
|
579
|
+
P(a.$slots, "optionAnnotator", de(ce({ toggleAnnotator: t, isAnnotator: v })), void 0, !0)
|
|
575
580
|
]),
|
|
576
581
|
key: "6"
|
|
577
582
|
} : void 0
|
|
578
|
-
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasTable", "hasXls", "hasImg", "hasFullscreen", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "onGeneratePdf", "onGenerateImage", "style"])) : p("", !0),
|
|
583
|
+
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasTable", "hasXls", "hasImg", "hasFullscreen", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "tableDialog", "onGeneratePdf", "onGenerateImage", "style"])) : p("", !0),
|
|
579
584
|
(u(), c("svg", {
|
|
580
585
|
ref_key: "svgRef",
|
|
581
|
-
ref:
|
|
582
|
-
xmlns: n(
|
|
583
|
-
class:
|
|
584
|
-
viewBox: `0 0 ${
|
|
585
|
-
style:
|
|
586
|
+
ref: Oe,
|
|
587
|
+
xmlns: n(It),
|
|
588
|
+
class: qe({ "vue-data-ui-fullscreen--on": re.value, "vue-data-ui-fulscreen--off": !re.value, animated: e.value.useCssAnimation }),
|
|
589
|
+
viewBox: `0 0 ${o.value.absoluteWidth} ${o.value.height}`,
|
|
590
|
+
style: j(`max-width:100%; overflow: visible; background:transparent;color:${e.value.style.chart.color}`)
|
|
586
591
|
}, [
|
|
587
|
-
|
|
592
|
+
Ke(n(ft)),
|
|
588
593
|
a.$slots["chart-background"] ? (u(), c("foreignObject", {
|
|
589
594
|
key: 0,
|
|
590
595
|
x: 0,
|
|
591
596
|
y: 0,
|
|
592
|
-
width:
|
|
593
|
-
height:
|
|
597
|
+
width: o.value.absoluteWidth,
|
|
598
|
+
height: o.value.height,
|
|
594
599
|
style: {
|
|
595
600
|
pointerEvents: "none"
|
|
596
601
|
}
|
|
597
602
|
}, [
|
|
598
|
-
|
|
599
|
-
], 8,
|
|
603
|
+
P(a.$slots, "chart-background", {}, void 0, !0)
|
|
604
|
+
], 8, Yt)) : p("", !0),
|
|
600
605
|
i("defs", null, [
|
|
601
606
|
i("radialGradient", {
|
|
602
607
|
id: `gradient_top${F.value}`
|
|
@@ -604,48 +609,48 @@ const Xt = ["id"], Zt = ["xmlns", "viewBox"], qt = ["width", "height"], Yt = ["i
|
|
|
604
609
|
i("stop", {
|
|
605
610
|
offset: "0%",
|
|
606
611
|
"stop-color": n($)(e.value.style.chart.backgroundColor, 0)
|
|
607
|
-
}, null, 8,
|
|
612
|
+
}, null, 8, Jt),
|
|
608
613
|
i("stop", {
|
|
609
614
|
offset: "100%",
|
|
610
615
|
"stop-color": e.value.style.chart.bar.color
|
|
611
|
-
}, null, 8,
|
|
612
|
-
], 8,
|
|
616
|
+
}, null, 8, Qt)
|
|
617
|
+
], 8, Kt),
|
|
613
618
|
i("radialGradient", {
|
|
614
619
|
id: `gradient_tube_top${F.value}`
|
|
615
620
|
}, [
|
|
616
621
|
i("stop", {
|
|
617
622
|
offset: "0%",
|
|
618
623
|
"stop-color": n($)(n(R)(e.value.style.chart.bar.color, 0.5), 80)
|
|
619
|
-
}, null, 8,
|
|
624
|
+
}, null, 8, tl),
|
|
620
625
|
i("stop", {
|
|
621
626
|
offset: "100%",
|
|
622
627
|
"stop-color": n($)(n(X)(e.value.style.chart.bar.color, 0.1), 80)
|
|
623
|
-
}, null, 8,
|
|
624
|
-
], 8,
|
|
628
|
+
}, null, 8, ll)
|
|
629
|
+
], 8, el),
|
|
625
630
|
i("radialGradient", {
|
|
626
631
|
id: `gradient_left${F.value}`
|
|
627
632
|
}, [
|
|
628
633
|
i("stop", {
|
|
629
634
|
offset: "0%",
|
|
630
635
|
"stop-color": n($)(e.value.style.chart.backgroundColor, 0)
|
|
631
|
-
}, null, 8,
|
|
636
|
+
}, null, 8, sl),
|
|
632
637
|
i("stop", {
|
|
633
638
|
offset: "100%",
|
|
634
639
|
"stop-color": n($)(e.value.style.chart.bar.color, 20)
|
|
635
|
-
}, null, 8,
|
|
636
|
-
], 8,
|
|
640
|
+
}, null, 8, al)
|
|
641
|
+
], 8, ol),
|
|
637
642
|
i("radialGradient", {
|
|
638
643
|
id: `gradient_right${F.value}`
|
|
639
644
|
}, [
|
|
640
645
|
i("stop", {
|
|
641
646
|
offset: "0%",
|
|
642
647
|
"stop-color": n($)(e.value.style.chart.backgroundColor, 0)
|
|
643
|
-
}, null, 8,
|
|
648
|
+
}, null, 8, rl),
|
|
644
649
|
i("stop", {
|
|
645
650
|
offset: "100%",
|
|
646
651
|
"stop-color": n($)(e.value.style.chart.bar.color, 20)
|
|
647
|
-
}, null, 8,
|
|
648
|
-
], 8,
|
|
652
|
+
}, null, 8, ul)
|
|
653
|
+
], 8, nl),
|
|
649
654
|
i("linearGradient", {
|
|
650
655
|
id: `gradient_tube_body${F.value}`,
|
|
651
656
|
x1: "0%",
|
|
@@ -656,69 +661,69 @@ const Xt = ["id"], Zt = ["xmlns", "viewBox"], qt = ["width", "height"], Yt = ["i
|
|
|
656
661
|
i("stop", {
|
|
657
662
|
offset: "0%",
|
|
658
663
|
"stop-color": `${e.value.style.chart.bar.color}`
|
|
659
|
-
}, null, 8,
|
|
664
|
+
}, null, 8, dl),
|
|
660
665
|
i("stop", {
|
|
661
666
|
offset: "10%",
|
|
662
667
|
"stop-color": n($)(n(X)(e.value.style.chart.bar.color, 0.7), 100)
|
|
663
|
-
}, null, 8,
|
|
668
|
+
}, null, 8, cl),
|
|
664
669
|
i("stop", {
|
|
665
670
|
offset: "25%",
|
|
666
671
|
"stop-color": n($)(n(X)(e.value.style.chart.bar.color, 0.5), 100)
|
|
667
|
-
}, null, 8,
|
|
672
|
+
}, null, 8, vl),
|
|
668
673
|
i("stop", {
|
|
669
674
|
offset: "75%",
|
|
670
675
|
"stop-color": n($)(e.value.style.chart.bar.color, 80)
|
|
671
|
-
}, null, 8,
|
|
676
|
+
}, null, 8, hl),
|
|
672
677
|
i("stop", {
|
|
673
678
|
offset: "100%",
|
|
674
679
|
"stop-color": n($)(n(R)(e.value.style.chart.bar.color, 0.7), 100)
|
|
675
|
-
}, null, 8,
|
|
676
|
-
], 8,
|
|
680
|
+
}, null, 8, fl)
|
|
681
|
+
], 8, il)
|
|
677
682
|
]),
|
|
678
|
-
x.value ? (u(), c("defs",
|
|
683
|
+
x.value ? (u(), c("defs", pl, [
|
|
679
684
|
(u(!0), c(C, null, M(w.value, (t) => (u(), c("radialGradient", {
|
|
680
685
|
id: `grad_top_${t.id}`
|
|
681
686
|
}, [
|
|
682
687
|
i("stop", {
|
|
683
688
|
offset: "0%",
|
|
684
689
|
"stop-color": n($)(n(R)(t.color, 0.5), 80)
|
|
685
|
-
}, null, 8,
|
|
690
|
+
}, null, 8, kl),
|
|
686
691
|
i("stop", {
|
|
687
692
|
offset: "100%",
|
|
688
693
|
"stop-color": t.color
|
|
689
|
-
}, null, 8,
|
|
690
|
-
], 8,
|
|
694
|
+
}, null, 8, gl)
|
|
695
|
+
], 8, yl))), 256)),
|
|
691
696
|
(u(!0), c(C, null, M(w.value, (t) => (u(), c("linearGradient", {
|
|
692
697
|
id: `grad_left_${t.id}`
|
|
693
698
|
}, [
|
|
694
699
|
i("stop", {
|
|
695
700
|
offset: "0%",
|
|
696
701
|
"stop-color": n($)(t.color, 80)
|
|
697
|
-
}, null, 8,
|
|
702
|
+
}, null, 8, _l),
|
|
698
703
|
i("stop", {
|
|
699
704
|
offset: "100%",
|
|
700
705
|
"stop-color": n($)(n(X)(t.color, 0.5), 100)
|
|
701
|
-
}, null, 8,
|
|
702
|
-
], 8,
|
|
706
|
+
}, null, 8, ml)
|
|
707
|
+
], 8, $l))), 256)),
|
|
703
708
|
(u(!0), c(C, null, M(w.value, (t) => (u(), c("linearGradient", {
|
|
704
709
|
id: `grad_right_${t.id}`
|
|
705
710
|
}, [
|
|
706
711
|
i("stop", {
|
|
707
712
|
offset: "2%",
|
|
708
713
|
"stop-color": n($)(n(R)(t.color, 0.5), 100)
|
|
709
|
-
}, null, 8,
|
|
714
|
+
}, null, 8, xl),
|
|
710
715
|
i("stop", {
|
|
711
716
|
offset: "100%",
|
|
712
717
|
"stop-color": n($)(t.color, 80)
|
|
713
|
-
}, null, 8,
|
|
714
|
-
], 8,
|
|
718
|
+
}, null, 8, wl)
|
|
719
|
+
], 8, bl))), 256)),
|
|
715
720
|
i("linearGradient", {
|
|
716
721
|
x1: "0%",
|
|
717
722
|
y1: "0%",
|
|
718
723
|
x2: "0%",
|
|
719
724
|
y2: "100%",
|
|
720
725
|
id: `vertical_line_${F.value}`
|
|
721
|
-
}, [...
|
|
726
|
+
}, [...s[10] || (s[10] = [
|
|
722
727
|
i("stop", {
|
|
723
728
|
offset: "0%",
|
|
724
729
|
"stop-color": "#FFFFFF"
|
|
@@ -727,93 +732,93 @@ const Xt = ["id"], Zt = ["xmlns", "viewBox"], qt = ["width", "height"], Yt = ["i
|
|
|
727
732
|
offset: "100%",
|
|
728
733
|
"stop-color": "#FFFFFF33"
|
|
729
734
|
}, null, -1)
|
|
730
|
-
])], 8,
|
|
735
|
+
])], 8, Cl)
|
|
731
736
|
])) : p("", !0),
|
|
732
737
|
e.value.style.chart.dataLabel.show && ![null, void 0].includes(D.dataset.percentage) && [null, void 0].includes(D.dataset.series) ? (u(), c("text", {
|
|
733
738
|
key: 2,
|
|
734
|
-
x:
|
|
735
|
-
y:
|
|
739
|
+
x: o.value.width / 2,
|
|
740
|
+
y: o.value.top - e.value.style.chart.dataLabel.fontSize / 2,
|
|
736
741
|
"font-size": e.value.style.chart.dataLabel.fontSize,
|
|
737
742
|
"font-weight": e.value.style.chart.dataLabel.bold ? "bold" : "normal",
|
|
738
743
|
fill: e.value.style.chart.dataLabel.color,
|
|
739
744
|
"text-anchor": "middle"
|
|
740
|
-
},
|
|
745
|
+
}, z(n(O)({
|
|
741
746
|
v: q.value,
|
|
742
747
|
s: "%",
|
|
743
748
|
r: e.value.style.chart.dataLabel.rounding
|
|
744
|
-
})), 9,
|
|
745
|
-
|
|
749
|
+
})), 9, Ml)) : p("", !0),
|
|
750
|
+
B.value ? (u(), c("g", {
|
|
746
751
|
key: 3,
|
|
747
752
|
role: "button",
|
|
748
753
|
tabindex: "0",
|
|
749
754
|
"aria-label": "Clear selection",
|
|
750
|
-
onClick:
|
|
751
|
-
|
|
755
|
+
onClick: s[0] || (s[0] = (t) => {
|
|
756
|
+
B.value = !1, m.value = null;
|
|
752
757
|
}),
|
|
753
758
|
onKeydown: [
|
|
754
|
-
|
|
755
|
-
|
|
759
|
+
s[1] || (s[1] = Je(Qe((t) => {
|
|
760
|
+
B.value = !1, m.value = null;
|
|
756
761
|
}, ["prevent"]), ["enter"])),
|
|
757
|
-
|
|
758
|
-
|
|
762
|
+
s[2] || (s[2] = Je(Qe((t) => {
|
|
763
|
+
B.value = !1, m.value = null;
|
|
759
764
|
}, ["prevent"]), ["space"]))
|
|
760
765
|
],
|
|
761
|
-
onFocus:
|
|
762
|
-
onBlur:
|
|
763
|
-
onMouseenter:
|
|
764
|
-
onMouseleave:
|
|
766
|
+
onFocus: s[3] || (s[3] = (t) => te.value = !0),
|
|
767
|
+
onBlur: s[4] || (s[4] = (t) => te.value = !1),
|
|
768
|
+
onMouseenter: s[5] || (s[5] = (t) => te.value = !0),
|
|
769
|
+
onMouseleave: s[6] || (s[6] = (t) => te.value = !1),
|
|
765
770
|
class: "svg-btn",
|
|
766
771
|
"data-dom-to-png-ignore": "",
|
|
767
772
|
style: { cursor: "pointer", outline: "none" }
|
|
768
773
|
}, [
|
|
769
|
-
|
|
774
|
+
s[11] || (s[11] = i("title", null, "Clear selection", -1)),
|
|
770
775
|
i("rect", {
|
|
771
776
|
x: Y.value - 12,
|
|
772
|
-
y:
|
|
777
|
+
y: o.value.top - 24,
|
|
773
778
|
width: 24,
|
|
774
779
|
height: 24,
|
|
775
780
|
fill: "transparent",
|
|
776
781
|
"pointer-events": "all"
|
|
777
|
-
}, null, 8,
|
|
782
|
+
}, null, 8, Fl),
|
|
778
783
|
i("circle", {
|
|
779
784
|
cx: Y.value,
|
|
780
|
-
cy:
|
|
785
|
+
cy: o.value.top - 12,
|
|
781
786
|
r: "10",
|
|
782
787
|
fill: "none",
|
|
783
788
|
stroke: e.value.style.chart.color,
|
|
784
789
|
"stroke-width": "2",
|
|
785
790
|
"vector-effect": "non-scaling-stroke",
|
|
786
791
|
opacity: te.value ? 0.5 : 0
|
|
787
|
-
}, null, 8,
|
|
792
|
+
}, null, 8, Tl),
|
|
788
793
|
i("path", {
|
|
789
|
-
d: `M${Y.value - 6},${
|
|
794
|
+
d: `M${Y.value - 6},${o.value.top - 18} ${Y.value + 6},${o.value.top - 6}`,
|
|
790
795
|
stroke: e.value.style.chart.color,
|
|
791
796
|
"stroke-linecap": "round",
|
|
792
797
|
"stroke-width": "2",
|
|
793
798
|
"vector-effect": "non-scaling-stroke"
|
|
794
799
|
}, null, 8, Pl),
|
|
795
800
|
i("path", {
|
|
796
|
-
d: `M${Y.value + 6},${
|
|
801
|
+
d: `M${Y.value + 6},${o.value.top - 18} ${Y.value - 6},${o.value.top - 6}`,
|
|
797
802
|
stroke: e.value.style.chart.color,
|
|
798
803
|
"stroke-linecap": "round",
|
|
799
804
|
"stroke-width": "2",
|
|
800
805
|
"vector-effect": "non-scaling-stroke"
|
|
801
|
-
}, null, 8,
|
|
806
|
+
}, null, 8, Dl)
|
|
802
807
|
], 32)) : p("", !0),
|
|
803
|
-
!e.value.style.shape || e.value.style.shape === "bar" ? (u(), c("g",
|
|
804
|
-
x.value ? p("", !0) : (u(), c("g",
|
|
808
|
+
!e.value.style.shape || e.value.style.shape === "bar" ? (u(), c("g", Al, [
|
|
809
|
+
x.value ? p("", !0) : (u(), c("g", Sl, [
|
|
805
810
|
i("path", {
|
|
806
811
|
"stroke-dasharray": e.value.style.chart.box.strokeDasharray,
|
|
807
|
-
d:
|
|
812
|
+
d: L.value.right,
|
|
808
813
|
stroke: e.value.style.chart.box.stroke,
|
|
809
814
|
"stroke-width": e.value.style.chart.box.strokeWidth,
|
|
810
815
|
"stroke-linejoin": "round",
|
|
811
816
|
"stroke-linecap": "round",
|
|
812
817
|
fill: "none"
|
|
813
|
-
}, null, 8,
|
|
818
|
+
}, null, 8, Ol),
|
|
814
819
|
i("path", {
|
|
815
820
|
"stroke-dasharray": e.value.style.chart.box.strokeDasharray,
|
|
816
|
-
d:
|
|
821
|
+
d: L.value.left,
|
|
817
822
|
stroke: e.value.style.chart.box.stroke,
|
|
818
823
|
"stroke-width": e.value.style.chart.box.strokeWidth,
|
|
819
824
|
"stroke-linejoin": "round",
|
|
@@ -822,16 +827,16 @@ const Xt = ["id"], Zt = ["xmlns", "viewBox"], qt = ["width", "height"], Yt = ["i
|
|
|
822
827
|
}, null, 8, Bl),
|
|
823
828
|
i("path", {
|
|
824
829
|
"stroke-dasharray": e.value.style.chart.box.strokeDasharray,
|
|
825
|
-
d:
|
|
830
|
+
d: L.value.side,
|
|
826
831
|
stroke: e.value.style.chart.box.stroke,
|
|
827
832
|
"stroke-width": e.value.style.chart.box.strokeWidth,
|
|
828
833
|
"stroke-linejoin": "round",
|
|
829
834
|
"stroke-linecap": "round",
|
|
830
835
|
fill: "none"
|
|
831
|
-
}, null, 8,
|
|
836
|
+
}, null, 8, Il),
|
|
832
837
|
i("path", {
|
|
833
838
|
"stroke-dasharray": e.value.style.chart.box.strokeDasharray,
|
|
834
|
-
d:
|
|
839
|
+
d: L.value.topSides,
|
|
835
840
|
stroke: e.value.style.chart.box.stroke,
|
|
836
841
|
"stroke-width": e.value.style.chart.box.strokeWidth,
|
|
837
842
|
"stroke-linejoin": "round",
|
|
@@ -847,7 +852,7 @@ const Xt = ["id"], Zt = ["xmlns", "viewBox"], qt = ["width", "height"], Yt = ["i
|
|
|
847
852
|
"stroke-linejoin": "round",
|
|
848
853
|
"stroke-linecap": "round",
|
|
849
854
|
fill: `url(#gradient_right${F.value})`
|
|
850
|
-
}, null, 8,
|
|
855
|
+
}, null, 8, Nl),
|
|
851
856
|
i("path", {
|
|
852
857
|
d: K.value.left,
|
|
853
858
|
stroke: e.value.style.chart.bar.stroke,
|
|
@@ -855,7 +860,7 @@ const Xt = ["id"], Zt = ["xmlns", "viewBox"], qt = ["width", "height"], Yt = ["i
|
|
|
855
860
|
"stroke-linejoin": "round",
|
|
856
861
|
"stroke-linecap": "round",
|
|
857
862
|
fill: `url(#gradient_left${F.value})`
|
|
858
|
-
}, null, 8,
|
|
863
|
+
}, null, 8, Ll),
|
|
859
864
|
i("path", {
|
|
860
865
|
d: K.value.top,
|
|
861
866
|
stroke: e.value.style.chart.bar.stroke,
|
|
@@ -863,50 +868,50 @@ const Xt = ["id"], Zt = ["xmlns", "viewBox"], qt = ["width", "height"], Yt = ["i
|
|
|
863
868
|
"stroke-linejoin": "round",
|
|
864
869
|
"stroke-linecap": "round",
|
|
865
870
|
fill: `url(#gradient_top${F.value})`
|
|
866
|
-
}, null, 8,
|
|
871
|
+
}, null, 8, Wl)
|
|
867
872
|
])),
|
|
868
|
-
x.value ? (u(), c("g",
|
|
873
|
+
x.value ? (u(), c("g", El, [
|
|
869
874
|
(u(!0), c(C, null, M(w.value, (t, v) => (u(), c("g", {
|
|
870
|
-
style:
|
|
875
|
+
style: j(`opacity:${m.value ? m.value === t.id ? 1 : 0.3 : 1}`),
|
|
871
876
|
class: "vue-ui-3d-bar-stack"
|
|
872
877
|
}, [
|
|
873
878
|
i("path", {
|
|
874
879
|
d: t.fill.right,
|
|
875
880
|
fill: `url(#grad_right_${t.id})`,
|
|
876
|
-
onMouseenter: (l) =>
|
|
877
|
-
onClick: (l) =>
|
|
881
|
+
onMouseenter: (l) => T(t),
|
|
882
|
+
onClick: (l) => T(t, !0),
|
|
878
883
|
onMouseout: (l) => U(t)
|
|
879
|
-
}, null, 40,
|
|
884
|
+
}, null, 40, Rl),
|
|
880
885
|
i("path", {
|
|
881
886
|
d: t.fill.left,
|
|
882
887
|
fill: `url(#grad_left_${t.id})`,
|
|
883
|
-
onMouseenter: (l) =>
|
|
884
|
-
onClick: (l) =>
|
|
888
|
+
onMouseenter: (l) => T(t),
|
|
889
|
+
onClick: (l) => T(t, !0),
|
|
885
890
|
onMouseout: (l) => U(t)
|
|
886
891
|
}, null, 40, Gl),
|
|
887
892
|
i("path", {
|
|
888
893
|
d: t.fill.top,
|
|
889
894
|
fill: `url(#grad_top_${t.id})`,
|
|
890
|
-
onMouseenter: (l) =>
|
|
891
|
-
onClick: (l) =>
|
|
895
|
+
onMouseenter: (l) => T(t),
|
|
896
|
+
onClick: (l) => T(t, !0),
|
|
892
897
|
onMouseout: (l) => U(t)
|
|
893
|
-
}, null, 40,
|
|
898
|
+
}, null, 40, Vl),
|
|
894
899
|
i("path", {
|
|
895
900
|
d: t.fill.liningTop,
|
|
896
901
|
stroke: "#FFFFFF",
|
|
897
902
|
"stroke-width": "0.5",
|
|
898
903
|
"stroke-linecap": "round",
|
|
899
904
|
fill: "none",
|
|
900
|
-
onMouseenter: (l) =>
|
|
901
|
-
onClick: (l) =>
|
|
905
|
+
onMouseenter: (l) => T(t),
|
|
906
|
+
onClick: (l) => T(t, !0),
|
|
902
907
|
onMouseout: (l) => U(t)
|
|
903
|
-
}, null, 40,
|
|
908
|
+
}, null, 40, Ul),
|
|
904
909
|
i("path", {
|
|
905
910
|
d: `M ${t.fill.apexTop.x},${t.fill.apexTop.y} ${t.fill.apexBottom.x},${t.fill.apexBottom.y}`,
|
|
906
911
|
stroke: "#FFFFFF",
|
|
907
912
|
"stroke-width": "0.5",
|
|
908
913
|
"stroke-linecap": "round"
|
|
909
|
-
}, null, 8,
|
|
914
|
+
}, null, 8, Hl)
|
|
910
915
|
], 4))), 256)),
|
|
911
916
|
(u(!0), c(C, null, M(w.value, (t, v) => (u(), c("g", null, [
|
|
912
917
|
v !== w.value.length - 1 ? (u(), c("path", {
|
|
@@ -917,10 +922,10 @@ const Xt = ["id"], Zt = ["xmlns", "viewBox"], qt = ["width", "height"], Yt = ["i
|
|
|
917
922
|
"stroke-linecap": "round",
|
|
918
923
|
fill: "none",
|
|
919
924
|
style: { "pointer-events": "none" }
|
|
920
|
-
}, null, 8,
|
|
925
|
+
}, null, 8, Xl)) : p("", !0)
|
|
921
926
|
]))), 256)),
|
|
922
927
|
(u(!0), c(C, null, M(w.value, (t, v) => (u(), c("g", {
|
|
923
|
-
style:
|
|
928
|
+
style: j(`opacity:${m.value ? m.value === t.id ? 1 : 0 : t.proportion * 100 > e.value.style.chart.legend.hideUnderPercentage ? 1 : 0}`),
|
|
924
929
|
onClick: (l) => se("selectDatapoint", t)
|
|
925
930
|
}, [
|
|
926
931
|
i("path", {
|
|
@@ -929,7 +934,7 @@ const Xt = ["id"], Zt = ["xmlns", "viewBox"], qt = ["width", "height"], Yt = ["i
|
|
|
929
934
|
"stroke-width": "0.5",
|
|
930
935
|
"stroke-linecap": "round",
|
|
931
936
|
d: `M${t.fill.sidePointer.x},${t.fill.sidePointer.y} ${t.fill.sidePointer.x2},${t.fill.sidePointer.y}`
|
|
932
|
-
}, null, 8,
|
|
937
|
+
}, null, 8, ql),
|
|
933
938
|
!t.fill.miniDonut || m.value ? (u(), c("circle", {
|
|
934
939
|
key: 0,
|
|
935
940
|
cx: t.fill.sidePointer.x2,
|
|
@@ -937,31 +942,31 @@ const Xt = ["id"], Zt = ["xmlns", "viewBox"], qt = ["width", "height"], Yt = ["i
|
|
|
937
942
|
r: 2,
|
|
938
943
|
fill: t.color,
|
|
939
944
|
stroke: e.value.style.chart.backgroundColor
|
|
940
|
-
}, null, 8,
|
|
945
|
+
}, null, 8, Yl)) : p("", !0),
|
|
941
946
|
n(Z) ? (u(), c("rect", {
|
|
942
947
|
key: 1,
|
|
943
948
|
x: t.fill.sidePointer.xText,
|
|
944
949
|
y: t.fill.sidePointer.y - e.value.style.chart.legend.fontSize / 2,
|
|
945
|
-
width:
|
|
950
|
+
width: o.value.width / 3,
|
|
946
951
|
height: e.value.style.chart.legend.fontSize,
|
|
947
952
|
fill: "#6A6A6A80",
|
|
948
953
|
rx: "3"
|
|
949
|
-
}, null, 8,
|
|
954
|
+
}, null, 8, Kl)) : p("", !0),
|
|
950
955
|
n(Z) ? p("", !0) : (u(), c("foreignObject", {
|
|
951
956
|
key: 2,
|
|
952
957
|
x: t.fill.sidePointer.xText,
|
|
953
958
|
y: t.fill.sidePointer.y - e.value.style.chart.legend.fontSize,
|
|
954
|
-
width:
|
|
959
|
+
width: o.value.absoluteWidth / 3,
|
|
955
960
|
height: e.value.style.chart.legend.fontSize * 2,
|
|
956
961
|
style: { overflow: "visible", position: "relative" }
|
|
957
962
|
}, [
|
|
958
963
|
e.value.style.chart.legend.showDefault ? (u(), c("div", {
|
|
959
964
|
key: 0,
|
|
960
|
-
style:
|
|
961
|
-
},
|
|
965
|
+
style: j(`height: 100%; width: 100%; display: flex; flex-direction: row; flex-wrap: wrap; align-items:center;justify-content: flex-start; font-size:${e.value.style.chart.legend.fontSize}px; text-align:left; line-height: ${e.value.style.chart.legend.fontSize}px; color:${e.value.style.chart.legend.color}`)
|
|
966
|
+
}, z(n(fe)(
|
|
962
967
|
e.value.style.chart.dataLabel.formatter,
|
|
963
968
|
t.value,
|
|
964
|
-
`${t.name}: ${n(
|
|
969
|
+
`${t.name}: ${n(O)({ v: t.proportion * 100, s: "%", r: e.value.style.chart.legend.roundingPercentage })} (${n(O)({
|
|
965
970
|
p: e.value.style.chart.legend.prefix,
|
|
966
971
|
v: t.value,
|
|
967
972
|
s: e.value.style.chart.legend.suffix,
|
|
@@ -969,20 +974,20 @@ const Xt = ["id"], Zt = ["xmlns", "viewBox"], qt = ["width", "height"], Yt = ["i
|
|
|
969
974
|
})})`,
|
|
970
975
|
{ datapoint: t, seriesIndex: v, type: "barDatapoint" }
|
|
971
976
|
)), 5)) : p("", !0),
|
|
972
|
-
|
|
973
|
-
], 8,
|
|
974
|
-
t.fill.donut && m.value === t.id ? (u(), c("g",
|
|
977
|
+
P(a.$slots, "legend", we({ ref_for: !0 }, { datapoint: t, config: e.value, dataset: w.value }), void 0, !0)
|
|
978
|
+
], 8, Jl)),
|
|
979
|
+
t.fill.donut && m.value === t.id ? (u(), c("g", Ql, [
|
|
975
980
|
(u(!0), c(C, null, M(t.fill.donut, (l, d) => (u(), c("g", null, [
|
|
976
981
|
J(l, t.fill.donut, !0) > 6 ? (u(), c("path", {
|
|
977
982
|
key: 0,
|
|
978
|
-
d: n(
|
|
983
|
+
d: n(st)(l, { x: l.cx, y: l.cy }, 0, 8, !1, !0, 10),
|
|
979
984
|
stroke: l.color,
|
|
980
985
|
class: "vue-ui-donut-arc-path",
|
|
981
986
|
"stroke-width": "0.5",
|
|
982
987
|
"stroke-linecap": "round",
|
|
983
988
|
"stroke-linejoin": "round",
|
|
984
989
|
fill: "none"
|
|
985
|
-
}, null, 8,
|
|
990
|
+
}, null, 8, eo)) : p("", !0)
|
|
986
991
|
]))), 256)),
|
|
987
992
|
(u(!0), c(C, null, M(t.fill.donut, (l, d) => (u(), c("path", {
|
|
988
993
|
class: "vue-ui-donut-arc-path",
|
|
@@ -990,86 +995,86 @@ const Xt = ["id"], Zt = ["xmlns", "viewBox"], qt = ["width", "height"], Yt = ["i
|
|
|
990
995
|
fill: `${l.color}`,
|
|
991
996
|
stroke: e.value.style.chart.backgroundColor,
|
|
992
997
|
"stroke-width": 1
|
|
993
|
-
}, null, 8,
|
|
998
|
+
}, null, 8, to))), 256)),
|
|
994
999
|
(u(!0), c(C, null, M(t.fill.donut, (l, d) => (u(), c("g", null, [
|
|
995
|
-
J(l, t.fill.donut, !0) > 6 ? (u(), c("g",
|
|
1000
|
+
J(l, t.fill.donut, !0) > 6 ? (u(), c("g", lo, [
|
|
996
1001
|
i("text", {
|
|
997
|
-
"text-anchor": n(
|
|
998
|
-
x: n(
|
|
1002
|
+
"text-anchor": n(G)(l, !0, 0).anchor,
|
|
1003
|
+
x: n(G)(l, !0, 2).x,
|
|
999
1004
|
y: n(pe)(l, 12, 12),
|
|
1000
1005
|
fill: e.value.style.chart.legend.color,
|
|
1001
1006
|
"font-size": e.value.style.chart.legend.fontSize / 1.5
|
|
1002
|
-
},
|
|
1007
|
+
}, z(n(fe)(
|
|
1003
1008
|
e.value.style.chart.dataLabel.formatter,
|
|
1004
1009
|
l.value,
|
|
1005
|
-
`${J(l, t.fill.donut)} (${n(
|
|
1010
|
+
`${J(l, t.fill.donut)} (${n(O)({
|
|
1006
1011
|
p: e.value.style.chart.legend.prefix,
|
|
1007
1012
|
v: l.value,
|
|
1008
1013
|
s: e.value.style.chart.legend.suffix,
|
|
1009
1014
|
r: e.value.style.chart.legend.roundingValue
|
|
1010
1015
|
})})`,
|
|
1011
1016
|
{ datapoint: l, seriesIndex: d, type: "donutDatapoint" }
|
|
1012
|
-
)), 9,
|
|
1017
|
+
)), 9, oo),
|
|
1013
1018
|
i("text", {
|
|
1014
|
-
"text-anchor": n(
|
|
1015
|
-
x: n(
|
|
1019
|
+
"text-anchor": n(G)(l).anchor,
|
|
1020
|
+
x: n(G)(l, !0, 2).x,
|
|
1016
1021
|
y: n(pe)(l, 12, 12) + e.value.style.chart.legend.fontSize / 1.5,
|
|
1017
1022
|
fill: e.value.style.chart.legend.color,
|
|
1018
1023
|
"font-size": e.value.style.chart.legend.fontSize / 1.5
|
|
1019
|
-
},
|
|
1024
|
+
}, z(l.name), 9, so)
|
|
1020
1025
|
])) : p("", !0)
|
|
1021
1026
|
]))), 256))
|
|
1022
1027
|
])) : p("", !0),
|
|
1023
|
-
t.fill.miniDonut && !m.value ? (u(), c("g",
|
|
1028
|
+
t.fill.miniDonut && !m.value ? (u(), c("g", ao, [
|
|
1024
1029
|
(u(!0), c(C, null, M(t.fill.miniDonut, (l, d) => (u(), c("path", {
|
|
1025
1030
|
class: "vue-ui-donut-arc-path",
|
|
1026
1031
|
d: l.arcSlice,
|
|
1027
1032
|
fill: `${l.color}`,
|
|
1028
1033
|
stroke: e.value.style.chart.backgroundColor,
|
|
1029
1034
|
"stroke-width": 0.5
|
|
1030
|
-
}, null, 8,
|
|
1035
|
+
}, null, 8, no))), 256))
|
|
1031
1036
|
])) : p("", !0)
|
|
1032
|
-
], 12,
|
|
1037
|
+
], 12, Zl))), 256))
|
|
1033
1038
|
])) : p("", !0)
|
|
1034
1039
|
])) : p("", !0),
|
|
1035
|
-
e.value.style.shape === "tube" ? (u(), c("g",
|
|
1036
|
-
x.value ? p("", !0) : (u(), c("g",
|
|
1040
|
+
e.value.style.shape === "tube" ? (u(), c("g", ro, [
|
|
1041
|
+
x.value ? p("", !0) : (u(), c("g", uo, [
|
|
1037
1042
|
i("path", {
|
|
1038
1043
|
"stroke-dasharray": e.value.style.chart.box.strokeDasharray,
|
|
1039
|
-
d:
|
|
1044
|
+
d: L.value.tubeTop,
|
|
1040
1045
|
stroke: e.value.style.chart.box.stroke,
|
|
1041
1046
|
"stroke-width": e.value.style.chart.box.strokeWidth,
|
|
1042
1047
|
"stroke-linejoin": "round",
|
|
1043
1048
|
"stroke-linecap": "round",
|
|
1044
1049
|
fill: "none"
|
|
1045
|
-
}, null, 8,
|
|
1050
|
+
}, null, 8, io),
|
|
1046
1051
|
i("path", {
|
|
1047
1052
|
"stroke-dasharray": e.value.style.chart.box.strokeDasharray,
|
|
1048
|
-
d:
|
|
1053
|
+
d: L.value.tubeLeft,
|
|
1049
1054
|
stroke: e.value.style.chart.box.stroke,
|
|
1050
1055
|
"stroke-width": e.value.style.chart.box.strokeWidth,
|
|
1051
1056
|
"stroke-linejoin": "round",
|
|
1052
1057
|
"stroke-linecap": "round",
|
|
1053
1058
|
fill: "none"
|
|
1054
|
-
}, null, 8,
|
|
1059
|
+
}, null, 8, co),
|
|
1055
1060
|
i("path", {
|
|
1056
1061
|
"stroke-dasharray": e.value.style.chart.box.strokeDasharray,
|
|
1057
|
-
d:
|
|
1062
|
+
d: L.value.tubeRight,
|
|
1058
1063
|
stroke: e.value.style.chart.box.stroke,
|
|
1059
1064
|
"stroke-width": e.value.style.chart.box.strokeWidth,
|
|
1060
1065
|
"stroke-linejoin": "round",
|
|
1061
1066
|
"stroke-linecap": "round",
|
|
1062
1067
|
fill: "none"
|
|
1063
|
-
}, null, 8,
|
|
1068
|
+
}, null, 8, vo),
|
|
1064
1069
|
i("path", {
|
|
1065
1070
|
"stroke-dasharray": e.value.style.chart.box.strokeDasharray,
|
|
1066
|
-
d:
|
|
1071
|
+
d: L.value.tubeBottom,
|
|
1067
1072
|
stroke: e.value.style.chart.box.stroke,
|
|
1068
1073
|
"stroke-width": e.value.style.chart.box.strokeWidth,
|
|
1069
1074
|
"stroke-linejoin": "round",
|
|
1070
1075
|
"stroke-linecap": "round",
|
|
1071
1076
|
fill: "none"
|
|
1072
|
-
}, null, 8,
|
|
1077
|
+
}, null, 8, ho),
|
|
1073
1078
|
i("path", {
|
|
1074
1079
|
d: K.value.tubeTop,
|
|
1075
1080
|
stroke: e.value.style.chart.bar.stroke,
|
|
@@ -1077,7 +1082,7 @@ const Xt = ["id"], Zt = ["xmlns", "viewBox"], qt = ["width", "height"], Yt = ["i
|
|
|
1077
1082
|
"stroke-linejoin": "round",
|
|
1078
1083
|
"stroke-linecap": "round",
|
|
1079
1084
|
fill: `url(#gradient_tube_top${F.value})`
|
|
1080
|
-
}, null, 8,
|
|
1085
|
+
}, null, 8, fo),
|
|
1081
1086
|
i("path", {
|
|
1082
1087
|
d: K.value.tubeBody,
|
|
1083
1088
|
stroke: e.value.style.chart.bar.stroke,
|
|
@@ -1085,7 +1090,7 @@ const Xt = ["id"], Zt = ["xmlns", "viewBox"], qt = ["width", "height"], Yt = ["i
|
|
|
1085
1090
|
"stroke-linejoin": "round",
|
|
1086
1091
|
"stroke-linecap": "round",
|
|
1087
1092
|
fill: `url(#gradient_tube_body${F.value})`
|
|
1088
|
-
}, null, 8,
|
|
1093
|
+
}, null, 8, po),
|
|
1089
1094
|
i("path", {
|
|
1090
1095
|
d: K.value.tubeTop,
|
|
1091
1096
|
stroke: "#FFFFFF",
|
|
@@ -1093,11 +1098,11 @@ const Xt = ["id"], Zt = ["xmlns", "viewBox"], qt = ["width", "height"], Yt = ["i
|
|
|
1093
1098
|
"stroke-linejoin": "round",
|
|
1094
1099
|
"stroke-linecap": "round",
|
|
1095
1100
|
fill: "none"
|
|
1096
|
-
}, null, 8,
|
|
1101
|
+
}, null, 8, yo)
|
|
1097
1102
|
])),
|
|
1098
|
-
x.value ? (u(), c("g",
|
|
1103
|
+
x.value ? (u(), c("g", ko, [
|
|
1099
1104
|
(u(!0), c(C, null, M(w.value, (t, v) => (u(), c("g", {
|
|
1100
|
-
style:
|
|
1105
|
+
style: j(`opacity:${m.value ? m.value === t.id ? 1 : 0.3 : 1}`),
|
|
1101
1106
|
class: "vue-ui-3d-bar-stack",
|
|
1102
1107
|
onClick: (l) => se("selectDatapoint", t)
|
|
1103
1108
|
}, [
|
|
@@ -1110,12 +1115,12 @@ const Xt = ["id"], Zt = ["xmlns", "viewBox"], qt = ["width", "height"], Yt = ["i
|
|
|
1110
1115
|
i("stop", {
|
|
1111
1116
|
offset: "0%",
|
|
1112
1117
|
"stop-color": n($)(n(R)(t.color, 0.5), 80)
|
|
1113
|
-
}, null, 8,
|
|
1118
|
+
}, null, 8, _o),
|
|
1114
1119
|
i("stop", {
|
|
1115
1120
|
offset: "100%",
|
|
1116
1121
|
"stop-color": n($)(n(X)(t.color, 0.1), 80)
|
|
1117
|
-
}, null, 8,
|
|
1118
|
-
], 8,
|
|
1122
|
+
}, null, 8, mo)
|
|
1123
|
+
], 8, $o),
|
|
1119
1124
|
i("linearGradient", {
|
|
1120
1125
|
id: `gradient_tube_body_${t.id}`,
|
|
1121
1126
|
x1: "0%",
|
|
@@ -1126,28 +1131,28 @@ const Xt = ["id"], Zt = ["xmlns", "viewBox"], qt = ["width", "height"], Yt = ["i
|
|
|
1126
1131
|
i("stop", {
|
|
1127
1132
|
offset: "0%",
|
|
1128
1133
|
"stop-color": `${t.color}`
|
|
1129
|
-
}, null, 8,
|
|
1134
|
+
}, null, 8, xo),
|
|
1130
1135
|
i("stop", {
|
|
1131
1136
|
offset: "10%",
|
|
1132
1137
|
"stop-color": n($)(n(X)(t.color, 0.7), 100)
|
|
1133
|
-
}, null, 8,
|
|
1138
|
+
}, null, 8, wo),
|
|
1134
1139
|
i("stop", {
|
|
1135
1140
|
offset: "25%",
|
|
1136
1141
|
"stop-color": n($)(n(X)(t.color, 0.5), 100)
|
|
1137
|
-
}, null, 8,
|
|
1142
|
+
}, null, 8, Co),
|
|
1138
1143
|
i("stop", {
|
|
1139
1144
|
offset: "75%",
|
|
1140
1145
|
"stop-color": n($)(t.color, 80)
|
|
1141
|
-
}, null, 8,
|
|
1146
|
+
}, null, 8, Mo),
|
|
1142
1147
|
i("stop", {
|
|
1143
1148
|
offset: "100%",
|
|
1144
1149
|
"stop-color": n($)(n(R)(t.color, 0.7), 100)
|
|
1145
|
-
}, null, 8,
|
|
1146
|
-
], 8,
|
|
1150
|
+
}, null, 8, Fo)
|
|
1151
|
+
], 8, bo)
|
|
1147
1152
|
]),
|
|
1148
1153
|
i("path", {
|
|
1149
|
-
onMouseenter: (l) =>
|
|
1150
|
-
onClick: (l) =>
|
|
1154
|
+
onMouseenter: (l) => T(t),
|
|
1155
|
+
onClick: (l) => T(t, !0),
|
|
1151
1156
|
onMouseout: (l) => U(t),
|
|
1152
1157
|
d: t.fill.tubeBody,
|
|
1153
1158
|
stroke: "#FFFFFF",
|
|
@@ -1155,11 +1160,11 @@ const Xt = ["id"], Zt = ["xmlns", "viewBox"], qt = ["width", "height"], Yt = ["i
|
|
|
1155
1160
|
"stroke-linejoin": "round",
|
|
1156
1161
|
"stroke-linecap": "round",
|
|
1157
1162
|
fill: `url(#gradient_tube_body_${t.id})`
|
|
1158
|
-
}, null, 40,
|
|
1163
|
+
}, null, 40, To),
|
|
1159
1164
|
v > 0 ? (u(), c("path", {
|
|
1160
1165
|
key: 0,
|
|
1161
|
-
onMouseenter: (l) =>
|
|
1162
|
-
onClick: (l) =>
|
|
1166
|
+
onMouseenter: (l) => T(t),
|
|
1167
|
+
onClick: (l) => T(t, !0),
|
|
1163
1168
|
onMouseout: (l) => U(t),
|
|
1164
1169
|
d: t.fill.bottomTubeTop,
|
|
1165
1170
|
stroke: "#000000",
|
|
@@ -1169,8 +1174,8 @@ const Xt = ["id"], Zt = ["xmlns", "viewBox"], qt = ["width", "height"], Yt = ["i
|
|
|
1169
1174
|
fill: "none"
|
|
1170
1175
|
}, null, 40, Po)) : p("", !0),
|
|
1171
1176
|
i("path", {
|
|
1172
|
-
onMouseenter: (l) =>
|
|
1173
|
-
onClick: (l) =>
|
|
1177
|
+
onMouseenter: (l) => T(t),
|
|
1178
|
+
onClick: (l) => T(t, !0),
|
|
1174
1179
|
onMouseout: (l) => U(t),
|
|
1175
1180
|
d: t.fill.tubeTop,
|
|
1176
1181
|
stroke: "#FFFFFF",
|
|
@@ -1178,10 +1183,10 @@ const Xt = ["id"], Zt = ["xmlns", "viewBox"], qt = ["width", "height"], Yt = ["i
|
|
|
1178
1183
|
"stroke-linejoin": "round",
|
|
1179
1184
|
"stroke-linecap": "round",
|
|
1180
1185
|
fill: `url(#gradient_tube_top_${t.id})`
|
|
1181
|
-
}, null, 40,
|
|
1182
|
-
], 12,
|
|
1186
|
+
}, null, 40, Do)
|
|
1187
|
+
], 12, go))), 256)),
|
|
1183
1188
|
(u(!0), c(C, null, M(w.value, (t, v) => (u(), c("g", {
|
|
1184
|
-
style:
|
|
1189
|
+
style: j(`opacity:${m.value ? m.value === t.id ? 1 : 0 : t.proportion * 100 > e.value.style.chart.legend.hideUnderPercentage ? 1 : 0}`),
|
|
1185
1190
|
onClick: (l) => se("selectDatapoint", t)
|
|
1186
1191
|
}, [
|
|
1187
1192
|
i("path", {
|
|
@@ -1190,7 +1195,7 @@ const Xt = ["id"], Zt = ["xmlns", "viewBox"], qt = ["width", "height"], Yt = ["i
|
|
|
1190
1195
|
"stroke-width": "0.5",
|
|
1191
1196
|
"stroke-linecap": "round",
|
|
1192
1197
|
d: `M${t.fill.sidePointer.x},${t.fill.sidePointer.y} ${t.fill.sidePointer.x2},${t.fill.sidePointer.y}`
|
|
1193
|
-
}, null, 8,
|
|
1198
|
+
}, null, 8, So),
|
|
1194
1199
|
!t.fill.miniDonut || m.value ? (u(), c("circle", {
|
|
1195
1200
|
key: 0,
|
|
1196
1201
|
cx: t.fill.sidePointer.x2,
|
|
@@ -1198,12 +1203,12 @@ const Xt = ["id"], Zt = ["xmlns", "viewBox"], qt = ["width", "height"], Yt = ["i
|
|
|
1198
1203
|
r: 2,
|
|
1199
1204
|
fill: t.color,
|
|
1200
1205
|
stroke: e.value.style.chart.backgroundColor
|
|
1201
|
-
}, null, 8,
|
|
1206
|
+
}, null, 8, Oo)) : p("", !0),
|
|
1202
1207
|
n(Z) ? (u(), c("rect", {
|
|
1203
1208
|
key: 1,
|
|
1204
1209
|
x: t.fill.sidePointer.xText,
|
|
1205
1210
|
y: t.fill.sidePointer.y - e.value.style.chart.legend.fontSize / 2,
|
|
1206
|
-
width:
|
|
1211
|
+
width: o.value.width / 3,
|
|
1207
1212
|
height: e.value.style.chart.legend.fontSize,
|
|
1208
1213
|
fill: "#6A6A6A80",
|
|
1209
1214
|
rx: "3"
|
|
@@ -1212,17 +1217,17 @@ const Xt = ["id"], Zt = ["xmlns", "viewBox"], qt = ["width", "height"], Yt = ["i
|
|
|
1212
1217
|
key: 2,
|
|
1213
1218
|
x: t.fill.sidePointer.xText,
|
|
1214
1219
|
y: t.fill.sidePointer.y - e.value.style.chart.legend.fontSize,
|
|
1215
|
-
width:
|
|
1220
|
+
width: o.value.absoluteWidth / 3,
|
|
1216
1221
|
height: e.value.style.chart.legend.fontSize * 2,
|
|
1217
1222
|
style: { overflow: "visible", position: "relative" }
|
|
1218
1223
|
}, [
|
|
1219
1224
|
e.value.style.chart.legend.showDefault ? (u(), c("div", {
|
|
1220
1225
|
key: 0,
|
|
1221
|
-
style:
|
|
1222
|
-
},
|
|
1226
|
+
style: j(`height: 100%; width: 100%; display: flex; flex-direction: row; flex-wrap: wrap; align-items:center;justify-content: flex-start; font-size:${e.value.style.chart.legend.fontSize}px; text-align:left; line-height: ${e.value.style.chart.legend.fontSize}px; color:${e.value.style.chart.legend.color}`)
|
|
1227
|
+
}, z(n(fe)(
|
|
1223
1228
|
e.value.style.chart.dataLabel.formatter,
|
|
1224
1229
|
t.value,
|
|
1225
|
-
`${t.name}: ${n(
|
|
1230
|
+
`${t.name}: ${n(O)({ v: t.proportion * 100, s: "%", r: e.value.style.chart.legend.roundingPercentage })} (${n(O)({
|
|
1226
1231
|
p: e.value.style.chart.legend.prefix,
|
|
1227
1232
|
v: t.value,
|
|
1228
1233
|
s: e.value.style.chart.legend.suffix,
|
|
@@ -1230,13 +1235,13 @@ const Xt = ["id"], Zt = ["xmlns", "viewBox"], qt = ["width", "height"], Yt = ["i
|
|
|
1230
1235
|
})})`,
|
|
1231
1236
|
{ datapoint: t, seriesIndex: v, type: "barDatapoint" }
|
|
1232
1237
|
)), 5)) : p("", !0),
|
|
1233
|
-
|
|
1234
|
-
], 8,
|
|
1238
|
+
P(a.$slots, "legend", we({ ref_for: !0 }, { datapoint: t, config: e.value, dataset: w.value }), void 0, !0)
|
|
1239
|
+
], 8, Io)),
|
|
1235
1240
|
t.fill.donut && m.value === t.id ? (u(), c("g", jo, [
|
|
1236
1241
|
(u(!0), c(C, null, M(t.fill.donut, (l, d) => (u(), c("g", null, [
|
|
1237
1242
|
J(l, t.fill.donut, !0) > 6 ? (u(), c("path", {
|
|
1238
1243
|
key: 0,
|
|
1239
|
-
d: n(
|
|
1244
|
+
d: n(st)(l, { x: l.cx, y: l.cy }, 0, 8, !1, !0, 10),
|
|
1240
1245
|
stroke: l.color,
|
|
1241
1246
|
class: "vue-ui-donut-arc-path",
|
|
1242
1247
|
"stroke-width": "0.5",
|
|
@@ -1251,37 +1256,37 @@ const Xt = ["id"], Zt = ["xmlns", "viewBox"], qt = ["width", "height"], Yt = ["i
|
|
|
1251
1256
|
fill: `${l.color}`,
|
|
1252
1257
|
stroke: e.value.style.chart.backgroundColor,
|
|
1253
1258
|
"stroke-width": 1
|
|
1254
|
-
}, null, 8,
|
|
1259
|
+
}, null, 8, No))), 256)),
|
|
1255
1260
|
(u(!0), c(C, null, M(t.fill.donut, (l, d) => (u(), c("g", null, [
|
|
1256
|
-
J(l, t.fill.donut, !0) > 6 ? (u(), c("g",
|
|
1261
|
+
J(l, t.fill.donut, !0) > 6 ? (u(), c("g", Lo, [
|
|
1257
1262
|
i("text", {
|
|
1258
|
-
"text-anchor": n(
|
|
1259
|
-
x: n(
|
|
1263
|
+
"text-anchor": n(G)(l, !0, 0).anchor,
|
|
1264
|
+
x: n(G)(l, !0, 2).x,
|
|
1260
1265
|
y: n(pe)(l, 12, 12),
|
|
1261
1266
|
fill: e.value.style.chart.legend.color,
|
|
1262
1267
|
"font-size": e.value.style.chart.legend.fontSize / 1.5
|
|
1263
|
-
},
|
|
1268
|
+
}, z(n(fe)(
|
|
1264
1269
|
e.value.style.chart.dataLabel.formatter,
|
|
1265
1270
|
l.value,
|
|
1266
|
-
`${J(l, t.fill.donut)} (${n(
|
|
1271
|
+
`${J(l, t.fill.donut)} (${n(O)({
|
|
1267
1272
|
p: e.value.style.chart.legend.prefix,
|
|
1268
1273
|
v: l.value,
|
|
1269
1274
|
s: e.value.style.chart.legend.suffix,
|
|
1270
1275
|
r: e.value.style.chart.legend.roundingValue
|
|
1271
1276
|
})})`,
|
|
1272
1277
|
{ datapoint: l, seriesIndex: d, type: "donutDatapoint" }
|
|
1273
|
-
)), 9,
|
|
1278
|
+
)), 9, Wo),
|
|
1274
1279
|
i("text", {
|
|
1275
|
-
"text-anchor": n(
|
|
1276
|
-
x: n(
|
|
1280
|
+
"text-anchor": n(G)(l).anchor,
|
|
1281
|
+
x: n(G)(l, !0, 2).x,
|
|
1277
1282
|
y: n(pe)(l, 12, 12) + e.value.style.chart.legend.fontSize / 1.5,
|
|
1278
1283
|
fill: e.value.style.chart.legend.color,
|
|
1279
1284
|
"font-size": e.value.style.chart.legend.fontSize / 1.5
|
|
1280
|
-
},
|
|
1285
|
+
}, z(l.name), 9, Eo)
|
|
1281
1286
|
])) : p("", !0)
|
|
1282
1287
|
]))), 256))
|
|
1283
1288
|
])) : p("", !0),
|
|
1284
|
-
t.fill.miniDonut && !m.value ? (u(), c("g",
|
|
1289
|
+
t.fill.miniDonut && !m.value ? (u(), c("g", Ro, [
|
|
1285
1290
|
(u(!0), c(C, null, M(t.fill.miniDonut, (l, d) => (u(), c("path", {
|
|
1286
1291
|
class: "vue-ui-donut-arc-path",
|
|
1287
1292
|
d: l.arcSlice,
|
|
@@ -1290,46 +1295,46 @@ const Xt = ["id"], Zt = ["xmlns", "viewBox"], qt = ["width", "height"], Yt = ["i
|
|
|
1290
1295
|
"stroke-width": 0.5
|
|
1291
1296
|
}, null, 8, Go))), 256))
|
|
1292
1297
|
])) : p("", !0)
|
|
1293
|
-
], 12,
|
|
1298
|
+
], 12, Ao))), 256))
|
|
1294
1299
|
])) : p("", !0)
|
|
1295
1300
|
])) : p("", !0),
|
|
1296
|
-
|
|
1297
|
-
], 14,
|
|
1298
|
-
a.$slots.watermark ? (u(), c("div",
|
|
1299
|
-
|
|
1301
|
+
P(a.$slots, "svg", { svg: o.value }, void 0, !0)
|
|
1302
|
+
], 14, qt)),
|
|
1303
|
+
a.$slots.watermark ? (u(), c("div", Vo, [
|
|
1304
|
+
P(a.$slots, "watermark", de(ce({ isPrinting: n(Be) || n(Ie) })), void 0, !0)
|
|
1300
1305
|
])) : p("", !0),
|
|
1301
1306
|
a.$slots.source ? (u(), c("div", {
|
|
1302
1307
|
key: 4,
|
|
1303
1308
|
ref_key: "source",
|
|
1304
|
-
ref:
|
|
1309
|
+
ref: De,
|
|
1305
1310
|
dir: "auto"
|
|
1306
1311
|
}, [
|
|
1307
|
-
|
|
1312
|
+
P(a.$slots, "source", {}, void 0, !0)
|
|
1308
1313
|
], 512)) : p("", !0),
|
|
1309
|
-
|
|
1314
|
+
Me.value && x.value ? (u(), Q(Mt(oe.value.component), we({ key: 5 }, oe.value.props, {
|
|
1310
1315
|
ref_key: "tableUnit",
|
|
1311
1316
|
ref: le,
|
|
1312
|
-
onClose:
|
|
1313
|
-
}),
|
|
1317
|
+
onClose: Ve
|
|
1318
|
+
}), Ye({
|
|
1314
1319
|
content: S(() => [
|
|
1315
|
-
(u(), Q(n(
|
|
1316
|
-
key: `table_${
|
|
1320
|
+
(u(), Q(n(ct), {
|
|
1321
|
+
key: `table_${Te.value}`,
|
|
1317
1322
|
colNames: ue.value.colNames,
|
|
1318
1323
|
head: ue.value.head,
|
|
1319
1324
|
body: ue.value.body,
|
|
1320
1325
|
config: ue.value.config,
|
|
1321
1326
|
title: e.value.table.useDialog ? "" : oe.value.title,
|
|
1322
1327
|
withCloseButton: !e.value.table.useDialog,
|
|
1323
|
-
onClose:
|
|
1328
|
+
onClose: Ve
|
|
1324
1329
|
}, {
|
|
1325
1330
|
th: S(({ th: t }) => [
|
|
1326
1331
|
i("div", {
|
|
1327
1332
|
innerHTML: t,
|
|
1328
1333
|
style: { display: "flex", "align-items": "center" }
|
|
1329
|
-
}, null, 8,
|
|
1334
|
+
}, null, 8, Uo)
|
|
1330
1335
|
]),
|
|
1331
1336
|
td: S(({ td: t }) => [
|
|
1332
|
-
|
|
1337
|
+
et(z(t.name || t), 1)
|
|
1333
1338
|
]),
|
|
1334
1339
|
_: 1
|
|
1335
1340
|
}, 8, ["colNames", "head", "body", "config", "title", "withCloseButton"]))
|
|
@@ -1339,7 +1344,7 @@ const Xt = ["id"], Zt = ["xmlns", "viewBox"], qt = ["width", "height"], Yt = ["i
|
|
|
1339
1344
|
e.value.table.useDialog ? {
|
|
1340
1345
|
name: "title",
|
|
1341
1346
|
fn: S(() => [
|
|
1342
|
-
|
|
1347
|
+
et(z(oe.value.title), 1)
|
|
1343
1348
|
]),
|
|
1344
1349
|
key: "0"
|
|
1345
1350
|
} : void 0,
|
|
@@ -1349,9 +1354,9 @@ const Xt = ["id"], Zt = ["xmlns", "viewBox"], qt = ["width", "height"], Yt = ["i
|
|
|
1349
1354
|
i("button", {
|
|
1350
1355
|
tabindex: "0",
|
|
1351
1356
|
class: "vue-ui-user-options-button",
|
|
1352
|
-
onClick:
|
|
1357
|
+
onClick: s[7] || (s[7] = (t) => _e(e.value.userOptions.callbacks.csv))
|
|
1353
1358
|
}, [
|
|
1354
|
-
|
|
1359
|
+
Ke(n(it), {
|
|
1355
1360
|
name: "excel",
|
|
1356
1361
|
stroke: oe.value.props.color
|
|
1357
1362
|
}, null, 8, ["stroke"])
|
|
@@ -1360,10 +1365,10 @@ const Xt = ["id"], Zt = ["xmlns", "viewBox"], qt = ["width", "height"], Yt = ["i
|
|
|
1360
1365
|
key: "1"
|
|
1361
1366
|
} : void 0
|
|
1362
1367
|
]), 1040)) : p("", !0),
|
|
1363
|
-
n(Z) ? (u(), Q(
|
|
1364
|
-
], 44,
|
|
1368
|
+
n(Z) ? (u(), Q(Et, { key: 6 })) : p("", !0)
|
|
1369
|
+
], 44, Zt));
|
|
1365
1370
|
}
|
|
1366
|
-
},
|
|
1371
|
+
}, as = /* @__PURE__ */ Xt(Ho, [["__scopeId", "data-v-abc31eb7"]]);
|
|
1367
1372
|
export {
|
|
1368
|
-
|
|
1373
|
+
as as default
|
|
1369
1374
|
};
|