vue-data-ui 2.16.5 → 2.17.0
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/README.md +85 -55
- package/dist/{Arrow-D9B36pfx.js → Arrow-BAEkZGzL.js} +1 -1
- package/dist/{BaseDraggableDialog-DloHiD4h.js → BaseDraggableDialog-ChCkcmj_.js} +2 -2
- package/dist/{BaseIcon-DJab5OQD.js → BaseIcon-naqtCxVi.js} +1 -1
- package/dist/{ColorPicker-Br0rMnNb.js → ColorPicker-CfIPgxcj.js} +2 -2
- package/dist/{DataTable-B6MXw9cG.js → DataTable-D0VYDhfx.js} +2 -2
- package/dist/{Legend-DoxQwq_u.js → Legend-Bxlv67uY.js} +2 -2
- package/dist/{NonSvgPenAndPaper-DhbyLXKW.js → NonSvgPenAndPaper-b_oVy-Dd.js} +3 -3
- package/dist/{PackageVersion-DCreTQN4.js → PackageVersion-5TR4ocqp.js} +1 -1
- package/dist/{PenAndPaper-BS60tkQN.js → PenAndPaper-D6AqipIO.js} +32 -32
- package/dist/{Shape-CrstrfQ9.js → Shape-DtFT5EJa.js} +1 -1
- package/dist/{Slicer-Bd0AkciG.js → Slicer-CL6-MRI6.js} +2 -2
- package/dist/{SparkTooltip-B4j_rvhG.js → SparkTooltip-Bcv1aoA5.js} +1 -1
- package/dist/{Title-BQLtfM0P.js → Title-B-2bV0SW.js} +1 -1
- package/dist/{Tooltip-5JmGL7sR.js → Tooltip-CoQnTnr-.js} +1 -1
- package/dist/{UserOptions-DMGkAAIO.js → UserOptions-Dd34lEKb.js} +137 -129
- package/dist/{dom-to-png-g3Q8kjna.js → dom-to-png-2AA0wHlX.js} +1 -1
- package/dist/img-Y_hYz-ZC.js +27 -0
- package/dist/{index-CZNLCg7T.js → index-pPGk-uhD.js} +1 -1
- package/dist/{pdf-DJVOD0cz.js → pdf-yfk3d1is.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +1098 -162
- package/dist/types/vue-data-ui.d.ts +1098 -162
- package/dist/{useNestedProp-BcPDA6Xr.js → useNestedProp-DjACxgdZ.js} +1 -1
- package/dist/{usePrinter-ButWuZVm.js → usePrinter-DDHcrl0A.js} +2 -2
- package/dist/vue-data-ui-CIWxgKjd.js +312 -0
- package/dist/vue-data-ui.js +1 -1
- package/dist/{vue-ui-3d-bar-o8P0DCbz.js → vue-ui-3d-bar-D5Wpdqfk.js} +244 -235
- package/dist/{vue-ui-accordion-CO4hmfuX.js → vue-ui-accordion-CVnA550V.js} +3 -3
- package/dist/{vue-ui-age-pyramid-C9T5bAEl.js → vue-ui-age-pyramid-BuAl-zC5.js} +167 -158
- package/dist/{vue-ui-annotator-CyOygaxE.js → vue-ui-annotator-gl2A20m3.js} +2 -2
- package/dist/{vue-ui-bullet-CPT1jdcz.js → vue-ui-bullet-D-VMKpwe.js} +131 -122
- package/dist/{vue-ui-candlestick-BfZTMGE0.js → vue-ui-candlestick-1r6YwiUV.js} +248 -239
- package/dist/{vue-ui-carousel-table-Bam9qqkj.js → vue-ui-carousel-table-B6UJoNtP.js} +17 -16
- package/dist/{vue-ui-chestnut-BAIMBFaQ.js → vue-ui-chestnut-DnlBYpC5.js} +257 -248
- package/dist/{vue-ui-chord-92E1yKdu.js → vue-ui-chord-D3kpzYjp.js} +229 -220
- package/dist/{vue-ui-circle-pack-DxXPqA7Z.js → vue-ui-circle-pack-CHgdpoYu.js} +200 -191
- package/dist/{vue-ui-cursor-Bvy_o8wb.js → vue-ui-cursor-63EAvElT.js} +2 -2
- package/dist/{vue-ui-dashboard--QRCkp7q.js → vue-ui-dashboard-Da6CPET-.js} +62 -62
- package/dist/{vue-ui-digits-Dl8RHLvt.js → vue-ui-digits-CA8pUKej.js} +2 -2
- package/dist/{vue-ui-donut-BxSTOFDt.js → vue-ui-donut-CKa7nFjt.js} +352 -343
- package/dist/{vue-ui-donut-evolution-DNzTtWnJ.js → vue-ui-donut-evolution-qeBEA4W8.js} +267 -258
- package/dist/{vue-ui-dumbbell-D01p3t3P.js → vue-ui-dumbbell-Bm0PvAKT.js} +146 -137
- package/dist/{vue-ui-flow-BMvaRn7E.js → vue-ui-flow-C2dqXvrU.js} +171 -162
- package/dist/{vue-ui-funnel-Bd_3wouw.js → vue-ui-funnel-Dvy5rRld.js} +134 -125
- package/dist/{vue-ui-galaxy-D4HJH1qq.js → vue-ui-galaxy-Y8LYp5n2.js} +181 -172
- package/dist/{vue-ui-gauge-CgIlk2pu.js → vue-ui-gauge-BBo0jWAP.js} +166 -157
- package/dist/{vue-ui-gizmo-C1-QYvsn.js → vue-ui-gizmo-DjXfTOWn.js} +3 -3
- package/dist/{vue-ui-heatmap-tUn_BlSp.js → vue-ui-heatmap-BbxRpltP.js} +242 -229
- package/dist/{vue-ui-history-plot-TfVRzyIK.js → vue-ui-history-plot-ChYf3Nvc.js} +218 -209
- package/dist/{vue-ui-kpi-BuL8MAMD.js → vue-ui-kpi-Vfc5-JnE.js} +3 -3
- package/dist/{vue-ui-mini-loader-DIeG36P8.js → vue-ui-mini-loader-C0-Nsz8K.js} +2 -2
- package/dist/{vue-ui-molecule-8RJNzWIw.js → vue-ui-molecule-B7Yu7vzF.js} +155 -146
- package/dist/{vue-ui-mood-radar-DftzG_Bi.js → vue-ui-mood-radar-C8JUTwNw.js} +130 -121
- package/dist/{vue-ui-nested-donuts-B9JC_0xK.js → vue-ui-nested-donuts-D0RgFifU.js} +255 -246
- package/dist/{vue-ui-onion-DTjaH-Bu.js → vue-ui-onion-D4U7TL_N.js} +150 -141
- package/dist/{vue-ui-parallel-coordinate-plot-DwqfVqFB.js → vue-ui-parallel-coordinate-plot-CXMT7Rjr.js} +194 -185
- package/dist/{vue-ui-quadrant-Cv3VWA6d.js → vue-ui-quadrant-B13pTVVZ.js} +248 -239
- package/dist/{vue-ui-quick-chart-imc0KrbF.js → vue-ui-quick-chart-C0UL4o63.js} +328 -319
- package/dist/{vue-ui-radar-kNySclk1.js → vue-ui-radar-XpdiXnhz.js} +165 -156
- package/dist/{vue-ui-rating-DBhEbgwD.js → vue-ui-rating-CM8ZrUb1.js} +2 -2
- package/dist/{vue-ui-relation-circle-BJQhS0aG.js → vue-ui-relation-circle-CYoFNekk.js} +145 -136
- package/dist/{vue-ui-ridgeline-Bhd1Uwm8.js → vue-ui-ridgeline-QUquE6ck.js} +198 -189
- package/dist/{vue-ui-rings-C_IT2mi0.js → vue-ui-rings-DwT0IfOh.js} +136 -127
- package/dist/{vue-ui-scatter-i8XZreWa.js → vue-ui-scatter-zDpy1udm.js} +207 -199
- package/dist/{vue-ui-skeleton-D9B8DY_k.js → vue-ui-skeleton-DJPjyNYn.js} +3 -3
- package/dist/{vue-ui-smiley-gmdnUWcW.js → vue-ui-smiley-DoDXl6k0.js} +2 -2
- package/dist/{vue-ui-spark-trend-DOF3vl8_.js → vue-ui-spark-trend-CniV6Cpr.js} +3 -3
- package/dist/{vue-ui-sparkbar-BVOVq3dA.js → vue-ui-sparkbar-Ds2ITgwn.js} +3 -3
- package/dist/{vue-ui-sparkgauge-DVO2Z0Rg.js → vue-ui-sparkgauge-CosfK-kw.js} +3 -3
- package/dist/{vue-ui-sparkhistogram-CbV86a2i.js → vue-ui-sparkhistogram-C7O1wPAJ.js} +4 -4
- package/dist/{vue-ui-sparkline-jDNAVZu-.js → vue-ui-sparkline-B_iUj3F2.js} +3 -3
- package/dist/{vue-ui-sparkstackbar-auT8CUXm.js → vue-ui-sparkstackbar-DBhWrysr.js} +3 -3
- package/dist/{vue-ui-stackbar-DmO02We2.js → vue-ui-stackbar-C3aV4IcL.js} +242 -233
- package/dist/{vue-ui-strip-plot-B25s87lj.js → vue-ui-strip-plot-Bvr1GAzH.js} +204 -195
- package/dist/{vue-ui-table-B4xbQdK_.js → vue-ui-table-DQKKRgyo.js} +3 -3
- package/dist/{vue-ui-table-heatmap-DI57VcvH.js → vue-ui-table-heatmap-Dyqj5XJC.js} +26 -25
- package/dist/{vue-ui-table-sparkline-DRgsZztN.js → vue-ui-table-sparkline-D4RubyLj.js} +8 -7
- package/dist/{vue-ui-thermometer-DkeT5DV_.js → vue-ui-thermometer-B0FKI5cG.js} +149 -140
- package/dist/{vue-ui-timer-uon_DLeH.js → vue-ui-timer-DUCBRIl-.js} +5 -5
- package/dist/{vue-ui-tiremarks-BV0qXRF2.js → vue-ui-tiremarks-CRt4UQZD.js} +114 -105
- package/dist/{vue-ui-treemap-DzJsjtz7.js → vue-ui-treemap-CWP5nYDx.js} +298 -289
- package/dist/{vue-ui-vertical-bar-CkLS_DGb.js → vue-ui-vertical-bar-C5fPYltO.js} +294 -285
- package/dist/{vue-ui-waffle-B2XiLGQx.js → vue-ui-waffle-BpWLlfpg.js} +190 -181
- package/dist/{vue-ui-wheel-BR1DDpKU.js → vue-ui-wheel-CTzuCroy.js} +96 -87
- package/dist/{vue-ui-word-cloud-BvOT6hu2.js → vue-ui-word-cloud-BPokdaP1.js} +212 -203
- package/dist/{vue-ui-world-BeP91MNX.js → vue-ui-world-CS6k-oil.js} +201 -192
- package/dist/{vue-ui-xy-BaR-ZDba.js → vue-ui-xy-CQ425kLR.js} +517 -510
- package/dist/{vue-ui-xy-canvas-B4ZmECCK.js → vue-ui-xy-canvas-D2IFwAr7.js} +364 -355
- package/package.json +1 -1
- package/dist/img-CTC5DLKL.js +0 -20
- package/dist/vue-data-ui-BB8Upnjm.js +0 -301
|
@@ -1,22 +1,23 @@
|
|
|
1
|
-
import { defineAsyncComponent as G, computed as
|
|
2
|
-
import { u as
|
|
3
|
-
import { u as
|
|
4
|
-
import { u as
|
|
5
|
-
import { u as
|
|
6
|
-
import { u as
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
|
|
1
|
+
import { defineAsyncComponent as G, computed as j, ref as S, watch as Qe, onMounted as et, createElementBlock as c, openBlock as n, unref as u, normalizeStyle as O, normalizeClass as Se, createBlock as U, createCommentVNode as y, createSlots as tt, withCtx as T, renderSlot as P, normalizeProps as K, guardReactiveProps as Q, createVNode as lt, createElementVNode as d, Fragment as _, renderList as m, toDisplayString as B, mergeProps as je, createTextVNode as ot, nextTick as st } from "vue";
|
|
2
|
+
import { u as at, c as Te, t as nt, p as ee, a as rt, b as ut, d as it, o as dt, e as te, g as ie, l as E, m as De, f as D, X as ct, s as g, h as le, i as oe, j as Oe, k as se, n as A, q as ht, r as vt } from "./index-pPGk-uhD.js";
|
|
3
|
+
import { u as ze } from "./useNestedProp-DjACxgdZ.js";
|
|
4
|
+
import { u as ft } from "./usePrinter-DDHcrl0A.js";
|
|
5
|
+
import { u as pt } from "./useUserOptionState-BIvW1Kz7.js";
|
|
6
|
+
import { u as yt } from "./useChartAccessibility-9icAAmYg.js";
|
|
7
|
+
import kt from "./Title-B-2bV0SW.js";
|
|
8
|
+
import gt from "./img-Y_hYz-ZC.js";
|
|
9
|
+
import { _ as $t } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
10
|
+
const _t = ["id"], mt = {
|
|
10
11
|
key: 1,
|
|
11
12
|
style: "width:100%;background:transparent"
|
|
12
|
-
},
|
|
13
|
+
}, bt = ["xmlns", "viewBox"], xt = ["width", "height"], wt = ["id"], Ct = ["stop-color"], Ft = ["stop-color"], Mt = ["id"], Pt = ["stop-color"], St = ["stop-color"], jt = ["id"], Tt = ["stop-color"], Dt = ["stop-color"], Ot = ["id"], zt = ["stop-color"], Nt = ["stop-color"], Bt = ["stop-color"], At = { key: 1 }, It = ["id"], Lt = ["stop-color"], Vt = ["stop-color"], Wt = ["id"], Gt = ["stop-color"], Ut = ["stop-color"], Et = ["id"], Ht = ["stop-color"], Rt = ["stop-color"], Zt = ["id"], qt = ["x", "y", "font-size", "font-weight", "fill"], Xt = ["x", "y"], Yt = ["d", "stroke"], Jt = ["d", "stroke"], Kt = { key: 4 }, Qt = { key: 0 }, el = ["stroke-dasharray", "d", "stroke", "stroke-width"], tl = ["stroke-dasharray", "d", "stroke", "stroke-width"], ll = ["stroke-dasharray", "d", "stroke", "stroke-width"], ol = ["stroke-dasharray", "d", "stroke", "stroke-width"], sl = { key: 1 }, al = ["d", "stroke", "stroke-width", "fill"], nl = ["d", "stroke", "stroke-width", "fill"], rl = ["d", "stroke", "stroke-width", "fill"], ul = { key: 2 }, il = ["d", "fill", "onMouseenter", "onClick"], dl = ["d", "fill", "onMouseenter", "onClick"], cl = ["d", "fill", "onMouseenter", "onClick"], hl = ["d", "onMouseenter", "onClick"], vl = ["d"], fl = ["d", "stroke"], pl = ["onClick"], yl = ["stroke", "d"], kl = ["cx", "cy", "fill", "stroke"], gl = ["x", "y", "width", "height"], $l = { key: 1 }, _l = ["d", "stroke"], ml = ["d", "fill", "stroke"], bl = ["id"], xl = ["stop-color"], wl = ["stop-color"], Cl = ["cx", "cy", "fill"], Fl = ["cx", "cy", "fill"], Ml = { key: 0 }, Pl = ["text-anchor", "x", "y", "fill", "font-size"], Sl = ["text-anchor", "x", "y", "fill", "font-size"], jl = { key: 2 }, Tl = ["d", "fill", "stroke"], Dl = { key: 5 }, Ol = { key: 0 }, zl = ["stroke-dasharray", "d", "stroke", "stroke-width"], Nl = ["stroke-dasharray", "d", "stroke", "stroke-width"], Bl = ["stroke-dasharray", "d", "stroke", "stroke-width"], Al = ["stroke-dasharray", "d", "stroke", "stroke-width"], Il = ["d", "stroke", "stroke-width", "fill"], Ll = ["d", "stroke", "stroke-width", "fill"], Vl = { key: 1 }, Wl = ["onClick"], Gl = ["id"], Ul = ["stop-color"], El = ["stop-color"], Hl = ["id"], Rl = ["stop-color"], Zl = ["stop-color"], ql = ["stop-color"], Xl = ["stop-color"], Yl = ["stop-color"], Jl = ["onMouseenter", "onClick", "d", "fill"], Kl = ["onMouseenter", "onClick", "d"], Ql = ["onMouseenter", "onClick", "d", "fill"], eo = ["onClick"], to = ["stroke", "d"], lo = ["cx", "cy", "fill", "stroke"], oo = ["x", "y", "width", "height"], so = { key: 1 }, ao = ["d", "stroke"], no = ["d", "fill", "stroke"], ro = ["id"], uo = ["stop-color"], io = ["stop-color"], co = ["cx", "cy", "fill"], ho = ["cx", "cy", "fill"], vo = { key: 0 }, fo = ["text-anchor", "x", "y", "fill", "font-size"], po = ["text-anchor", "x", "y", "fill", "font-size"], yo = { key: 2 }, ko = ["d", "fill", "stroke"], go = {
|
|
13
14
|
key: 4,
|
|
14
15
|
class: "vue-data-ui-watermark"
|
|
15
|
-
},
|
|
16
|
+
}, $o = {
|
|
16
17
|
key: 6,
|
|
17
18
|
ref: "source",
|
|
18
19
|
dir: "auto"
|
|
19
|
-
},
|
|
20
|
+
}, _o = ["innerHTML"], mo = {
|
|
20
21
|
__name: "vue-ui-3d-bar",
|
|
21
22
|
props: {
|
|
22
23
|
config: {
|
|
@@ -33,34 +34,34 @@ const gt = ["id"], $t = {
|
|
|
33
34
|
}
|
|
34
35
|
},
|
|
35
36
|
emits: ["selectDatapoint"],
|
|
36
|
-
setup(
|
|
37
|
-
const
|
|
37
|
+
setup(Ne, { expose: Be, emit: Ae }) {
|
|
38
|
+
const Ie = G(() => import("./vue-ui-accordion-CVnA550V.js")), Le = G(() => import("./DataTable-D0VYDhfx.js")), Ve = G(() => import("./PackageVersion-5TR4ocqp.js")), We = G(() => import("./PenAndPaper-D6AqipIO.js")), Ge = G(() => import("./vue-ui-skeleton-DJPjyNYn.js")), Ue = G(() => import("./UserOptions-Dd34lEKb.js")), { vue_ui_3d_bar: Ee } = at(), $ = Ne, Z = Ae, q = j(() => !!$.dataset && Object.keys($.dataset).length), b = S(Te()), He = S(null), X = S(null), I = S(!1), de = S(0), ce = S(0), t = j({
|
|
38
39
|
get: () => pe(),
|
|
39
40
|
set: (a) => a
|
|
40
|
-
}), { userOptionsVisible:
|
|
41
|
+
}), { userOptionsVisible: ae, setUserOptionsVisibility: he, keepUserOptionState: ve } = pt({ config: t.value }), { svgRef: fe } = yt({ config: t.value.style.chart.title });
|
|
41
42
|
function pe() {
|
|
42
|
-
const a =
|
|
43
|
+
const a = ze({
|
|
43
44
|
userConfig: $.config,
|
|
44
|
-
defaultConfig:
|
|
45
|
+
defaultConfig: Ee
|
|
45
46
|
});
|
|
46
47
|
return a.theme ? {
|
|
47
|
-
...
|
|
48
|
-
userConfig:
|
|
48
|
+
...ze({
|
|
49
|
+
userConfig: rt.vue_ui_3d_bar[a.theme] || $.config,
|
|
49
50
|
defaultConfig: a
|
|
50
51
|
}),
|
|
51
|
-
customPalette:
|
|
52
|
+
customPalette: nt[a.theme] || ee
|
|
52
53
|
} : a;
|
|
53
54
|
}
|
|
54
|
-
|
|
55
|
-
t.value = pe(),
|
|
55
|
+
Qe(() => $.config, (a) => {
|
|
56
|
+
t.value = pe(), ae.value = !t.value.userOptions.showOnChartHover, _e(), de.value += 1, ce.value += 1, H.value.showTable = t.value.table.show;
|
|
56
57
|
}, { deep: !0 });
|
|
57
|
-
const { isPrinting: ye, isImaging: ke, generatePdf: ge, generateImage: $e } =
|
|
58
|
+
const { isPrinting: ye, isImaging: ke, generatePdf: ge, generateImage: $e } = ft({
|
|
58
59
|
elementId: `3d_bar_${b.value}`,
|
|
59
60
|
fileName: t.value.style.chart.title.text || "vue-ui-3d-bar",
|
|
60
61
|
options: t.value.userOptions.print
|
|
61
|
-
}),
|
|
62
|
+
}), Re = j(() => ut(t.value.customPalette)), H = S({
|
|
62
63
|
showTable: t.value.table.show
|
|
63
|
-
}), F =
|
|
64
|
+
}), F = j(() => $.dataset.series && $.dataset.series.length), o = j(() => ({
|
|
64
65
|
height: t.value.style.chart.box.dimensions.height,
|
|
65
66
|
width: t.value.style.chart.box.dimensions.width,
|
|
66
67
|
absoluteWidth: t.value.style.chart.box.dimensions.width * (F.value ? 2 : 1),
|
|
@@ -69,25 +70,25 @@ const gt = ["id"], $t = {
|
|
|
69
70
|
left: t.value.style.chart.box.dimensions.left,
|
|
70
71
|
right: t.value.style.chart.box.dimensions.right,
|
|
71
72
|
perspective: t.value.style.chart.box.dimensions.perspective
|
|
72
|
-
})), C =
|
|
73
|
+
})), C = j(() => {
|
|
73
74
|
if (F.value) {
|
|
74
75
|
const a = $.dataset.series.map((l) => l.value || 0).reduce((l, r) => l + r, 0), s = $.dataset.series.map((l, r) => ({
|
|
75
76
|
...l,
|
|
76
77
|
id: Te(),
|
|
77
78
|
proportion: (l.value || 0) / a,
|
|
78
|
-
color:
|
|
79
|
+
color: it(l.color) || Re.value[r] || ee[r] || ee[r % ee.length],
|
|
79
80
|
breakdown: l.breakdown ? l.breakdown.sort((i, k) => k.value - i.value) : null
|
|
80
81
|
})).sort((l, r) => r.value - l.value), e = [];
|
|
81
82
|
let h = 0;
|
|
82
83
|
for (let l = 0; l < s.length; l += 1)
|
|
83
84
|
e.push({
|
|
84
85
|
...s[l],
|
|
85
|
-
fill:
|
|
86
|
+
fill: Ze(h, s[l].proportion, s[l].breakdown, s[l].color)
|
|
86
87
|
}), h += s[l].proportion;
|
|
87
88
|
return e;
|
|
88
89
|
}
|
|
89
90
|
return null;
|
|
90
|
-
}), z =
|
|
91
|
+
}), z = j(() => ({
|
|
91
92
|
right: `M${o.value.width / 2},${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} ${o.value.width / 2},${o.value.height - o.value.bottom}`,
|
|
92
93
|
left: `M${o.value.width / 2},${o.value.top} ${o.value.left},${o.value.top + o.value.perspective} ${o.value.left},${o.value.height - o.value.bottom - o.value.perspective} ${o.value.width / 2},${o.value.height - o.value.bottom}`,
|
|
93
94
|
side: `M${o.value.width / 2},${o.value.height - o.value.bottom} ${o.value.width / 2},${o.value.top + o.value.perspective * 2}`,
|
|
@@ -96,8 +97,8 @@ const gt = ["id"], $t = {
|
|
|
96
97
|
tubeLeft: `M${o.value.left},${o.value.top + o.value.perspective} ${o.value.left},${o.value.height - o.value.bottom - o.value.perspective}`,
|
|
97
98
|
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}`,
|
|
98
99
|
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}`
|
|
99
|
-
})), V =
|
|
100
|
-
|
|
100
|
+
})), V = S(t.value.style.chart.animation.use ? 0 : $.dataset.percentage);
|
|
101
|
+
et(() => {
|
|
101
102
|
_e();
|
|
102
103
|
let a = 0, s = t.value.style.chart.animation.speed, e = 5e-3 * t.value.style.chart.animation.acceleration;
|
|
103
104
|
function h() {
|
|
@@ -106,26 +107,26 @@ const gt = ["id"], $t = {
|
|
|
106
107
|
t.value.style.chart.animation.use && (V.value = 0, h());
|
|
107
108
|
});
|
|
108
109
|
function _e() {
|
|
109
|
-
|
|
110
|
+
dt($.dataset) ? te({
|
|
110
111
|
componentName: "VueUi3dBar",
|
|
111
112
|
type: "dataset"
|
|
112
113
|
}) : $.dataset.series ? $.dataset.series.forEach((a, s) => {
|
|
113
|
-
|
|
114
|
+
ie({
|
|
114
115
|
datasetObject: a,
|
|
115
116
|
requiredAttributes: ["name", "value"]
|
|
116
117
|
}).forEach((e) => {
|
|
117
|
-
|
|
118
|
+
te({
|
|
118
119
|
componentName: "VueUi3dBar",
|
|
119
120
|
type: "datasetSerieAttribute",
|
|
120
121
|
property: e,
|
|
121
122
|
index: s
|
|
122
123
|
});
|
|
123
124
|
}), a.breakdown && a.breakdown.forEach((e, h) => {
|
|
124
|
-
|
|
125
|
+
ie({
|
|
125
126
|
datasetObject: e,
|
|
126
127
|
requiredAttributes: ["name", "value"]
|
|
127
128
|
}).forEach((l) => {
|
|
128
|
-
|
|
129
|
+
te({
|
|
129
130
|
componentName: "VueUi3dBar",
|
|
130
131
|
type: "datasetSerieAttribute",
|
|
131
132
|
property: l,
|
|
@@ -133,28 +134,28 @@ const gt = ["id"], $t = {
|
|
|
133
134
|
});
|
|
134
135
|
});
|
|
135
136
|
});
|
|
136
|
-
}) :
|
|
137
|
+
}) : ie({
|
|
137
138
|
datasetObject: $.dataset,
|
|
138
139
|
requiredAttributes: ["percentage"]
|
|
139
140
|
}).forEach((a) => {
|
|
140
|
-
|
|
141
|
+
te({
|
|
141
142
|
componentName: "VueUi3dBar",
|
|
142
143
|
type: "datasetAttribute",
|
|
143
144
|
property: a
|
|
144
145
|
});
|
|
145
146
|
});
|
|
146
147
|
}
|
|
147
|
-
function
|
|
148
|
-
const l = o.value.height - o.value.bottom - o.value.top - o.value.perspective * 2, { width: r, height: i, bottom: k, right: w, left: f, perspective: p } = o.value, v = k + l * a,
|
|
149
|
-
let
|
|
150
|
-
return
|
|
151
|
-
...
|
|
152
|
-
value:
|
|
153
|
-
color: E(h,
|
|
154
|
-
})),
|
|
148
|
+
function Ze(a, s, e, h) {
|
|
149
|
+
const l = o.value.height - o.value.bottom - o.value.top - o.value.perspective * 2, { width: r, height: i, bottom: k, right: w, left: f, perspective: p } = o.value, v = k + l * a, ue = i - v - p - l * s / 2, Ye = ue > o.value.height / 2 ? "top" : "bottom", Ce = 64, Je = !!e;
|
|
150
|
+
let Fe = null, Me = null;
|
|
151
|
+
return Je && (e = e.map((Pe, Ke) => ({
|
|
152
|
+
...Pe,
|
|
153
|
+
value: Pe.value || 0,
|
|
154
|
+
color: E(h, Ke / e.length)
|
|
155
|
+
})), Fe = De(
|
|
155
156
|
{ series: e },
|
|
156
157
|
r + o.value.absoluteWidth / 4 - 14,
|
|
157
|
-
|
|
158
|
+
Ye === "top" ? ue - Ce : ue + Ce,
|
|
158
159
|
28,
|
|
159
160
|
28,
|
|
160
161
|
1.99999,
|
|
@@ -163,7 +164,7 @@ const gt = ["id"], $t = {
|
|
|
163
164
|
360,
|
|
164
165
|
105.25,
|
|
165
166
|
14
|
|
166
|
-
),
|
|
167
|
+
), Me = De(
|
|
167
168
|
{ series: e },
|
|
168
169
|
r - w + 20,
|
|
169
170
|
i - v - p - l * s / 2,
|
|
@@ -176,8 +177,8 @@ const gt = ["id"], $t = {
|
|
|
176
177
|
105.25,
|
|
177
178
|
6
|
|
178
179
|
)), {
|
|
179
|
-
donut:
|
|
180
|
-
miniDonut:
|
|
180
|
+
donut: Fe,
|
|
181
|
+
miniDonut: Me,
|
|
181
182
|
sidePointer: {
|
|
182
183
|
x: r - w,
|
|
183
184
|
y: i - v - p - l * s / 2,
|
|
@@ -205,7 +206,7 @@ const gt = ["id"], $t = {
|
|
|
205
206
|
${f},${i - v - p}Z`
|
|
206
207
|
};
|
|
207
208
|
}
|
|
208
|
-
const R =
|
|
209
|
+
const R = j(() => {
|
|
209
210
|
const a = V.value / 100, s = o.value.height - o.value.bottom - o.value.top - o.value.perspective * 2, { width: e, height: h, bottom: l, right: r, left: i, perspective: k } = o.value, f = l + s * 0;
|
|
210
211
|
return {
|
|
211
212
|
right: `M${e / 2},${h - f} ${e / 2},${h - f - s * a} ${e - r},${h - f - k - s * a} ${e - r},${h - f - k}Z`,
|
|
@@ -223,7 +224,7 @@ const gt = ["id"], $t = {
|
|
|
223
224
|
${i},${h}
|
|
224
225
|
${i},${h - f - k}Z`
|
|
225
226
|
};
|
|
226
|
-
}), x =
|
|
227
|
+
}), x = S(null);
|
|
227
228
|
function M(a, s = !1) {
|
|
228
229
|
Z("selectDatapoint", a), s || (x.value = a.id), s && I.value && (I.value = !1), s && !I.value && (I.value = !0);
|
|
229
230
|
}
|
|
@@ -237,14 +238,14 @@ const gt = ["id"], $t = {
|
|
|
237
238
|
function me(a) {
|
|
238
239
|
return [...a].map((s) => s.value).reduce((s, e) => s + e, 0);
|
|
239
240
|
}
|
|
240
|
-
const
|
|
241
|
-
function
|
|
242
|
-
|
|
241
|
+
const ne = S(!1);
|
|
242
|
+
function be(a) {
|
|
243
|
+
ne.value = a;
|
|
243
244
|
}
|
|
244
245
|
function qe() {
|
|
245
246
|
return F.value ? C.value : $.dataset.percentage;
|
|
246
247
|
}
|
|
247
|
-
const N =
|
|
248
|
+
const N = j(() => {
|
|
248
249
|
if (F.value) {
|
|
249
250
|
const a = C.value.flatMap((e) => e.breakdown && e.breakdown.length ? [{ name: e.name, color: e.color }, ...e.breakdown.map((h, l) => ({
|
|
250
251
|
name: h.name,
|
|
@@ -257,19 +258,19 @@ const gt = ["id"], $t = {
|
|
|
257
258
|
} else
|
|
258
259
|
return null;
|
|
259
260
|
});
|
|
260
|
-
function
|
|
261
|
+
function xe(a = null) {
|
|
261
262
|
if (!F.value) {
|
|
262
263
|
console.warn("VueUi3dBar : CSV download is only available in stack mode (providing dataset.series instead of dataset.percentage)");
|
|
263
264
|
return;
|
|
264
265
|
}
|
|
265
|
-
|
|
266
|
+
st(() => {
|
|
266
267
|
const s = C.value.map((r) => r.value).reduce((r, i) => r + i, 0), e = N.value.head.map((r, i) => [[
|
|
267
268
|
r.name
|
|
268
|
-
], [N.value.body[i]], [isNaN(N.value.body[i] / s) ? "-" : N.value.body[i] / s * 100]]), h = [[t.value.style.chart.title.text], [t.value.style.chart.title.subtitle.text], [[""], ["val"], ["%"]]].concat(e), l =
|
|
269
|
-
a ? a(l) :
|
|
269
|
+
], [N.value.body[i]], [isNaN(N.value.body[i] / s) ? "-" : N.value.body[i] / s * 100]]), h = [[t.value.style.chart.title.text], [t.value.style.chart.title.subtitle.text], [[""], ["val"], ["%"]]].concat(e), l = ht(h);
|
|
270
|
+
a ? a(l) : vt({ csvContent: l, title: t.value.style.chart.title.text || "vue-ui-3d-bar" });
|
|
270
271
|
});
|
|
271
272
|
}
|
|
272
|
-
const
|
|
273
|
+
const Y = j(() => {
|
|
273
274
|
const a = C.value.map((r) => r.value).reduce((r, i) => r + i, 0), s = [
|
|
274
275
|
' <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>',
|
|
275
276
|
D({ p: t.value.style.chart.legend.prefix, v: a, s: t.value.style.chart.legend.suffix, r: t.value.table.td.roundingValue }),
|
|
@@ -313,39 +314,46 @@ const gt = ["id"], $t = {
|
|
|
313
314
|
config: h
|
|
314
315
|
};
|
|
315
316
|
});
|
|
316
|
-
function
|
|
317
|
+
function we() {
|
|
317
318
|
H.value.showTable = !H.value.showTable;
|
|
318
319
|
}
|
|
319
|
-
const
|
|
320
|
-
function
|
|
321
|
-
|
|
320
|
+
const J = S(!1);
|
|
321
|
+
function re() {
|
|
322
|
+
J.value = !J.value;
|
|
322
323
|
}
|
|
323
|
-
|
|
324
|
-
|
|
324
|
+
async function Xe({ scale: a = 2 } = {}) {
|
|
325
|
+
if (!X.value) return;
|
|
326
|
+
const { imageUri: s, base64: e } = await gt({ domElement: X.value, base64: !0, img: !0, scale: a });
|
|
327
|
+
return { imageUri: s, base64: e };
|
|
328
|
+
}
|
|
329
|
+
return Be({
|
|
330
|
+
getImage: Xe,
|
|
331
|
+
generateCsv: xe,
|
|
325
332
|
generatePdf: ge,
|
|
326
333
|
generateImage: $e,
|
|
327
334
|
getData: qe,
|
|
328
|
-
toggleTable:
|
|
329
|
-
toggleAnnotator:
|
|
335
|
+
toggleTable: we,
|
|
336
|
+
toggleAnnotator: re,
|
|
337
|
+
toggleFullscreen: be
|
|
330
338
|
}), (a, s) => (n(), c("div", {
|
|
331
339
|
ref_key: "bar3dChart",
|
|
332
|
-
ref:
|
|
333
|
-
class:
|
|
340
|
+
ref: X,
|
|
341
|
+
class: Se("vue-ui-3d-bar"),
|
|
334
342
|
style: O(`font-family:${t.value.style.fontFamily};width:100%; text-align:center;background:${t.value.style.chart.backgroundColor}`),
|
|
335
343
|
id: `3d_bar_${b.value}`,
|
|
336
344
|
onMouseenter: s[2] || (s[2] = () => u(he)(!0)),
|
|
337
345
|
onMouseleave: s[3] || (s[3] = () => u(he)(!1))
|
|
338
346
|
}, [
|
|
339
|
-
t.value.userOptions.buttons.annotator ? (n(), U(u(
|
|
347
|
+
t.value.userOptions.buttons.annotator ? (n(), U(u(We), {
|
|
340
348
|
key: 0,
|
|
341
349
|
svgRef: u(fe),
|
|
342
350
|
backgroundColor: t.value.style.chart.backgroundColor,
|
|
343
351
|
color: t.value.style.chart.color,
|
|
344
|
-
active:
|
|
345
|
-
onClose:
|
|
352
|
+
active: J.value,
|
|
353
|
+
onClose: re
|
|
346
354
|
}, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : y("", !0),
|
|
347
|
-
t.value.style.chart.title.text ? (n(), c("div",
|
|
348
|
-
(n(), U(
|
|
355
|
+
t.value.style.chart.title.text ? (n(), c("div", mt, [
|
|
356
|
+
(n(), U(kt, {
|
|
349
357
|
key: `title_${de.value}`,
|
|
350
358
|
config: {
|
|
351
359
|
title: {
|
|
@@ -359,10 +367,10 @@ const gt = ["id"], $t = {
|
|
|
359
367
|
}
|
|
360
368
|
}, null, 8, ["config"]))
|
|
361
369
|
])) : y("", !0),
|
|
362
|
-
t.value.userOptions.show && q.value && (u(ve) || u(
|
|
370
|
+
t.value.userOptions.show && q.value && (u(ve) || u(ae)) ? (n(), U(u(Ue), {
|
|
363
371
|
key: 2,
|
|
364
372
|
ref_key: "details",
|
|
365
|
-
ref:
|
|
373
|
+
ref: He,
|
|
366
374
|
backgroundColor: t.value.style.chart.backgroundColor,
|
|
367
375
|
color: t.value.style.chart.color,
|
|
368
376
|
isPrinting: u(ye),
|
|
@@ -374,81 +382,82 @@ const gt = ["id"], $t = {
|
|
|
374
382
|
hasImg: t.value.userOptions.buttons.img,
|
|
375
383
|
hasFullscreen: t.value.userOptions.buttons.fullscreen,
|
|
376
384
|
titles: { ...t.value.userOptions.buttonTitles },
|
|
377
|
-
chartElement:
|
|
385
|
+
chartElement: X.value,
|
|
378
386
|
position: t.value.userOptions.position,
|
|
379
387
|
hasAnnotator: t.value.userOptions.buttons.annotator,
|
|
380
|
-
isAnnotation:
|
|
388
|
+
isAnnotation: J.value,
|
|
381
389
|
callbacks: t.value.userOptions.callbacks,
|
|
382
|
-
|
|
390
|
+
printScale: t.value.userOptions.print.scale,
|
|
391
|
+
onToggleFullscreen: be,
|
|
383
392
|
onGeneratePdf: u(ge),
|
|
384
|
-
onGenerateCsv:
|
|
393
|
+
onGenerateCsv: xe,
|
|
385
394
|
onGenerateImage: u($e),
|
|
386
|
-
onToggleTable:
|
|
387
|
-
onToggleAnnotator:
|
|
395
|
+
onToggleTable: we,
|
|
396
|
+
onToggleAnnotator: re,
|
|
388
397
|
style: O({
|
|
389
|
-
visibility: u(ve) ? u(
|
|
398
|
+
visibility: u(ve) ? u(ae) ? "visible" : "hidden" : "visible"
|
|
390
399
|
})
|
|
391
|
-
},
|
|
400
|
+
}, tt({ _: 2 }, [
|
|
392
401
|
a.$slots.menuIcon ? {
|
|
393
402
|
name: "menuIcon",
|
|
394
|
-
fn:
|
|
395
|
-
P(a.$slots, "menuIcon",
|
|
403
|
+
fn: T(({ isOpen: e, color: h }) => [
|
|
404
|
+
P(a.$slots, "menuIcon", K(Q({ isOpen: e, color: h })), void 0, !0)
|
|
396
405
|
]),
|
|
397
406
|
key: "0"
|
|
398
407
|
} : void 0,
|
|
399
408
|
a.$slots.optionPdf ? {
|
|
400
409
|
name: "optionPdf",
|
|
401
|
-
fn:
|
|
410
|
+
fn: T(() => [
|
|
402
411
|
P(a.$slots, "optionPdf", {}, void 0, !0)
|
|
403
412
|
]),
|
|
404
413
|
key: "1"
|
|
405
414
|
} : void 0,
|
|
406
415
|
a.$slots.optionCsv ? {
|
|
407
416
|
name: "optionCsv",
|
|
408
|
-
fn:
|
|
417
|
+
fn: T(() => [
|
|
409
418
|
P(a.$slots, "optionCsv", {}, void 0, !0)
|
|
410
419
|
]),
|
|
411
420
|
key: "2"
|
|
412
421
|
} : void 0,
|
|
413
422
|
a.$slots.optionImg ? {
|
|
414
423
|
name: "optionImg",
|
|
415
|
-
fn:
|
|
424
|
+
fn: T(() => [
|
|
416
425
|
P(a.$slots, "optionImg", {}, void 0, !0)
|
|
417
426
|
]),
|
|
418
427
|
key: "3"
|
|
419
428
|
} : void 0,
|
|
420
429
|
a.$slots.optionTable ? {
|
|
421
430
|
name: "optionTable",
|
|
422
|
-
fn:
|
|
431
|
+
fn: T(() => [
|
|
423
432
|
P(a.$slots, "optionTable", {}, void 0, !0)
|
|
424
433
|
]),
|
|
425
434
|
key: "4"
|
|
426
435
|
} : void 0,
|
|
427
436
|
a.$slots.optionFullscreen ? {
|
|
428
437
|
name: "optionFullscreen",
|
|
429
|
-
fn:
|
|
430
|
-
P(a.$slots, "optionFullscreen",
|
|
438
|
+
fn: T(({ toggleFullscreen: e, isFullscreen: h }) => [
|
|
439
|
+
P(a.$slots, "optionFullscreen", K(Q({ toggleFullscreen: e, isFullscreen: h })), void 0, !0)
|
|
431
440
|
]),
|
|
432
441
|
key: "5"
|
|
433
442
|
} : void 0,
|
|
434
443
|
a.$slots.optionAnnotator ? {
|
|
435
444
|
name: "optionAnnotator",
|
|
436
|
-
fn:
|
|
437
|
-
P(a.$slots, "optionAnnotator",
|
|
445
|
+
fn: T(({ toggleAnnotator: e, isAnnotator: h }) => [
|
|
446
|
+
P(a.$slots, "optionAnnotator", K(Q({ toggleAnnotator: e, isAnnotator: h })), void 0, !0)
|
|
438
447
|
]),
|
|
439
448
|
key: "6"
|
|
440
449
|
} : void 0
|
|
441
|
-
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasTable", "hasXls", "hasImg", "hasFullscreen", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "onGeneratePdf", "onGenerateImage", "style"])) : y("", !0),
|
|
450
|
+
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasTable", "hasXls", "hasImg", "hasFullscreen", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "onGeneratePdf", "onGenerateImage", "style"])) : y("", !0),
|
|
442
451
|
q.value ? (n(), c("svg", {
|
|
443
452
|
key: 3,
|
|
444
453
|
ref_key: "svgRef",
|
|
445
454
|
ref: fe,
|
|
446
|
-
xmlns: u(
|
|
447
|
-
class:
|
|
455
|
+
xmlns: u(ct),
|
|
456
|
+
class: Se({ "vue-data-ui-fullscreen--on": ne.value, "vue-data-ui-fulscreen--off": !ne.value }),
|
|
448
457
|
viewBox: `0 0 ${o.value.absoluteWidth} ${o.value.height}`,
|
|
449
458
|
style: O(`max-width:100%; overflow: visible; background:transparent;color:${t.value.style.chart.color}`)
|
|
450
459
|
}, [
|
|
451
|
-
|
|
460
|
+
lt(u(Ve)),
|
|
452
461
|
a.$slots["chart-background"] ? (n(), c("foreignObject", {
|
|
453
462
|
key: 0,
|
|
454
463
|
x: 0,
|
|
@@ -460,7 +469,7 @@ const gt = ["id"], $t = {
|
|
|
460
469
|
}
|
|
461
470
|
}, [
|
|
462
471
|
P(a.$slots, "chart-background", {}, void 0, !0)
|
|
463
|
-
], 8,
|
|
472
|
+
], 8, xt)) : y("", !0),
|
|
464
473
|
d("defs", null, [
|
|
465
474
|
d("radialGradient", {
|
|
466
475
|
id: `gradient_top${b.value}`
|
|
@@ -468,36 +477,36 @@ const gt = ["id"], $t = {
|
|
|
468
477
|
d("stop", {
|
|
469
478
|
offset: "0%",
|
|
470
479
|
"stop-color": u(g)(t.value.style.chart.backgroundColor, 0)
|
|
471
|
-
}, null, 8,
|
|
480
|
+
}, null, 8, Ct),
|
|
472
481
|
d("stop", {
|
|
473
482
|
offset: "100%",
|
|
474
483
|
"stop-color": t.value.style.chart.bar.color
|
|
475
|
-
}, null, 8,
|
|
476
|
-
], 8,
|
|
484
|
+
}, null, 8, Ft)
|
|
485
|
+
], 8, wt),
|
|
477
486
|
d("radialGradient", {
|
|
478
487
|
id: `gradient_left${b.value}`
|
|
479
488
|
}, [
|
|
480
489
|
d("stop", {
|
|
481
490
|
offset: "0%",
|
|
482
491
|
"stop-color": u(g)(t.value.style.chart.backgroundColor, 0)
|
|
483
|
-
}, null, 8,
|
|
492
|
+
}, null, 8, Pt),
|
|
484
493
|
d("stop", {
|
|
485
494
|
offset: "100%",
|
|
486
495
|
"stop-color": u(g)(t.value.style.chart.bar.color, 20)
|
|
487
|
-
}, null, 8,
|
|
488
|
-
], 8,
|
|
496
|
+
}, null, 8, St)
|
|
497
|
+
], 8, Mt),
|
|
489
498
|
d("radialGradient", {
|
|
490
499
|
id: `gradient_right${b.value}`
|
|
491
500
|
}, [
|
|
492
501
|
d("stop", {
|
|
493
502
|
offset: "0%",
|
|
494
503
|
"stop-color": u(g)(t.value.style.chart.backgroundColor, 0)
|
|
495
|
-
}, null, 8,
|
|
504
|
+
}, null, 8, Tt),
|
|
496
505
|
d("stop", {
|
|
497
506
|
offset: "100%",
|
|
498
507
|
"stop-color": u(g)(t.value.style.chart.bar.color, 20)
|
|
499
|
-
}, null, 8,
|
|
500
|
-
], 8,
|
|
508
|
+
}, null, 8, Dt)
|
|
509
|
+
], 8, jt),
|
|
501
510
|
d("linearGradient", {
|
|
502
511
|
id: `gradient_tube_body${b.value}`,
|
|
503
512
|
x1: "0%",
|
|
@@ -508,54 +517,54 @@ const gt = ["id"], $t = {
|
|
|
508
517
|
d("stop", {
|
|
509
518
|
offset: "0%",
|
|
510
519
|
"stop-color": `${t.value.style.chart.bar.color}`
|
|
511
|
-
}, null, 8,
|
|
520
|
+
}, null, 8, zt),
|
|
512
521
|
d("stop", {
|
|
513
522
|
offset: "75%",
|
|
514
523
|
"stop-color": u(g)(t.value.style.chart.backgroundColor, 0)
|
|
515
|
-
}, null, 8,
|
|
524
|
+
}, null, 8, Nt),
|
|
516
525
|
d("stop", {
|
|
517
526
|
offset: "100%",
|
|
518
527
|
"stop-color": u(g)(t.value.style.chart.bar.color, 40)
|
|
519
|
-
}, null, 8,
|
|
520
|
-
], 8,
|
|
528
|
+
}, null, 8, Bt)
|
|
529
|
+
], 8, Ot)
|
|
521
530
|
]),
|
|
522
|
-
F.value ? (n(), c("defs",
|
|
531
|
+
F.value ? (n(), c("defs", At, [
|
|
523
532
|
(n(!0), c(_, null, m(C.value, (e) => (n(), c("radialGradient", {
|
|
524
533
|
id: `grad_top_${e.id}`
|
|
525
534
|
}, [
|
|
526
535
|
d("stop", {
|
|
527
536
|
offset: "0%",
|
|
528
537
|
"stop-color": u(g)(u(E)(e.color, 0.5), 80)
|
|
529
|
-
}, null, 8,
|
|
538
|
+
}, null, 8, Lt),
|
|
530
539
|
d("stop", {
|
|
531
540
|
offset: "100%",
|
|
532
541
|
"stop-color": e.color
|
|
533
|
-
}, null, 8,
|
|
534
|
-
], 8,
|
|
542
|
+
}, null, 8, Vt)
|
|
543
|
+
], 8, It))), 256)),
|
|
535
544
|
(n(!0), c(_, null, m(C.value, (e) => (n(), c("linearGradient", {
|
|
536
545
|
id: `grad_left_${e.id}`
|
|
537
546
|
}, [
|
|
538
547
|
d("stop", {
|
|
539
548
|
offset: "0%",
|
|
540
549
|
"stop-color": u(g)(e.color, 80)
|
|
541
|
-
}, null, 8,
|
|
550
|
+
}, null, 8, Gt),
|
|
542
551
|
d("stop", {
|
|
543
552
|
offset: "100%",
|
|
544
|
-
"stop-color": u(g)(u(
|
|
545
|
-
}, null, 8,
|
|
546
|
-
], 8,
|
|
553
|
+
"stop-color": u(g)(u(le)(e.color, 0.5), 100)
|
|
554
|
+
}, null, 8, Ut)
|
|
555
|
+
], 8, Wt))), 256)),
|
|
547
556
|
(n(!0), c(_, null, m(C.value, (e) => (n(), c("linearGradient", {
|
|
548
557
|
id: `grad_right_${e.id}`
|
|
549
558
|
}, [
|
|
550
559
|
d("stop", {
|
|
551
560
|
offset: "2%",
|
|
552
561
|
"stop-color": u(g)(u(E)(e.color, 0.5), 100)
|
|
553
|
-
}, null, 8,
|
|
562
|
+
}, null, 8, Ht),
|
|
554
563
|
d("stop", {
|
|
555
564
|
offset: "100%",
|
|
556
565
|
"stop-color": u(g)(e.color, 80)
|
|
557
|
-
}, null, 8,
|
|
558
|
-
], 8,
|
|
566
|
+
}, null, 8, Rt)
|
|
567
|
+
], 8, Et))), 256)),
|
|
559
568
|
d("linearGradient", {
|
|
560
569
|
x1: "0%",
|
|
561
570
|
y1: "0%",
|
|
@@ -571,7 +580,7 @@ const gt = ["id"], $t = {
|
|
|
571
580
|
offset: "100%",
|
|
572
581
|
"stop-color": "#FFFFFF33"
|
|
573
582
|
}, null, -1)
|
|
574
|
-
]), 8,
|
|
583
|
+
]), 8, Zt)
|
|
575
584
|
])) : y("", !0),
|
|
576
585
|
t.value.style.chart.dataLabel.show && ![null, void 0].includes($.dataset.percentage) && [null, void 0].includes($.dataset.series) ? (n(), c("text", {
|
|
577
586
|
key: 2,
|
|
@@ -585,7 +594,7 @@ const gt = ["id"], $t = {
|
|
|
585
594
|
v: V.value,
|
|
586
595
|
s: "%",
|
|
587
596
|
r: t.value.style.chart.dataLabel.rounding
|
|
588
|
-
})), 9,
|
|
597
|
+
})), 9, qt)) : y("", !0),
|
|
589
598
|
I.value ? (n(), c("g", {
|
|
590
599
|
key: 3,
|
|
591
600
|
onClick: s[0] || (s[0] = (e) => {
|
|
@@ -600,22 +609,22 @@ const gt = ["id"], $t = {
|
|
|
600
609
|
height: 12,
|
|
601
610
|
width: 12,
|
|
602
611
|
fill: "transparent"
|
|
603
|
-
}, null, 8,
|
|
612
|
+
}, null, 8, Xt),
|
|
604
613
|
d("path", {
|
|
605
614
|
d: `M${o.value.width / 2 - 6},${o.value.top - 20} ${o.value.width / 2 + 6},${o.value.top - 9}`,
|
|
606
615
|
stroke: t.value.style.chart.color,
|
|
607
616
|
"stroke-linecap": "round",
|
|
608
617
|
"stroke-width": "1"
|
|
609
|
-
}, null, 8,
|
|
618
|
+
}, null, 8, Yt),
|
|
610
619
|
d("path", {
|
|
611
620
|
d: `M${o.value.width / 2 + 6},${o.value.top - 20} ${o.value.width / 2 - 6},${o.value.top - 9}`,
|
|
612
621
|
stroke: t.value.style.chart.color,
|
|
613
622
|
"stroke-linecap": "round",
|
|
614
623
|
"stroke-width": "1"
|
|
615
|
-
}, null, 8,
|
|
624
|
+
}, null, 8, Jt)
|
|
616
625
|
])) : y("", !0),
|
|
617
|
-
!t.value.style.shape || t.value.style.shape === "bar" ? (n(), c("g",
|
|
618
|
-
F.value ? y("", !0) : (n(), c("g",
|
|
626
|
+
!t.value.style.shape || t.value.style.shape === "bar" ? (n(), c("g", Kt, [
|
|
627
|
+
F.value ? y("", !0) : (n(), c("g", Qt, [
|
|
619
628
|
d("path", {
|
|
620
629
|
"stroke-dasharray": t.value.style.chart.box.strokeDasharray,
|
|
621
630
|
d: z.value.right,
|
|
@@ -624,7 +633,7 @@ const gt = ["id"], $t = {
|
|
|
624
633
|
"stroke-linejoin": "round",
|
|
625
634
|
"stroke-linecap": "round",
|
|
626
635
|
fill: "none"
|
|
627
|
-
}, null, 8,
|
|
636
|
+
}, null, 8, el),
|
|
628
637
|
d("path", {
|
|
629
638
|
"stroke-dasharray": t.value.style.chart.box.strokeDasharray,
|
|
630
639
|
d: z.value.left,
|
|
@@ -633,7 +642,7 @@ const gt = ["id"], $t = {
|
|
|
633
642
|
"stroke-linejoin": "round",
|
|
634
643
|
"stroke-linecap": "round",
|
|
635
644
|
fill: "none"
|
|
636
|
-
}, null, 8,
|
|
645
|
+
}, null, 8, tl),
|
|
637
646
|
d("path", {
|
|
638
647
|
"stroke-dasharray": t.value.style.chart.box.strokeDasharray,
|
|
639
648
|
d: z.value.side,
|
|
@@ -642,7 +651,7 @@ const gt = ["id"], $t = {
|
|
|
642
651
|
"stroke-linejoin": "round",
|
|
643
652
|
"stroke-linecap": "round",
|
|
644
653
|
fill: "none"
|
|
645
|
-
}, null, 8,
|
|
654
|
+
}, null, 8, ll),
|
|
646
655
|
d("path", {
|
|
647
656
|
"stroke-dasharray": t.value.style.chart.box.strokeDasharray,
|
|
648
657
|
d: z.value.topSides,
|
|
@@ -651,9 +660,9 @@ const gt = ["id"], $t = {
|
|
|
651
660
|
"stroke-linejoin": "round",
|
|
652
661
|
"stroke-linecap": "round",
|
|
653
662
|
fill: "none"
|
|
654
|
-
}, null, 8,
|
|
663
|
+
}, null, 8, ol)
|
|
655
664
|
])),
|
|
656
|
-
F.value ? y("", !0) : (n(), c("g",
|
|
665
|
+
F.value ? y("", !0) : (n(), c("g", sl, [
|
|
657
666
|
d("path", {
|
|
658
667
|
d: R.value.right,
|
|
659
668
|
stroke: t.value.style.chart.bar.stroke,
|
|
@@ -661,7 +670,7 @@ const gt = ["id"], $t = {
|
|
|
661
670
|
"stroke-linejoin": "round",
|
|
662
671
|
"stroke-linecap": "round",
|
|
663
672
|
fill: `url(#gradient_right${b.value})`
|
|
664
|
-
}, null, 8,
|
|
673
|
+
}, null, 8, al),
|
|
665
674
|
d("path", {
|
|
666
675
|
d: R.value.left,
|
|
667
676
|
stroke: t.value.style.chart.bar.stroke,
|
|
@@ -669,7 +678,7 @@ const gt = ["id"], $t = {
|
|
|
669
678
|
"stroke-linejoin": "round",
|
|
670
679
|
"stroke-linecap": "round",
|
|
671
680
|
fill: `url(#gradient_left${b.value})`
|
|
672
|
-
}, null, 8,
|
|
681
|
+
}, null, 8, nl),
|
|
673
682
|
d("path", {
|
|
674
683
|
d: R.value.top,
|
|
675
684
|
stroke: t.value.style.chart.bar.stroke,
|
|
@@ -677,9 +686,9 @@ const gt = ["id"], $t = {
|
|
|
677
686
|
"stroke-linejoin": "round",
|
|
678
687
|
"stroke-linecap": "round",
|
|
679
688
|
fill: `url(#gradient_top${b.value})`
|
|
680
|
-
}, null, 8,
|
|
689
|
+
}, null, 8, rl)
|
|
681
690
|
])),
|
|
682
|
-
F.value ? (n(), c("g",
|
|
691
|
+
F.value ? (n(), c("g", ul, [
|
|
683
692
|
(n(!0), c(_, null, m(C.value, (e, h) => (n(), c("g", {
|
|
684
693
|
style: O(`opacity:${x.value ? x.value === e.id ? 1 : 0.3 : 1}`),
|
|
685
694
|
class: "vue-ui-3d-bar-stack"
|
|
@@ -690,21 +699,21 @@ const gt = ["id"], $t = {
|
|
|
690
699
|
onMouseenter: (l) => M(e),
|
|
691
700
|
onClick: (l) => M(e, !0),
|
|
692
701
|
onMouseout: L
|
|
693
|
-
}, null, 40,
|
|
702
|
+
}, null, 40, il),
|
|
694
703
|
d("path", {
|
|
695
704
|
d: e.fill.left,
|
|
696
705
|
fill: `url(#grad_left_${e.id})`,
|
|
697
706
|
onMouseenter: (l) => M(e),
|
|
698
707
|
onClick: (l) => M(e, !0),
|
|
699
708
|
onMouseout: L
|
|
700
|
-
}, null, 40,
|
|
709
|
+
}, null, 40, dl),
|
|
701
710
|
d("path", {
|
|
702
711
|
d: e.fill.top,
|
|
703
712
|
fill: `url(#grad_top_${e.id})`,
|
|
704
713
|
onMouseenter: (l) => M(e),
|
|
705
714
|
onClick: (l) => M(e, !0),
|
|
706
715
|
onMouseout: L
|
|
707
|
-
}, null, 40,
|
|
716
|
+
}, null, 40, cl),
|
|
708
717
|
d("path", {
|
|
709
718
|
d: e.fill.liningTop,
|
|
710
719
|
stroke: "#FFFFFF",
|
|
@@ -714,13 +723,13 @@ const gt = ["id"], $t = {
|
|
|
714
723
|
onMouseenter: (l) => M(e),
|
|
715
724
|
onClick: (l) => M(e, !0),
|
|
716
725
|
onMouseout: L
|
|
717
|
-
}, null, 40,
|
|
726
|
+
}, null, 40, hl),
|
|
718
727
|
d("path", {
|
|
719
728
|
d: `M ${e.fill.apexTop.x},${e.fill.apexTop.y} ${e.fill.apexBottom.x},${e.fill.apexBottom.y}`,
|
|
720
729
|
stroke: "#FFFFFF",
|
|
721
730
|
"stroke-width": "0.5",
|
|
722
731
|
"stroke-linecap": "round"
|
|
723
|
-
}, null, 8,
|
|
732
|
+
}, null, 8, vl)
|
|
724
733
|
], 4))), 256)),
|
|
725
734
|
(n(!0), c(_, null, m(C.value, (e, h) => (n(), c("g", null, [
|
|
726
735
|
h !== C.value.length - 1 ? (n(), c("path", {
|
|
@@ -731,7 +740,7 @@ const gt = ["id"], $t = {
|
|
|
731
740
|
"stroke-linecap": "round",
|
|
732
741
|
fill: "none",
|
|
733
742
|
style: { "pointer-events": "none" }
|
|
734
|
-
}, null, 8,
|
|
743
|
+
}, null, 8, fl)) : y("", !0)
|
|
735
744
|
]))), 256)),
|
|
736
745
|
(n(!0), c(_, null, m(C.value, (e, h) => (n(), c("g", {
|
|
737
746
|
style: O(`opacity:${x.value ? x.value === e.id ? 1 : 0 : e.proportion * 100 > t.value.style.chart.legend.hideUnderPercentage ? 1 : 0}`),
|
|
@@ -743,7 +752,7 @@ const gt = ["id"], $t = {
|
|
|
743
752
|
"stroke-width": "0.5",
|
|
744
753
|
"stroke-linecap": "round",
|
|
745
754
|
d: `M${e.fill.sidePointer.x},${e.fill.sidePointer.y} ${e.fill.sidePointer.x + 20},${e.fill.sidePointer.y}`
|
|
746
|
-
}, null, 8,
|
|
755
|
+
}, null, 8, yl),
|
|
747
756
|
!e.fill.miniDonut || x.value ? (n(), c("circle", {
|
|
748
757
|
key: 0,
|
|
749
758
|
cx: e.fill.sidePointer.x + 20,
|
|
@@ -751,7 +760,7 @@ const gt = ["id"], $t = {
|
|
|
751
760
|
r: 2,
|
|
752
761
|
fill: e.color,
|
|
753
762
|
stroke: t.value.style.chart.backgroundColor
|
|
754
|
-
}, null, 8,
|
|
763
|
+
}, null, 8, kl)) : y("", !0),
|
|
755
764
|
(n(), c("foreignObject", {
|
|
756
765
|
x: e.fill.sidePointer.x + 30,
|
|
757
766
|
y: e.fill.sidePointer.y - t.value.style.chart.legend.fontSize,
|
|
@@ -762,7 +771,7 @@ const gt = ["id"], $t = {
|
|
|
762
771
|
t.value.style.chart.legend.showDefault ? (n(), c("div", {
|
|
763
772
|
key: 0,
|
|
764
773
|
style: O(`height: 100%; width: 100%; display: flex; flex-direction: row; flex-wrap: wrap; align-items:center;justify-content: flex-start; font-size:${t.value.style.chart.legend.fontSize}px; text-align:left; line-height: ${t.value.style.chart.legend.fontSize}px; color:${t.value.style.chart.legend.color}`)
|
|
765
|
-
}, B(u(
|
|
774
|
+
}, B(u(oe)(
|
|
766
775
|
t.value.style.chart.dataLabel.formatter,
|
|
767
776
|
e.value,
|
|
768
777
|
`${e.name}: ${u(D)({ v: e.proportion * 100, s: "%", r: t.value.style.chart.legend.roundingPercentage })} (${u(D)({
|
|
@@ -774,19 +783,19 @@ const gt = ["id"], $t = {
|
|
|
774
783
|
{ datapoint: e, seriesIndex: h, type: "barDatapoint" }
|
|
775
784
|
)), 5)) : y("", !0),
|
|
776
785
|
P(a.$slots, "legend", je({ ref_for: !0 }, { datapoint: e, config: t.value, dataset: C.value }), void 0, !0)
|
|
777
|
-
], 8,
|
|
778
|
-
e.fill.donut && x.value === e.id ? (n(), c("g",
|
|
786
|
+
], 8, gl)),
|
|
787
|
+
e.fill.donut && x.value === e.id ? (n(), c("g", $l, [
|
|
779
788
|
(n(!0), c(_, null, m(e.fill.donut, (l, r) => (n(), c("g", null, [
|
|
780
789
|
W(l, e.fill.donut, !0) > 6 ? (n(), c("path", {
|
|
781
790
|
key: 0,
|
|
782
|
-
d: u(
|
|
791
|
+
d: u(Oe)(l, { x: l.cx, y: l.cy }, 0, 8, !1, !0, 10),
|
|
783
792
|
stroke: l.color,
|
|
784
793
|
class: "vue-ui-donut-arc-path",
|
|
785
794
|
"stroke-width": "0.5",
|
|
786
795
|
"stroke-linecap": "round",
|
|
787
796
|
"stroke-linejoin": "round",
|
|
788
797
|
fill: "none"
|
|
789
|
-
}, null, 8,
|
|
798
|
+
}, null, 8, _l)) : y("", !0)
|
|
790
799
|
]))), 256)),
|
|
791
800
|
(n(!0), c(_, null, m(e.fill.donut, (l, r) => (n(), c("path", {
|
|
792
801
|
class: "vue-ui-donut-arc-path",
|
|
@@ -794,7 +803,7 @@ const gt = ["id"], $t = {
|
|
|
794
803
|
fill: `${l.color}`,
|
|
795
804
|
stroke: t.value.style.chart.backgroundColor,
|
|
796
805
|
"stroke-width": 1
|
|
797
|
-
}, null, 8,
|
|
806
|
+
}, null, 8, ml))), 256)),
|
|
798
807
|
d("defs", null, [
|
|
799
808
|
d("radialGradient", {
|
|
800
809
|
id: `hollow_gradient_${b.value}`
|
|
@@ -802,7 +811,7 @@ const gt = ["id"], $t = {
|
|
|
802
811
|
d("stop", {
|
|
803
812
|
offset: "0%",
|
|
804
813
|
"stop-color": u(g)(t.value.style.chart.backgroundColor, 0)
|
|
805
|
-
}, null, 8,
|
|
814
|
+
}, null, 8, xl),
|
|
806
815
|
s[5] || (s[5] = d("stop", {
|
|
807
816
|
offset: "77%",
|
|
808
817
|
"stop-color": "#FFFFFF20"
|
|
@@ -810,8 +819,8 @@ const gt = ["id"], $t = {
|
|
|
810
819
|
d("stop", {
|
|
811
820
|
offset: "100%",
|
|
812
821
|
"stop-color": u(g)(t.value.style.chart.backgroundColor, 0)
|
|
813
|
-
}, null, 8,
|
|
814
|
-
], 8,
|
|
822
|
+
}, null, 8, wl)
|
|
823
|
+
], 8, bl)
|
|
815
824
|
]),
|
|
816
825
|
(n(!0), c(_, null, m(e.fill.donut, (l, r) => (n(), c("circle", {
|
|
817
826
|
class: "vue-ui-donut-arc-path",
|
|
@@ -819,23 +828,23 @@ const gt = ["id"], $t = {
|
|
|
819
828
|
cy: l.cy,
|
|
820
829
|
r: 28,
|
|
821
830
|
fill: `url(#hollow_gradient_${b.value})`
|
|
822
|
-
}, null, 8,
|
|
831
|
+
}, null, 8, Cl))), 256)),
|
|
823
832
|
(n(!0), c(_, null, m(e.fill.donut, (l, r) => (n(), c("circle", {
|
|
824
833
|
class: "vue-ui-donut-arc-path",
|
|
825
834
|
cx: l.cx,
|
|
826
835
|
cy: l.cy,
|
|
827
836
|
r: 14,
|
|
828
837
|
fill: t.value.style.chart.backgroundColor
|
|
829
|
-
}, null, 8,
|
|
838
|
+
}, null, 8, Fl))), 256)),
|
|
830
839
|
(n(!0), c(_, null, m(e.fill.donut, (l, r) => (n(), c("g", null, [
|
|
831
|
-
W(l, e.fill.donut, !0) > 6 ? (n(), c("g",
|
|
840
|
+
W(l, e.fill.donut, !0) > 6 ? (n(), c("g", Ml, [
|
|
832
841
|
d("text", {
|
|
833
842
|
"text-anchor": u(A)(l, !0, 0).anchor,
|
|
834
843
|
x: u(A)(l, !0, 2).x,
|
|
835
|
-
y: u(
|
|
844
|
+
y: u(se)(l, 12, 12),
|
|
836
845
|
fill: t.value.style.chart.legend.color,
|
|
837
846
|
"font-size": t.value.style.chart.legend.fontSize / 1.5
|
|
838
|
-
}, B(u(
|
|
847
|
+
}, B(u(oe)(
|
|
839
848
|
t.value.style.chart.dataLabel.formatter,
|
|
840
849
|
l.value,
|
|
841
850
|
`${W(l, e.fill.donut)} (${u(D)({
|
|
@@ -845,31 +854,31 @@ const gt = ["id"], $t = {
|
|
|
845
854
|
r: t.value.style.chart.legend.roundingValue
|
|
846
855
|
})})`,
|
|
847
856
|
{ datapoint: l, seriesIndex: r, type: "donutDatapoint" }
|
|
848
|
-
)), 9,
|
|
857
|
+
)), 9, Pl),
|
|
849
858
|
d("text", {
|
|
850
859
|
"text-anchor": u(A)(l).anchor,
|
|
851
860
|
x: u(A)(l, !0, 2).x,
|
|
852
|
-
y: u(
|
|
861
|
+
y: u(se)(l, 12, 12) + t.value.style.chart.legend.fontSize / 1.5,
|
|
853
862
|
fill: t.value.style.chart.legend.color,
|
|
854
863
|
"font-size": t.value.style.chart.legend.fontSize / 1.5
|
|
855
|
-
}, B(l.name), 9,
|
|
864
|
+
}, B(l.name), 9, Sl)
|
|
856
865
|
])) : y("", !0)
|
|
857
866
|
]))), 256))
|
|
858
867
|
])) : y("", !0),
|
|
859
|
-
e.fill.miniDonut && !x.value ? (n(), c("g",
|
|
868
|
+
e.fill.miniDonut && !x.value ? (n(), c("g", jl, [
|
|
860
869
|
(n(!0), c(_, null, m(e.fill.miniDonut, (l, r) => (n(), c("path", {
|
|
861
870
|
class: "vue-ui-donut-arc-path",
|
|
862
871
|
d: l.arcSlice,
|
|
863
872
|
fill: `${l.color}`,
|
|
864
873
|
stroke: t.value.style.chart.backgroundColor,
|
|
865
874
|
"stroke-width": 0.5
|
|
866
|
-
}, null, 8,
|
|
875
|
+
}, null, 8, Tl))), 256))
|
|
867
876
|
])) : y("", !0)
|
|
868
|
-
], 12,
|
|
877
|
+
], 12, pl))), 256))
|
|
869
878
|
])) : y("", !0)
|
|
870
879
|
])) : y("", !0),
|
|
871
|
-
t.value.style.shape === "tube" ? (n(), c("g",
|
|
872
|
-
F.value ? y("", !0) : (n(), c("g",
|
|
880
|
+
t.value.style.shape === "tube" ? (n(), c("g", Dl, [
|
|
881
|
+
F.value ? y("", !0) : (n(), c("g", Ol, [
|
|
873
882
|
d("path", {
|
|
874
883
|
"stroke-dasharray": t.value.style.chart.box.strokeDasharray,
|
|
875
884
|
d: z.value.tubeTop,
|
|
@@ -878,7 +887,7 @@ const gt = ["id"], $t = {
|
|
|
878
887
|
"stroke-linejoin": "round",
|
|
879
888
|
"stroke-linecap": "round",
|
|
880
889
|
fill: "none"
|
|
881
|
-
}, null, 8,
|
|
890
|
+
}, null, 8, zl),
|
|
882
891
|
d("path", {
|
|
883
892
|
"stroke-dasharray": t.value.style.chart.box.strokeDasharray,
|
|
884
893
|
d: z.value.tubeLeft,
|
|
@@ -887,7 +896,7 @@ const gt = ["id"], $t = {
|
|
|
887
896
|
"stroke-linejoin": "round",
|
|
888
897
|
"stroke-linecap": "round",
|
|
889
898
|
fill: "none"
|
|
890
|
-
}, null, 8,
|
|
899
|
+
}, null, 8, Nl),
|
|
891
900
|
d("path", {
|
|
892
901
|
"stroke-dasharray": t.value.style.chart.box.strokeDasharray,
|
|
893
902
|
d: z.value.tubeRight,
|
|
@@ -896,7 +905,7 @@ const gt = ["id"], $t = {
|
|
|
896
905
|
"stroke-linejoin": "round",
|
|
897
906
|
"stroke-linecap": "round",
|
|
898
907
|
fill: "none"
|
|
899
|
-
}, null, 8,
|
|
908
|
+
}, null, 8, Bl),
|
|
900
909
|
d("path", {
|
|
901
910
|
"stroke-dasharray": t.value.style.chart.box.strokeDasharray,
|
|
902
911
|
d: z.value.tubeBottom,
|
|
@@ -905,7 +914,7 @@ const gt = ["id"], $t = {
|
|
|
905
914
|
"stroke-linejoin": "round",
|
|
906
915
|
"stroke-linecap": "round",
|
|
907
916
|
fill: "none"
|
|
908
|
-
}, null, 8,
|
|
917
|
+
}, null, 8, Al),
|
|
909
918
|
d("path", {
|
|
910
919
|
d: R.value.tubeTop,
|
|
911
920
|
stroke: t.value.style.chart.bar.stroke,
|
|
@@ -913,7 +922,7 @@ const gt = ["id"], $t = {
|
|
|
913
922
|
"stroke-linejoin": "round",
|
|
914
923
|
"stroke-linecap": "round",
|
|
915
924
|
fill: `url(#gradient_top${b.value})`
|
|
916
|
-
}, null, 8,
|
|
925
|
+
}, null, 8, Il),
|
|
917
926
|
d("path", {
|
|
918
927
|
d: R.value.tubeBody,
|
|
919
928
|
stroke: t.value.style.chart.bar.stroke,
|
|
@@ -921,9 +930,9 @@ const gt = ["id"], $t = {
|
|
|
921
930
|
"stroke-linejoin": "round",
|
|
922
931
|
"stroke-linecap": "round",
|
|
923
932
|
fill: `url(#gradient_tube_body${b.value})`
|
|
924
|
-
}, null, 8,
|
|
933
|
+
}, null, 8, Ll)
|
|
925
934
|
])),
|
|
926
|
-
F.value ? (n(), c("g",
|
|
935
|
+
F.value ? (n(), c("g", Vl, [
|
|
927
936
|
(n(!0), c(_, null, m(C.value, (e, h) => (n(), c("g", {
|
|
928
937
|
style: O(`opacity:${x.value ? x.value === e.id ? 1 : 0.3 : 1}`),
|
|
929
938
|
class: "vue-ui-3d-bar-stack",
|
|
@@ -938,12 +947,12 @@ const gt = ["id"], $t = {
|
|
|
938
947
|
d("stop", {
|
|
939
948
|
offset: "0%",
|
|
940
949
|
"stop-color": u(g)(u(E)(e.color, 0.5), 80)
|
|
941
|
-
}, null, 8,
|
|
950
|
+
}, null, 8, Ul),
|
|
942
951
|
d("stop", {
|
|
943
952
|
offset: "100%",
|
|
944
|
-
"stop-color": u(g)(u(
|
|
945
|
-
}, null, 8,
|
|
946
|
-
], 8,
|
|
953
|
+
"stop-color": u(g)(u(le)(e.color, 0.1), 80)
|
|
954
|
+
}, null, 8, El)
|
|
955
|
+
], 8, Gl),
|
|
947
956
|
d("linearGradient", {
|
|
948
957
|
id: `gradient_tube_body_${e.id}`,
|
|
949
958
|
x1: "0%",
|
|
@@ -954,24 +963,24 @@ const gt = ["id"], $t = {
|
|
|
954
963
|
d("stop", {
|
|
955
964
|
offset: "0%",
|
|
956
965
|
"stop-color": `${e.color}`
|
|
957
|
-
}, null, 8,
|
|
966
|
+
}, null, 8, Rl),
|
|
958
967
|
d("stop", {
|
|
959
968
|
offset: "10%",
|
|
960
|
-
"stop-color": u(g)(u(
|
|
961
|
-
}, null, 8,
|
|
969
|
+
"stop-color": u(g)(u(le)(e.color, 0.7), 100)
|
|
970
|
+
}, null, 8, Zl),
|
|
962
971
|
d("stop", {
|
|
963
972
|
offset: "25%",
|
|
964
|
-
"stop-color": u(g)(u(
|
|
965
|
-
}, null, 8,
|
|
973
|
+
"stop-color": u(g)(u(le)(e.color, 0.5), 100)
|
|
974
|
+
}, null, 8, ql),
|
|
966
975
|
d("stop", {
|
|
967
976
|
offset: "75%",
|
|
968
977
|
"stop-color": u(g)(e.color, 80)
|
|
969
|
-
}, null, 8,
|
|
978
|
+
}, null, 8, Xl),
|
|
970
979
|
d("stop", {
|
|
971
980
|
offset: "100%",
|
|
972
981
|
"stop-color": u(g)(u(E)(e.color, 0.7), 100)
|
|
973
|
-
}, null, 8,
|
|
974
|
-
], 8,
|
|
982
|
+
}, null, 8, Yl)
|
|
983
|
+
], 8, Hl)
|
|
975
984
|
]),
|
|
976
985
|
d("path", {
|
|
977
986
|
onMouseenter: (l) => M(e),
|
|
@@ -983,7 +992,7 @@ const gt = ["id"], $t = {
|
|
|
983
992
|
"stroke-linejoin": "round",
|
|
984
993
|
"stroke-linecap": "round",
|
|
985
994
|
fill: `url(#gradient_tube_body_${e.id})`
|
|
986
|
-
}, null, 40,
|
|
995
|
+
}, null, 40, Jl),
|
|
987
996
|
h > 0 ? (n(), c("path", {
|
|
988
997
|
key: 0,
|
|
989
998
|
onMouseenter: (l) => M(e),
|
|
@@ -995,7 +1004,7 @@ const gt = ["id"], $t = {
|
|
|
995
1004
|
"stroke-linejoin": "round",
|
|
996
1005
|
"stroke-linecap": "round",
|
|
997
1006
|
fill: "none"
|
|
998
|
-
}, null, 40,
|
|
1007
|
+
}, null, 40, Kl)) : y("", !0),
|
|
999
1008
|
d("path", {
|
|
1000
1009
|
onMouseenter: (l) => M(e),
|
|
1001
1010
|
onClick: (l) => M(e, !0),
|
|
@@ -1006,8 +1015,8 @@ const gt = ["id"], $t = {
|
|
|
1006
1015
|
"stroke-linejoin": "round",
|
|
1007
1016
|
"stroke-linecap": "round",
|
|
1008
1017
|
fill: `url(#gradient_tube_top_${e.id})`
|
|
1009
|
-
}, null, 40,
|
|
1010
|
-
], 12,
|
|
1018
|
+
}, null, 40, Ql)
|
|
1019
|
+
], 12, Wl))), 256)),
|
|
1011
1020
|
(n(!0), c(_, null, m(C.value, (e, h) => (n(), c("g", {
|
|
1012
1021
|
style: O(`opacity:${x.value ? x.value === e.id ? 1 : 0 : e.proportion * 100 > t.value.style.chart.legend.hideUnderPercentage ? 1 : 0}`),
|
|
1013
1022
|
onClick: (l) => Z("selectDatapoint", e)
|
|
@@ -1018,7 +1027,7 @@ const gt = ["id"], $t = {
|
|
|
1018
1027
|
"stroke-width": "0.5",
|
|
1019
1028
|
"stroke-linecap": "round",
|
|
1020
1029
|
d: `M${e.fill.sidePointer.x},${e.fill.sidePointer.y} ${e.fill.sidePointer.x + 20},${e.fill.sidePointer.y}`
|
|
1021
|
-
}, null, 8,
|
|
1030
|
+
}, null, 8, to),
|
|
1022
1031
|
!e.fill.miniDonut || x.value ? (n(), c("circle", {
|
|
1023
1032
|
key: 0,
|
|
1024
1033
|
cx: e.fill.sidePointer.x + 20,
|
|
@@ -1026,7 +1035,7 @@ const gt = ["id"], $t = {
|
|
|
1026
1035
|
r: 2,
|
|
1027
1036
|
fill: e.color,
|
|
1028
1037
|
stroke: t.value.style.chart.backgroundColor
|
|
1029
|
-
}, null, 8,
|
|
1038
|
+
}, null, 8, lo)) : y("", !0),
|
|
1030
1039
|
(n(), c("foreignObject", {
|
|
1031
1040
|
x: e.fill.sidePointer.x + 30,
|
|
1032
1041
|
y: e.fill.sidePointer.y - t.value.style.chart.legend.fontSize,
|
|
@@ -1037,7 +1046,7 @@ const gt = ["id"], $t = {
|
|
|
1037
1046
|
t.value.style.chart.legend.showDefault ? (n(), c("div", {
|
|
1038
1047
|
key: 0,
|
|
1039
1048
|
style: O(`height: 100%; width: 100%; display: flex; flex-direction: row; flex-wrap: wrap; align-items:center;justify-content: flex-start; font-size:${t.value.style.chart.legend.fontSize}px; text-align:left; line-height: ${t.value.style.chart.legend.fontSize}px; color:${t.value.style.chart.legend.color}`)
|
|
1040
|
-
}, B(u(
|
|
1049
|
+
}, B(u(oe)(
|
|
1041
1050
|
t.value.style.chart.dataLabel.formatter,
|
|
1042
1051
|
e.value,
|
|
1043
1052
|
`${e.name}: ${u(D)({ v: e.proportion * 100, s: "%", r: t.value.style.chart.legend.roundingPercentage })} (${u(D)({
|
|
@@ -1049,19 +1058,19 @@ const gt = ["id"], $t = {
|
|
|
1049
1058
|
{ datapoint: e, seriesIndex: h, type: "barDatapoint" }
|
|
1050
1059
|
)), 5)) : y("", !0),
|
|
1051
1060
|
P(a.$slots, "legend", je({ ref_for: !0 }, { datapoint: e, config: t.value, dataset: C.value }), void 0, !0)
|
|
1052
|
-
], 8,
|
|
1053
|
-
e.fill.donut && x.value === e.id ? (n(), c("g",
|
|
1061
|
+
], 8, oo)),
|
|
1062
|
+
e.fill.donut && x.value === e.id ? (n(), c("g", so, [
|
|
1054
1063
|
(n(!0), c(_, null, m(e.fill.donut, (l, r) => (n(), c("g", null, [
|
|
1055
1064
|
W(l, e.fill.donut, !0) > 6 ? (n(), c("path", {
|
|
1056
1065
|
key: 0,
|
|
1057
|
-
d: u(
|
|
1066
|
+
d: u(Oe)(l, { x: l.cx, y: l.cy }, 0, 8, !1, !0, 10),
|
|
1058
1067
|
stroke: l.color,
|
|
1059
1068
|
class: "vue-ui-donut-arc-path",
|
|
1060
1069
|
"stroke-width": "0.5",
|
|
1061
1070
|
"stroke-linecap": "round",
|
|
1062
1071
|
"stroke-linejoin": "round",
|
|
1063
1072
|
fill: "none"
|
|
1064
|
-
}, null, 8,
|
|
1073
|
+
}, null, 8, ao)) : y("", !0)
|
|
1065
1074
|
]))), 256)),
|
|
1066
1075
|
(n(!0), c(_, null, m(e.fill.donut, (l, r) => (n(), c("path", {
|
|
1067
1076
|
class: "vue-ui-donut-arc-path",
|
|
@@ -1069,7 +1078,7 @@ const gt = ["id"], $t = {
|
|
|
1069
1078
|
fill: `${l.color}`,
|
|
1070
1079
|
stroke: t.value.style.chart.backgroundColor,
|
|
1071
1080
|
"stroke-width": 1
|
|
1072
|
-
}, null, 8,
|
|
1081
|
+
}, null, 8, no))), 256)),
|
|
1073
1082
|
d("defs", null, [
|
|
1074
1083
|
d("radialGradient", {
|
|
1075
1084
|
id: `hollow_gradient_${b.value}`
|
|
@@ -1077,7 +1086,7 @@ const gt = ["id"], $t = {
|
|
|
1077
1086
|
d("stop", {
|
|
1078
1087
|
offset: "0%",
|
|
1079
1088
|
"stop-color": u(g)(t.value.style.chart.backgroundColor, 0)
|
|
1080
|
-
}, null, 8,
|
|
1089
|
+
}, null, 8, uo),
|
|
1081
1090
|
s[6] || (s[6] = d("stop", {
|
|
1082
1091
|
offset: "77%",
|
|
1083
1092
|
"stop-color": "#FFFFFF20"
|
|
@@ -1085,8 +1094,8 @@ const gt = ["id"], $t = {
|
|
|
1085
1094
|
d("stop", {
|
|
1086
1095
|
offset: "100%",
|
|
1087
1096
|
"stop-color": u(g)(t.value.style.chart.backgroundColor, 0)
|
|
1088
|
-
}, null, 8,
|
|
1089
|
-
], 8,
|
|
1097
|
+
}, null, 8, io)
|
|
1098
|
+
], 8, ro)
|
|
1090
1099
|
]),
|
|
1091
1100
|
(n(!0), c(_, null, m(e.fill.donut, (l, r) => (n(), c("circle", {
|
|
1092
1101
|
class: "vue-ui-donut-arc-path",
|
|
@@ -1094,23 +1103,23 @@ const gt = ["id"], $t = {
|
|
|
1094
1103
|
cy: l.cy,
|
|
1095
1104
|
r: 28,
|
|
1096
1105
|
fill: `url(#hollow_gradient_${b.value})`
|
|
1097
|
-
}, null, 8,
|
|
1106
|
+
}, null, 8, co))), 256)),
|
|
1098
1107
|
(n(!0), c(_, null, m(e.fill.donut, (l, r) => (n(), c("circle", {
|
|
1099
1108
|
class: "vue-ui-donut-arc-path",
|
|
1100
1109
|
cx: l.cx,
|
|
1101
1110
|
cy: l.cy,
|
|
1102
1111
|
r: 14,
|
|
1103
1112
|
fill: t.value.style.chart.backgroundColor
|
|
1104
|
-
}, null, 8,
|
|
1113
|
+
}, null, 8, ho))), 256)),
|
|
1105
1114
|
(n(!0), c(_, null, m(e.fill.donut, (l, r) => (n(), c("g", null, [
|
|
1106
|
-
W(l, e.fill.donut, !0) > 6 ? (n(), c("g",
|
|
1115
|
+
W(l, e.fill.donut, !0) > 6 ? (n(), c("g", vo, [
|
|
1107
1116
|
d("text", {
|
|
1108
1117
|
"text-anchor": u(A)(l, !0, 0).anchor,
|
|
1109
1118
|
x: u(A)(l, !0, 2).x,
|
|
1110
|
-
y: u(
|
|
1119
|
+
y: u(se)(l, 12, 12),
|
|
1111
1120
|
fill: t.value.style.chart.legend.color,
|
|
1112
1121
|
"font-size": t.value.style.chart.legend.fontSize / 1.5
|
|
1113
|
-
}, B(u(
|
|
1122
|
+
}, B(u(oe)(
|
|
1114
1123
|
t.value.style.chart.dataLabel.formatter,
|
|
1115
1124
|
l.value,
|
|
1116
1125
|
`${W(l, e.fill.donut)} (${u(D)({
|
|
@@ -1120,35 +1129,35 @@ const gt = ["id"], $t = {
|
|
|
1120
1129
|
r: t.value.style.chart.legend.roundingValue
|
|
1121
1130
|
})})`,
|
|
1122
1131
|
{ datapoint: l, seriesIndex: r, type: "donutDatapoint" }
|
|
1123
|
-
)), 9,
|
|
1132
|
+
)), 9, fo),
|
|
1124
1133
|
d("text", {
|
|
1125
1134
|
"text-anchor": u(A)(l).anchor,
|
|
1126
1135
|
x: u(A)(l, !0, 2).x,
|
|
1127
|
-
y: u(
|
|
1136
|
+
y: u(se)(l, 12, 12) + t.value.style.chart.legend.fontSize / 1.5,
|
|
1128
1137
|
fill: t.value.style.chart.legend.color,
|
|
1129
1138
|
"font-size": t.value.style.chart.legend.fontSize / 1.5
|
|
1130
|
-
}, B(l.name), 9,
|
|
1139
|
+
}, B(l.name), 9, po)
|
|
1131
1140
|
])) : y("", !0)
|
|
1132
1141
|
]))), 256))
|
|
1133
1142
|
])) : y("", !0),
|
|
1134
|
-
e.fill.miniDonut && !x.value ? (n(), c("g",
|
|
1143
|
+
e.fill.miniDonut && !x.value ? (n(), c("g", yo, [
|
|
1135
1144
|
(n(!0), c(_, null, m(e.fill.miniDonut, (l, r) => (n(), c("path", {
|
|
1136
1145
|
class: "vue-ui-donut-arc-path",
|
|
1137
1146
|
d: l.arcSlice,
|
|
1138
1147
|
fill: `${l.color}`,
|
|
1139
1148
|
stroke: t.value.style.chart.backgroundColor,
|
|
1140
1149
|
"stroke-width": 0.5
|
|
1141
|
-
}, null, 8,
|
|
1150
|
+
}, null, 8, ko))), 256))
|
|
1142
1151
|
])) : y("", !0)
|
|
1143
|
-
], 12,
|
|
1152
|
+
], 12, eo))), 256))
|
|
1144
1153
|
])) : y("", !0)
|
|
1145
1154
|
])) : y("", !0),
|
|
1146
1155
|
P(a.$slots, "svg", { svg: o.value }, void 0, !0)
|
|
1147
|
-
], 14,
|
|
1148
|
-
a.$slots.watermark ? (n(), c("div",
|
|
1149
|
-
P(a.$slots, "watermark",
|
|
1156
|
+
], 14, bt)) : y("", !0),
|
|
1157
|
+
a.$slots.watermark ? (n(), c("div", go, [
|
|
1158
|
+
P(a.$slots, "watermark", K(Q({ isPrinting: u(ye) || u(ke) })), void 0, !0)
|
|
1150
1159
|
])) : y("", !0),
|
|
1151
|
-
q.value ? y("", !0) : (n(), U(u(
|
|
1160
|
+
q.value ? y("", !0) : (n(), U(u(Ge), {
|
|
1152
1161
|
key: 5,
|
|
1153
1162
|
config: {
|
|
1154
1163
|
type: "bar3d",
|
|
@@ -1160,10 +1169,10 @@ const gt = ["id"], $t = {
|
|
|
1160
1169
|
}
|
|
1161
1170
|
}
|
|
1162
1171
|
}, null, 8, ["config"])),
|
|
1163
|
-
a.$slots.source ? (n(), c("div",
|
|
1172
|
+
a.$slots.source ? (n(), c("div", $o, [
|
|
1164
1173
|
P(a.$slots, "source", {}, void 0, !0)
|
|
1165
1174
|
], 512)) : y("", !0),
|
|
1166
|
-
q.value && F.value ? (n(), U(u(
|
|
1175
|
+
q.value && F.value ? (n(), U(u(Ie), {
|
|
1167
1176
|
key: 7,
|
|
1168
1177
|
hideDetails: "",
|
|
1169
1178
|
config: {
|
|
@@ -1179,33 +1188,33 @@ const gt = ["id"], $t = {
|
|
|
1179
1188
|
}
|
|
1180
1189
|
}
|
|
1181
1190
|
}, {
|
|
1182
|
-
content:
|
|
1183
|
-
(n(), U(u(
|
|
1191
|
+
content: T(() => [
|
|
1192
|
+
(n(), U(u(Le), {
|
|
1184
1193
|
key: `table_${ce.value}`,
|
|
1185
|
-
colNames:
|
|
1186
|
-
head:
|
|
1187
|
-
body:
|
|
1188
|
-
config:
|
|
1194
|
+
colNames: Y.value.colNames,
|
|
1195
|
+
head: Y.value.head,
|
|
1196
|
+
body: Y.value.body,
|
|
1197
|
+
config: Y.value.config,
|
|
1189
1198
|
title: `${t.value.style.chart.title.text}${t.value.style.chart.title.subtitle.text ? ` : ${t.value.style.chart.title.subtitle.text}` : ""}`,
|
|
1190
1199
|
onClose: s[1] || (s[1] = (e) => H.value.showTable = !1)
|
|
1191
1200
|
}, {
|
|
1192
|
-
th:
|
|
1201
|
+
th: T(({ th: e }) => [
|
|
1193
1202
|
d("div", {
|
|
1194
1203
|
innerHTML: e,
|
|
1195
1204
|
style: { display: "flex", "align-items": "center" }
|
|
1196
|
-
}, null, 8,
|
|
1205
|
+
}, null, 8, _o)
|
|
1197
1206
|
]),
|
|
1198
|
-
td:
|
|
1199
|
-
|
|
1207
|
+
td: T(({ td: e }) => [
|
|
1208
|
+
ot(B(e.name || e), 1)
|
|
1200
1209
|
]),
|
|
1201
1210
|
_: 1
|
|
1202
1211
|
}, 8, ["colNames", "head", "body", "config", "title"]))
|
|
1203
1212
|
]),
|
|
1204
1213
|
_: 1
|
|
1205
1214
|
}, 8, ["config"])) : y("", !0)
|
|
1206
|
-
], 44,
|
|
1215
|
+
], 44, _t));
|
|
1207
1216
|
}
|
|
1208
|
-
},
|
|
1217
|
+
}, To = /* @__PURE__ */ $t(mo, [["__scopeId", "data-v-32be7edd"]]);
|
|
1209
1218
|
export {
|
|
1210
|
-
|
|
1219
|
+
To as default
|
|
1211
1220
|
};
|