vue-data-ui 2.16.6 → 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 +83 -53
- package/dist/{Arrow-DCqxVwey.js → Arrow-BAEkZGzL.js} +1 -1
- package/dist/{BaseDraggableDialog-6DIKXIBU.js → BaseDraggableDialog-ChCkcmj_.js} +2 -2
- package/dist/{BaseIcon-Bn996RXm.js → BaseIcon-naqtCxVi.js} +1 -1
- package/dist/{ColorPicker-OFfLkKNb.js → ColorPicker-CfIPgxcj.js} +2 -2
- package/dist/{DataTable-CHBLjKtZ.js → DataTable-D0VYDhfx.js} +2 -2
- package/dist/{Legend-nBXoxXJH.js → Legend-Bxlv67uY.js} +2 -2
- package/dist/{NonSvgPenAndPaper-Cls2idJS.js → NonSvgPenAndPaper-b_oVy-Dd.js} +3 -3
- package/dist/{PackageVersion-Bg_9KCU-.js → PackageVersion-5TR4ocqp.js} +1 -1
- package/dist/{PenAndPaper-BPTpbnay.js → PenAndPaper-D6AqipIO.js} +32 -32
- package/dist/{Shape-Bnf512BA.js → Shape-DtFT5EJa.js} +1 -1
- package/dist/{Slicer-BrqtJG2E.js → Slicer-CL6-MRI6.js} +2 -2
- package/dist/{SparkTooltip-C-rLATAw.js → SparkTooltip-Bcv1aoA5.js} +1 -1
- package/dist/{Title-Gi81VwUM.js → Title-B-2bV0SW.js} +1 -1
- package/dist/{Tooltip-CJxVw7-T.js → Tooltip-CoQnTnr-.js} +1 -1
- package/dist/{UserOptions-CBEK6_jo.js → UserOptions-Dd34lEKb.js} +2 -2
- package/dist/{dom-to-png-CRHNL8VU.js → dom-to-png-2AA0wHlX.js} +1 -1
- package/dist/{img-BgOg8opa.js → img-Y_hYz-ZC.js} +1 -1
- package/dist/{index-DvIXJm6t.js → index-pPGk-uhD.js} +1 -1
- package/dist/{pdf-DhTxBrbJ.js → pdf-yfk3d1is.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +1096 -160
- package/dist/types/vue-data-ui.d.ts +1096 -160
- package/dist/{useNestedProp-DrYHm61t.js → useNestedProp-DjACxgdZ.js} +1 -1
- package/dist/{usePrinter-CWnXbGMb.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-CtlB4p7i.js → vue-ui-3d-bar-D5Wpdqfk.js} +228 -220
- package/dist/{vue-ui-accordion-D55kCO5G.js → vue-ui-accordion-CVnA550V.js} +3 -3
- package/dist/{vue-ui-age-pyramid-DSshyUn-.js → vue-ui-age-pyramid-BuAl-zC5.js} +179 -171
- package/dist/{vue-ui-annotator-DQSMv_k2.js → vue-ui-annotator-gl2A20m3.js} +2 -2
- package/dist/{vue-ui-bullet-FeScjj7q.js → vue-ui-bullet-D-VMKpwe.js} +127 -119
- package/dist/{vue-ui-candlestick-Drupgyoi.js → vue-ui-candlestick-1r6YwiUV.js} +194 -186
- package/dist/{vue-ui-carousel-table-BTZQRZfO.js → vue-ui-carousel-table-B6UJoNtP.js} +4 -4
- package/dist/{vue-ui-chestnut-DLWjPwRL.js → vue-ui-chestnut-DnlBYpC5.js} +226 -218
- package/dist/{vue-ui-chord-BgLbFBT9.js → vue-ui-chord-D3kpzYjp.js} +175 -167
- package/dist/{vue-ui-circle-pack-VXcRh2gy.js → vue-ui-circle-pack-CHgdpoYu.js} +188 -180
- package/dist/{vue-ui-cursor-DWmfnM25.js → vue-ui-cursor-63EAvElT.js} +2 -2
- package/dist/{vue-ui-dashboard-CGIocEHj.js → vue-ui-dashboard-Da6CPET-.js} +62 -62
- package/dist/{vue-ui-digits-BgQch3Fc.js → vue-ui-digits-CA8pUKej.js} +2 -2
- package/dist/{vue-ui-donut-B59bCV5_.js → vue-ui-donut-CKa7nFjt.js} +329 -321
- package/dist/{vue-ui-donut-evolution-CI8qBIQd.js → vue-ui-donut-evolution-qeBEA4W8.js} +245 -237
- package/dist/{vue-ui-dumbbell-CXv7sk88.js → vue-ui-dumbbell-Bm0PvAKT.js} +144 -136
- package/dist/{vue-ui-flow-DxF0ELtv.js → vue-ui-flow-C2dqXvrU.js} +169 -161
- package/dist/{vue-ui-funnel-Bco8rqF8.js → vue-ui-funnel-Dvy5rRld.js} +132 -124
- package/dist/{vue-ui-galaxy-CaPJwwOj.js → vue-ui-galaxy-Y8LYp5n2.js} +168 -160
- package/dist/{vue-ui-gauge-D7arhDmb.js → vue-ui-gauge-BBo0jWAP.js} +164 -156
- package/dist/{vue-ui-gizmo-Dwli-Mip.js → vue-ui-gizmo-DjXfTOWn.js} +3 -3
- package/dist/{vue-ui-heatmap-Cyn-ahGO.js → vue-ui-heatmap-BbxRpltP.js} +240 -228
- package/dist/{vue-ui-history-plot-C2AEToqx.js → vue-ui-history-plot-ChYf3Nvc.js} +214 -206
- package/dist/{vue-ui-kpi-DKDibSdl.js → vue-ui-kpi-Vfc5-JnE.js} +3 -3
- package/dist/{vue-ui-mini-loader-B8OVutUx.js → vue-ui-mini-loader-C0-Nsz8K.js} +2 -2
- package/dist/{vue-ui-molecule-BVSrqIGw.js → vue-ui-molecule-B7Yu7vzF.js} +158 -150
- package/dist/{vue-ui-mood-radar-DvlyS3RN.js → vue-ui-mood-radar-C8JUTwNw.js} +128 -120
- package/dist/{vue-ui-nested-donuts-D9ssSus6.js → vue-ui-nested-donuts-D0RgFifU.js} +196 -188
- package/dist/{vue-ui-onion-Buu4VX3u.js → vue-ui-onion-D4U7TL_N.js} +166 -158
- package/dist/{vue-ui-parallel-coordinate-plot-DFLUvhxD.js → vue-ui-parallel-coordinate-plot-CXMT7Rjr.js} +186 -178
- package/dist/{vue-ui-quadrant-BMC7NBGd.js → vue-ui-quadrant-B13pTVVZ.js} +182 -174
- package/dist/{vue-ui-quick-chart-DB9RKUkb.js → vue-ui-quick-chart-C0UL4o63.js} +305 -297
- package/dist/{vue-ui-radar-68NMPxxQ.js → vue-ui-radar-XpdiXnhz.js} +167 -159
- package/dist/{vue-ui-rating-swH9kRr3.js → vue-ui-rating-CM8ZrUb1.js} +2 -2
- package/dist/{vue-ui-relation-circle-CT-EdSjO.js → vue-ui-relation-circle-CYoFNekk.js} +144 -136
- package/dist/{vue-ui-ridgeline-DftROPaX.js → vue-ui-ridgeline-QUquE6ck.js} +196 -188
- package/dist/{vue-ui-rings-M-9dPI5D.js → vue-ui-rings-DwT0IfOh.js} +145 -137
- package/dist/{vue-ui-scatter-CsGhaFJh.js → vue-ui-scatter-zDpy1udm.js} +179 -172
- package/dist/{vue-ui-skeleton-BAOt2neL.js → vue-ui-skeleton-DJPjyNYn.js} +3 -3
- package/dist/{vue-ui-smiley-7_kIgPg-.js → vue-ui-smiley-DoDXl6k0.js} +2 -2
- package/dist/{vue-ui-spark-trend-DHlQQpwz.js → vue-ui-spark-trend-CniV6Cpr.js} +3 -3
- package/dist/{vue-ui-sparkbar-BnHhzuKf.js → vue-ui-sparkbar-Ds2ITgwn.js} +3 -3
- package/dist/{vue-ui-sparkgauge-WtfkCK8g.js → vue-ui-sparkgauge-CosfK-kw.js} +3 -3
- package/dist/{vue-ui-sparkhistogram-B2u4XLVd.js → vue-ui-sparkhistogram-C7O1wPAJ.js} +4 -4
- package/dist/{vue-ui-sparkline-DKIyUlSm.js → vue-ui-sparkline-B_iUj3F2.js} +3 -3
- package/dist/{vue-ui-sparkstackbar-BLGz2qIb.js → vue-ui-sparkstackbar-DBhWrysr.js} +3 -3
- package/dist/{vue-ui-stackbar-BDpMsTYe.js → vue-ui-stackbar-C3aV4IcL.js} +240 -232
- package/dist/{vue-ui-strip-plot-5qDcYPnR.js → vue-ui-strip-plot-Bvr1GAzH.js} +204 -196
- package/dist/{vue-ui-table-Bg5HIQ3O.js → vue-ui-table-DQKKRgyo.js} +3 -3
- package/dist/{vue-ui-table-heatmap-DmjNy1q1.js → vue-ui-table-heatmap-Dyqj5XJC.js} +5 -5
- package/dist/{vue-ui-table-sparkline-CnkJkBk5.js → vue-ui-table-sparkline-D4RubyLj.js} +4 -4
- package/dist/{vue-ui-thermometer-RlD-9mJf.js → vue-ui-thermometer-B0FKI5cG.js} +145 -137
- package/dist/{vue-ui-timer-Bes74INL.js → vue-ui-timer-DUCBRIl-.js} +5 -5
- package/dist/{vue-ui-tiremarks-DiLS3akQ.js → vue-ui-tiremarks-CRt4UQZD.js} +108 -100
- package/dist/vue-ui-treemap-CWP5nYDx.js +961 -0
- package/dist/{vue-ui-vertical-bar-CwqQyZFX.js → vue-ui-vertical-bar-C5fPYltO.js} +278 -270
- package/dist/{vue-ui-waffle-Ce3T4BPp.js → vue-ui-waffle-BpWLlfpg.js} +188 -180
- package/dist/{vue-ui-wheel-6B0WTkf2.js → vue-ui-wheel-CTzuCroy.js} +112 -104
- package/dist/{vue-ui-word-cloud-ByYZCOh7.js → vue-ui-word-cloud-BPokdaP1.js} +198 -190
- package/dist/{vue-ui-world-B9PxVO4n.js → vue-ui-world-CS6k-oil.js} +199 -191
- package/dist/{vue-ui-xy-DtJ7qJib.js → vue-ui-xy-CQ425kLR.js} +550 -544
- package/dist/{vue-ui-xy-canvas-S6YpFgzs.js → vue-ui-xy-canvas-D2IFwAr7.js} +306 -298
- package/package.json +1 -1
- package/dist/vue-data-ui-B8EWlMIK.js +0 -301
- package/dist/vue-ui-treemap-BG1Omm38.js +0 -953
|
@@ -1,22 +1,23 @@
|
|
|
1
|
-
import { defineAsyncComponent as G, computed as j, ref as S, watch 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,32 +34,32 @@ 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
64
|
}), F = j(() => $.dataset.series && $.dataset.series.length), o = j(() => ({
|
|
64
65
|
height: t.value.style.chart.box.dimensions.height,
|
|
@@ -73,16 +74,16 @@ const gt = ["id"], $t = {
|
|
|
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
|
-
id:
|
|
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
|
}
|
|
@@ -97,7 +98,7 @@ const gt = ["id"], $t = {
|
|
|
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
100
|
})), V = S(t.value.style.chart.animation.use ? 0 : $.dataset.percentage);
|
|
100
|
-
|
|
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,
|
|
@@ -237,9 +238,9 @@ 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;
|
|
@@ -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,26 +382,26 @@ 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,
|
|
383
|
-
onToggleFullscreen:
|
|
391
|
+
onToggleFullscreen: be,
|
|
384
392
|
onGeneratePdf: u(ge),
|
|
385
|
-
onGenerateCsv:
|
|
393
|
+
onGenerateCsv: xe,
|
|
386
394
|
onGenerateImage: u($e),
|
|
387
|
-
onToggleTable:
|
|
388
|
-
onToggleAnnotator:
|
|
395
|
+
onToggleTable: we,
|
|
396
|
+
onToggleAnnotator: re,
|
|
389
397
|
style: O({
|
|
390
|
-
visibility: u(ve) ? u(
|
|
398
|
+
visibility: u(ve) ? u(ae) ? "visible" : "hidden" : "visible"
|
|
391
399
|
})
|
|
392
|
-
},
|
|
400
|
+
}, tt({ _: 2 }, [
|
|
393
401
|
a.$slots.menuIcon ? {
|
|
394
402
|
name: "menuIcon",
|
|
395
403
|
fn: T(({ isOpen: e, color: h }) => [
|
|
396
|
-
P(a.$slots, "menuIcon",
|
|
404
|
+
P(a.$slots, "menuIcon", K(Q({ isOpen: e, color: h })), void 0, !0)
|
|
397
405
|
]),
|
|
398
406
|
key: "0"
|
|
399
407
|
} : void 0,
|
|
@@ -428,14 +436,14 @@ const gt = ["id"], $t = {
|
|
|
428
436
|
a.$slots.optionFullscreen ? {
|
|
429
437
|
name: "optionFullscreen",
|
|
430
438
|
fn: T(({ toggleFullscreen: e, isFullscreen: h }) => [
|
|
431
|
-
P(a.$slots, "optionFullscreen",
|
|
439
|
+
P(a.$slots, "optionFullscreen", K(Q({ toggleFullscreen: e, isFullscreen: h })), void 0, !0)
|
|
432
440
|
]),
|
|
433
441
|
key: "5"
|
|
434
442
|
} : void 0,
|
|
435
443
|
a.$slots.optionAnnotator ? {
|
|
436
444
|
name: "optionAnnotator",
|
|
437
445
|
fn: T(({ toggleAnnotator: e, isAnnotator: h }) => [
|
|
438
|
-
P(a.$slots, "optionAnnotator",
|
|
446
|
+
P(a.$slots, "optionAnnotator", K(Q({ toggleAnnotator: e, isAnnotator: h })), void 0, !0)
|
|
439
447
|
]),
|
|
440
448
|
key: "6"
|
|
441
449
|
} : void 0
|
|
@@ -444,12 +452,12 @@ const gt = ["id"], $t = {
|
|
|
444
452
|
key: 3,
|
|
445
453
|
ref_key: "svgRef",
|
|
446
454
|
ref: fe,
|
|
447
|
-
xmlns: u(
|
|
448
|
-
class:
|
|
455
|
+
xmlns: u(ct),
|
|
456
|
+
class: Se({ "vue-data-ui-fullscreen--on": ne.value, "vue-data-ui-fulscreen--off": !ne.value }),
|
|
449
457
|
viewBox: `0 0 ${o.value.absoluteWidth} ${o.value.height}`,
|
|
450
458
|
style: O(`max-width:100%; overflow: visible; background:transparent;color:${t.value.style.chart.color}`)
|
|
451
459
|
}, [
|
|
452
|
-
|
|
460
|
+
lt(u(Ve)),
|
|
453
461
|
a.$slots["chart-background"] ? (n(), c("foreignObject", {
|
|
454
462
|
key: 0,
|
|
455
463
|
x: 0,
|
|
@@ -461,7 +469,7 @@ const gt = ["id"], $t = {
|
|
|
461
469
|
}
|
|
462
470
|
}, [
|
|
463
471
|
P(a.$slots, "chart-background", {}, void 0, !0)
|
|
464
|
-
], 8,
|
|
472
|
+
], 8, xt)) : y("", !0),
|
|
465
473
|
d("defs", null, [
|
|
466
474
|
d("radialGradient", {
|
|
467
475
|
id: `gradient_top${b.value}`
|
|
@@ -469,36 +477,36 @@ const gt = ["id"], $t = {
|
|
|
469
477
|
d("stop", {
|
|
470
478
|
offset: "0%",
|
|
471
479
|
"stop-color": u(g)(t.value.style.chart.backgroundColor, 0)
|
|
472
|
-
}, null, 8,
|
|
480
|
+
}, null, 8, Ct),
|
|
473
481
|
d("stop", {
|
|
474
482
|
offset: "100%",
|
|
475
483
|
"stop-color": t.value.style.chart.bar.color
|
|
476
|
-
}, null, 8,
|
|
477
|
-
], 8,
|
|
484
|
+
}, null, 8, Ft)
|
|
485
|
+
], 8, wt),
|
|
478
486
|
d("radialGradient", {
|
|
479
487
|
id: `gradient_left${b.value}`
|
|
480
488
|
}, [
|
|
481
489
|
d("stop", {
|
|
482
490
|
offset: "0%",
|
|
483
491
|
"stop-color": u(g)(t.value.style.chart.backgroundColor, 0)
|
|
484
|
-
}, null, 8,
|
|
492
|
+
}, null, 8, Pt),
|
|
485
493
|
d("stop", {
|
|
486
494
|
offset: "100%",
|
|
487
495
|
"stop-color": u(g)(t.value.style.chart.bar.color, 20)
|
|
488
|
-
}, null, 8,
|
|
489
|
-
], 8,
|
|
496
|
+
}, null, 8, St)
|
|
497
|
+
], 8, Mt),
|
|
490
498
|
d("radialGradient", {
|
|
491
499
|
id: `gradient_right${b.value}`
|
|
492
500
|
}, [
|
|
493
501
|
d("stop", {
|
|
494
502
|
offset: "0%",
|
|
495
503
|
"stop-color": u(g)(t.value.style.chart.backgroundColor, 0)
|
|
496
|
-
}, null, 8,
|
|
504
|
+
}, null, 8, Tt),
|
|
497
505
|
d("stop", {
|
|
498
506
|
offset: "100%",
|
|
499
507
|
"stop-color": u(g)(t.value.style.chart.bar.color, 20)
|
|
500
|
-
}, null, 8,
|
|
501
|
-
], 8,
|
|
508
|
+
}, null, 8, Dt)
|
|
509
|
+
], 8, jt),
|
|
502
510
|
d("linearGradient", {
|
|
503
511
|
id: `gradient_tube_body${b.value}`,
|
|
504
512
|
x1: "0%",
|
|
@@ -509,54 +517,54 @@ const gt = ["id"], $t = {
|
|
|
509
517
|
d("stop", {
|
|
510
518
|
offset: "0%",
|
|
511
519
|
"stop-color": `${t.value.style.chart.bar.color}`
|
|
512
|
-
}, null, 8,
|
|
520
|
+
}, null, 8, zt),
|
|
513
521
|
d("stop", {
|
|
514
522
|
offset: "75%",
|
|
515
523
|
"stop-color": u(g)(t.value.style.chart.backgroundColor, 0)
|
|
516
|
-
}, null, 8,
|
|
524
|
+
}, null, 8, Nt),
|
|
517
525
|
d("stop", {
|
|
518
526
|
offset: "100%",
|
|
519
527
|
"stop-color": u(g)(t.value.style.chart.bar.color, 40)
|
|
520
|
-
}, null, 8,
|
|
521
|
-
], 8,
|
|
528
|
+
}, null, 8, Bt)
|
|
529
|
+
], 8, Ot)
|
|
522
530
|
]),
|
|
523
|
-
F.value ? (n(), c("defs",
|
|
531
|
+
F.value ? (n(), c("defs", At, [
|
|
524
532
|
(n(!0), c(_, null, m(C.value, (e) => (n(), c("radialGradient", {
|
|
525
533
|
id: `grad_top_${e.id}`
|
|
526
534
|
}, [
|
|
527
535
|
d("stop", {
|
|
528
536
|
offset: "0%",
|
|
529
537
|
"stop-color": u(g)(u(E)(e.color, 0.5), 80)
|
|
530
|
-
}, null, 8,
|
|
538
|
+
}, null, 8, Lt),
|
|
531
539
|
d("stop", {
|
|
532
540
|
offset: "100%",
|
|
533
541
|
"stop-color": e.color
|
|
534
|
-
}, null, 8,
|
|
535
|
-
], 8,
|
|
542
|
+
}, null, 8, Vt)
|
|
543
|
+
], 8, It))), 256)),
|
|
536
544
|
(n(!0), c(_, null, m(C.value, (e) => (n(), c("linearGradient", {
|
|
537
545
|
id: `grad_left_${e.id}`
|
|
538
546
|
}, [
|
|
539
547
|
d("stop", {
|
|
540
548
|
offset: "0%",
|
|
541
549
|
"stop-color": u(g)(e.color, 80)
|
|
542
|
-
}, null, 8,
|
|
550
|
+
}, null, 8, Gt),
|
|
543
551
|
d("stop", {
|
|
544
552
|
offset: "100%",
|
|
545
|
-
"stop-color": u(g)(u(
|
|
546
|
-
}, null, 8,
|
|
547
|
-
], 8,
|
|
553
|
+
"stop-color": u(g)(u(le)(e.color, 0.5), 100)
|
|
554
|
+
}, null, 8, Ut)
|
|
555
|
+
], 8, Wt))), 256)),
|
|
548
556
|
(n(!0), c(_, null, m(C.value, (e) => (n(), c("linearGradient", {
|
|
549
557
|
id: `grad_right_${e.id}`
|
|
550
558
|
}, [
|
|
551
559
|
d("stop", {
|
|
552
560
|
offset: "2%",
|
|
553
561
|
"stop-color": u(g)(u(E)(e.color, 0.5), 100)
|
|
554
|
-
}, null, 8,
|
|
562
|
+
}, null, 8, Ht),
|
|
555
563
|
d("stop", {
|
|
556
564
|
offset: "100%",
|
|
557
565
|
"stop-color": u(g)(e.color, 80)
|
|
558
|
-
}, null, 8,
|
|
559
|
-
], 8,
|
|
566
|
+
}, null, 8, Rt)
|
|
567
|
+
], 8, Et))), 256)),
|
|
560
568
|
d("linearGradient", {
|
|
561
569
|
x1: "0%",
|
|
562
570
|
y1: "0%",
|
|
@@ -572,7 +580,7 @@ const gt = ["id"], $t = {
|
|
|
572
580
|
offset: "100%",
|
|
573
581
|
"stop-color": "#FFFFFF33"
|
|
574
582
|
}, null, -1)
|
|
575
|
-
]), 8,
|
|
583
|
+
]), 8, Zt)
|
|
576
584
|
])) : y("", !0),
|
|
577
585
|
t.value.style.chart.dataLabel.show && ![null, void 0].includes($.dataset.percentage) && [null, void 0].includes($.dataset.series) ? (n(), c("text", {
|
|
578
586
|
key: 2,
|
|
@@ -586,7 +594,7 @@ const gt = ["id"], $t = {
|
|
|
586
594
|
v: V.value,
|
|
587
595
|
s: "%",
|
|
588
596
|
r: t.value.style.chart.dataLabel.rounding
|
|
589
|
-
})), 9,
|
|
597
|
+
})), 9, qt)) : y("", !0),
|
|
590
598
|
I.value ? (n(), c("g", {
|
|
591
599
|
key: 3,
|
|
592
600
|
onClick: s[0] || (s[0] = (e) => {
|
|
@@ -601,22 +609,22 @@ const gt = ["id"], $t = {
|
|
|
601
609
|
height: 12,
|
|
602
610
|
width: 12,
|
|
603
611
|
fill: "transparent"
|
|
604
|
-
}, null, 8,
|
|
612
|
+
}, null, 8, Xt),
|
|
605
613
|
d("path", {
|
|
606
614
|
d: `M${o.value.width / 2 - 6},${o.value.top - 20} ${o.value.width / 2 + 6},${o.value.top - 9}`,
|
|
607
615
|
stroke: t.value.style.chart.color,
|
|
608
616
|
"stroke-linecap": "round",
|
|
609
617
|
"stroke-width": "1"
|
|
610
|
-
}, null, 8,
|
|
618
|
+
}, null, 8, Yt),
|
|
611
619
|
d("path", {
|
|
612
620
|
d: `M${o.value.width / 2 + 6},${o.value.top - 20} ${o.value.width / 2 - 6},${o.value.top - 9}`,
|
|
613
621
|
stroke: t.value.style.chart.color,
|
|
614
622
|
"stroke-linecap": "round",
|
|
615
623
|
"stroke-width": "1"
|
|
616
|
-
}, null, 8,
|
|
624
|
+
}, null, 8, Jt)
|
|
617
625
|
])) : y("", !0),
|
|
618
|
-
!t.value.style.shape || t.value.style.shape === "bar" ? (n(), c("g",
|
|
619
|
-
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, [
|
|
620
628
|
d("path", {
|
|
621
629
|
"stroke-dasharray": t.value.style.chart.box.strokeDasharray,
|
|
622
630
|
d: z.value.right,
|
|
@@ -625,7 +633,7 @@ const gt = ["id"], $t = {
|
|
|
625
633
|
"stroke-linejoin": "round",
|
|
626
634
|
"stroke-linecap": "round",
|
|
627
635
|
fill: "none"
|
|
628
|
-
}, null, 8,
|
|
636
|
+
}, null, 8, el),
|
|
629
637
|
d("path", {
|
|
630
638
|
"stroke-dasharray": t.value.style.chart.box.strokeDasharray,
|
|
631
639
|
d: z.value.left,
|
|
@@ -634,7 +642,7 @@ const gt = ["id"], $t = {
|
|
|
634
642
|
"stroke-linejoin": "round",
|
|
635
643
|
"stroke-linecap": "round",
|
|
636
644
|
fill: "none"
|
|
637
|
-
}, null, 8,
|
|
645
|
+
}, null, 8, tl),
|
|
638
646
|
d("path", {
|
|
639
647
|
"stroke-dasharray": t.value.style.chart.box.strokeDasharray,
|
|
640
648
|
d: z.value.side,
|
|
@@ -643,7 +651,7 @@ const gt = ["id"], $t = {
|
|
|
643
651
|
"stroke-linejoin": "round",
|
|
644
652
|
"stroke-linecap": "round",
|
|
645
653
|
fill: "none"
|
|
646
|
-
}, null, 8,
|
|
654
|
+
}, null, 8, ll),
|
|
647
655
|
d("path", {
|
|
648
656
|
"stroke-dasharray": t.value.style.chart.box.strokeDasharray,
|
|
649
657
|
d: z.value.topSides,
|
|
@@ -652,9 +660,9 @@ const gt = ["id"], $t = {
|
|
|
652
660
|
"stroke-linejoin": "round",
|
|
653
661
|
"stroke-linecap": "round",
|
|
654
662
|
fill: "none"
|
|
655
|
-
}, null, 8,
|
|
663
|
+
}, null, 8, ol)
|
|
656
664
|
])),
|
|
657
|
-
F.value ? y("", !0) : (n(), c("g",
|
|
665
|
+
F.value ? y("", !0) : (n(), c("g", sl, [
|
|
658
666
|
d("path", {
|
|
659
667
|
d: R.value.right,
|
|
660
668
|
stroke: t.value.style.chart.bar.stroke,
|
|
@@ -662,7 +670,7 @@ const gt = ["id"], $t = {
|
|
|
662
670
|
"stroke-linejoin": "round",
|
|
663
671
|
"stroke-linecap": "round",
|
|
664
672
|
fill: `url(#gradient_right${b.value})`
|
|
665
|
-
}, null, 8,
|
|
673
|
+
}, null, 8, al),
|
|
666
674
|
d("path", {
|
|
667
675
|
d: R.value.left,
|
|
668
676
|
stroke: t.value.style.chart.bar.stroke,
|
|
@@ -670,7 +678,7 @@ const gt = ["id"], $t = {
|
|
|
670
678
|
"stroke-linejoin": "round",
|
|
671
679
|
"stroke-linecap": "round",
|
|
672
680
|
fill: `url(#gradient_left${b.value})`
|
|
673
|
-
}, null, 8,
|
|
681
|
+
}, null, 8, nl),
|
|
674
682
|
d("path", {
|
|
675
683
|
d: R.value.top,
|
|
676
684
|
stroke: t.value.style.chart.bar.stroke,
|
|
@@ -678,9 +686,9 @@ const gt = ["id"], $t = {
|
|
|
678
686
|
"stroke-linejoin": "round",
|
|
679
687
|
"stroke-linecap": "round",
|
|
680
688
|
fill: `url(#gradient_top${b.value})`
|
|
681
|
-
}, null, 8,
|
|
689
|
+
}, null, 8, rl)
|
|
682
690
|
])),
|
|
683
|
-
F.value ? (n(), c("g",
|
|
691
|
+
F.value ? (n(), c("g", ul, [
|
|
684
692
|
(n(!0), c(_, null, m(C.value, (e, h) => (n(), c("g", {
|
|
685
693
|
style: O(`opacity:${x.value ? x.value === e.id ? 1 : 0.3 : 1}`),
|
|
686
694
|
class: "vue-ui-3d-bar-stack"
|
|
@@ -691,21 +699,21 @@ const gt = ["id"], $t = {
|
|
|
691
699
|
onMouseenter: (l) => M(e),
|
|
692
700
|
onClick: (l) => M(e, !0),
|
|
693
701
|
onMouseout: L
|
|
694
|
-
}, null, 40,
|
|
702
|
+
}, null, 40, il),
|
|
695
703
|
d("path", {
|
|
696
704
|
d: e.fill.left,
|
|
697
705
|
fill: `url(#grad_left_${e.id})`,
|
|
698
706
|
onMouseenter: (l) => M(e),
|
|
699
707
|
onClick: (l) => M(e, !0),
|
|
700
708
|
onMouseout: L
|
|
701
|
-
}, null, 40,
|
|
709
|
+
}, null, 40, dl),
|
|
702
710
|
d("path", {
|
|
703
711
|
d: e.fill.top,
|
|
704
712
|
fill: `url(#grad_top_${e.id})`,
|
|
705
713
|
onMouseenter: (l) => M(e),
|
|
706
714
|
onClick: (l) => M(e, !0),
|
|
707
715
|
onMouseout: L
|
|
708
|
-
}, null, 40,
|
|
716
|
+
}, null, 40, cl),
|
|
709
717
|
d("path", {
|
|
710
718
|
d: e.fill.liningTop,
|
|
711
719
|
stroke: "#FFFFFF",
|
|
@@ -715,13 +723,13 @@ const gt = ["id"], $t = {
|
|
|
715
723
|
onMouseenter: (l) => M(e),
|
|
716
724
|
onClick: (l) => M(e, !0),
|
|
717
725
|
onMouseout: L
|
|
718
|
-
}, null, 40,
|
|
726
|
+
}, null, 40, hl),
|
|
719
727
|
d("path", {
|
|
720
728
|
d: `M ${e.fill.apexTop.x},${e.fill.apexTop.y} ${e.fill.apexBottom.x},${e.fill.apexBottom.y}`,
|
|
721
729
|
stroke: "#FFFFFF",
|
|
722
730
|
"stroke-width": "0.5",
|
|
723
731
|
"stroke-linecap": "round"
|
|
724
|
-
}, null, 8,
|
|
732
|
+
}, null, 8, vl)
|
|
725
733
|
], 4))), 256)),
|
|
726
734
|
(n(!0), c(_, null, m(C.value, (e, h) => (n(), c("g", null, [
|
|
727
735
|
h !== C.value.length - 1 ? (n(), c("path", {
|
|
@@ -732,7 +740,7 @@ const gt = ["id"], $t = {
|
|
|
732
740
|
"stroke-linecap": "round",
|
|
733
741
|
fill: "none",
|
|
734
742
|
style: { "pointer-events": "none" }
|
|
735
|
-
}, null, 8,
|
|
743
|
+
}, null, 8, fl)) : y("", !0)
|
|
736
744
|
]))), 256)),
|
|
737
745
|
(n(!0), c(_, null, m(C.value, (e, h) => (n(), c("g", {
|
|
738
746
|
style: O(`opacity:${x.value ? x.value === e.id ? 1 : 0 : e.proportion * 100 > t.value.style.chart.legend.hideUnderPercentage ? 1 : 0}`),
|
|
@@ -744,7 +752,7 @@ const gt = ["id"], $t = {
|
|
|
744
752
|
"stroke-width": "0.5",
|
|
745
753
|
"stroke-linecap": "round",
|
|
746
754
|
d: `M${e.fill.sidePointer.x},${e.fill.sidePointer.y} ${e.fill.sidePointer.x + 20},${e.fill.sidePointer.y}`
|
|
747
|
-
}, null, 8,
|
|
755
|
+
}, null, 8, yl),
|
|
748
756
|
!e.fill.miniDonut || x.value ? (n(), c("circle", {
|
|
749
757
|
key: 0,
|
|
750
758
|
cx: e.fill.sidePointer.x + 20,
|
|
@@ -752,7 +760,7 @@ const gt = ["id"], $t = {
|
|
|
752
760
|
r: 2,
|
|
753
761
|
fill: e.color,
|
|
754
762
|
stroke: t.value.style.chart.backgroundColor
|
|
755
|
-
}, null, 8,
|
|
763
|
+
}, null, 8, kl)) : y("", !0),
|
|
756
764
|
(n(), c("foreignObject", {
|
|
757
765
|
x: e.fill.sidePointer.x + 30,
|
|
758
766
|
y: e.fill.sidePointer.y - t.value.style.chart.legend.fontSize,
|
|
@@ -763,7 +771,7 @@ const gt = ["id"], $t = {
|
|
|
763
771
|
t.value.style.chart.legend.showDefault ? (n(), c("div", {
|
|
764
772
|
key: 0,
|
|
765
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}`)
|
|
766
|
-
}, B(u(
|
|
774
|
+
}, B(u(oe)(
|
|
767
775
|
t.value.style.chart.dataLabel.formatter,
|
|
768
776
|
e.value,
|
|
769
777
|
`${e.name}: ${u(D)({ v: e.proportion * 100, s: "%", r: t.value.style.chart.legend.roundingPercentage })} (${u(D)({
|
|
@@ -774,20 +782,20 @@ const gt = ["id"], $t = {
|
|
|
774
782
|
})})`,
|
|
775
783
|
{ datapoint: e, seriesIndex: h, type: "barDatapoint" }
|
|
776
784
|
)), 5)) : y("", !0),
|
|
777
|
-
P(a.$slots, "legend",
|
|
778
|
-
], 8,
|
|
779
|
-
e.fill.donut && x.value === e.id ? (n(), c("g",
|
|
785
|
+
P(a.$slots, "legend", je({ ref_for: !0 }, { datapoint: e, config: t.value, dataset: C.value }), void 0, !0)
|
|
786
|
+
], 8, gl)),
|
|
787
|
+
e.fill.donut && x.value === e.id ? (n(), c("g", $l, [
|
|
780
788
|
(n(!0), c(_, null, m(e.fill.donut, (l, r) => (n(), c("g", null, [
|
|
781
789
|
W(l, e.fill.donut, !0) > 6 ? (n(), c("path", {
|
|
782
790
|
key: 0,
|
|
783
|
-
d: u(
|
|
791
|
+
d: u(Oe)(l, { x: l.cx, y: l.cy }, 0, 8, !1, !0, 10),
|
|
784
792
|
stroke: l.color,
|
|
785
793
|
class: "vue-ui-donut-arc-path",
|
|
786
794
|
"stroke-width": "0.5",
|
|
787
795
|
"stroke-linecap": "round",
|
|
788
796
|
"stroke-linejoin": "round",
|
|
789
797
|
fill: "none"
|
|
790
|
-
}, null, 8,
|
|
798
|
+
}, null, 8, _l)) : y("", !0)
|
|
791
799
|
]))), 256)),
|
|
792
800
|
(n(!0), c(_, null, m(e.fill.donut, (l, r) => (n(), c("path", {
|
|
793
801
|
class: "vue-ui-donut-arc-path",
|
|
@@ -795,7 +803,7 @@ const gt = ["id"], $t = {
|
|
|
795
803
|
fill: `${l.color}`,
|
|
796
804
|
stroke: t.value.style.chart.backgroundColor,
|
|
797
805
|
"stroke-width": 1
|
|
798
|
-
}, null, 8,
|
|
806
|
+
}, null, 8, ml))), 256)),
|
|
799
807
|
d("defs", null, [
|
|
800
808
|
d("radialGradient", {
|
|
801
809
|
id: `hollow_gradient_${b.value}`
|
|
@@ -803,7 +811,7 @@ const gt = ["id"], $t = {
|
|
|
803
811
|
d("stop", {
|
|
804
812
|
offset: "0%",
|
|
805
813
|
"stop-color": u(g)(t.value.style.chart.backgroundColor, 0)
|
|
806
|
-
}, null, 8,
|
|
814
|
+
}, null, 8, xl),
|
|
807
815
|
s[5] || (s[5] = d("stop", {
|
|
808
816
|
offset: "77%",
|
|
809
817
|
"stop-color": "#FFFFFF20"
|
|
@@ -811,8 +819,8 @@ const gt = ["id"], $t = {
|
|
|
811
819
|
d("stop", {
|
|
812
820
|
offset: "100%",
|
|
813
821
|
"stop-color": u(g)(t.value.style.chart.backgroundColor, 0)
|
|
814
|
-
}, null, 8,
|
|
815
|
-
], 8,
|
|
822
|
+
}, null, 8, wl)
|
|
823
|
+
], 8, bl)
|
|
816
824
|
]),
|
|
817
825
|
(n(!0), c(_, null, m(e.fill.donut, (l, r) => (n(), c("circle", {
|
|
818
826
|
class: "vue-ui-donut-arc-path",
|
|
@@ -820,23 +828,23 @@ const gt = ["id"], $t = {
|
|
|
820
828
|
cy: l.cy,
|
|
821
829
|
r: 28,
|
|
822
830
|
fill: `url(#hollow_gradient_${b.value})`
|
|
823
|
-
}, null, 8,
|
|
831
|
+
}, null, 8, Cl))), 256)),
|
|
824
832
|
(n(!0), c(_, null, m(e.fill.donut, (l, r) => (n(), c("circle", {
|
|
825
833
|
class: "vue-ui-donut-arc-path",
|
|
826
834
|
cx: l.cx,
|
|
827
835
|
cy: l.cy,
|
|
828
836
|
r: 14,
|
|
829
837
|
fill: t.value.style.chart.backgroundColor
|
|
830
|
-
}, null, 8,
|
|
838
|
+
}, null, 8, Fl))), 256)),
|
|
831
839
|
(n(!0), c(_, null, m(e.fill.donut, (l, r) => (n(), c("g", null, [
|
|
832
|
-
W(l, e.fill.donut, !0) > 6 ? (n(), c("g",
|
|
840
|
+
W(l, e.fill.donut, !0) > 6 ? (n(), c("g", Ml, [
|
|
833
841
|
d("text", {
|
|
834
842
|
"text-anchor": u(A)(l, !0, 0).anchor,
|
|
835
843
|
x: u(A)(l, !0, 2).x,
|
|
836
|
-
y: u(
|
|
844
|
+
y: u(se)(l, 12, 12),
|
|
837
845
|
fill: t.value.style.chart.legend.color,
|
|
838
846
|
"font-size": t.value.style.chart.legend.fontSize / 1.5
|
|
839
|
-
}, B(u(
|
|
847
|
+
}, B(u(oe)(
|
|
840
848
|
t.value.style.chart.dataLabel.formatter,
|
|
841
849
|
l.value,
|
|
842
850
|
`${W(l, e.fill.donut)} (${u(D)({
|
|
@@ -846,31 +854,31 @@ const gt = ["id"], $t = {
|
|
|
846
854
|
r: t.value.style.chart.legend.roundingValue
|
|
847
855
|
})})`,
|
|
848
856
|
{ datapoint: l, seriesIndex: r, type: "donutDatapoint" }
|
|
849
|
-
)), 9,
|
|
857
|
+
)), 9, Pl),
|
|
850
858
|
d("text", {
|
|
851
859
|
"text-anchor": u(A)(l).anchor,
|
|
852
860
|
x: u(A)(l, !0, 2).x,
|
|
853
|
-
y: u(
|
|
861
|
+
y: u(se)(l, 12, 12) + t.value.style.chart.legend.fontSize / 1.5,
|
|
854
862
|
fill: t.value.style.chart.legend.color,
|
|
855
863
|
"font-size": t.value.style.chart.legend.fontSize / 1.5
|
|
856
|
-
}, B(l.name), 9,
|
|
864
|
+
}, B(l.name), 9, Sl)
|
|
857
865
|
])) : y("", !0)
|
|
858
866
|
]))), 256))
|
|
859
867
|
])) : y("", !0),
|
|
860
|
-
e.fill.miniDonut && !x.value ? (n(), c("g",
|
|
868
|
+
e.fill.miniDonut && !x.value ? (n(), c("g", jl, [
|
|
861
869
|
(n(!0), c(_, null, m(e.fill.miniDonut, (l, r) => (n(), c("path", {
|
|
862
870
|
class: "vue-ui-donut-arc-path",
|
|
863
871
|
d: l.arcSlice,
|
|
864
872
|
fill: `${l.color}`,
|
|
865
873
|
stroke: t.value.style.chart.backgroundColor,
|
|
866
874
|
"stroke-width": 0.5
|
|
867
|
-
}, null, 8,
|
|
875
|
+
}, null, 8, Tl))), 256))
|
|
868
876
|
])) : y("", !0)
|
|
869
|
-
], 12,
|
|
877
|
+
], 12, pl))), 256))
|
|
870
878
|
])) : y("", !0)
|
|
871
879
|
])) : y("", !0),
|
|
872
|
-
t.value.style.shape === "tube" ? (n(), c("g",
|
|
873
|
-
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, [
|
|
874
882
|
d("path", {
|
|
875
883
|
"stroke-dasharray": t.value.style.chart.box.strokeDasharray,
|
|
876
884
|
d: z.value.tubeTop,
|
|
@@ -879,7 +887,7 @@ const gt = ["id"], $t = {
|
|
|
879
887
|
"stroke-linejoin": "round",
|
|
880
888
|
"stroke-linecap": "round",
|
|
881
889
|
fill: "none"
|
|
882
|
-
}, null, 8,
|
|
890
|
+
}, null, 8, zl),
|
|
883
891
|
d("path", {
|
|
884
892
|
"stroke-dasharray": t.value.style.chart.box.strokeDasharray,
|
|
885
893
|
d: z.value.tubeLeft,
|
|
@@ -888,7 +896,7 @@ const gt = ["id"], $t = {
|
|
|
888
896
|
"stroke-linejoin": "round",
|
|
889
897
|
"stroke-linecap": "round",
|
|
890
898
|
fill: "none"
|
|
891
|
-
}, null, 8,
|
|
899
|
+
}, null, 8, Nl),
|
|
892
900
|
d("path", {
|
|
893
901
|
"stroke-dasharray": t.value.style.chart.box.strokeDasharray,
|
|
894
902
|
d: z.value.tubeRight,
|
|
@@ -897,7 +905,7 @@ const gt = ["id"], $t = {
|
|
|
897
905
|
"stroke-linejoin": "round",
|
|
898
906
|
"stroke-linecap": "round",
|
|
899
907
|
fill: "none"
|
|
900
|
-
}, null, 8,
|
|
908
|
+
}, null, 8, Bl),
|
|
901
909
|
d("path", {
|
|
902
910
|
"stroke-dasharray": t.value.style.chart.box.strokeDasharray,
|
|
903
911
|
d: z.value.tubeBottom,
|
|
@@ -906,7 +914,7 @@ const gt = ["id"], $t = {
|
|
|
906
914
|
"stroke-linejoin": "round",
|
|
907
915
|
"stroke-linecap": "round",
|
|
908
916
|
fill: "none"
|
|
909
|
-
}, null, 8,
|
|
917
|
+
}, null, 8, Al),
|
|
910
918
|
d("path", {
|
|
911
919
|
d: R.value.tubeTop,
|
|
912
920
|
stroke: t.value.style.chart.bar.stroke,
|
|
@@ -914,7 +922,7 @@ const gt = ["id"], $t = {
|
|
|
914
922
|
"stroke-linejoin": "round",
|
|
915
923
|
"stroke-linecap": "round",
|
|
916
924
|
fill: `url(#gradient_top${b.value})`
|
|
917
|
-
}, null, 8,
|
|
925
|
+
}, null, 8, Il),
|
|
918
926
|
d("path", {
|
|
919
927
|
d: R.value.tubeBody,
|
|
920
928
|
stroke: t.value.style.chart.bar.stroke,
|
|
@@ -922,9 +930,9 @@ const gt = ["id"], $t = {
|
|
|
922
930
|
"stroke-linejoin": "round",
|
|
923
931
|
"stroke-linecap": "round",
|
|
924
932
|
fill: `url(#gradient_tube_body${b.value})`
|
|
925
|
-
}, null, 8,
|
|
933
|
+
}, null, 8, Ll)
|
|
926
934
|
])),
|
|
927
|
-
F.value ? (n(), c("g",
|
|
935
|
+
F.value ? (n(), c("g", Vl, [
|
|
928
936
|
(n(!0), c(_, null, m(C.value, (e, h) => (n(), c("g", {
|
|
929
937
|
style: O(`opacity:${x.value ? x.value === e.id ? 1 : 0.3 : 1}`),
|
|
930
938
|
class: "vue-ui-3d-bar-stack",
|
|
@@ -939,12 +947,12 @@ const gt = ["id"], $t = {
|
|
|
939
947
|
d("stop", {
|
|
940
948
|
offset: "0%",
|
|
941
949
|
"stop-color": u(g)(u(E)(e.color, 0.5), 80)
|
|
942
|
-
}, null, 8,
|
|
950
|
+
}, null, 8, Ul),
|
|
943
951
|
d("stop", {
|
|
944
952
|
offset: "100%",
|
|
945
|
-
"stop-color": u(g)(u(
|
|
946
|
-
}, null, 8,
|
|
947
|
-
], 8,
|
|
953
|
+
"stop-color": u(g)(u(le)(e.color, 0.1), 80)
|
|
954
|
+
}, null, 8, El)
|
|
955
|
+
], 8, Gl),
|
|
948
956
|
d("linearGradient", {
|
|
949
957
|
id: `gradient_tube_body_${e.id}`,
|
|
950
958
|
x1: "0%",
|
|
@@ -955,24 +963,24 @@ const gt = ["id"], $t = {
|
|
|
955
963
|
d("stop", {
|
|
956
964
|
offset: "0%",
|
|
957
965
|
"stop-color": `${e.color}`
|
|
958
|
-
}, null, 8,
|
|
966
|
+
}, null, 8, Rl),
|
|
959
967
|
d("stop", {
|
|
960
968
|
offset: "10%",
|
|
961
|
-
"stop-color": u(g)(u(
|
|
962
|
-
}, null, 8,
|
|
969
|
+
"stop-color": u(g)(u(le)(e.color, 0.7), 100)
|
|
970
|
+
}, null, 8, Zl),
|
|
963
971
|
d("stop", {
|
|
964
972
|
offset: "25%",
|
|
965
|
-
"stop-color": u(g)(u(
|
|
966
|
-
}, null, 8,
|
|
973
|
+
"stop-color": u(g)(u(le)(e.color, 0.5), 100)
|
|
974
|
+
}, null, 8, ql),
|
|
967
975
|
d("stop", {
|
|
968
976
|
offset: "75%",
|
|
969
977
|
"stop-color": u(g)(e.color, 80)
|
|
970
|
-
}, null, 8,
|
|
978
|
+
}, null, 8, Xl),
|
|
971
979
|
d("stop", {
|
|
972
980
|
offset: "100%",
|
|
973
981
|
"stop-color": u(g)(u(E)(e.color, 0.7), 100)
|
|
974
|
-
}, null, 8,
|
|
975
|
-
], 8,
|
|
982
|
+
}, null, 8, Yl)
|
|
983
|
+
], 8, Hl)
|
|
976
984
|
]),
|
|
977
985
|
d("path", {
|
|
978
986
|
onMouseenter: (l) => M(e),
|
|
@@ -984,7 +992,7 @@ const gt = ["id"], $t = {
|
|
|
984
992
|
"stroke-linejoin": "round",
|
|
985
993
|
"stroke-linecap": "round",
|
|
986
994
|
fill: `url(#gradient_tube_body_${e.id})`
|
|
987
|
-
}, null, 40,
|
|
995
|
+
}, null, 40, Jl),
|
|
988
996
|
h > 0 ? (n(), c("path", {
|
|
989
997
|
key: 0,
|
|
990
998
|
onMouseenter: (l) => M(e),
|
|
@@ -996,7 +1004,7 @@ const gt = ["id"], $t = {
|
|
|
996
1004
|
"stroke-linejoin": "round",
|
|
997
1005
|
"stroke-linecap": "round",
|
|
998
1006
|
fill: "none"
|
|
999
|
-
}, null, 40,
|
|
1007
|
+
}, null, 40, Kl)) : y("", !0),
|
|
1000
1008
|
d("path", {
|
|
1001
1009
|
onMouseenter: (l) => M(e),
|
|
1002
1010
|
onClick: (l) => M(e, !0),
|
|
@@ -1007,8 +1015,8 @@ const gt = ["id"], $t = {
|
|
|
1007
1015
|
"stroke-linejoin": "round",
|
|
1008
1016
|
"stroke-linecap": "round",
|
|
1009
1017
|
fill: `url(#gradient_tube_top_${e.id})`
|
|
1010
|
-
}, null, 40,
|
|
1011
|
-
], 12,
|
|
1018
|
+
}, null, 40, Ql)
|
|
1019
|
+
], 12, Wl))), 256)),
|
|
1012
1020
|
(n(!0), c(_, null, m(C.value, (e, h) => (n(), c("g", {
|
|
1013
1021
|
style: O(`opacity:${x.value ? x.value === e.id ? 1 : 0 : e.proportion * 100 > t.value.style.chart.legend.hideUnderPercentage ? 1 : 0}`),
|
|
1014
1022
|
onClick: (l) => Z("selectDatapoint", e)
|
|
@@ -1019,7 +1027,7 @@ const gt = ["id"], $t = {
|
|
|
1019
1027
|
"stroke-width": "0.5",
|
|
1020
1028
|
"stroke-linecap": "round",
|
|
1021
1029
|
d: `M${e.fill.sidePointer.x},${e.fill.sidePointer.y} ${e.fill.sidePointer.x + 20},${e.fill.sidePointer.y}`
|
|
1022
|
-
}, null, 8,
|
|
1030
|
+
}, null, 8, to),
|
|
1023
1031
|
!e.fill.miniDonut || x.value ? (n(), c("circle", {
|
|
1024
1032
|
key: 0,
|
|
1025
1033
|
cx: e.fill.sidePointer.x + 20,
|
|
@@ -1027,7 +1035,7 @@ const gt = ["id"], $t = {
|
|
|
1027
1035
|
r: 2,
|
|
1028
1036
|
fill: e.color,
|
|
1029
1037
|
stroke: t.value.style.chart.backgroundColor
|
|
1030
|
-
}, null, 8,
|
|
1038
|
+
}, null, 8, lo)) : y("", !0),
|
|
1031
1039
|
(n(), c("foreignObject", {
|
|
1032
1040
|
x: e.fill.sidePointer.x + 30,
|
|
1033
1041
|
y: e.fill.sidePointer.y - t.value.style.chart.legend.fontSize,
|
|
@@ -1038,7 +1046,7 @@ const gt = ["id"], $t = {
|
|
|
1038
1046
|
t.value.style.chart.legend.showDefault ? (n(), c("div", {
|
|
1039
1047
|
key: 0,
|
|
1040
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}`)
|
|
1041
|
-
}, B(u(
|
|
1049
|
+
}, B(u(oe)(
|
|
1042
1050
|
t.value.style.chart.dataLabel.formatter,
|
|
1043
1051
|
e.value,
|
|
1044
1052
|
`${e.name}: ${u(D)({ v: e.proportion * 100, s: "%", r: t.value.style.chart.legend.roundingPercentage })} (${u(D)({
|
|
@@ -1049,20 +1057,20 @@ const gt = ["id"], $t = {
|
|
|
1049
1057
|
})})`,
|
|
1050
1058
|
{ datapoint: e, seriesIndex: h, type: "barDatapoint" }
|
|
1051
1059
|
)), 5)) : y("", !0),
|
|
1052
|
-
P(a.$slots, "legend",
|
|
1053
|
-
], 8,
|
|
1054
|
-
e.fill.donut && x.value === e.id ? (n(), c("g",
|
|
1060
|
+
P(a.$slots, "legend", je({ ref_for: !0 }, { datapoint: e, config: t.value, dataset: C.value }), void 0, !0)
|
|
1061
|
+
], 8, oo)),
|
|
1062
|
+
e.fill.donut && x.value === e.id ? (n(), c("g", so, [
|
|
1055
1063
|
(n(!0), c(_, null, m(e.fill.donut, (l, r) => (n(), c("g", null, [
|
|
1056
1064
|
W(l, e.fill.donut, !0) > 6 ? (n(), c("path", {
|
|
1057
1065
|
key: 0,
|
|
1058
|
-
d: u(
|
|
1066
|
+
d: u(Oe)(l, { x: l.cx, y: l.cy }, 0, 8, !1, !0, 10),
|
|
1059
1067
|
stroke: l.color,
|
|
1060
1068
|
class: "vue-ui-donut-arc-path",
|
|
1061
1069
|
"stroke-width": "0.5",
|
|
1062
1070
|
"stroke-linecap": "round",
|
|
1063
1071
|
"stroke-linejoin": "round",
|
|
1064
1072
|
fill: "none"
|
|
1065
|
-
}, null, 8,
|
|
1073
|
+
}, null, 8, ao)) : y("", !0)
|
|
1066
1074
|
]))), 256)),
|
|
1067
1075
|
(n(!0), c(_, null, m(e.fill.donut, (l, r) => (n(), c("path", {
|
|
1068
1076
|
class: "vue-ui-donut-arc-path",
|
|
@@ -1070,7 +1078,7 @@ const gt = ["id"], $t = {
|
|
|
1070
1078
|
fill: `${l.color}`,
|
|
1071
1079
|
stroke: t.value.style.chart.backgroundColor,
|
|
1072
1080
|
"stroke-width": 1
|
|
1073
|
-
}, null, 8,
|
|
1081
|
+
}, null, 8, no))), 256)),
|
|
1074
1082
|
d("defs", null, [
|
|
1075
1083
|
d("radialGradient", {
|
|
1076
1084
|
id: `hollow_gradient_${b.value}`
|
|
@@ -1078,7 +1086,7 @@ const gt = ["id"], $t = {
|
|
|
1078
1086
|
d("stop", {
|
|
1079
1087
|
offset: "0%",
|
|
1080
1088
|
"stop-color": u(g)(t.value.style.chart.backgroundColor, 0)
|
|
1081
|
-
}, null, 8,
|
|
1089
|
+
}, null, 8, uo),
|
|
1082
1090
|
s[6] || (s[6] = d("stop", {
|
|
1083
1091
|
offset: "77%",
|
|
1084
1092
|
"stop-color": "#FFFFFF20"
|
|
@@ -1086,8 +1094,8 @@ const gt = ["id"], $t = {
|
|
|
1086
1094
|
d("stop", {
|
|
1087
1095
|
offset: "100%",
|
|
1088
1096
|
"stop-color": u(g)(t.value.style.chart.backgroundColor, 0)
|
|
1089
|
-
}, null, 8,
|
|
1090
|
-
], 8,
|
|
1097
|
+
}, null, 8, io)
|
|
1098
|
+
], 8, ro)
|
|
1091
1099
|
]),
|
|
1092
1100
|
(n(!0), c(_, null, m(e.fill.donut, (l, r) => (n(), c("circle", {
|
|
1093
1101
|
class: "vue-ui-donut-arc-path",
|
|
@@ -1095,23 +1103,23 @@ const gt = ["id"], $t = {
|
|
|
1095
1103
|
cy: l.cy,
|
|
1096
1104
|
r: 28,
|
|
1097
1105
|
fill: `url(#hollow_gradient_${b.value})`
|
|
1098
|
-
}, null, 8,
|
|
1106
|
+
}, null, 8, co))), 256)),
|
|
1099
1107
|
(n(!0), c(_, null, m(e.fill.donut, (l, r) => (n(), c("circle", {
|
|
1100
1108
|
class: "vue-ui-donut-arc-path",
|
|
1101
1109
|
cx: l.cx,
|
|
1102
1110
|
cy: l.cy,
|
|
1103
1111
|
r: 14,
|
|
1104
1112
|
fill: t.value.style.chart.backgroundColor
|
|
1105
|
-
}, null, 8,
|
|
1113
|
+
}, null, 8, ho))), 256)),
|
|
1106
1114
|
(n(!0), c(_, null, m(e.fill.donut, (l, r) => (n(), c("g", null, [
|
|
1107
|
-
W(l, e.fill.donut, !0) > 6 ? (n(), c("g",
|
|
1115
|
+
W(l, e.fill.donut, !0) > 6 ? (n(), c("g", vo, [
|
|
1108
1116
|
d("text", {
|
|
1109
1117
|
"text-anchor": u(A)(l, !0, 0).anchor,
|
|
1110
1118
|
x: u(A)(l, !0, 2).x,
|
|
1111
|
-
y: u(
|
|
1119
|
+
y: u(se)(l, 12, 12),
|
|
1112
1120
|
fill: t.value.style.chart.legend.color,
|
|
1113
1121
|
"font-size": t.value.style.chart.legend.fontSize / 1.5
|
|
1114
|
-
}, B(u(
|
|
1122
|
+
}, B(u(oe)(
|
|
1115
1123
|
t.value.style.chart.dataLabel.formatter,
|
|
1116
1124
|
l.value,
|
|
1117
1125
|
`${W(l, e.fill.donut)} (${u(D)({
|
|
@@ -1121,35 +1129,35 @@ const gt = ["id"], $t = {
|
|
|
1121
1129
|
r: t.value.style.chart.legend.roundingValue
|
|
1122
1130
|
})})`,
|
|
1123
1131
|
{ datapoint: l, seriesIndex: r, type: "donutDatapoint" }
|
|
1124
|
-
)), 9,
|
|
1132
|
+
)), 9, fo),
|
|
1125
1133
|
d("text", {
|
|
1126
1134
|
"text-anchor": u(A)(l).anchor,
|
|
1127
1135
|
x: u(A)(l, !0, 2).x,
|
|
1128
|
-
y: u(
|
|
1136
|
+
y: u(se)(l, 12, 12) + t.value.style.chart.legend.fontSize / 1.5,
|
|
1129
1137
|
fill: t.value.style.chart.legend.color,
|
|
1130
1138
|
"font-size": t.value.style.chart.legend.fontSize / 1.5
|
|
1131
|
-
}, B(l.name), 9,
|
|
1139
|
+
}, B(l.name), 9, po)
|
|
1132
1140
|
])) : y("", !0)
|
|
1133
1141
|
]))), 256))
|
|
1134
1142
|
])) : y("", !0),
|
|
1135
|
-
e.fill.miniDonut && !x.value ? (n(), c("g",
|
|
1143
|
+
e.fill.miniDonut && !x.value ? (n(), c("g", yo, [
|
|
1136
1144
|
(n(!0), c(_, null, m(e.fill.miniDonut, (l, r) => (n(), c("path", {
|
|
1137
1145
|
class: "vue-ui-donut-arc-path",
|
|
1138
1146
|
d: l.arcSlice,
|
|
1139
1147
|
fill: `${l.color}`,
|
|
1140
1148
|
stroke: t.value.style.chart.backgroundColor,
|
|
1141
1149
|
"stroke-width": 0.5
|
|
1142
|
-
}, null, 8,
|
|
1150
|
+
}, null, 8, ko))), 256))
|
|
1143
1151
|
])) : y("", !0)
|
|
1144
|
-
], 12,
|
|
1152
|
+
], 12, eo))), 256))
|
|
1145
1153
|
])) : y("", !0)
|
|
1146
1154
|
])) : y("", !0),
|
|
1147
1155
|
P(a.$slots, "svg", { svg: o.value }, void 0, !0)
|
|
1148
|
-
], 14,
|
|
1149
|
-
a.$slots.watermark ? (n(), c("div",
|
|
1150
|
-
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)
|
|
1151
1159
|
])) : y("", !0),
|
|
1152
|
-
q.value ? y("", !0) : (n(), U(u(
|
|
1160
|
+
q.value ? y("", !0) : (n(), U(u(Ge), {
|
|
1153
1161
|
key: 5,
|
|
1154
1162
|
config: {
|
|
1155
1163
|
type: "bar3d",
|
|
@@ -1161,10 +1169,10 @@ const gt = ["id"], $t = {
|
|
|
1161
1169
|
}
|
|
1162
1170
|
}
|
|
1163
1171
|
}, null, 8, ["config"])),
|
|
1164
|
-
a.$slots.source ? (n(), c("div",
|
|
1172
|
+
a.$slots.source ? (n(), c("div", $o, [
|
|
1165
1173
|
P(a.$slots, "source", {}, void 0, !0)
|
|
1166
1174
|
], 512)) : y("", !0),
|
|
1167
|
-
q.value && F.value ? (n(), U(u(
|
|
1175
|
+
q.value && F.value ? (n(), U(u(Ie), {
|
|
1168
1176
|
key: 7,
|
|
1169
1177
|
hideDetails: "",
|
|
1170
1178
|
config: {
|
|
@@ -1181,12 +1189,12 @@ const gt = ["id"], $t = {
|
|
|
1181
1189
|
}
|
|
1182
1190
|
}, {
|
|
1183
1191
|
content: T(() => [
|
|
1184
|
-
(n(), U(u(
|
|
1192
|
+
(n(), U(u(Le), {
|
|
1185
1193
|
key: `table_${ce.value}`,
|
|
1186
|
-
colNames:
|
|
1187
|
-
head:
|
|
1188
|
-
body:
|
|
1189
|
-
config:
|
|
1194
|
+
colNames: Y.value.colNames,
|
|
1195
|
+
head: Y.value.head,
|
|
1196
|
+
body: Y.value.body,
|
|
1197
|
+
config: Y.value.config,
|
|
1190
1198
|
title: `${t.value.style.chart.title.text}${t.value.style.chart.title.subtitle.text ? ` : ${t.value.style.chart.title.subtitle.text}` : ""}`,
|
|
1191
1199
|
onClose: s[1] || (s[1] = (e) => H.value.showTable = !1)
|
|
1192
1200
|
}, {
|
|
@@ -1194,19 +1202,19 @@ const gt = ["id"], $t = {
|
|
|
1194
1202
|
d("div", {
|
|
1195
1203
|
innerHTML: e,
|
|
1196
1204
|
style: { display: "flex", "align-items": "center" }
|
|
1197
|
-
}, null, 8,
|
|
1205
|
+
}, null, 8, _o)
|
|
1198
1206
|
]),
|
|
1199
1207
|
td: T(({ td: e }) => [
|
|
1200
|
-
|
|
1208
|
+
ot(B(e.name || e), 1)
|
|
1201
1209
|
]),
|
|
1202
1210
|
_: 1
|
|
1203
1211
|
}, 8, ["colNames", "head", "body", "config", "title"]))
|
|
1204
1212
|
]),
|
|
1205
1213
|
_: 1
|
|
1206
1214
|
}, 8, ["config"])) : y("", !0)
|
|
1207
|
-
], 44,
|
|
1215
|
+
], 44, _t));
|
|
1208
1216
|
}
|
|
1209
|
-
},
|
|
1217
|
+
}, To = /* @__PURE__ */ $t(mo, [["__scopeId", "data-v-32be7edd"]]);
|
|
1210
1218
|
export {
|
|
1211
|
-
|
|
1219
|
+
To as default
|
|
1212
1220
|
};
|