vue-data-ui 2.16.6 → 2.17.1
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 +84 -53
- package/dist/{Arrow-DCqxVwey.js → Arrow-BDCVJzQB.js} +1 -1
- package/dist/{BaseDraggableDialog-6DIKXIBU.js → BaseDraggableDialog-BvuWrldK.js} +2 -2
- package/dist/{BaseIcon-Bn996RXm.js → BaseIcon-D9Tz8ARD.js} +1 -1
- package/dist/{ColorPicker-OFfLkKNb.js → ColorPicker-wGf46G2G.js} +2 -2
- package/dist/{DataTable-CHBLjKtZ.js → DataTable-Dt-TIOyY.js} +2 -2
- package/dist/{Legend-nBXoxXJH.js → Legend-3LNqqLDg.js} +2 -2
- package/dist/{NonSvgPenAndPaper-Cls2idJS.js → NonSvgPenAndPaper-iDdMuUEo.js} +3 -3
- package/dist/{PackageVersion-Bg_9KCU-.js → PackageVersion-C-4Ee8BQ.js} +1 -1
- package/dist/{PenAndPaper-BPTpbnay.js → PenAndPaper-Cde-wJ3N.js} +32 -32
- package/dist/{Shape-Bnf512BA.js → Shape-C75836Jl.js} +1 -1
- package/dist/{Slicer-BrqtJG2E.js → Slicer-CpSu7plp.js} +2 -2
- package/dist/{SparkTooltip-C-rLATAw.js → SparkTooltip-B_GXa2tb.js} +1 -1
- package/dist/{Title-Gi81VwUM.js → Title-DpERl1yr.js} +1 -1
- package/dist/{Tooltip-CJxVw7-T.js → Tooltip-DA0bYKFG.js} +1 -1
- package/dist/{UserOptions-CBEK6_jo.js → UserOptions-DTEJ3UM_.js} +2 -2
- package/dist/{dom-to-png-CRHNL8VU.js → dom-to-png-DWDGYXFL.js} +1 -1
- package/dist/{img-BgOg8opa.js → img-utitT2Gd.js} +1 -1
- package/dist/{index-DvIXJm6t.js → index-CobsZUkv.js} +22 -8
- package/dist/{pdf-DhTxBrbJ.js → pdf-DWZ8IB56.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +999 -160
- package/dist/types/vue-data-ui.d.ts +999 -160
- package/dist/{useNestedProp-DrYHm61t.js → useNestedProp-BwL5wmVa.js} +1 -1
- package/dist/{usePrinter-CWnXbGMb.js → usePrinter-DPh6U_Qk.js} +2 -2
- package/dist/vue-data-ui-D7ZgRDQ_.js +312 -0
- package/dist/vue-data-ui.js +1 -1
- package/dist/{vue-ui-3d-bar-CtlB4p7i.js → vue-ui-3d-bar-ORUAjkg7.js} +246 -231
- package/dist/{vue-ui-accordion-D55kCO5G.js → vue-ui-accordion-UewqY6OI.js} +3 -3
- package/dist/{vue-ui-age-pyramid-DSshyUn-.js → vue-ui-age-pyramid-Yl4aRpNc.js} +225 -210
- package/dist/{vue-ui-annotator-DQSMv_k2.js → vue-ui-annotator-B1gqiBqq.js} +2 -2
- package/dist/{vue-ui-bullet-FeScjj7q.js → vue-ui-bullet-C307lCPt.js} +168 -153
- package/dist/{vue-ui-candlestick-Drupgyoi.js → vue-ui-candlestick-BE6PcEdh.js} +218 -203
- package/dist/{vue-ui-carousel-table-BTZQRZfO.js → vue-ui-carousel-table-Cpvjr677.js} +4 -4
- package/dist/{vue-ui-chestnut-DLWjPwRL.js → vue-ui-chestnut-CUw74AgC.js} +412 -397
- package/dist/{vue-ui-chord-BgLbFBT9.js → vue-ui-chord-CCPGeAiY.js} +202 -187
- package/dist/{vue-ui-circle-pack-VXcRh2gy.js → vue-ui-circle-pack-dfyPiQmy.js} +222 -207
- package/dist/{vue-ui-cursor-DWmfnM25.js → vue-ui-cursor-C2zmfeoD.js} +2 -2
- package/dist/{vue-ui-dashboard-CGIocEHj.js → vue-ui-dashboard-CotAqRbX.js} +62 -62
- package/dist/{vue-ui-digits-BgQch3Fc.js → vue-ui-digits-7qJFCuoI.js} +2 -2
- package/dist/{vue-ui-donut-B59bCV5_.js → vue-ui-donut-D41WeqQU.js} +420 -411
- package/dist/{vue-ui-donut-evolution-CI8qBIQd.js → vue-ui-donut-evolution-Deg0dsYg.js} +352 -340
- package/dist/{vue-ui-dumbbell-CXv7sk88.js → vue-ui-dumbbell-DDwNoTPG.js} +214 -199
- package/dist/{vue-ui-flow-DxF0ELtv.js → vue-ui-flow-6oR7IMyi.js} +215 -200
- package/dist/{vue-ui-funnel-Bco8rqF8.js → vue-ui-funnel-BnXtOJmh.js} +212 -197
- package/dist/{vue-ui-galaxy-CaPJwwOj.js → vue-ui-galaxy-75XC8SpV.js} +213 -201
- package/dist/{vue-ui-gauge-D7arhDmb.js → vue-ui-gauge-w31j915C.js} +218 -203
- package/dist/{vue-ui-gizmo-Dwli-Mip.js → vue-ui-gizmo-bZqk6oZS.js} +3 -3
- package/dist/{vue-ui-heatmap-Cyn-ahGO.js → vue-ui-heatmap-BfU62tMW.js} +242 -223
- package/dist/{vue-ui-history-plot-C2AEToqx.js → vue-ui-history-plot-CFfco-Yj.js} +267 -252
- package/dist/{vue-ui-kpi-DKDibSdl.js → vue-ui-kpi-DaJ1U3wf.js} +3 -3
- package/dist/{vue-ui-mini-loader-B8OVutUx.js → vue-ui-mini-loader-CF_2jAI8.js} +2 -2
- package/dist/{vue-ui-molecule-BVSrqIGw.js → vue-ui-molecule-Tdk3Gd8M.js} +207 -192
- package/dist/{vue-ui-mood-radar-DvlyS3RN.js → vue-ui-mood-radar-Dg5wS7W5.js} +204 -189
- package/dist/{vue-ui-nested-donuts-D9ssSus6.js → vue-ui-nested-donuts-CpRe0sQB.js} +248 -240
- package/dist/{vue-ui-onion-Buu4VX3u.js → vue-ui-onion-B8o4ft2v.js} +184 -169
- package/dist/{vue-ui-parallel-coordinate-plot-DFLUvhxD.js → vue-ui-parallel-coordinate-plot-zW-CNqWC.js} +192 -177
- package/dist/{vue-ui-quadrant-BMC7NBGd.js → vue-ui-quadrant-DiRtZ16w.js} +259 -244
- package/dist/{vue-ui-quick-chart-DB9RKUkb.js → vue-ui-quick-chart-BRlYC_yT.js} +324 -309
- package/dist/{vue-ui-radar-68NMPxxQ.js → vue-ui-radar-DKgX1Ibx.js} +195 -180
- package/dist/{vue-ui-rating-swH9kRr3.js → vue-ui-rating-DlklKr-X.js} +2 -2
- package/dist/{vue-ui-relation-circle-CT-EdSjO.js → vue-ui-relation-circle-MHiAp8dC.js} +186 -171
- package/dist/{vue-ui-ridgeline-DftROPaX.js → vue-ui-ridgeline-DA8verAe.js} +227 -212
- package/dist/{vue-ui-rings-M-9dPI5D.js → vue-ui-rings-Dh6lFqun.js} +214 -202
- package/dist/{vue-ui-scatter-CsGhaFJh.js → vue-ui-scatter-CLC5sTOi.js} +270 -256
- package/dist/{vue-ui-skeleton-BAOt2neL.js → vue-ui-skeleton-8s4xts8z.js} +3 -3
- package/dist/{vue-ui-smiley-7_kIgPg-.js → vue-ui-smiley-utuzw8uI.js} +2 -2
- package/dist/{vue-ui-spark-trend-DHlQQpwz.js → vue-ui-spark-trend-BODEqGRr.js} +3 -3
- package/dist/{vue-ui-sparkbar-BnHhzuKf.js → vue-ui-sparkbar-B8MB-kn9.js} +3 -3
- package/dist/{vue-ui-sparkgauge-WtfkCK8g.js → vue-ui-sparkgauge-CuD7kTS3.js} +3 -3
- package/dist/{vue-ui-sparkhistogram-B2u4XLVd.js → vue-ui-sparkhistogram-BYJszvna.js} +4 -4
- package/dist/{vue-ui-sparkline-DKIyUlSm.js → vue-ui-sparkline-D77GyWzG.js} +3 -3
- package/dist/{vue-ui-sparkstackbar-BLGz2qIb.js → vue-ui-sparkstackbar-DNb1yD64.js} +3 -3
- package/dist/{vue-ui-stackbar-BDpMsTYe.js → vue-ui-stackbar-C6rjCYDD.js} +251 -236
- package/dist/{vue-ui-strip-plot-5qDcYPnR.js → vue-ui-strip-plot-B6cYojHQ.js} +239 -224
- package/dist/{vue-ui-table-Bg5HIQ3O.js → vue-ui-table-IC7SmWVd.js} +3 -3
- package/dist/{vue-ui-table-heatmap-DmjNy1q1.js → vue-ui-table-heatmap-DHFpJMpA.js} +5 -5
- package/dist/{vue-ui-table-sparkline-CnkJkBk5.js → vue-ui-table-sparkline-D7wz-sCj.js} +4 -4
- package/dist/{vue-ui-thermometer-RlD-9mJf.js → vue-ui-thermometer-D-oiVT3n.js} +168 -153
- package/dist/{vue-ui-timer-Bes74INL.js → vue-ui-timer-C9jVyX5l.js} +5 -5
- package/dist/vue-ui-tiremarks-B1bM9Aoo.js +358 -0
- package/dist/{vue-ui-treemap-BG1Omm38.js → vue-ui-treemap-DX48YlU5.js} +374 -362
- package/dist/{vue-ui-vertical-bar-CwqQyZFX.js → vue-ui-vertical-bar-6SjKPQWR.js} +252 -237
- package/dist/{vue-ui-waffle-Ce3T4BPp.js → vue-ui-waffle-CYao9MMw.js} +232 -220
- package/dist/vue-ui-wheel-USuDhMwW.js +352 -0
- package/dist/vue-ui-word-cloud-TOBTs7yF.js +659 -0
- package/dist/{vue-ui-world-B9PxVO4n.js → vue-ui-world-C2qikqBa.js} +237 -222
- package/dist/{vue-ui-xy-DtJ7qJib.js → vue-ui-xy-DxwgKoO-.js} +557 -544
- package/dist/{vue-ui-xy-canvas-S6YpFgzs.js → vue-ui-xy-canvas-N69OpVn8.js} +395 -380
- package/package.json +1 -1
- package/dist/vue-data-ui-B8EWlMIK.js +0 -301
- package/dist/vue-ui-tiremarks-DiLS3akQ.js +0 -343
- package/dist/vue-ui-wheel-6B0WTkf2.js +0 -337
- package/dist/vue-ui-word-cloud-ByYZCOh7.js +0 -644
|
@@ -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-CobsZUkv.js";
|
|
3
|
+
import { u as ze } from "./useNestedProp-BwL5wmVa.js";
|
|
4
|
+
import { u as ft } from "./usePrinter-DPh6U_Qk.js";
|
|
5
|
+
import { u as pt } from "./useUserOptionState-BIvW1Kz7.js";
|
|
6
|
+
import { u as yt } from "./useChartAccessibility-9icAAmYg.js";
|
|
7
|
+
import kt from "./Title-DpERl1yr.js";
|
|
8
|
+
import gt from "./img-utitT2Gd.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"], Rt = ["stop-color"], Ht = ["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"], Rl = ["id"], Hl = ["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-UewqY6OI.js")), Le = G(() => import("./DataTable-Dt-TIOyY.js")), Ve = G(() => import("./PackageVersion-C-4Ee8BQ.js")), We = G(() => import("./PenAndPaper-Cde-wJ3N.js")), Ge = G(() => import("./vue-ui-skeleton-8s4xts8z.js")), Ue = G(() => import("./UserOptions-DTEJ3UM_.js")), { vue_ui_3d_bar: Ee } = at(), $ = Ne, q = Ae, X = j(() => !!$.dataset && Object.keys($.dataset).length), b = S(Te()), Re = S(null), R = 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
|
-
}), He = j(() =>
|
|
62
|
+
}), He = 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) || He.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,
|
|
@@ -205,7 +206,7 @@ const gt = ["id"], $t = {
|
|
|
205
206
|
${f},${i - v - p}Z`
|
|
206
207
|
};
|
|
207
208
|
}
|
|
208
|
-
const
|
|
209
|
+
const Z = 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`,
|
|
@@ -225,7 +226,7 @@ const gt = ["id"], $t = {
|
|
|
225
226
|
};
|
|
226
227
|
}), x = S(null);
|
|
227
228
|
function M(a, s = !1) {
|
|
228
|
-
|
|
229
|
+
q("selectDatapoint", a), s || (x.value = a.id), s && I.value && (I.value = !1), s && !I.value && (I.value = !0);
|
|
229
230
|
}
|
|
230
231
|
function L() {
|
|
231
232
|
I.value || (x.value = null);
|
|
@@ -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,53 @@ 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 (!R.value) return;
|
|
326
|
+
const { width: s, height: e } = R.value.getBoundingClientRect(), h = s / e, { imageUri: l, base64: r } = await gt({ domElement: R.value, base64: !0, img: !0, scale: a });
|
|
327
|
+
return {
|
|
328
|
+
imageUri: l,
|
|
329
|
+
base64: r,
|
|
330
|
+
title: t.value.style.chart.title.text,
|
|
331
|
+
width: s,
|
|
332
|
+
height: e,
|
|
333
|
+
aspectRatio: h
|
|
334
|
+
};
|
|
335
|
+
}
|
|
336
|
+
return Be({
|
|
337
|
+
getImage: Xe,
|
|
338
|
+
generateCsv: xe,
|
|
325
339
|
generatePdf: ge,
|
|
326
340
|
generateImage: $e,
|
|
327
341
|
getData: qe,
|
|
328
|
-
toggleTable:
|
|
329
|
-
toggleAnnotator:
|
|
342
|
+
toggleTable: we,
|
|
343
|
+
toggleAnnotator: re,
|
|
344
|
+
toggleFullscreen: be
|
|
330
345
|
}), (a, s) => (n(), c("div", {
|
|
331
346
|
ref_key: "bar3dChart",
|
|
332
|
-
ref:
|
|
333
|
-
class:
|
|
347
|
+
ref: R,
|
|
348
|
+
class: Se("vue-ui-3d-bar"),
|
|
334
349
|
style: O(`font-family:${t.value.style.fontFamily};width:100%; text-align:center;background:${t.value.style.chart.backgroundColor}`),
|
|
335
350
|
id: `3d_bar_${b.value}`,
|
|
336
351
|
onMouseenter: s[2] || (s[2] = () => u(he)(!0)),
|
|
337
352
|
onMouseleave: s[3] || (s[3] = () => u(he)(!1))
|
|
338
353
|
}, [
|
|
339
|
-
t.value.userOptions.buttons.annotator ? (n(), U(u(
|
|
354
|
+
t.value.userOptions.buttons.annotator ? (n(), U(u(We), {
|
|
340
355
|
key: 0,
|
|
341
356
|
svgRef: u(fe),
|
|
342
357
|
backgroundColor: t.value.style.chart.backgroundColor,
|
|
343
358
|
color: t.value.style.chart.color,
|
|
344
|
-
active:
|
|
345
|
-
onClose:
|
|
359
|
+
active: J.value,
|
|
360
|
+
onClose: re
|
|
346
361
|
}, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : y("", !0),
|
|
347
|
-
t.value.style.chart.title.text ? (n(), c("div",
|
|
348
|
-
(n(), U(
|
|
362
|
+
t.value.style.chart.title.text ? (n(), c("div", mt, [
|
|
363
|
+
(n(), U(kt, {
|
|
349
364
|
key: `title_${de.value}`,
|
|
350
365
|
config: {
|
|
351
366
|
title: {
|
|
@@ -359,10 +374,10 @@ const gt = ["id"], $t = {
|
|
|
359
374
|
}
|
|
360
375
|
}, null, 8, ["config"]))
|
|
361
376
|
])) : y("", !0),
|
|
362
|
-
t.value.userOptions.show &&
|
|
377
|
+
t.value.userOptions.show && X.value && (u(ve) || u(ae)) ? (n(), U(u(Ue), {
|
|
363
378
|
key: 2,
|
|
364
379
|
ref_key: "details",
|
|
365
|
-
ref:
|
|
380
|
+
ref: Re,
|
|
366
381
|
backgroundColor: t.value.style.chart.backgroundColor,
|
|
367
382
|
color: t.value.style.chart.color,
|
|
368
383
|
isPrinting: u(ye),
|
|
@@ -374,26 +389,26 @@ const gt = ["id"], $t = {
|
|
|
374
389
|
hasImg: t.value.userOptions.buttons.img,
|
|
375
390
|
hasFullscreen: t.value.userOptions.buttons.fullscreen,
|
|
376
391
|
titles: { ...t.value.userOptions.buttonTitles },
|
|
377
|
-
chartElement:
|
|
392
|
+
chartElement: R.value,
|
|
378
393
|
position: t.value.userOptions.position,
|
|
379
394
|
hasAnnotator: t.value.userOptions.buttons.annotator,
|
|
380
|
-
isAnnotation:
|
|
395
|
+
isAnnotation: J.value,
|
|
381
396
|
callbacks: t.value.userOptions.callbacks,
|
|
382
397
|
printScale: t.value.userOptions.print.scale,
|
|
383
|
-
onToggleFullscreen:
|
|
398
|
+
onToggleFullscreen: be,
|
|
384
399
|
onGeneratePdf: u(ge),
|
|
385
|
-
onGenerateCsv:
|
|
400
|
+
onGenerateCsv: xe,
|
|
386
401
|
onGenerateImage: u($e),
|
|
387
|
-
onToggleTable:
|
|
388
|
-
onToggleAnnotator:
|
|
402
|
+
onToggleTable: we,
|
|
403
|
+
onToggleAnnotator: re,
|
|
389
404
|
style: O({
|
|
390
|
-
visibility: u(ve) ? u(
|
|
405
|
+
visibility: u(ve) ? u(ae) ? "visible" : "hidden" : "visible"
|
|
391
406
|
})
|
|
392
|
-
},
|
|
407
|
+
}, tt({ _: 2 }, [
|
|
393
408
|
a.$slots.menuIcon ? {
|
|
394
409
|
name: "menuIcon",
|
|
395
410
|
fn: T(({ isOpen: e, color: h }) => [
|
|
396
|
-
P(a.$slots, "menuIcon",
|
|
411
|
+
P(a.$slots, "menuIcon", K(Q({ isOpen: e, color: h })), void 0, !0)
|
|
397
412
|
]),
|
|
398
413
|
key: "0"
|
|
399
414
|
} : void 0,
|
|
@@ -428,28 +443,28 @@ const gt = ["id"], $t = {
|
|
|
428
443
|
a.$slots.optionFullscreen ? {
|
|
429
444
|
name: "optionFullscreen",
|
|
430
445
|
fn: T(({ toggleFullscreen: e, isFullscreen: h }) => [
|
|
431
|
-
P(a.$slots, "optionFullscreen",
|
|
446
|
+
P(a.$slots, "optionFullscreen", K(Q({ toggleFullscreen: e, isFullscreen: h })), void 0, !0)
|
|
432
447
|
]),
|
|
433
448
|
key: "5"
|
|
434
449
|
} : void 0,
|
|
435
450
|
a.$slots.optionAnnotator ? {
|
|
436
451
|
name: "optionAnnotator",
|
|
437
452
|
fn: T(({ toggleAnnotator: e, isAnnotator: h }) => [
|
|
438
|
-
P(a.$slots, "optionAnnotator",
|
|
453
|
+
P(a.$slots, "optionAnnotator", K(Q({ toggleAnnotator: e, isAnnotator: h })), void 0, !0)
|
|
439
454
|
]),
|
|
440
455
|
key: "6"
|
|
441
456
|
} : void 0
|
|
442
457
|
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasTable", "hasXls", "hasImg", "hasFullscreen", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "onGeneratePdf", "onGenerateImage", "style"])) : y("", !0),
|
|
443
|
-
|
|
458
|
+
X.value ? (n(), c("svg", {
|
|
444
459
|
key: 3,
|
|
445
460
|
ref_key: "svgRef",
|
|
446
461
|
ref: fe,
|
|
447
|
-
xmlns: u(
|
|
448
|
-
class:
|
|
462
|
+
xmlns: u(ct),
|
|
463
|
+
class: Se({ "vue-data-ui-fullscreen--on": ne.value, "vue-data-ui-fulscreen--off": !ne.value }),
|
|
449
464
|
viewBox: `0 0 ${o.value.absoluteWidth} ${o.value.height}`,
|
|
450
465
|
style: O(`max-width:100%; overflow: visible; background:transparent;color:${t.value.style.chart.color}`)
|
|
451
466
|
}, [
|
|
452
|
-
|
|
467
|
+
lt(u(Ve)),
|
|
453
468
|
a.$slots["chart-background"] ? (n(), c("foreignObject", {
|
|
454
469
|
key: 0,
|
|
455
470
|
x: 0,
|
|
@@ -461,7 +476,7 @@ const gt = ["id"], $t = {
|
|
|
461
476
|
}
|
|
462
477
|
}, [
|
|
463
478
|
P(a.$slots, "chart-background", {}, void 0, !0)
|
|
464
|
-
], 8,
|
|
479
|
+
], 8, xt)) : y("", !0),
|
|
465
480
|
d("defs", null, [
|
|
466
481
|
d("radialGradient", {
|
|
467
482
|
id: `gradient_top${b.value}`
|
|
@@ -469,36 +484,36 @@ const gt = ["id"], $t = {
|
|
|
469
484
|
d("stop", {
|
|
470
485
|
offset: "0%",
|
|
471
486
|
"stop-color": u(g)(t.value.style.chart.backgroundColor, 0)
|
|
472
|
-
}, null, 8,
|
|
487
|
+
}, null, 8, Ct),
|
|
473
488
|
d("stop", {
|
|
474
489
|
offset: "100%",
|
|
475
490
|
"stop-color": t.value.style.chart.bar.color
|
|
476
|
-
}, null, 8,
|
|
477
|
-
], 8,
|
|
491
|
+
}, null, 8, Ft)
|
|
492
|
+
], 8, wt),
|
|
478
493
|
d("radialGradient", {
|
|
479
494
|
id: `gradient_left${b.value}`
|
|
480
495
|
}, [
|
|
481
496
|
d("stop", {
|
|
482
497
|
offset: "0%",
|
|
483
498
|
"stop-color": u(g)(t.value.style.chart.backgroundColor, 0)
|
|
484
|
-
}, null, 8,
|
|
499
|
+
}, null, 8, Pt),
|
|
485
500
|
d("stop", {
|
|
486
501
|
offset: "100%",
|
|
487
502
|
"stop-color": u(g)(t.value.style.chart.bar.color, 20)
|
|
488
|
-
}, null, 8,
|
|
489
|
-
], 8,
|
|
503
|
+
}, null, 8, St)
|
|
504
|
+
], 8, Mt),
|
|
490
505
|
d("radialGradient", {
|
|
491
506
|
id: `gradient_right${b.value}`
|
|
492
507
|
}, [
|
|
493
508
|
d("stop", {
|
|
494
509
|
offset: "0%",
|
|
495
510
|
"stop-color": u(g)(t.value.style.chart.backgroundColor, 0)
|
|
496
|
-
}, null, 8,
|
|
511
|
+
}, null, 8, Tt),
|
|
497
512
|
d("stop", {
|
|
498
513
|
offset: "100%",
|
|
499
514
|
"stop-color": u(g)(t.value.style.chart.bar.color, 20)
|
|
500
|
-
}, null, 8,
|
|
501
|
-
], 8,
|
|
515
|
+
}, null, 8, Dt)
|
|
516
|
+
], 8, jt),
|
|
502
517
|
d("linearGradient", {
|
|
503
518
|
id: `gradient_tube_body${b.value}`,
|
|
504
519
|
x1: "0%",
|
|
@@ -509,54 +524,54 @@ const gt = ["id"], $t = {
|
|
|
509
524
|
d("stop", {
|
|
510
525
|
offset: "0%",
|
|
511
526
|
"stop-color": `${t.value.style.chart.bar.color}`
|
|
512
|
-
}, null, 8,
|
|
527
|
+
}, null, 8, zt),
|
|
513
528
|
d("stop", {
|
|
514
529
|
offset: "75%",
|
|
515
530
|
"stop-color": u(g)(t.value.style.chart.backgroundColor, 0)
|
|
516
|
-
}, null, 8,
|
|
531
|
+
}, null, 8, Nt),
|
|
517
532
|
d("stop", {
|
|
518
533
|
offset: "100%",
|
|
519
534
|
"stop-color": u(g)(t.value.style.chart.bar.color, 40)
|
|
520
|
-
}, null, 8,
|
|
521
|
-
], 8,
|
|
535
|
+
}, null, 8, Bt)
|
|
536
|
+
], 8, Ot)
|
|
522
537
|
]),
|
|
523
|
-
F.value ? (n(), c("defs",
|
|
538
|
+
F.value ? (n(), c("defs", At, [
|
|
524
539
|
(n(!0), c(_, null, m(C.value, (e) => (n(), c("radialGradient", {
|
|
525
540
|
id: `grad_top_${e.id}`
|
|
526
541
|
}, [
|
|
527
542
|
d("stop", {
|
|
528
543
|
offset: "0%",
|
|
529
544
|
"stop-color": u(g)(u(E)(e.color, 0.5), 80)
|
|
530
|
-
}, null, 8,
|
|
545
|
+
}, null, 8, Lt),
|
|
531
546
|
d("stop", {
|
|
532
547
|
offset: "100%",
|
|
533
548
|
"stop-color": e.color
|
|
534
|
-
}, null, 8,
|
|
535
|
-
], 8,
|
|
549
|
+
}, null, 8, Vt)
|
|
550
|
+
], 8, It))), 256)),
|
|
536
551
|
(n(!0), c(_, null, m(C.value, (e) => (n(), c("linearGradient", {
|
|
537
552
|
id: `grad_left_${e.id}`
|
|
538
553
|
}, [
|
|
539
554
|
d("stop", {
|
|
540
555
|
offset: "0%",
|
|
541
556
|
"stop-color": u(g)(e.color, 80)
|
|
542
|
-
}, null, 8,
|
|
557
|
+
}, null, 8, Gt),
|
|
543
558
|
d("stop", {
|
|
544
559
|
offset: "100%",
|
|
545
|
-
"stop-color": u(g)(u(
|
|
546
|
-
}, null, 8,
|
|
547
|
-
], 8,
|
|
560
|
+
"stop-color": u(g)(u(le)(e.color, 0.5), 100)
|
|
561
|
+
}, null, 8, Ut)
|
|
562
|
+
], 8, Wt))), 256)),
|
|
548
563
|
(n(!0), c(_, null, m(C.value, (e) => (n(), c("linearGradient", {
|
|
549
564
|
id: `grad_right_${e.id}`
|
|
550
565
|
}, [
|
|
551
566
|
d("stop", {
|
|
552
567
|
offset: "2%",
|
|
553
568
|
"stop-color": u(g)(u(E)(e.color, 0.5), 100)
|
|
554
|
-
}, null, 8,
|
|
569
|
+
}, null, 8, Rt),
|
|
555
570
|
d("stop", {
|
|
556
571
|
offset: "100%",
|
|
557
572
|
"stop-color": u(g)(e.color, 80)
|
|
558
|
-
}, null, 8,
|
|
559
|
-
], 8,
|
|
573
|
+
}, null, 8, Ht)
|
|
574
|
+
], 8, Et))), 256)),
|
|
560
575
|
d("linearGradient", {
|
|
561
576
|
x1: "0%",
|
|
562
577
|
y1: "0%",
|
|
@@ -572,7 +587,7 @@ const gt = ["id"], $t = {
|
|
|
572
587
|
offset: "100%",
|
|
573
588
|
"stop-color": "#FFFFFF33"
|
|
574
589
|
}, null, -1)
|
|
575
|
-
]), 8,
|
|
590
|
+
]), 8, Zt)
|
|
576
591
|
])) : y("", !0),
|
|
577
592
|
t.value.style.chart.dataLabel.show && ![null, void 0].includes($.dataset.percentage) && [null, void 0].includes($.dataset.series) ? (n(), c("text", {
|
|
578
593
|
key: 2,
|
|
@@ -586,7 +601,7 @@ const gt = ["id"], $t = {
|
|
|
586
601
|
v: V.value,
|
|
587
602
|
s: "%",
|
|
588
603
|
r: t.value.style.chart.dataLabel.rounding
|
|
589
|
-
})), 9,
|
|
604
|
+
})), 9, qt)) : y("", !0),
|
|
590
605
|
I.value ? (n(), c("g", {
|
|
591
606
|
key: 3,
|
|
592
607
|
onClick: s[0] || (s[0] = (e) => {
|
|
@@ -601,22 +616,22 @@ const gt = ["id"], $t = {
|
|
|
601
616
|
height: 12,
|
|
602
617
|
width: 12,
|
|
603
618
|
fill: "transparent"
|
|
604
|
-
}, null, 8,
|
|
619
|
+
}, null, 8, Xt),
|
|
605
620
|
d("path", {
|
|
606
621
|
d: `M${o.value.width / 2 - 6},${o.value.top - 20} ${o.value.width / 2 + 6},${o.value.top - 9}`,
|
|
607
622
|
stroke: t.value.style.chart.color,
|
|
608
623
|
"stroke-linecap": "round",
|
|
609
624
|
"stroke-width": "1"
|
|
610
|
-
}, null, 8,
|
|
625
|
+
}, null, 8, Yt),
|
|
611
626
|
d("path", {
|
|
612
627
|
d: `M${o.value.width / 2 + 6},${o.value.top - 20} ${o.value.width / 2 - 6},${o.value.top - 9}`,
|
|
613
628
|
stroke: t.value.style.chart.color,
|
|
614
629
|
"stroke-linecap": "round",
|
|
615
630
|
"stroke-width": "1"
|
|
616
|
-
}, null, 8,
|
|
631
|
+
}, null, 8, Jt)
|
|
617
632
|
])) : y("", !0),
|
|
618
|
-
!t.value.style.shape || t.value.style.shape === "bar" ? (n(), c("g",
|
|
619
|
-
F.value ? y("", !0) : (n(), c("g",
|
|
633
|
+
!t.value.style.shape || t.value.style.shape === "bar" ? (n(), c("g", Kt, [
|
|
634
|
+
F.value ? y("", !0) : (n(), c("g", Qt, [
|
|
620
635
|
d("path", {
|
|
621
636
|
"stroke-dasharray": t.value.style.chart.box.strokeDasharray,
|
|
622
637
|
d: z.value.right,
|
|
@@ -625,7 +640,7 @@ const gt = ["id"], $t = {
|
|
|
625
640
|
"stroke-linejoin": "round",
|
|
626
641
|
"stroke-linecap": "round",
|
|
627
642
|
fill: "none"
|
|
628
|
-
}, null, 8,
|
|
643
|
+
}, null, 8, el),
|
|
629
644
|
d("path", {
|
|
630
645
|
"stroke-dasharray": t.value.style.chart.box.strokeDasharray,
|
|
631
646
|
d: z.value.left,
|
|
@@ -634,7 +649,7 @@ const gt = ["id"], $t = {
|
|
|
634
649
|
"stroke-linejoin": "round",
|
|
635
650
|
"stroke-linecap": "round",
|
|
636
651
|
fill: "none"
|
|
637
|
-
}, null, 8,
|
|
652
|
+
}, null, 8, tl),
|
|
638
653
|
d("path", {
|
|
639
654
|
"stroke-dasharray": t.value.style.chart.box.strokeDasharray,
|
|
640
655
|
d: z.value.side,
|
|
@@ -643,7 +658,7 @@ const gt = ["id"], $t = {
|
|
|
643
658
|
"stroke-linejoin": "round",
|
|
644
659
|
"stroke-linecap": "round",
|
|
645
660
|
fill: "none"
|
|
646
|
-
}, null, 8,
|
|
661
|
+
}, null, 8, ll),
|
|
647
662
|
d("path", {
|
|
648
663
|
"stroke-dasharray": t.value.style.chart.box.strokeDasharray,
|
|
649
664
|
d: z.value.topSides,
|
|
@@ -652,35 +667,35 @@ const gt = ["id"], $t = {
|
|
|
652
667
|
"stroke-linejoin": "round",
|
|
653
668
|
"stroke-linecap": "round",
|
|
654
669
|
fill: "none"
|
|
655
|
-
}, null, 8,
|
|
670
|
+
}, null, 8, ol)
|
|
656
671
|
])),
|
|
657
|
-
F.value ? y("", !0) : (n(), c("g",
|
|
672
|
+
F.value ? y("", !0) : (n(), c("g", sl, [
|
|
658
673
|
d("path", {
|
|
659
|
-
d:
|
|
674
|
+
d: Z.value.right,
|
|
660
675
|
stroke: t.value.style.chart.bar.stroke,
|
|
661
676
|
"stroke-width": t.value.style.chart.bar.strokeWidth,
|
|
662
677
|
"stroke-linejoin": "round",
|
|
663
678
|
"stroke-linecap": "round",
|
|
664
679
|
fill: `url(#gradient_right${b.value})`
|
|
665
|
-
}, null, 8,
|
|
680
|
+
}, null, 8, al),
|
|
666
681
|
d("path", {
|
|
667
|
-
d:
|
|
682
|
+
d: Z.value.left,
|
|
668
683
|
stroke: t.value.style.chart.bar.stroke,
|
|
669
684
|
"stroke-width": t.value.style.chart.bar.strokeWidth,
|
|
670
685
|
"stroke-linejoin": "round",
|
|
671
686
|
"stroke-linecap": "round",
|
|
672
687
|
fill: `url(#gradient_left${b.value})`
|
|
673
|
-
}, null, 8,
|
|
688
|
+
}, null, 8, nl),
|
|
674
689
|
d("path", {
|
|
675
|
-
d:
|
|
690
|
+
d: Z.value.top,
|
|
676
691
|
stroke: t.value.style.chart.bar.stroke,
|
|
677
692
|
"stroke-width": t.value.style.chart.bar.strokeWidth,
|
|
678
693
|
"stroke-linejoin": "round",
|
|
679
694
|
"stroke-linecap": "round",
|
|
680
695
|
fill: `url(#gradient_top${b.value})`
|
|
681
|
-
}, null, 8,
|
|
696
|
+
}, null, 8, rl)
|
|
682
697
|
])),
|
|
683
|
-
F.value ? (n(), c("g",
|
|
698
|
+
F.value ? (n(), c("g", ul, [
|
|
684
699
|
(n(!0), c(_, null, m(C.value, (e, h) => (n(), c("g", {
|
|
685
700
|
style: O(`opacity:${x.value ? x.value === e.id ? 1 : 0.3 : 1}`),
|
|
686
701
|
class: "vue-ui-3d-bar-stack"
|
|
@@ -691,21 +706,21 @@ const gt = ["id"], $t = {
|
|
|
691
706
|
onMouseenter: (l) => M(e),
|
|
692
707
|
onClick: (l) => M(e, !0),
|
|
693
708
|
onMouseout: L
|
|
694
|
-
}, null, 40,
|
|
709
|
+
}, null, 40, il),
|
|
695
710
|
d("path", {
|
|
696
711
|
d: e.fill.left,
|
|
697
712
|
fill: `url(#grad_left_${e.id})`,
|
|
698
713
|
onMouseenter: (l) => M(e),
|
|
699
714
|
onClick: (l) => M(e, !0),
|
|
700
715
|
onMouseout: L
|
|
701
|
-
}, null, 40,
|
|
716
|
+
}, null, 40, dl),
|
|
702
717
|
d("path", {
|
|
703
718
|
d: e.fill.top,
|
|
704
719
|
fill: `url(#grad_top_${e.id})`,
|
|
705
720
|
onMouseenter: (l) => M(e),
|
|
706
721
|
onClick: (l) => M(e, !0),
|
|
707
722
|
onMouseout: L
|
|
708
|
-
}, null, 40,
|
|
723
|
+
}, null, 40, cl),
|
|
709
724
|
d("path", {
|
|
710
725
|
d: e.fill.liningTop,
|
|
711
726
|
stroke: "#FFFFFF",
|
|
@@ -715,13 +730,13 @@ const gt = ["id"], $t = {
|
|
|
715
730
|
onMouseenter: (l) => M(e),
|
|
716
731
|
onClick: (l) => M(e, !0),
|
|
717
732
|
onMouseout: L
|
|
718
|
-
}, null, 40,
|
|
733
|
+
}, null, 40, hl),
|
|
719
734
|
d("path", {
|
|
720
735
|
d: `M ${e.fill.apexTop.x},${e.fill.apexTop.y} ${e.fill.apexBottom.x},${e.fill.apexBottom.y}`,
|
|
721
736
|
stroke: "#FFFFFF",
|
|
722
737
|
"stroke-width": "0.5",
|
|
723
738
|
"stroke-linecap": "round"
|
|
724
|
-
}, null, 8,
|
|
739
|
+
}, null, 8, vl)
|
|
725
740
|
], 4))), 256)),
|
|
726
741
|
(n(!0), c(_, null, m(C.value, (e, h) => (n(), c("g", null, [
|
|
727
742
|
h !== C.value.length - 1 ? (n(), c("path", {
|
|
@@ -732,11 +747,11 @@ const gt = ["id"], $t = {
|
|
|
732
747
|
"stroke-linecap": "round",
|
|
733
748
|
fill: "none",
|
|
734
749
|
style: { "pointer-events": "none" }
|
|
735
|
-
}, null, 8,
|
|
750
|
+
}, null, 8, fl)) : y("", !0)
|
|
736
751
|
]))), 256)),
|
|
737
752
|
(n(!0), c(_, null, m(C.value, (e, h) => (n(), c("g", {
|
|
738
753
|
style: O(`opacity:${x.value ? x.value === e.id ? 1 : 0 : e.proportion * 100 > t.value.style.chart.legend.hideUnderPercentage ? 1 : 0}`),
|
|
739
|
-
onClick: (l) =>
|
|
754
|
+
onClick: (l) => q("selectDatapoint", e)
|
|
740
755
|
}, [
|
|
741
756
|
d("path", {
|
|
742
757
|
stroke: t.value.style.chart.color,
|
|
@@ -744,7 +759,7 @@ const gt = ["id"], $t = {
|
|
|
744
759
|
"stroke-width": "0.5",
|
|
745
760
|
"stroke-linecap": "round",
|
|
746
761
|
d: `M${e.fill.sidePointer.x},${e.fill.sidePointer.y} ${e.fill.sidePointer.x + 20},${e.fill.sidePointer.y}`
|
|
747
|
-
}, null, 8,
|
|
762
|
+
}, null, 8, yl),
|
|
748
763
|
!e.fill.miniDonut || x.value ? (n(), c("circle", {
|
|
749
764
|
key: 0,
|
|
750
765
|
cx: e.fill.sidePointer.x + 20,
|
|
@@ -752,7 +767,7 @@ const gt = ["id"], $t = {
|
|
|
752
767
|
r: 2,
|
|
753
768
|
fill: e.color,
|
|
754
769
|
stroke: t.value.style.chart.backgroundColor
|
|
755
|
-
}, null, 8,
|
|
770
|
+
}, null, 8, kl)) : y("", !0),
|
|
756
771
|
(n(), c("foreignObject", {
|
|
757
772
|
x: e.fill.sidePointer.x + 30,
|
|
758
773
|
y: e.fill.sidePointer.y - t.value.style.chart.legend.fontSize,
|
|
@@ -763,7 +778,7 @@ const gt = ["id"], $t = {
|
|
|
763
778
|
t.value.style.chart.legend.showDefault ? (n(), c("div", {
|
|
764
779
|
key: 0,
|
|
765
780
|
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(
|
|
781
|
+
}, B(u(oe)(
|
|
767
782
|
t.value.style.chart.dataLabel.formatter,
|
|
768
783
|
e.value,
|
|
769
784
|
`${e.name}: ${u(D)({ v: e.proportion * 100, s: "%", r: t.value.style.chart.legend.roundingPercentage })} (${u(D)({
|
|
@@ -774,20 +789,20 @@ const gt = ["id"], $t = {
|
|
|
774
789
|
})})`,
|
|
775
790
|
{ datapoint: e, seriesIndex: h, type: "barDatapoint" }
|
|
776
791
|
)), 5)) : y("", !0),
|
|
777
|
-
P(a.$slots, "legend",
|
|
778
|
-
], 8,
|
|
779
|
-
e.fill.donut && x.value === e.id ? (n(), c("g",
|
|
792
|
+
P(a.$slots, "legend", je({ ref_for: !0 }, { datapoint: e, config: t.value, dataset: C.value }), void 0, !0)
|
|
793
|
+
], 8, gl)),
|
|
794
|
+
e.fill.donut && x.value === e.id ? (n(), c("g", $l, [
|
|
780
795
|
(n(!0), c(_, null, m(e.fill.donut, (l, r) => (n(), c("g", null, [
|
|
781
796
|
W(l, e.fill.donut, !0) > 6 ? (n(), c("path", {
|
|
782
797
|
key: 0,
|
|
783
|
-
d: u(
|
|
798
|
+
d: u(Oe)(l, { x: l.cx, y: l.cy }, 0, 8, !1, !0, 10),
|
|
784
799
|
stroke: l.color,
|
|
785
800
|
class: "vue-ui-donut-arc-path",
|
|
786
801
|
"stroke-width": "0.5",
|
|
787
802
|
"stroke-linecap": "round",
|
|
788
803
|
"stroke-linejoin": "round",
|
|
789
804
|
fill: "none"
|
|
790
|
-
}, null, 8,
|
|
805
|
+
}, null, 8, _l)) : y("", !0)
|
|
791
806
|
]))), 256)),
|
|
792
807
|
(n(!0), c(_, null, m(e.fill.donut, (l, r) => (n(), c("path", {
|
|
793
808
|
class: "vue-ui-donut-arc-path",
|
|
@@ -795,7 +810,7 @@ const gt = ["id"], $t = {
|
|
|
795
810
|
fill: `${l.color}`,
|
|
796
811
|
stroke: t.value.style.chart.backgroundColor,
|
|
797
812
|
"stroke-width": 1
|
|
798
|
-
}, null, 8,
|
|
813
|
+
}, null, 8, ml))), 256)),
|
|
799
814
|
d("defs", null, [
|
|
800
815
|
d("radialGradient", {
|
|
801
816
|
id: `hollow_gradient_${b.value}`
|
|
@@ -803,7 +818,7 @@ const gt = ["id"], $t = {
|
|
|
803
818
|
d("stop", {
|
|
804
819
|
offset: "0%",
|
|
805
820
|
"stop-color": u(g)(t.value.style.chart.backgroundColor, 0)
|
|
806
|
-
}, null, 8,
|
|
821
|
+
}, null, 8, xl),
|
|
807
822
|
s[5] || (s[5] = d("stop", {
|
|
808
823
|
offset: "77%",
|
|
809
824
|
"stop-color": "#FFFFFF20"
|
|
@@ -811,8 +826,8 @@ const gt = ["id"], $t = {
|
|
|
811
826
|
d("stop", {
|
|
812
827
|
offset: "100%",
|
|
813
828
|
"stop-color": u(g)(t.value.style.chart.backgroundColor, 0)
|
|
814
|
-
}, null, 8,
|
|
815
|
-
], 8,
|
|
829
|
+
}, null, 8, wl)
|
|
830
|
+
], 8, bl)
|
|
816
831
|
]),
|
|
817
832
|
(n(!0), c(_, null, m(e.fill.donut, (l, r) => (n(), c("circle", {
|
|
818
833
|
class: "vue-ui-donut-arc-path",
|
|
@@ -820,23 +835,23 @@ const gt = ["id"], $t = {
|
|
|
820
835
|
cy: l.cy,
|
|
821
836
|
r: 28,
|
|
822
837
|
fill: `url(#hollow_gradient_${b.value})`
|
|
823
|
-
}, null, 8,
|
|
838
|
+
}, null, 8, Cl))), 256)),
|
|
824
839
|
(n(!0), c(_, null, m(e.fill.donut, (l, r) => (n(), c("circle", {
|
|
825
840
|
class: "vue-ui-donut-arc-path",
|
|
826
841
|
cx: l.cx,
|
|
827
842
|
cy: l.cy,
|
|
828
843
|
r: 14,
|
|
829
844
|
fill: t.value.style.chart.backgroundColor
|
|
830
|
-
}, null, 8,
|
|
845
|
+
}, null, 8, Fl))), 256)),
|
|
831
846
|
(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",
|
|
847
|
+
W(l, e.fill.donut, !0) > 6 ? (n(), c("g", Ml, [
|
|
833
848
|
d("text", {
|
|
834
849
|
"text-anchor": u(A)(l, !0, 0).anchor,
|
|
835
850
|
x: u(A)(l, !0, 2).x,
|
|
836
|
-
y: u(
|
|
851
|
+
y: u(se)(l, 12, 12),
|
|
837
852
|
fill: t.value.style.chart.legend.color,
|
|
838
853
|
"font-size": t.value.style.chart.legend.fontSize / 1.5
|
|
839
|
-
}, B(u(
|
|
854
|
+
}, B(u(oe)(
|
|
840
855
|
t.value.style.chart.dataLabel.formatter,
|
|
841
856
|
l.value,
|
|
842
857
|
`${W(l, e.fill.donut)} (${u(D)({
|
|
@@ -846,31 +861,31 @@ const gt = ["id"], $t = {
|
|
|
846
861
|
r: t.value.style.chart.legend.roundingValue
|
|
847
862
|
})})`,
|
|
848
863
|
{ datapoint: l, seriesIndex: r, type: "donutDatapoint" }
|
|
849
|
-
)), 9,
|
|
864
|
+
)), 9, Pl),
|
|
850
865
|
d("text", {
|
|
851
866
|
"text-anchor": u(A)(l).anchor,
|
|
852
867
|
x: u(A)(l, !0, 2).x,
|
|
853
|
-
y: u(
|
|
868
|
+
y: u(se)(l, 12, 12) + t.value.style.chart.legend.fontSize / 1.5,
|
|
854
869
|
fill: t.value.style.chart.legend.color,
|
|
855
870
|
"font-size": t.value.style.chart.legend.fontSize / 1.5
|
|
856
|
-
}, B(l.name), 9,
|
|
871
|
+
}, B(l.name), 9, Sl)
|
|
857
872
|
])) : y("", !0)
|
|
858
873
|
]))), 256))
|
|
859
874
|
])) : y("", !0),
|
|
860
|
-
e.fill.miniDonut && !x.value ? (n(), c("g",
|
|
875
|
+
e.fill.miniDonut && !x.value ? (n(), c("g", jl, [
|
|
861
876
|
(n(!0), c(_, null, m(e.fill.miniDonut, (l, r) => (n(), c("path", {
|
|
862
877
|
class: "vue-ui-donut-arc-path",
|
|
863
878
|
d: l.arcSlice,
|
|
864
879
|
fill: `${l.color}`,
|
|
865
880
|
stroke: t.value.style.chart.backgroundColor,
|
|
866
881
|
"stroke-width": 0.5
|
|
867
|
-
}, null, 8,
|
|
882
|
+
}, null, 8, Tl))), 256))
|
|
868
883
|
])) : y("", !0)
|
|
869
|
-
], 12,
|
|
884
|
+
], 12, pl))), 256))
|
|
870
885
|
])) : y("", !0)
|
|
871
886
|
])) : y("", !0),
|
|
872
|
-
t.value.style.shape === "tube" ? (n(), c("g",
|
|
873
|
-
F.value ? y("", !0) : (n(), c("g",
|
|
887
|
+
t.value.style.shape === "tube" ? (n(), c("g", Dl, [
|
|
888
|
+
F.value ? y("", !0) : (n(), c("g", Ol, [
|
|
874
889
|
d("path", {
|
|
875
890
|
"stroke-dasharray": t.value.style.chart.box.strokeDasharray,
|
|
876
891
|
d: z.value.tubeTop,
|
|
@@ -879,7 +894,7 @@ const gt = ["id"], $t = {
|
|
|
879
894
|
"stroke-linejoin": "round",
|
|
880
895
|
"stroke-linecap": "round",
|
|
881
896
|
fill: "none"
|
|
882
|
-
}, null, 8,
|
|
897
|
+
}, null, 8, zl),
|
|
883
898
|
d("path", {
|
|
884
899
|
"stroke-dasharray": t.value.style.chart.box.strokeDasharray,
|
|
885
900
|
d: z.value.tubeLeft,
|
|
@@ -888,7 +903,7 @@ const gt = ["id"], $t = {
|
|
|
888
903
|
"stroke-linejoin": "round",
|
|
889
904
|
"stroke-linecap": "round",
|
|
890
905
|
fill: "none"
|
|
891
|
-
}, null, 8,
|
|
906
|
+
}, null, 8, Nl),
|
|
892
907
|
d("path", {
|
|
893
908
|
"stroke-dasharray": t.value.style.chart.box.strokeDasharray,
|
|
894
909
|
d: z.value.tubeRight,
|
|
@@ -897,7 +912,7 @@ const gt = ["id"], $t = {
|
|
|
897
912
|
"stroke-linejoin": "round",
|
|
898
913
|
"stroke-linecap": "round",
|
|
899
914
|
fill: "none"
|
|
900
|
-
}, null, 8,
|
|
915
|
+
}, null, 8, Bl),
|
|
901
916
|
d("path", {
|
|
902
917
|
"stroke-dasharray": t.value.style.chart.box.strokeDasharray,
|
|
903
918
|
d: z.value.tubeBottom,
|
|
@@ -906,29 +921,29 @@ const gt = ["id"], $t = {
|
|
|
906
921
|
"stroke-linejoin": "round",
|
|
907
922
|
"stroke-linecap": "round",
|
|
908
923
|
fill: "none"
|
|
909
|
-
}, null, 8,
|
|
924
|
+
}, null, 8, Al),
|
|
910
925
|
d("path", {
|
|
911
|
-
d:
|
|
926
|
+
d: Z.value.tubeTop,
|
|
912
927
|
stroke: t.value.style.chart.bar.stroke,
|
|
913
928
|
"stroke-width": t.value.style.chart.bar.strokeWidth,
|
|
914
929
|
"stroke-linejoin": "round",
|
|
915
930
|
"stroke-linecap": "round",
|
|
916
931
|
fill: `url(#gradient_top${b.value})`
|
|
917
|
-
}, null, 8,
|
|
932
|
+
}, null, 8, Il),
|
|
918
933
|
d("path", {
|
|
919
|
-
d:
|
|
934
|
+
d: Z.value.tubeBody,
|
|
920
935
|
stroke: t.value.style.chart.bar.stroke,
|
|
921
936
|
"stroke-width": t.value.style.chart.bar.strokeWidth,
|
|
922
937
|
"stroke-linejoin": "round",
|
|
923
938
|
"stroke-linecap": "round",
|
|
924
939
|
fill: `url(#gradient_tube_body${b.value})`
|
|
925
|
-
}, null, 8,
|
|
940
|
+
}, null, 8, Ll)
|
|
926
941
|
])),
|
|
927
|
-
F.value ? (n(), c("g",
|
|
942
|
+
F.value ? (n(), c("g", Vl, [
|
|
928
943
|
(n(!0), c(_, null, m(C.value, (e, h) => (n(), c("g", {
|
|
929
944
|
style: O(`opacity:${x.value ? x.value === e.id ? 1 : 0.3 : 1}`),
|
|
930
945
|
class: "vue-ui-3d-bar-stack",
|
|
931
|
-
onClick: (l) =>
|
|
946
|
+
onClick: (l) => q("selectDatapoint", e)
|
|
932
947
|
}, [
|
|
933
948
|
d("defs", null, [
|
|
934
949
|
d("radialGradient", {
|
|
@@ -939,12 +954,12 @@ const gt = ["id"], $t = {
|
|
|
939
954
|
d("stop", {
|
|
940
955
|
offset: "0%",
|
|
941
956
|
"stop-color": u(g)(u(E)(e.color, 0.5), 80)
|
|
942
|
-
}, null, 8,
|
|
957
|
+
}, null, 8, Ul),
|
|
943
958
|
d("stop", {
|
|
944
959
|
offset: "100%",
|
|
945
|
-
"stop-color": u(g)(u(
|
|
946
|
-
}, null, 8,
|
|
947
|
-
], 8,
|
|
960
|
+
"stop-color": u(g)(u(le)(e.color, 0.1), 80)
|
|
961
|
+
}, null, 8, El)
|
|
962
|
+
], 8, Gl),
|
|
948
963
|
d("linearGradient", {
|
|
949
964
|
id: `gradient_tube_body_${e.id}`,
|
|
950
965
|
x1: "0%",
|
|
@@ -955,24 +970,24 @@ const gt = ["id"], $t = {
|
|
|
955
970
|
d("stop", {
|
|
956
971
|
offset: "0%",
|
|
957
972
|
"stop-color": `${e.color}`
|
|
958
|
-
}, null, 8,
|
|
973
|
+
}, null, 8, Hl),
|
|
959
974
|
d("stop", {
|
|
960
975
|
offset: "10%",
|
|
961
|
-
"stop-color": u(g)(u(
|
|
962
|
-
}, null, 8,
|
|
976
|
+
"stop-color": u(g)(u(le)(e.color, 0.7), 100)
|
|
977
|
+
}, null, 8, Zl),
|
|
963
978
|
d("stop", {
|
|
964
979
|
offset: "25%",
|
|
965
|
-
"stop-color": u(g)(u(
|
|
966
|
-
}, null, 8,
|
|
980
|
+
"stop-color": u(g)(u(le)(e.color, 0.5), 100)
|
|
981
|
+
}, null, 8, ql),
|
|
967
982
|
d("stop", {
|
|
968
983
|
offset: "75%",
|
|
969
984
|
"stop-color": u(g)(e.color, 80)
|
|
970
|
-
}, null, 8,
|
|
985
|
+
}, null, 8, Xl),
|
|
971
986
|
d("stop", {
|
|
972
987
|
offset: "100%",
|
|
973
988
|
"stop-color": u(g)(u(E)(e.color, 0.7), 100)
|
|
974
|
-
}, null, 8,
|
|
975
|
-
], 8,
|
|
989
|
+
}, null, 8, Yl)
|
|
990
|
+
], 8, Rl)
|
|
976
991
|
]),
|
|
977
992
|
d("path", {
|
|
978
993
|
onMouseenter: (l) => M(e),
|
|
@@ -984,7 +999,7 @@ const gt = ["id"], $t = {
|
|
|
984
999
|
"stroke-linejoin": "round",
|
|
985
1000
|
"stroke-linecap": "round",
|
|
986
1001
|
fill: `url(#gradient_tube_body_${e.id})`
|
|
987
|
-
}, null, 40,
|
|
1002
|
+
}, null, 40, Jl),
|
|
988
1003
|
h > 0 ? (n(), c("path", {
|
|
989
1004
|
key: 0,
|
|
990
1005
|
onMouseenter: (l) => M(e),
|
|
@@ -996,7 +1011,7 @@ const gt = ["id"], $t = {
|
|
|
996
1011
|
"stroke-linejoin": "round",
|
|
997
1012
|
"stroke-linecap": "round",
|
|
998
1013
|
fill: "none"
|
|
999
|
-
}, null, 40,
|
|
1014
|
+
}, null, 40, Kl)) : y("", !0),
|
|
1000
1015
|
d("path", {
|
|
1001
1016
|
onMouseenter: (l) => M(e),
|
|
1002
1017
|
onClick: (l) => M(e, !0),
|
|
@@ -1007,11 +1022,11 @@ const gt = ["id"], $t = {
|
|
|
1007
1022
|
"stroke-linejoin": "round",
|
|
1008
1023
|
"stroke-linecap": "round",
|
|
1009
1024
|
fill: `url(#gradient_tube_top_${e.id})`
|
|
1010
|
-
}, null, 40,
|
|
1011
|
-
], 12,
|
|
1025
|
+
}, null, 40, Ql)
|
|
1026
|
+
], 12, Wl))), 256)),
|
|
1012
1027
|
(n(!0), c(_, null, m(C.value, (e, h) => (n(), c("g", {
|
|
1013
1028
|
style: O(`opacity:${x.value ? x.value === e.id ? 1 : 0 : e.proportion * 100 > t.value.style.chart.legend.hideUnderPercentage ? 1 : 0}`),
|
|
1014
|
-
onClick: (l) =>
|
|
1029
|
+
onClick: (l) => q("selectDatapoint", e)
|
|
1015
1030
|
}, [
|
|
1016
1031
|
d("path", {
|
|
1017
1032
|
stroke: t.value.style.chart.color,
|
|
@@ -1019,7 +1034,7 @@ const gt = ["id"], $t = {
|
|
|
1019
1034
|
"stroke-width": "0.5",
|
|
1020
1035
|
"stroke-linecap": "round",
|
|
1021
1036
|
d: `M${e.fill.sidePointer.x},${e.fill.sidePointer.y} ${e.fill.sidePointer.x + 20},${e.fill.sidePointer.y}`
|
|
1022
|
-
}, null, 8,
|
|
1037
|
+
}, null, 8, to),
|
|
1023
1038
|
!e.fill.miniDonut || x.value ? (n(), c("circle", {
|
|
1024
1039
|
key: 0,
|
|
1025
1040
|
cx: e.fill.sidePointer.x + 20,
|
|
@@ -1027,7 +1042,7 @@ const gt = ["id"], $t = {
|
|
|
1027
1042
|
r: 2,
|
|
1028
1043
|
fill: e.color,
|
|
1029
1044
|
stroke: t.value.style.chart.backgroundColor
|
|
1030
|
-
}, null, 8,
|
|
1045
|
+
}, null, 8, lo)) : y("", !0),
|
|
1031
1046
|
(n(), c("foreignObject", {
|
|
1032
1047
|
x: e.fill.sidePointer.x + 30,
|
|
1033
1048
|
y: e.fill.sidePointer.y - t.value.style.chart.legend.fontSize,
|
|
@@ -1038,7 +1053,7 @@ const gt = ["id"], $t = {
|
|
|
1038
1053
|
t.value.style.chart.legend.showDefault ? (n(), c("div", {
|
|
1039
1054
|
key: 0,
|
|
1040
1055
|
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(
|
|
1056
|
+
}, B(u(oe)(
|
|
1042
1057
|
t.value.style.chart.dataLabel.formatter,
|
|
1043
1058
|
e.value,
|
|
1044
1059
|
`${e.name}: ${u(D)({ v: e.proportion * 100, s: "%", r: t.value.style.chart.legend.roundingPercentage })} (${u(D)({
|
|
@@ -1049,20 +1064,20 @@ const gt = ["id"], $t = {
|
|
|
1049
1064
|
})})`,
|
|
1050
1065
|
{ datapoint: e, seriesIndex: h, type: "barDatapoint" }
|
|
1051
1066
|
)), 5)) : y("", !0),
|
|
1052
|
-
P(a.$slots, "legend",
|
|
1053
|
-
], 8,
|
|
1054
|
-
e.fill.donut && x.value === e.id ? (n(), c("g",
|
|
1067
|
+
P(a.$slots, "legend", je({ ref_for: !0 }, { datapoint: e, config: t.value, dataset: C.value }), void 0, !0)
|
|
1068
|
+
], 8, oo)),
|
|
1069
|
+
e.fill.donut && x.value === e.id ? (n(), c("g", so, [
|
|
1055
1070
|
(n(!0), c(_, null, m(e.fill.donut, (l, r) => (n(), c("g", null, [
|
|
1056
1071
|
W(l, e.fill.donut, !0) > 6 ? (n(), c("path", {
|
|
1057
1072
|
key: 0,
|
|
1058
|
-
d: u(
|
|
1073
|
+
d: u(Oe)(l, { x: l.cx, y: l.cy }, 0, 8, !1, !0, 10),
|
|
1059
1074
|
stroke: l.color,
|
|
1060
1075
|
class: "vue-ui-donut-arc-path",
|
|
1061
1076
|
"stroke-width": "0.5",
|
|
1062
1077
|
"stroke-linecap": "round",
|
|
1063
1078
|
"stroke-linejoin": "round",
|
|
1064
1079
|
fill: "none"
|
|
1065
|
-
}, null, 8,
|
|
1080
|
+
}, null, 8, ao)) : y("", !0)
|
|
1066
1081
|
]))), 256)),
|
|
1067
1082
|
(n(!0), c(_, null, m(e.fill.donut, (l, r) => (n(), c("path", {
|
|
1068
1083
|
class: "vue-ui-donut-arc-path",
|
|
@@ -1070,7 +1085,7 @@ const gt = ["id"], $t = {
|
|
|
1070
1085
|
fill: `${l.color}`,
|
|
1071
1086
|
stroke: t.value.style.chart.backgroundColor,
|
|
1072
1087
|
"stroke-width": 1
|
|
1073
|
-
}, null, 8,
|
|
1088
|
+
}, null, 8, no))), 256)),
|
|
1074
1089
|
d("defs", null, [
|
|
1075
1090
|
d("radialGradient", {
|
|
1076
1091
|
id: `hollow_gradient_${b.value}`
|
|
@@ -1078,7 +1093,7 @@ const gt = ["id"], $t = {
|
|
|
1078
1093
|
d("stop", {
|
|
1079
1094
|
offset: "0%",
|
|
1080
1095
|
"stop-color": u(g)(t.value.style.chart.backgroundColor, 0)
|
|
1081
|
-
}, null, 8,
|
|
1096
|
+
}, null, 8, uo),
|
|
1082
1097
|
s[6] || (s[6] = d("stop", {
|
|
1083
1098
|
offset: "77%",
|
|
1084
1099
|
"stop-color": "#FFFFFF20"
|
|
@@ -1086,8 +1101,8 @@ const gt = ["id"], $t = {
|
|
|
1086
1101
|
d("stop", {
|
|
1087
1102
|
offset: "100%",
|
|
1088
1103
|
"stop-color": u(g)(t.value.style.chart.backgroundColor, 0)
|
|
1089
|
-
}, null, 8,
|
|
1090
|
-
], 8,
|
|
1104
|
+
}, null, 8, io)
|
|
1105
|
+
], 8, ro)
|
|
1091
1106
|
]),
|
|
1092
1107
|
(n(!0), c(_, null, m(e.fill.donut, (l, r) => (n(), c("circle", {
|
|
1093
1108
|
class: "vue-ui-donut-arc-path",
|
|
@@ -1095,23 +1110,23 @@ const gt = ["id"], $t = {
|
|
|
1095
1110
|
cy: l.cy,
|
|
1096
1111
|
r: 28,
|
|
1097
1112
|
fill: `url(#hollow_gradient_${b.value})`
|
|
1098
|
-
}, null, 8,
|
|
1113
|
+
}, null, 8, co))), 256)),
|
|
1099
1114
|
(n(!0), c(_, null, m(e.fill.donut, (l, r) => (n(), c("circle", {
|
|
1100
1115
|
class: "vue-ui-donut-arc-path",
|
|
1101
1116
|
cx: l.cx,
|
|
1102
1117
|
cy: l.cy,
|
|
1103
1118
|
r: 14,
|
|
1104
1119
|
fill: t.value.style.chart.backgroundColor
|
|
1105
|
-
}, null, 8,
|
|
1120
|
+
}, null, 8, ho))), 256)),
|
|
1106
1121
|
(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",
|
|
1122
|
+
W(l, e.fill.donut, !0) > 6 ? (n(), c("g", vo, [
|
|
1108
1123
|
d("text", {
|
|
1109
1124
|
"text-anchor": u(A)(l, !0, 0).anchor,
|
|
1110
1125
|
x: u(A)(l, !0, 2).x,
|
|
1111
|
-
y: u(
|
|
1126
|
+
y: u(se)(l, 12, 12),
|
|
1112
1127
|
fill: t.value.style.chart.legend.color,
|
|
1113
1128
|
"font-size": t.value.style.chart.legend.fontSize / 1.5
|
|
1114
|
-
}, B(u(
|
|
1129
|
+
}, B(u(oe)(
|
|
1115
1130
|
t.value.style.chart.dataLabel.formatter,
|
|
1116
1131
|
l.value,
|
|
1117
1132
|
`${W(l, e.fill.donut)} (${u(D)({
|
|
@@ -1121,35 +1136,35 @@ const gt = ["id"], $t = {
|
|
|
1121
1136
|
r: t.value.style.chart.legend.roundingValue
|
|
1122
1137
|
})})`,
|
|
1123
1138
|
{ datapoint: l, seriesIndex: r, type: "donutDatapoint" }
|
|
1124
|
-
)), 9,
|
|
1139
|
+
)), 9, fo),
|
|
1125
1140
|
d("text", {
|
|
1126
1141
|
"text-anchor": u(A)(l).anchor,
|
|
1127
1142
|
x: u(A)(l, !0, 2).x,
|
|
1128
|
-
y: u(
|
|
1143
|
+
y: u(se)(l, 12, 12) + t.value.style.chart.legend.fontSize / 1.5,
|
|
1129
1144
|
fill: t.value.style.chart.legend.color,
|
|
1130
1145
|
"font-size": t.value.style.chart.legend.fontSize / 1.5
|
|
1131
|
-
}, B(l.name), 9,
|
|
1146
|
+
}, B(l.name), 9, po)
|
|
1132
1147
|
])) : y("", !0)
|
|
1133
1148
|
]))), 256))
|
|
1134
1149
|
])) : y("", !0),
|
|
1135
|
-
e.fill.miniDonut && !x.value ? (n(), c("g",
|
|
1150
|
+
e.fill.miniDonut && !x.value ? (n(), c("g", yo, [
|
|
1136
1151
|
(n(!0), c(_, null, m(e.fill.miniDonut, (l, r) => (n(), c("path", {
|
|
1137
1152
|
class: "vue-ui-donut-arc-path",
|
|
1138
1153
|
d: l.arcSlice,
|
|
1139
1154
|
fill: `${l.color}`,
|
|
1140
1155
|
stroke: t.value.style.chart.backgroundColor,
|
|
1141
1156
|
"stroke-width": 0.5
|
|
1142
|
-
}, null, 8,
|
|
1157
|
+
}, null, 8, ko))), 256))
|
|
1143
1158
|
])) : y("", !0)
|
|
1144
|
-
], 12,
|
|
1159
|
+
], 12, eo))), 256))
|
|
1145
1160
|
])) : y("", !0)
|
|
1146
1161
|
])) : y("", !0),
|
|
1147
1162
|
P(a.$slots, "svg", { svg: o.value }, void 0, !0)
|
|
1148
|
-
], 14,
|
|
1149
|
-
a.$slots.watermark ? (n(), c("div",
|
|
1150
|
-
P(a.$slots, "watermark",
|
|
1163
|
+
], 14, bt)) : y("", !0),
|
|
1164
|
+
a.$slots.watermark ? (n(), c("div", go, [
|
|
1165
|
+
P(a.$slots, "watermark", K(Q({ isPrinting: u(ye) || u(ke) })), void 0, !0)
|
|
1151
1166
|
])) : y("", !0),
|
|
1152
|
-
|
|
1167
|
+
X.value ? y("", !0) : (n(), U(u(Ge), {
|
|
1153
1168
|
key: 5,
|
|
1154
1169
|
config: {
|
|
1155
1170
|
type: "bar3d",
|
|
@@ -1161,10 +1176,10 @@ const gt = ["id"], $t = {
|
|
|
1161
1176
|
}
|
|
1162
1177
|
}
|
|
1163
1178
|
}, null, 8, ["config"])),
|
|
1164
|
-
a.$slots.source ? (n(), c("div",
|
|
1179
|
+
a.$slots.source ? (n(), c("div", $o, [
|
|
1165
1180
|
P(a.$slots, "source", {}, void 0, !0)
|
|
1166
1181
|
], 512)) : y("", !0),
|
|
1167
|
-
|
|
1182
|
+
X.value && F.value ? (n(), U(u(Ie), {
|
|
1168
1183
|
key: 7,
|
|
1169
1184
|
hideDetails: "",
|
|
1170
1185
|
config: {
|
|
@@ -1181,12 +1196,12 @@ const gt = ["id"], $t = {
|
|
|
1181
1196
|
}
|
|
1182
1197
|
}, {
|
|
1183
1198
|
content: T(() => [
|
|
1184
|
-
(n(), U(u(
|
|
1199
|
+
(n(), U(u(Le), {
|
|
1185
1200
|
key: `table_${ce.value}`,
|
|
1186
|
-
colNames:
|
|
1187
|
-
head:
|
|
1188
|
-
body:
|
|
1189
|
-
config:
|
|
1201
|
+
colNames: Y.value.colNames,
|
|
1202
|
+
head: Y.value.head,
|
|
1203
|
+
body: Y.value.body,
|
|
1204
|
+
config: Y.value.config,
|
|
1190
1205
|
title: `${t.value.style.chart.title.text}${t.value.style.chart.title.subtitle.text ? ` : ${t.value.style.chart.title.subtitle.text}` : ""}`,
|
|
1191
1206
|
onClose: s[1] || (s[1] = (e) => H.value.showTable = !1)
|
|
1192
1207
|
}, {
|
|
@@ -1194,19 +1209,19 @@ const gt = ["id"], $t = {
|
|
|
1194
1209
|
d("div", {
|
|
1195
1210
|
innerHTML: e,
|
|
1196
1211
|
style: { display: "flex", "align-items": "center" }
|
|
1197
|
-
}, null, 8,
|
|
1212
|
+
}, null, 8, _o)
|
|
1198
1213
|
]),
|
|
1199
1214
|
td: T(({ td: e }) => [
|
|
1200
|
-
|
|
1215
|
+
ot(B(e.name || e), 1)
|
|
1201
1216
|
]),
|
|
1202
1217
|
_: 1
|
|
1203
1218
|
}, 8, ["colNames", "head", "body", "config", "title"]))
|
|
1204
1219
|
]),
|
|
1205
1220
|
_: 1
|
|
1206
1221
|
}, 8, ["config"])) : y("", !0)
|
|
1207
|
-
], 44,
|
|
1222
|
+
], 44, _t));
|
|
1208
1223
|
}
|
|
1209
|
-
},
|
|
1224
|
+
}, To = /* @__PURE__ */ $t(mo, [["__scopeId", "data-v-6d6dc640"]]);
|
|
1210
1225
|
export {
|
|
1211
|
-
|
|
1226
|
+
To as default
|
|
1212
1227
|
};
|