vue-data-ui 3.0.0-next.0 → 3.0.0-next.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +108 -67
- package/dist/{Arrow-CzFtSJ1v.js → Arrow-Dck2Ea5K.js} +1 -1
- package/dist/{BaseDraggableDialog-0S5xhs2P.js → BaseDraggableDialog-CatHZ1ns.js} +2 -2
- package/dist/{BaseIcon-DoDjTdD5.js → BaseIcon-BmZ4MREl.js} +1 -1
- package/dist/{ColorPicker-BGRchgqQ.js → ColorPicker-C1MXyD9Q.js} +2 -2
- package/dist/{DataTable-BBbOgI-a.js → DataTable-CgL0Rz0x.js} +2 -2
- package/dist/{Legend-Q4bOb-Nf.js → Legend-CYbP3Kfg.js} +12 -11
- package/dist/{NonSvgPenAndPaper-DNKRvsBB.js → NonSvgPenAndPaper-CcbcJm_U.js} +3 -3
- package/dist/{PackageVersion-D0VPY8-5.js → PackageVersion-CAkNkiIG.js} +1 -1
- package/dist/{PenAndPaper-DhBJsnob.js → PenAndPaper-Cx1-5zdD.js} +32 -32
- package/dist/{Shape-DbsLJ-SE.js → Shape-DBXkGxKt.js} +1 -1
- package/dist/{Slicer-DZEFp2GU.js → Slicer-nrMi5hzj.js} +2 -2
- package/dist/{SparkTooltip-CoOJR62O.js → SparkTooltip-fNzL4pIU.js} +1 -1
- package/dist/{Title-D29apS4l.js → Title-pVYRzQXY.js} +1 -1
- package/dist/Tooltip-NwATo4ZJ.js +157 -0
- package/dist/{UserOptions-Bdit7AWO.js → UserOptions-DAsRxxrf.js} +137 -129
- package/dist/{dom-to-png-BdPIrHOF.js → dom-to-png-BF_4H_6u.js} +1 -1
- package/dist/img-ku4zevVD.js +33 -0
- package/dist/{index-DMqAxz7R.js → index-BzfnuLnw.js} +1199 -1135
- package/dist/pdf-CguiIsUc.js +58 -0
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +1051 -217
- package/dist/types/vue-data-ui.d.ts +1051 -217
- package/dist/useLoading-Bt5Doa8m.js +28 -0
- package/dist/{useNestedProp-YgN3FV_8.js → useNestedProp-DorElw91.js} +1 -1
- package/dist/{usePrinter-COkTjv6C.js → usePrinter-C9qkgv0r.js} +2 -2
- package/dist/vue-data-ui-DQef_oFO.js +314 -0
- package/dist/vue-data-ui.js +13 -13
- package/dist/{vue-ui-3d-bar-Ojgjl20n.js → vue-ui-3d-bar-DPSamIA-.js} +261 -245
- package/dist/{vue-ui-accordion-P6eFHGQp.js → vue-ui-accordion-DgZK-qDz.js} +3 -3
- package/dist/{vue-ui-age-pyramid-IcMpAhiw.js → vue-ui-age-pyramid-DVeGKvf9.js} +233 -217
- package/dist/{vue-ui-annotator-Bk7d86-x.js → vue-ui-annotator-6ikkK-FK.js} +2 -2
- package/dist/{vue-ui-bullet-DCvWbCPk.js → vue-ui-bullet-Bg4hfFk2.js} +172 -156
- package/dist/{vue-ui-candlestick-DCf-88Yv.js → vue-ui-candlestick-Bi59FGXn.js} +271 -254
- package/dist/{vue-ui-carousel-table-DEsl0XUh.js → vue-ui-carousel-table-DitKhrFT.js} +17 -16
- package/dist/{vue-ui-chestnut-Cg10-3wu.js → vue-ui-chestnut-D8wGAZod.js} +419 -403
- package/dist/{vue-ui-chord-BWYzR6vf.js → vue-ui-chord-C-uTVCDP.js} +256 -240
- package/dist/{vue-ui-circle-pack-CO2Ra2-5.js → vue-ui-circle-pack-CPy6xcxv.js} +230 -214
- package/dist/{vue-ui-cursor-BbYHJDbV.js → vue-ui-cursor-Dd7vUd0q.js} +2 -2
- package/dist/{vue-ui-dashboard-DkCnNuse.js → vue-ui-dashboard-CKurbu8M.js} +62 -62
- package/dist/{vue-ui-digits-DRsphHt2.js → vue-ui-digits-DfdZI11G.js} +2 -2
- package/dist/{vue-ui-donut-evolution-B5F2-0bh.js → vue-ui-donut-evolution-CKbLO8yR.js} +370 -357
- package/dist/vue-ui-donut-tECBFvud.js +1532 -0
- package/dist/{vue-ui-dumbbell-DqqSxoSh.js → vue-ui-dumbbell-DI5Lj3r_.js} +216 -200
- package/dist/{vue-ui-flow-CTIcUJgV.js → vue-ui-flow-CjU48s9z.js} +217 -201
- package/dist/{vue-ui-funnel-k7KD7Xoc.js → vue-ui-funnel-DM_5vHZ4.js} +213 -197
- package/dist/{vue-ui-galaxy-C9EHaP4I.js → vue-ui-galaxy-ocvZgZJx.js} +215 -202
- package/dist/{vue-ui-gauge-CBiM_1-n.js → vue-ui-gauge-DajNoY-D.js} +220 -204
- package/dist/{vue-ui-gizmo-CAc7b2oK.js → vue-ui-gizmo-DTnzeQbm.js} +3 -3
- package/dist/{vue-ui-heatmap-B3ubrP2v.js → vue-ui-heatmap-CfBS8jQe.js} +244 -224
- package/dist/{vue-ui-history-plot-XCqccO3b.js → vue-ui-history-plot-BuOPWQoP.js} +268 -252
- package/dist/{vue-ui-kpi-DTGMDjaZ.js → vue-ui-kpi-DLGHOIRj.js} +3 -3
- package/dist/{vue-ui-mini-loader-Cn_7nvVq.js → vue-ui-mini-loader-CHAHi4c9.js} +2 -2
- package/dist/{vue-ui-molecule-BugMXFAK.js → vue-ui-molecule-R5-oDFeW.js} +204 -188
- package/dist/{vue-ui-mood-radar-Cv4dHZPL.js → vue-ui-mood-radar-Ddf2gaES.js} +206 -190
- package/dist/vue-ui-nested-donuts-CksklV83.js +1177 -0
- package/dist/{vue-ui-onion-Bha2hRAb.js → vue-ui-onion-D2n4zUkV.js} +196 -180
- package/dist/{vue-ui-parallel-coordinate-plot-DWJ2DWx4.js → vue-ui-parallel-coordinate-plot-CNWQqlxf.js} +194 -178
- package/dist/{vue-ui-quadrant-BKHZoTml.js → vue-ui-quadrant-CxNj2FEx.js} +321 -305
- package/dist/{vue-ui-quick-chart-D_k3lbU8.js → vue-ui-quick-chart-Bm_VmhJR.js} +347 -331
- package/dist/{vue-ui-radar-Co4EOjSk.js → vue-ui-radar-DSYMQJ6K.js} +193 -177
- package/dist/{vue-ui-rating-dtNN0EdX.js → vue-ui-rating-BiQpwXnc.js} +2 -2
- package/dist/{vue-ui-relation-circle-CR4UpQzM.js → vue-ui-relation-circle-Cdxe78Bm.js} +188 -172
- package/dist/{vue-ui-ridgeline-BKX97EnR.js → vue-ui-ridgeline-DpeM2hRi.js} +212 -196
- package/dist/{vue-ui-rings-EPTwyt6D.js → vue-ui-rings-BenmQHKv.js} +223 -210
- package/dist/{vue-ui-scatter-BlxzblSR.js → vue-ui-scatter-mDMY1H6U.js} +288 -273
- package/dist/{vue-ui-skeleton-CjN2ZdgT.js → vue-ui-skeleton-Ch_XkFuP.js} +3 -3
- package/dist/{vue-ui-smiley-DdF_ErYG.js → vue-ui-smiley-DTig5lTU.js} +2 -2
- package/dist/{vue-ui-spark-trend-RdOlCuT9.js → vue-ui-spark-trend-BkDsp8E0.js} +3 -3
- package/dist/{vue-ui-sparkbar-DWufRGcN.js → vue-ui-sparkbar-CgqoyBOm.js} +3 -3
- package/dist/{vue-ui-sparkgauge-IP1O3qyT.js → vue-ui-sparkgauge-B4jR_Y62.js} +3 -3
- package/dist/{vue-ui-sparkhistogram-Cnv9xZ8H.js → vue-ui-sparkhistogram-DfxjglLy.js} +4 -4
- package/dist/{vue-ui-sparkline-CYgeD5V3.js → vue-ui-sparkline-M3QR8xJE.js} +3 -3
- package/dist/{vue-ui-sparkstackbar-BCwoK9xd.js → vue-ui-sparkstackbar-B2Ls-Mb8.js} +3 -3
- package/dist/{vue-ui-stackbar-CqFIvfrK.js → vue-ui-stackbar-DIHkn6__.js} +497 -474
- package/dist/{vue-ui-strip-plot-Dq-kDRai.js → vue-ui-strip-plot-B_ZLbu2D.js} +241 -225
- package/dist/{vue-ui-table-vaIdQnPl.js → vue-ui-table-BhymhDOh.js} +3 -3
- package/dist/{vue-ui-table-heatmap-U_Td0cdh.js → vue-ui-table-heatmap-DokRh4dS.js} +26 -25
- package/dist/{vue-ui-table-sparkline-DkOaHx5L.js → vue-ui-table-sparkline-DxBZGKZJ.js} +8 -7
- package/dist/{vue-ui-thermometer-CzckBZgs.js → vue-ui-thermometer-e2L6IdF-.js} +170 -154
- package/dist/{vue-ui-timer-DSdUshUs.js → vue-ui-timer-BG2EwK3o.js} +5 -5
- package/dist/vue-ui-tiremarks-nzQH7woJ.js +358 -0
- package/dist/vue-ui-treemap-CZxyi6fl.js +965 -0
- package/dist/{vue-ui-vertical-bar-Dd4sYeAC.js → vue-ui-vertical-bar-DahdX1Sn.js} +382 -360
- package/dist/{vue-ui-waffle-DusUVY6y.js → vue-ui-waffle-D399D4UE.js} +234 -221
- package/dist/vue-ui-wheel-DtcwtHzJ.js +352 -0
- package/dist/{vue-ui-word-cloud-_7uYjJ5A.js → vue-ui-word-cloud-CTDceQsf.js} +249 -233
- package/dist/{vue-ui-world-COIyBHII.js → vue-ui-world-BjNSbqMZ.js} +239 -223
- package/dist/vue-ui-xy-BkTP-JpK.js +2958 -0
- package/dist/{vue-ui-xy-canvas-CuYRyub2.js → vue-ui-xy-canvas-BKAowbe0.js} +447 -431
- package/package.json +2 -2
- package/dist/Tooltip-hVZUY_s5.js +0 -149
- package/dist/img-BeMVTwmF.js +0 -20
- package/dist/pdf-DPxOdzfi.js +0 -51
- package/dist/useMouse-AicQS8Vf.js +0 -13
- package/dist/vue-data-ui-nceqWRts.js +0 -301
- package/dist/vue-ui-donut-DSE7ubVv.js +0 -1315
- package/dist/vue-ui-nested-donuts-CYe0Are_.js +0 -1154
- package/dist/vue-ui-tiremarks-B2WWklqG.js +0 -342
- package/dist/vue-ui-treemap-D1dgDhjG.js +0 -952
- package/dist/vue-ui-wheel-ClsKBh52.js +0 -336
- package/dist/vue-ui-xy-C_OUyzTC.js +0 -3135
|
@@ -1,22 +1,23 @@
|
|
|
1
|
-
import { defineAsyncComponent as G, computed as
|
|
2
|
-
import { u as
|
|
3
|
-
import { u as
|
|
4
|
-
import { u as
|
|
5
|
-
import { u as
|
|
6
|
-
import { u as
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
|
|
1
|
+
import { defineAsyncComponent as G, computed as j, ref as S, watch as Qe, onMounted as et, createElementBlock as c, openBlock as n, unref as u, normalizeStyle as O, normalizeClass as Se, createBlock as U, createCommentVNode as y, createSlots as tt, withCtx as T, renderSlot as P, normalizeProps as K, guardReactiveProps as Q, createVNode as lt, createElementVNode as d, Fragment as _, renderList as m, toDisplayString as B, mergeProps as je, createTextVNode as ot, nextTick as st } from "vue";
|
|
2
|
+
import { u as at, c as Te, t as nt, p as ee, a as rt, b as ut, d as it, o as dt, e as te, g as ie, l as E, m as De, f as D, X as ct, s as g, h as le, i as oe, j as Oe, k as se, n as A, q as ht, r as vt } from "./index-BzfnuLnw.js";
|
|
3
|
+
import { u as ze } from "./useNestedProp-DorElw91.js";
|
|
4
|
+
import { u as ft } from "./usePrinter-C9qkgv0r.js";
|
|
5
|
+
import { u as pt } from "./useUserOptionState-BIvW1Kz7.js";
|
|
6
|
+
import { u as yt } from "./useChartAccessibility-9icAAmYg.js";
|
|
7
|
+
import kt from "./Title-pVYRzQXY.js";
|
|
8
|
+
import gt from "./img-ku4zevVD.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,34 +34,34 @@ const gt = ["id"], $t = {
|
|
|
33
34
|
}
|
|
34
35
|
},
|
|
35
36
|
emits: ["selectDatapoint"],
|
|
36
|
-
setup(
|
|
37
|
-
const
|
|
37
|
+
setup(Ne, { expose: Be, emit: Ae }) {
|
|
38
|
+
const Ie = G(() => import("./vue-ui-accordion-DgZK-qDz.js")), Le = G(() => import("./DataTable-CgL0Rz0x.js")), Ve = G(() => import("./PackageVersion-CAkNkiIG.js")), We = G(() => import("./PenAndPaper-Cx1-5zdD.js")), Ge = G(() => import("./vue-ui-skeleton-Ch_XkFuP.js")), Ue = G(() => import("./UserOptions-DAsRxxrf.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 =
|
|
62
|
+
}), He = j(() => ut(t.value.customPalette)), H = S({
|
|
62
63
|
showTable: t.value.table.show
|
|
63
|
-
}), F =
|
|
64
|
+
}), F = j(() => $.dataset.series && $.dataset.series.length), o = j(() => ({
|
|
64
65
|
height: t.value.style.chart.box.dimensions.height,
|
|
65
66
|
width: t.value.style.chart.box.dimensions.width,
|
|
66
67
|
absoluteWidth: t.value.style.chart.box.dimensions.width * (F.value ? 2 : 1),
|
|
@@ -69,25 +70,25 @@ const gt = ["id"], $t = {
|
|
|
69
70
|
left: t.value.style.chart.box.dimensions.left,
|
|
70
71
|
right: t.value.style.chart.box.dimensions.right,
|
|
71
72
|
perspective: t.value.style.chart.box.dimensions.perspective
|
|
72
|
-
})), C =
|
|
73
|
+
})), C = j(() => {
|
|
73
74
|
if (F.value) {
|
|
74
75
|
const a = $.dataset.series.map((l) => l.value || 0).reduce((l, r) => l + r, 0), s = $.dataset.series.map((l, r) => ({
|
|
75
76
|
...l,
|
|
76
77
|
id: Te(),
|
|
77
78
|
proportion: (l.value || 0) / a,
|
|
78
|
-
color:
|
|
79
|
+
color: it(l.color) || 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
|
}
|
|
89
90
|
return null;
|
|
90
|
-
}), z =
|
|
91
|
+
}), z = j(() => ({
|
|
91
92
|
right: `M${o.value.width / 2},${o.value.top} ${o.value.width - o.value.right}, ${o.value.top + o.value.perspective} ${o.value.width - o.value.right},${o.value.height - o.value.bottom - o.value.perspective} ${o.value.width / 2},${o.value.height - o.value.bottom}`,
|
|
92
93
|
left: `M${o.value.width / 2},${o.value.top} ${o.value.left},${o.value.top + o.value.perspective} ${o.value.left},${o.value.height - o.value.bottom - o.value.perspective} ${o.value.width / 2},${o.value.height - o.value.bottom}`,
|
|
93
94
|
side: `M${o.value.width / 2},${o.value.height - o.value.bottom} ${o.value.width / 2},${o.value.top + o.value.perspective * 2}`,
|
|
@@ -96,8 +97,8 @@ const gt = ["id"], $t = {
|
|
|
96
97
|
tubeLeft: `M${o.value.left},${o.value.top + o.value.perspective} ${o.value.left},${o.value.height - o.value.bottom - o.value.perspective}`,
|
|
97
98
|
tubeRight: `M${o.value.width - o.value.right},${o.value.top + o.value.perspective} ${o.value.width - o.value.right},${o.value.height - o.value.bottom - o.value.perspective}`,
|
|
98
99
|
tubeBottom: `M${o.value.width - o.value.right},${o.value.height - o.value.bottom - o.value.perspective} C ${o.value.width - o.value.right},${o.value.height} ${o.value.left},${o.value.height} ${o.value.left},${o.value.height - o.value.bottom - o.value.perspective}`
|
|
99
|
-
})), V =
|
|
100
|
-
|
|
100
|
+
})), V = S(t.value.style.chart.animation.use ? 0 : $.dataset.percentage);
|
|
101
|
+
et(() => {
|
|
101
102
|
_e();
|
|
102
103
|
let a = 0, s = t.value.style.chart.animation.speed, e = 5e-3 * t.value.style.chart.animation.acceleration;
|
|
103
104
|
function h() {
|
|
@@ -106,26 +107,26 @@ const gt = ["id"], $t = {
|
|
|
106
107
|
t.value.style.chart.animation.use && (V.value = 0, h());
|
|
107
108
|
});
|
|
108
109
|
function _e() {
|
|
109
|
-
|
|
110
|
+
dt($.dataset) ? te({
|
|
110
111
|
componentName: "VueUi3dBar",
|
|
111
112
|
type: "dataset"
|
|
112
113
|
}) : $.dataset.series ? $.dataset.series.forEach((a, s) => {
|
|
113
|
-
|
|
114
|
+
ie({
|
|
114
115
|
datasetObject: a,
|
|
115
116
|
requiredAttributes: ["name", "value"]
|
|
116
117
|
}).forEach((e) => {
|
|
117
|
-
|
|
118
|
+
te({
|
|
118
119
|
componentName: "VueUi3dBar",
|
|
119
120
|
type: "datasetSerieAttribute",
|
|
120
121
|
property: e,
|
|
121
122
|
index: s
|
|
122
123
|
});
|
|
123
124
|
}), a.breakdown && a.breakdown.forEach((e, h) => {
|
|
124
|
-
|
|
125
|
+
ie({
|
|
125
126
|
datasetObject: e,
|
|
126
127
|
requiredAttributes: ["name", "value"]
|
|
127
128
|
}).forEach((l) => {
|
|
128
|
-
|
|
129
|
+
te({
|
|
129
130
|
componentName: "VueUi3dBar",
|
|
130
131
|
type: "datasetSerieAttribute",
|
|
131
132
|
property: l,
|
|
@@ -133,28 +134,28 @@ const gt = ["id"], $t = {
|
|
|
133
134
|
});
|
|
134
135
|
});
|
|
135
136
|
});
|
|
136
|
-
}) :
|
|
137
|
+
}) : ie({
|
|
137
138
|
datasetObject: $.dataset,
|
|
138
139
|
requiredAttributes: ["percentage"]
|
|
139
140
|
}).forEach((a) => {
|
|
140
|
-
|
|
141
|
+
te({
|
|
141
142
|
componentName: "VueUi3dBar",
|
|
142
143
|
type: "datasetAttribute",
|
|
143
144
|
property: a
|
|
144
145
|
});
|
|
145
146
|
});
|
|
146
147
|
}
|
|
147
|
-
function
|
|
148
|
-
const l = o.value.height - o.value.bottom - o.value.top - o.value.perspective * 2, { width: r, height: i, bottom: k, right: w, left: f, perspective: p } = o.value, v = k + l * a,
|
|
149
|
-
let
|
|
150
|
-
return
|
|
151
|
-
...
|
|
152
|
-
value:
|
|
153
|
-
color: E(h,
|
|
154
|
-
})),
|
|
148
|
+
function Ze(a, s, e, h) {
|
|
149
|
+
const l = o.value.height - o.value.bottom - o.value.top - o.value.perspective * 2, { width: r, height: i, bottom: k, right: w, left: f, perspective: p } = o.value, v = k + l * a, ue = i - v - p - l * s / 2, Ye = ue > o.value.height / 2 ? "top" : "bottom", Ce = 64, Je = !!e;
|
|
150
|
+
let Fe = null, Me = null;
|
|
151
|
+
return Je && (e = e.map((Pe, Ke) => ({
|
|
152
|
+
...Pe,
|
|
153
|
+
value: Pe.value || 0,
|
|
154
|
+
color: E(h, Ke / e.length)
|
|
155
|
+
})), Fe = De(
|
|
155
156
|
{ series: e },
|
|
156
157
|
r + o.value.absoluteWidth / 4 - 14,
|
|
157
|
-
|
|
158
|
+
Ye === "top" ? ue - Ce : ue + Ce,
|
|
158
159
|
28,
|
|
159
160
|
28,
|
|
160
161
|
1.99999,
|
|
@@ -163,7 +164,7 @@ const gt = ["id"], $t = {
|
|
|
163
164
|
360,
|
|
164
165
|
105.25,
|
|
165
166
|
14
|
|
166
|
-
),
|
|
167
|
+
), Me = De(
|
|
167
168
|
{ series: e },
|
|
168
169
|
r - w + 20,
|
|
169
170
|
i - v - p - l * s / 2,
|
|
@@ -176,8 +177,8 @@ const gt = ["id"], $t = {
|
|
|
176
177
|
105.25,
|
|
177
178
|
6
|
|
178
179
|
)), {
|
|
179
|
-
donut:
|
|
180
|
-
miniDonut:
|
|
180
|
+
donut: Fe,
|
|
181
|
+
miniDonut: Me,
|
|
181
182
|
sidePointer: {
|
|
182
183
|
x: r - w,
|
|
183
184
|
y: i - v - p - l * s / 2,
|
|
@@ -205,7 +206,7 @@ const gt = ["id"], $t = {
|
|
|
205
206
|
${f},${i - v - p}Z`
|
|
206
207
|
};
|
|
207
208
|
}
|
|
208
|
-
const
|
|
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`,
|
|
@@ -223,9 +224,9 @@ const gt = ["id"], $t = {
|
|
|
223
224
|
${i},${h}
|
|
224
225
|
${i},${h - f - k}Z`
|
|
225
226
|
};
|
|
226
|
-
}), x =
|
|
227
|
+
}), x = S(null);
|
|
227
228
|
function M(a, s = !1) {
|
|
228
|
-
|
|
229
|
+
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,14 +238,14 @@ const gt = ["id"], $t = {
|
|
|
237
238
|
function me(a) {
|
|
238
239
|
return [...a].map((s) => s.value).reduce((s, e) => s + e, 0);
|
|
239
240
|
}
|
|
240
|
-
const
|
|
241
|
-
function
|
|
242
|
-
|
|
241
|
+
const ne = S(!1);
|
|
242
|
+
function be(a) {
|
|
243
|
+
ne.value = a;
|
|
243
244
|
}
|
|
244
245
|
function qe() {
|
|
245
246
|
return F.value ? C.value : $.dataset.percentage;
|
|
246
247
|
}
|
|
247
|
-
const N =
|
|
248
|
+
const N = j(() => {
|
|
248
249
|
if (F.value) {
|
|
249
250
|
const a = C.value.flatMap((e) => e.breakdown && e.breakdown.length ? [{ name: e.name, color: e.color }, ...e.breakdown.map((h, l) => ({
|
|
250
251
|
name: h.name,
|
|
@@ -257,19 +258,19 @@ const gt = ["id"], $t = {
|
|
|
257
258
|
} else
|
|
258
259
|
return null;
|
|
259
260
|
});
|
|
260
|
-
function
|
|
261
|
+
function xe(a = null) {
|
|
261
262
|
if (!F.value) {
|
|
262
263
|
console.warn("VueUi3dBar : CSV download is only available in stack mode (providing dataset.series instead of dataset.percentage)");
|
|
263
264
|
return;
|
|
264
265
|
}
|
|
265
|
-
|
|
266
|
+
st(() => {
|
|
266
267
|
const s = C.value.map((r) => r.value).reduce((r, i) => r + i, 0), e = N.value.head.map((r, i) => [[
|
|
267
268
|
r.name
|
|
268
|
-
], [N.value.body[i]], [isNaN(N.value.body[i] / s) ? "-" : N.value.body[i] / s * 100]]), h = [[t.value.style.chart.title.text], [t.value.style.chart.title.subtitle.text], [[""], ["val"], ["%"]]].concat(e), l =
|
|
269
|
-
a ? a(l) :
|
|
269
|
+
], [N.value.body[i]], [isNaN(N.value.body[i] / s) ? "-" : N.value.body[i] / s * 100]]), h = [[t.value.style.chart.title.text], [t.value.style.chart.title.subtitle.text], [[""], ["val"], ["%"]]].concat(e), l = ht(h);
|
|
270
|
+
a ? a(l) : vt({ csvContent: l, title: t.value.style.chart.title.text || "vue-ui-3d-bar" });
|
|
270
271
|
});
|
|
271
272
|
}
|
|
272
|
-
const
|
|
273
|
+
const Y = j(() => {
|
|
273
274
|
const a = C.value.map((r) => r.value).reduce((r, i) => r + i, 0), s = [
|
|
274
275
|
' <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M18 16v2a1 1 0 0 1 -1 1h-11l6 -7l-6 -7h11a1 1 0 0 1 1 1v2" /></svg>',
|
|
275
276
|
D({ p: t.value.style.chart.legend.prefix, v: a, s: t.value.style.chart.legend.suffix, r: t.value.table.td.roundingValue }),
|
|
@@ -313,39 +314,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,81 +389,82 @@ 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,
|
|
398
|
+
onToggleFullscreen: be,
|
|
383
399
|
onGeneratePdf: u(ge),
|
|
384
|
-
onGenerateCsv:
|
|
400
|
+
onGenerateCsv: xe,
|
|
385
401
|
onGenerateImage: u($e),
|
|
386
|
-
onToggleTable:
|
|
387
|
-
onToggleAnnotator:
|
|
402
|
+
onToggleTable: we,
|
|
403
|
+
onToggleAnnotator: re,
|
|
388
404
|
style: O({
|
|
389
|
-
visibility: u(ve) ? u(
|
|
405
|
+
visibility: u(ve) ? u(ae) ? "visible" : "hidden" : "visible"
|
|
390
406
|
})
|
|
391
|
-
},
|
|
407
|
+
}, tt({ _: 2 }, [
|
|
392
408
|
a.$slots.menuIcon ? {
|
|
393
409
|
name: "menuIcon",
|
|
394
|
-
fn:
|
|
395
|
-
P(a.$slots, "menuIcon",
|
|
410
|
+
fn: T(({ isOpen: e, color: h }) => [
|
|
411
|
+
P(a.$slots, "menuIcon", K(Q({ isOpen: e, color: h })), void 0, !0)
|
|
396
412
|
]),
|
|
397
413
|
key: "0"
|
|
398
414
|
} : void 0,
|
|
399
415
|
a.$slots.optionPdf ? {
|
|
400
416
|
name: "optionPdf",
|
|
401
|
-
fn:
|
|
417
|
+
fn: T(() => [
|
|
402
418
|
P(a.$slots, "optionPdf", {}, void 0, !0)
|
|
403
419
|
]),
|
|
404
420
|
key: "1"
|
|
405
421
|
} : void 0,
|
|
406
422
|
a.$slots.optionCsv ? {
|
|
407
423
|
name: "optionCsv",
|
|
408
|
-
fn:
|
|
424
|
+
fn: T(() => [
|
|
409
425
|
P(a.$slots, "optionCsv", {}, void 0, !0)
|
|
410
426
|
]),
|
|
411
427
|
key: "2"
|
|
412
428
|
} : void 0,
|
|
413
429
|
a.$slots.optionImg ? {
|
|
414
430
|
name: "optionImg",
|
|
415
|
-
fn:
|
|
431
|
+
fn: T(() => [
|
|
416
432
|
P(a.$slots, "optionImg", {}, void 0, !0)
|
|
417
433
|
]),
|
|
418
434
|
key: "3"
|
|
419
435
|
} : void 0,
|
|
420
436
|
a.$slots.optionTable ? {
|
|
421
437
|
name: "optionTable",
|
|
422
|
-
fn:
|
|
438
|
+
fn: T(() => [
|
|
423
439
|
P(a.$slots, "optionTable", {}, void 0, !0)
|
|
424
440
|
]),
|
|
425
441
|
key: "4"
|
|
426
442
|
} : void 0,
|
|
427
443
|
a.$slots.optionFullscreen ? {
|
|
428
444
|
name: "optionFullscreen",
|
|
429
|
-
fn:
|
|
430
|
-
P(a.$slots, "optionFullscreen",
|
|
445
|
+
fn: T(({ toggleFullscreen: e, isFullscreen: h }) => [
|
|
446
|
+
P(a.$slots, "optionFullscreen", K(Q({ toggleFullscreen: e, isFullscreen: h })), void 0, !0)
|
|
431
447
|
]),
|
|
432
448
|
key: "5"
|
|
433
449
|
} : void 0,
|
|
434
450
|
a.$slots.optionAnnotator ? {
|
|
435
451
|
name: "optionAnnotator",
|
|
436
|
-
fn:
|
|
437
|
-
P(a.$slots, "optionAnnotator",
|
|
452
|
+
fn: T(({ toggleAnnotator: e, isAnnotator: h }) => [
|
|
453
|
+
P(a.$slots, "optionAnnotator", K(Q({ toggleAnnotator: e, isAnnotator: h })), void 0, !0)
|
|
438
454
|
]),
|
|
439
455
|
key: "6"
|
|
440
456
|
} : void 0
|
|
441
|
-
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasTable", "hasXls", "hasImg", "hasFullscreen", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "onGeneratePdf", "onGenerateImage", "style"])) : y("", !0),
|
|
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),
|
|
458
|
+
X.value ? (n(), c("svg", {
|
|
443
459
|
key: 3,
|
|
444
460
|
ref_key: "svgRef",
|
|
445
461
|
ref: fe,
|
|
446
|
-
xmlns: u(
|
|
447
|
-
class:
|
|
462
|
+
xmlns: u(ct),
|
|
463
|
+
class: Se({ "vue-data-ui-fullscreen--on": ne.value, "vue-data-ui-fulscreen--off": !ne.value }),
|
|
448
464
|
viewBox: `0 0 ${o.value.absoluteWidth} ${o.value.height}`,
|
|
449
465
|
style: O(`max-width:100%; overflow: visible; background:transparent;color:${t.value.style.chart.color}`)
|
|
450
466
|
}, [
|
|
451
|
-
|
|
467
|
+
lt(u(Ve)),
|
|
452
468
|
a.$slots["chart-background"] ? (n(), c("foreignObject", {
|
|
453
469
|
key: 0,
|
|
454
470
|
x: 0,
|
|
@@ -460,7 +476,7 @@ const gt = ["id"], $t = {
|
|
|
460
476
|
}
|
|
461
477
|
}, [
|
|
462
478
|
P(a.$slots, "chart-background", {}, void 0, !0)
|
|
463
|
-
], 8,
|
|
479
|
+
], 8, xt)) : y("", !0),
|
|
464
480
|
d("defs", null, [
|
|
465
481
|
d("radialGradient", {
|
|
466
482
|
id: `gradient_top${b.value}`
|
|
@@ -468,36 +484,36 @@ const gt = ["id"], $t = {
|
|
|
468
484
|
d("stop", {
|
|
469
485
|
offset: "0%",
|
|
470
486
|
"stop-color": u(g)(t.value.style.chart.backgroundColor, 0)
|
|
471
|
-
}, null, 8,
|
|
487
|
+
}, null, 8, Ct),
|
|
472
488
|
d("stop", {
|
|
473
489
|
offset: "100%",
|
|
474
490
|
"stop-color": t.value.style.chart.bar.color
|
|
475
|
-
}, null, 8,
|
|
476
|
-
], 8,
|
|
491
|
+
}, null, 8, Ft)
|
|
492
|
+
], 8, wt),
|
|
477
493
|
d("radialGradient", {
|
|
478
494
|
id: `gradient_left${b.value}`
|
|
479
495
|
}, [
|
|
480
496
|
d("stop", {
|
|
481
497
|
offset: "0%",
|
|
482
498
|
"stop-color": u(g)(t.value.style.chart.backgroundColor, 0)
|
|
483
|
-
}, null, 8,
|
|
499
|
+
}, null, 8, Pt),
|
|
484
500
|
d("stop", {
|
|
485
501
|
offset: "100%",
|
|
486
502
|
"stop-color": u(g)(t.value.style.chart.bar.color, 20)
|
|
487
|
-
}, null, 8,
|
|
488
|
-
], 8,
|
|
503
|
+
}, null, 8, St)
|
|
504
|
+
], 8, Mt),
|
|
489
505
|
d("radialGradient", {
|
|
490
506
|
id: `gradient_right${b.value}`
|
|
491
507
|
}, [
|
|
492
508
|
d("stop", {
|
|
493
509
|
offset: "0%",
|
|
494
510
|
"stop-color": u(g)(t.value.style.chart.backgroundColor, 0)
|
|
495
|
-
}, null, 8,
|
|
511
|
+
}, null, 8, Tt),
|
|
496
512
|
d("stop", {
|
|
497
513
|
offset: "100%",
|
|
498
514
|
"stop-color": u(g)(t.value.style.chart.bar.color, 20)
|
|
499
|
-
}, null, 8,
|
|
500
|
-
], 8,
|
|
515
|
+
}, null, 8, Dt)
|
|
516
|
+
], 8, jt),
|
|
501
517
|
d("linearGradient", {
|
|
502
518
|
id: `gradient_tube_body${b.value}`,
|
|
503
519
|
x1: "0%",
|
|
@@ -508,54 +524,54 @@ const gt = ["id"], $t = {
|
|
|
508
524
|
d("stop", {
|
|
509
525
|
offset: "0%",
|
|
510
526
|
"stop-color": `${t.value.style.chart.bar.color}`
|
|
511
|
-
}, null, 8,
|
|
527
|
+
}, null, 8, zt),
|
|
512
528
|
d("stop", {
|
|
513
529
|
offset: "75%",
|
|
514
530
|
"stop-color": u(g)(t.value.style.chart.backgroundColor, 0)
|
|
515
|
-
}, null, 8,
|
|
531
|
+
}, null, 8, Nt),
|
|
516
532
|
d("stop", {
|
|
517
533
|
offset: "100%",
|
|
518
534
|
"stop-color": u(g)(t.value.style.chart.bar.color, 40)
|
|
519
|
-
}, null, 8,
|
|
520
|
-
], 8,
|
|
535
|
+
}, null, 8, Bt)
|
|
536
|
+
], 8, Ot)
|
|
521
537
|
]),
|
|
522
|
-
F.value ? (n(), c("defs",
|
|
538
|
+
F.value ? (n(), c("defs", At, [
|
|
523
539
|
(n(!0), c(_, null, m(C.value, (e) => (n(), c("radialGradient", {
|
|
524
540
|
id: `grad_top_${e.id}`
|
|
525
541
|
}, [
|
|
526
542
|
d("stop", {
|
|
527
543
|
offset: "0%",
|
|
528
544
|
"stop-color": u(g)(u(E)(e.color, 0.5), 80)
|
|
529
|
-
}, null, 8,
|
|
545
|
+
}, null, 8, Lt),
|
|
530
546
|
d("stop", {
|
|
531
547
|
offset: "100%",
|
|
532
548
|
"stop-color": e.color
|
|
533
|
-
}, null, 8,
|
|
534
|
-
], 8,
|
|
549
|
+
}, null, 8, Vt)
|
|
550
|
+
], 8, It))), 256)),
|
|
535
551
|
(n(!0), c(_, null, m(C.value, (e) => (n(), c("linearGradient", {
|
|
536
552
|
id: `grad_left_${e.id}`
|
|
537
553
|
}, [
|
|
538
554
|
d("stop", {
|
|
539
555
|
offset: "0%",
|
|
540
556
|
"stop-color": u(g)(e.color, 80)
|
|
541
|
-
}, null, 8,
|
|
557
|
+
}, null, 8, Gt),
|
|
542
558
|
d("stop", {
|
|
543
559
|
offset: "100%",
|
|
544
|
-
"stop-color": u(g)(u(
|
|
545
|
-
}, null, 8,
|
|
546
|
-
], 8,
|
|
560
|
+
"stop-color": u(g)(u(le)(e.color, 0.5), 100)
|
|
561
|
+
}, null, 8, Ut)
|
|
562
|
+
], 8, Wt))), 256)),
|
|
547
563
|
(n(!0), c(_, null, m(C.value, (e) => (n(), c("linearGradient", {
|
|
548
564
|
id: `grad_right_${e.id}`
|
|
549
565
|
}, [
|
|
550
566
|
d("stop", {
|
|
551
567
|
offset: "2%",
|
|
552
568
|
"stop-color": u(g)(u(E)(e.color, 0.5), 100)
|
|
553
|
-
}, null, 8,
|
|
569
|
+
}, null, 8, Rt),
|
|
554
570
|
d("stop", {
|
|
555
571
|
offset: "100%",
|
|
556
572
|
"stop-color": u(g)(e.color, 80)
|
|
557
|
-
}, null, 8,
|
|
558
|
-
], 8,
|
|
573
|
+
}, null, 8, Ht)
|
|
574
|
+
], 8, Et))), 256)),
|
|
559
575
|
d("linearGradient", {
|
|
560
576
|
x1: "0%",
|
|
561
577
|
y1: "0%",
|
|
@@ -571,7 +587,7 @@ const gt = ["id"], $t = {
|
|
|
571
587
|
offset: "100%",
|
|
572
588
|
"stop-color": "#FFFFFF33"
|
|
573
589
|
}, null, -1)
|
|
574
|
-
]), 8,
|
|
590
|
+
]), 8, Zt)
|
|
575
591
|
])) : y("", !0),
|
|
576
592
|
t.value.style.chart.dataLabel.show && ![null, void 0].includes($.dataset.percentage) && [null, void 0].includes($.dataset.series) ? (n(), c("text", {
|
|
577
593
|
key: 2,
|
|
@@ -585,7 +601,7 @@ const gt = ["id"], $t = {
|
|
|
585
601
|
v: V.value,
|
|
586
602
|
s: "%",
|
|
587
603
|
r: t.value.style.chart.dataLabel.rounding
|
|
588
|
-
})), 9,
|
|
604
|
+
})), 9, qt)) : y("", !0),
|
|
589
605
|
I.value ? (n(), c("g", {
|
|
590
606
|
key: 3,
|
|
591
607
|
onClick: s[0] || (s[0] = (e) => {
|
|
@@ -600,22 +616,22 @@ const gt = ["id"], $t = {
|
|
|
600
616
|
height: 12,
|
|
601
617
|
width: 12,
|
|
602
618
|
fill: "transparent"
|
|
603
|
-
}, null, 8,
|
|
619
|
+
}, null, 8, Xt),
|
|
604
620
|
d("path", {
|
|
605
621
|
d: `M${o.value.width / 2 - 6},${o.value.top - 20} ${o.value.width / 2 + 6},${o.value.top - 9}`,
|
|
606
622
|
stroke: t.value.style.chart.color,
|
|
607
623
|
"stroke-linecap": "round",
|
|
608
624
|
"stroke-width": "1"
|
|
609
|
-
}, null, 8,
|
|
625
|
+
}, null, 8, Yt),
|
|
610
626
|
d("path", {
|
|
611
627
|
d: `M${o.value.width / 2 + 6},${o.value.top - 20} ${o.value.width / 2 - 6},${o.value.top - 9}`,
|
|
612
628
|
stroke: t.value.style.chart.color,
|
|
613
629
|
"stroke-linecap": "round",
|
|
614
630
|
"stroke-width": "1"
|
|
615
|
-
}, null, 8,
|
|
631
|
+
}, null, 8, Jt)
|
|
616
632
|
])) : y("", !0),
|
|
617
|
-
!t.value.style.shape || t.value.style.shape === "bar" ? (n(), c("g",
|
|
618
|
-
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, [
|
|
619
635
|
d("path", {
|
|
620
636
|
"stroke-dasharray": t.value.style.chart.box.strokeDasharray,
|
|
621
637
|
d: z.value.right,
|
|
@@ -624,7 +640,7 @@ const gt = ["id"], $t = {
|
|
|
624
640
|
"stroke-linejoin": "round",
|
|
625
641
|
"stroke-linecap": "round",
|
|
626
642
|
fill: "none"
|
|
627
|
-
}, null, 8,
|
|
643
|
+
}, null, 8, el),
|
|
628
644
|
d("path", {
|
|
629
645
|
"stroke-dasharray": t.value.style.chart.box.strokeDasharray,
|
|
630
646
|
d: z.value.left,
|
|
@@ -633,7 +649,7 @@ const gt = ["id"], $t = {
|
|
|
633
649
|
"stroke-linejoin": "round",
|
|
634
650
|
"stroke-linecap": "round",
|
|
635
651
|
fill: "none"
|
|
636
|
-
}, null, 8,
|
|
652
|
+
}, null, 8, tl),
|
|
637
653
|
d("path", {
|
|
638
654
|
"stroke-dasharray": t.value.style.chart.box.strokeDasharray,
|
|
639
655
|
d: z.value.side,
|
|
@@ -642,7 +658,7 @@ const gt = ["id"], $t = {
|
|
|
642
658
|
"stroke-linejoin": "round",
|
|
643
659
|
"stroke-linecap": "round",
|
|
644
660
|
fill: "none"
|
|
645
|
-
}, null, 8,
|
|
661
|
+
}, null, 8, ll),
|
|
646
662
|
d("path", {
|
|
647
663
|
"stroke-dasharray": t.value.style.chart.box.strokeDasharray,
|
|
648
664
|
d: z.value.topSides,
|
|
@@ -651,35 +667,35 @@ const gt = ["id"], $t = {
|
|
|
651
667
|
"stroke-linejoin": "round",
|
|
652
668
|
"stroke-linecap": "round",
|
|
653
669
|
fill: "none"
|
|
654
|
-
}, null, 8,
|
|
670
|
+
}, null, 8, ol)
|
|
655
671
|
])),
|
|
656
|
-
F.value ? y("", !0) : (n(), c("g",
|
|
672
|
+
F.value ? y("", !0) : (n(), c("g", sl, [
|
|
657
673
|
d("path", {
|
|
658
|
-
d:
|
|
674
|
+
d: Z.value.right,
|
|
659
675
|
stroke: t.value.style.chart.bar.stroke,
|
|
660
676
|
"stroke-width": t.value.style.chart.bar.strokeWidth,
|
|
661
677
|
"stroke-linejoin": "round",
|
|
662
678
|
"stroke-linecap": "round",
|
|
663
679
|
fill: `url(#gradient_right${b.value})`
|
|
664
|
-
}, null, 8,
|
|
680
|
+
}, null, 8, al),
|
|
665
681
|
d("path", {
|
|
666
|
-
d:
|
|
682
|
+
d: Z.value.left,
|
|
667
683
|
stroke: t.value.style.chart.bar.stroke,
|
|
668
684
|
"stroke-width": t.value.style.chart.bar.strokeWidth,
|
|
669
685
|
"stroke-linejoin": "round",
|
|
670
686
|
"stroke-linecap": "round",
|
|
671
687
|
fill: `url(#gradient_left${b.value})`
|
|
672
|
-
}, null, 8,
|
|
688
|
+
}, null, 8, nl),
|
|
673
689
|
d("path", {
|
|
674
|
-
d:
|
|
690
|
+
d: Z.value.top,
|
|
675
691
|
stroke: t.value.style.chart.bar.stroke,
|
|
676
692
|
"stroke-width": t.value.style.chart.bar.strokeWidth,
|
|
677
693
|
"stroke-linejoin": "round",
|
|
678
694
|
"stroke-linecap": "round",
|
|
679
695
|
fill: `url(#gradient_top${b.value})`
|
|
680
|
-
}, null, 8,
|
|
696
|
+
}, null, 8, rl)
|
|
681
697
|
])),
|
|
682
|
-
F.value ? (n(), c("g",
|
|
698
|
+
F.value ? (n(), c("g", ul, [
|
|
683
699
|
(n(!0), c(_, null, m(C.value, (e, h) => (n(), c("g", {
|
|
684
700
|
style: O(`opacity:${x.value ? x.value === e.id ? 1 : 0.3 : 1}`),
|
|
685
701
|
class: "vue-ui-3d-bar-stack"
|
|
@@ -690,21 +706,21 @@ const gt = ["id"], $t = {
|
|
|
690
706
|
onMouseenter: (l) => M(e),
|
|
691
707
|
onClick: (l) => M(e, !0),
|
|
692
708
|
onMouseout: L
|
|
693
|
-
}, null, 40,
|
|
709
|
+
}, null, 40, il),
|
|
694
710
|
d("path", {
|
|
695
711
|
d: e.fill.left,
|
|
696
712
|
fill: `url(#grad_left_${e.id})`,
|
|
697
713
|
onMouseenter: (l) => M(e),
|
|
698
714
|
onClick: (l) => M(e, !0),
|
|
699
715
|
onMouseout: L
|
|
700
|
-
}, null, 40,
|
|
716
|
+
}, null, 40, dl),
|
|
701
717
|
d("path", {
|
|
702
718
|
d: e.fill.top,
|
|
703
719
|
fill: `url(#grad_top_${e.id})`,
|
|
704
720
|
onMouseenter: (l) => M(e),
|
|
705
721
|
onClick: (l) => M(e, !0),
|
|
706
722
|
onMouseout: L
|
|
707
|
-
}, null, 40,
|
|
723
|
+
}, null, 40, cl),
|
|
708
724
|
d("path", {
|
|
709
725
|
d: e.fill.liningTop,
|
|
710
726
|
stroke: "#FFFFFF",
|
|
@@ -714,13 +730,13 @@ const gt = ["id"], $t = {
|
|
|
714
730
|
onMouseenter: (l) => M(e),
|
|
715
731
|
onClick: (l) => M(e, !0),
|
|
716
732
|
onMouseout: L
|
|
717
|
-
}, null, 40,
|
|
733
|
+
}, null, 40, hl),
|
|
718
734
|
d("path", {
|
|
719
735
|
d: `M ${e.fill.apexTop.x},${e.fill.apexTop.y} ${e.fill.apexBottom.x},${e.fill.apexBottom.y}`,
|
|
720
736
|
stroke: "#FFFFFF",
|
|
721
737
|
"stroke-width": "0.5",
|
|
722
738
|
"stroke-linecap": "round"
|
|
723
|
-
}, null, 8,
|
|
739
|
+
}, null, 8, vl)
|
|
724
740
|
], 4))), 256)),
|
|
725
741
|
(n(!0), c(_, null, m(C.value, (e, h) => (n(), c("g", null, [
|
|
726
742
|
h !== C.value.length - 1 ? (n(), c("path", {
|
|
@@ -731,11 +747,11 @@ const gt = ["id"], $t = {
|
|
|
731
747
|
"stroke-linecap": "round",
|
|
732
748
|
fill: "none",
|
|
733
749
|
style: { "pointer-events": "none" }
|
|
734
|
-
}, null, 8,
|
|
750
|
+
}, null, 8, fl)) : y("", !0)
|
|
735
751
|
]))), 256)),
|
|
736
752
|
(n(!0), c(_, null, m(C.value, (e, h) => (n(), c("g", {
|
|
737
753
|
style: O(`opacity:${x.value ? x.value === e.id ? 1 : 0 : e.proportion * 100 > t.value.style.chart.legend.hideUnderPercentage ? 1 : 0}`),
|
|
738
|
-
onClick: (l) =>
|
|
754
|
+
onClick: (l) => q("selectDatapoint", e)
|
|
739
755
|
}, [
|
|
740
756
|
d("path", {
|
|
741
757
|
stroke: t.value.style.chart.color,
|
|
@@ -743,7 +759,7 @@ const gt = ["id"], $t = {
|
|
|
743
759
|
"stroke-width": "0.5",
|
|
744
760
|
"stroke-linecap": "round",
|
|
745
761
|
d: `M${e.fill.sidePointer.x},${e.fill.sidePointer.y} ${e.fill.sidePointer.x + 20},${e.fill.sidePointer.y}`
|
|
746
|
-
}, null, 8,
|
|
762
|
+
}, null, 8, yl),
|
|
747
763
|
!e.fill.miniDonut || x.value ? (n(), c("circle", {
|
|
748
764
|
key: 0,
|
|
749
765
|
cx: e.fill.sidePointer.x + 20,
|
|
@@ -751,7 +767,7 @@ const gt = ["id"], $t = {
|
|
|
751
767
|
r: 2,
|
|
752
768
|
fill: e.color,
|
|
753
769
|
stroke: t.value.style.chart.backgroundColor
|
|
754
|
-
}, null, 8,
|
|
770
|
+
}, null, 8, kl)) : y("", !0),
|
|
755
771
|
(n(), c("foreignObject", {
|
|
756
772
|
x: e.fill.sidePointer.x + 30,
|
|
757
773
|
y: e.fill.sidePointer.y - t.value.style.chart.legend.fontSize,
|
|
@@ -762,7 +778,7 @@ const gt = ["id"], $t = {
|
|
|
762
778
|
t.value.style.chart.legend.showDefault ? (n(), c("div", {
|
|
763
779
|
key: 0,
|
|
764
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}`)
|
|
765
|
-
}, B(u(
|
|
781
|
+
}, B(u(oe)(
|
|
766
782
|
t.value.style.chart.dataLabel.formatter,
|
|
767
783
|
e.value,
|
|
768
784
|
`${e.name}: ${u(D)({ v: e.proportion * 100, s: "%", r: t.value.style.chart.legend.roundingPercentage })} (${u(D)({
|
|
@@ -774,19 +790,19 @@ const gt = ["id"], $t = {
|
|
|
774
790
|
{ datapoint: e, seriesIndex: h, type: "barDatapoint" }
|
|
775
791
|
)), 5)) : y("", !0),
|
|
776
792
|
P(a.$slots, "legend", je({ ref_for: !0 }, { datapoint: e, config: t.value, dataset: C.value }), void 0, !0)
|
|
777
|
-
], 8,
|
|
778
|
-
e.fill.donut && x.value === e.id ? (n(), c("g",
|
|
793
|
+
], 8, gl)),
|
|
794
|
+
e.fill.donut && x.value === e.id ? (n(), c("g", $l, [
|
|
779
795
|
(n(!0), c(_, null, m(e.fill.donut, (l, r) => (n(), c("g", null, [
|
|
780
796
|
W(l, e.fill.donut, !0) > 6 ? (n(), c("path", {
|
|
781
797
|
key: 0,
|
|
782
|
-
d: u(
|
|
798
|
+
d: u(Oe)(l, { x: l.cx, y: l.cy }, 0, 8, !1, !0, 10),
|
|
783
799
|
stroke: l.color,
|
|
784
800
|
class: "vue-ui-donut-arc-path",
|
|
785
801
|
"stroke-width": "0.5",
|
|
786
802
|
"stroke-linecap": "round",
|
|
787
803
|
"stroke-linejoin": "round",
|
|
788
804
|
fill: "none"
|
|
789
|
-
}, null, 8,
|
|
805
|
+
}, null, 8, _l)) : y("", !0)
|
|
790
806
|
]))), 256)),
|
|
791
807
|
(n(!0), c(_, null, m(e.fill.donut, (l, r) => (n(), c("path", {
|
|
792
808
|
class: "vue-ui-donut-arc-path",
|
|
@@ -794,7 +810,7 @@ const gt = ["id"], $t = {
|
|
|
794
810
|
fill: `${l.color}`,
|
|
795
811
|
stroke: t.value.style.chart.backgroundColor,
|
|
796
812
|
"stroke-width": 1
|
|
797
|
-
}, null, 8,
|
|
813
|
+
}, null, 8, ml))), 256)),
|
|
798
814
|
d("defs", null, [
|
|
799
815
|
d("radialGradient", {
|
|
800
816
|
id: `hollow_gradient_${b.value}`
|
|
@@ -802,7 +818,7 @@ const gt = ["id"], $t = {
|
|
|
802
818
|
d("stop", {
|
|
803
819
|
offset: "0%",
|
|
804
820
|
"stop-color": u(g)(t.value.style.chart.backgroundColor, 0)
|
|
805
|
-
}, null, 8,
|
|
821
|
+
}, null, 8, xl),
|
|
806
822
|
s[5] || (s[5] = d("stop", {
|
|
807
823
|
offset: "77%",
|
|
808
824
|
"stop-color": "#FFFFFF20"
|
|
@@ -810,8 +826,8 @@ const gt = ["id"], $t = {
|
|
|
810
826
|
d("stop", {
|
|
811
827
|
offset: "100%",
|
|
812
828
|
"stop-color": u(g)(t.value.style.chart.backgroundColor, 0)
|
|
813
|
-
}, null, 8,
|
|
814
|
-
], 8,
|
|
829
|
+
}, null, 8, wl)
|
|
830
|
+
], 8, bl)
|
|
815
831
|
]),
|
|
816
832
|
(n(!0), c(_, null, m(e.fill.donut, (l, r) => (n(), c("circle", {
|
|
817
833
|
class: "vue-ui-donut-arc-path",
|
|
@@ -819,23 +835,23 @@ const gt = ["id"], $t = {
|
|
|
819
835
|
cy: l.cy,
|
|
820
836
|
r: 28,
|
|
821
837
|
fill: `url(#hollow_gradient_${b.value})`
|
|
822
|
-
}, null, 8,
|
|
838
|
+
}, null, 8, Cl))), 256)),
|
|
823
839
|
(n(!0), c(_, null, m(e.fill.donut, (l, r) => (n(), c("circle", {
|
|
824
840
|
class: "vue-ui-donut-arc-path",
|
|
825
841
|
cx: l.cx,
|
|
826
842
|
cy: l.cy,
|
|
827
843
|
r: 14,
|
|
828
844
|
fill: t.value.style.chart.backgroundColor
|
|
829
|
-
}, null, 8,
|
|
845
|
+
}, null, 8, Fl))), 256)),
|
|
830
846
|
(n(!0), c(_, null, m(e.fill.donut, (l, r) => (n(), c("g", null, [
|
|
831
|
-
W(l, e.fill.donut, !0) > 6 ? (n(), c("g",
|
|
847
|
+
W(l, e.fill.donut, !0) > 6 ? (n(), c("g", Ml, [
|
|
832
848
|
d("text", {
|
|
833
849
|
"text-anchor": u(A)(l, !0, 0).anchor,
|
|
834
850
|
x: u(A)(l, !0, 2).x,
|
|
835
|
-
y: u(
|
|
851
|
+
y: u(se)(l, 12, 12),
|
|
836
852
|
fill: t.value.style.chart.legend.color,
|
|
837
853
|
"font-size": t.value.style.chart.legend.fontSize / 1.5
|
|
838
|
-
}, B(u(
|
|
854
|
+
}, B(u(oe)(
|
|
839
855
|
t.value.style.chart.dataLabel.formatter,
|
|
840
856
|
l.value,
|
|
841
857
|
`${W(l, e.fill.donut)} (${u(D)({
|
|
@@ -845,31 +861,31 @@ const gt = ["id"], $t = {
|
|
|
845
861
|
r: t.value.style.chart.legend.roundingValue
|
|
846
862
|
})})`,
|
|
847
863
|
{ datapoint: l, seriesIndex: r, type: "donutDatapoint" }
|
|
848
|
-
)), 9,
|
|
864
|
+
)), 9, Pl),
|
|
849
865
|
d("text", {
|
|
850
866
|
"text-anchor": u(A)(l).anchor,
|
|
851
867
|
x: u(A)(l, !0, 2).x,
|
|
852
|
-
y: u(
|
|
868
|
+
y: u(se)(l, 12, 12) + t.value.style.chart.legend.fontSize / 1.5,
|
|
853
869
|
fill: t.value.style.chart.legend.color,
|
|
854
870
|
"font-size": t.value.style.chart.legend.fontSize / 1.5
|
|
855
|
-
}, B(l.name), 9,
|
|
871
|
+
}, B(l.name), 9, Sl)
|
|
856
872
|
])) : y("", !0)
|
|
857
873
|
]))), 256))
|
|
858
874
|
])) : y("", !0),
|
|
859
|
-
e.fill.miniDonut && !x.value ? (n(), c("g",
|
|
875
|
+
e.fill.miniDonut && !x.value ? (n(), c("g", jl, [
|
|
860
876
|
(n(!0), c(_, null, m(e.fill.miniDonut, (l, r) => (n(), c("path", {
|
|
861
877
|
class: "vue-ui-donut-arc-path",
|
|
862
878
|
d: l.arcSlice,
|
|
863
879
|
fill: `${l.color}`,
|
|
864
880
|
stroke: t.value.style.chart.backgroundColor,
|
|
865
881
|
"stroke-width": 0.5
|
|
866
|
-
}, null, 8,
|
|
882
|
+
}, null, 8, Tl))), 256))
|
|
867
883
|
])) : y("", !0)
|
|
868
|
-
], 12,
|
|
884
|
+
], 12, pl))), 256))
|
|
869
885
|
])) : y("", !0)
|
|
870
886
|
])) : y("", !0),
|
|
871
|
-
t.value.style.shape === "tube" ? (n(), c("g",
|
|
872
|
-
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, [
|
|
873
889
|
d("path", {
|
|
874
890
|
"stroke-dasharray": t.value.style.chart.box.strokeDasharray,
|
|
875
891
|
d: z.value.tubeTop,
|
|
@@ -878,7 +894,7 @@ const gt = ["id"], $t = {
|
|
|
878
894
|
"stroke-linejoin": "round",
|
|
879
895
|
"stroke-linecap": "round",
|
|
880
896
|
fill: "none"
|
|
881
|
-
}, null, 8,
|
|
897
|
+
}, null, 8, zl),
|
|
882
898
|
d("path", {
|
|
883
899
|
"stroke-dasharray": t.value.style.chart.box.strokeDasharray,
|
|
884
900
|
d: z.value.tubeLeft,
|
|
@@ -887,7 +903,7 @@ const gt = ["id"], $t = {
|
|
|
887
903
|
"stroke-linejoin": "round",
|
|
888
904
|
"stroke-linecap": "round",
|
|
889
905
|
fill: "none"
|
|
890
|
-
}, null, 8,
|
|
906
|
+
}, null, 8, Nl),
|
|
891
907
|
d("path", {
|
|
892
908
|
"stroke-dasharray": t.value.style.chart.box.strokeDasharray,
|
|
893
909
|
d: z.value.tubeRight,
|
|
@@ -896,7 +912,7 @@ const gt = ["id"], $t = {
|
|
|
896
912
|
"stroke-linejoin": "round",
|
|
897
913
|
"stroke-linecap": "round",
|
|
898
914
|
fill: "none"
|
|
899
|
-
}, null, 8,
|
|
915
|
+
}, null, 8, Bl),
|
|
900
916
|
d("path", {
|
|
901
917
|
"stroke-dasharray": t.value.style.chart.box.strokeDasharray,
|
|
902
918
|
d: z.value.tubeBottom,
|
|
@@ -905,29 +921,29 @@ const gt = ["id"], $t = {
|
|
|
905
921
|
"stroke-linejoin": "round",
|
|
906
922
|
"stroke-linecap": "round",
|
|
907
923
|
fill: "none"
|
|
908
|
-
}, null, 8,
|
|
924
|
+
}, null, 8, Al),
|
|
909
925
|
d("path", {
|
|
910
|
-
d:
|
|
926
|
+
d: Z.value.tubeTop,
|
|
911
927
|
stroke: t.value.style.chart.bar.stroke,
|
|
912
928
|
"stroke-width": t.value.style.chart.bar.strokeWidth,
|
|
913
929
|
"stroke-linejoin": "round",
|
|
914
930
|
"stroke-linecap": "round",
|
|
915
931
|
fill: `url(#gradient_top${b.value})`
|
|
916
|
-
}, null, 8,
|
|
932
|
+
}, null, 8, Il),
|
|
917
933
|
d("path", {
|
|
918
|
-
d:
|
|
934
|
+
d: Z.value.tubeBody,
|
|
919
935
|
stroke: t.value.style.chart.bar.stroke,
|
|
920
936
|
"stroke-width": t.value.style.chart.bar.strokeWidth,
|
|
921
937
|
"stroke-linejoin": "round",
|
|
922
938
|
"stroke-linecap": "round",
|
|
923
939
|
fill: `url(#gradient_tube_body${b.value})`
|
|
924
|
-
}, null, 8,
|
|
940
|
+
}, null, 8, Ll)
|
|
925
941
|
])),
|
|
926
|
-
F.value ? (n(), c("g",
|
|
942
|
+
F.value ? (n(), c("g", Vl, [
|
|
927
943
|
(n(!0), c(_, null, m(C.value, (e, h) => (n(), c("g", {
|
|
928
944
|
style: O(`opacity:${x.value ? x.value === e.id ? 1 : 0.3 : 1}`),
|
|
929
945
|
class: "vue-ui-3d-bar-stack",
|
|
930
|
-
onClick: (l) =>
|
|
946
|
+
onClick: (l) => q("selectDatapoint", e)
|
|
931
947
|
}, [
|
|
932
948
|
d("defs", null, [
|
|
933
949
|
d("radialGradient", {
|
|
@@ -938,12 +954,12 @@ const gt = ["id"], $t = {
|
|
|
938
954
|
d("stop", {
|
|
939
955
|
offset: "0%",
|
|
940
956
|
"stop-color": u(g)(u(E)(e.color, 0.5), 80)
|
|
941
|
-
}, null, 8,
|
|
957
|
+
}, null, 8, Ul),
|
|
942
958
|
d("stop", {
|
|
943
959
|
offset: "100%",
|
|
944
|
-
"stop-color": u(g)(u(
|
|
945
|
-
}, null, 8,
|
|
946
|
-
], 8,
|
|
960
|
+
"stop-color": u(g)(u(le)(e.color, 0.1), 80)
|
|
961
|
+
}, null, 8, El)
|
|
962
|
+
], 8, Gl),
|
|
947
963
|
d("linearGradient", {
|
|
948
964
|
id: `gradient_tube_body_${e.id}`,
|
|
949
965
|
x1: "0%",
|
|
@@ -954,24 +970,24 @@ const gt = ["id"], $t = {
|
|
|
954
970
|
d("stop", {
|
|
955
971
|
offset: "0%",
|
|
956
972
|
"stop-color": `${e.color}`
|
|
957
|
-
}, null, 8,
|
|
973
|
+
}, null, 8, Hl),
|
|
958
974
|
d("stop", {
|
|
959
975
|
offset: "10%",
|
|
960
|
-
"stop-color": u(g)(u(
|
|
961
|
-
}, null, 8,
|
|
976
|
+
"stop-color": u(g)(u(le)(e.color, 0.7), 100)
|
|
977
|
+
}, null, 8, Zl),
|
|
962
978
|
d("stop", {
|
|
963
979
|
offset: "25%",
|
|
964
|
-
"stop-color": u(g)(u(
|
|
965
|
-
}, null, 8,
|
|
980
|
+
"stop-color": u(g)(u(le)(e.color, 0.5), 100)
|
|
981
|
+
}, null, 8, ql),
|
|
966
982
|
d("stop", {
|
|
967
983
|
offset: "75%",
|
|
968
984
|
"stop-color": u(g)(e.color, 80)
|
|
969
|
-
}, null, 8,
|
|
985
|
+
}, null, 8, Xl),
|
|
970
986
|
d("stop", {
|
|
971
987
|
offset: "100%",
|
|
972
988
|
"stop-color": u(g)(u(E)(e.color, 0.7), 100)
|
|
973
|
-
}, null, 8,
|
|
974
|
-
], 8,
|
|
989
|
+
}, null, 8, Yl)
|
|
990
|
+
], 8, Rl)
|
|
975
991
|
]),
|
|
976
992
|
d("path", {
|
|
977
993
|
onMouseenter: (l) => M(e),
|
|
@@ -983,7 +999,7 @@ const gt = ["id"], $t = {
|
|
|
983
999
|
"stroke-linejoin": "round",
|
|
984
1000
|
"stroke-linecap": "round",
|
|
985
1001
|
fill: `url(#gradient_tube_body_${e.id})`
|
|
986
|
-
}, null, 40,
|
|
1002
|
+
}, null, 40, Jl),
|
|
987
1003
|
h > 0 ? (n(), c("path", {
|
|
988
1004
|
key: 0,
|
|
989
1005
|
onMouseenter: (l) => M(e),
|
|
@@ -995,7 +1011,7 @@ const gt = ["id"], $t = {
|
|
|
995
1011
|
"stroke-linejoin": "round",
|
|
996
1012
|
"stroke-linecap": "round",
|
|
997
1013
|
fill: "none"
|
|
998
|
-
}, null, 40,
|
|
1014
|
+
}, null, 40, Kl)) : y("", !0),
|
|
999
1015
|
d("path", {
|
|
1000
1016
|
onMouseenter: (l) => M(e),
|
|
1001
1017
|
onClick: (l) => M(e, !0),
|
|
@@ -1006,11 +1022,11 @@ const gt = ["id"], $t = {
|
|
|
1006
1022
|
"stroke-linejoin": "round",
|
|
1007
1023
|
"stroke-linecap": "round",
|
|
1008
1024
|
fill: `url(#gradient_tube_top_${e.id})`
|
|
1009
|
-
}, null, 40,
|
|
1010
|
-
], 12,
|
|
1025
|
+
}, null, 40, Ql)
|
|
1026
|
+
], 12, Wl))), 256)),
|
|
1011
1027
|
(n(!0), c(_, null, m(C.value, (e, h) => (n(), c("g", {
|
|
1012
1028
|
style: O(`opacity:${x.value ? x.value === e.id ? 1 : 0 : e.proportion * 100 > t.value.style.chart.legend.hideUnderPercentage ? 1 : 0}`),
|
|
1013
|
-
onClick: (l) =>
|
|
1029
|
+
onClick: (l) => q("selectDatapoint", e)
|
|
1014
1030
|
}, [
|
|
1015
1031
|
d("path", {
|
|
1016
1032
|
stroke: t.value.style.chart.color,
|
|
@@ -1018,7 +1034,7 @@ const gt = ["id"], $t = {
|
|
|
1018
1034
|
"stroke-width": "0.5",
|
|
1019
1035
|
"stroke-linecap": "round",
|
|
1020
1036
|
d: `M${e.fill.sidePointer.x},${e.fill.sidePointer.y} ${e.fill.sidePointer.x + 20},${e.fill.sidePointer.y}`
|
|
1021
|
-
}, null, 8,
|
|
1037
|
+
}, null, 8, to),
|
|
1022
1038
|
!e.fill.miniDonut || x.value ? (n(), c("circle", {
|
|
1023
1039
|
key: 0,
|
|
1024
1040
|
cx: e.fill.sidePointer.x + 20,
|
|
@@ -1026,7 +1042,7 @@ const gt = ["id"], $t = {
|
|
|
1026
1042
|
r: 2,
|
|
1027
1043
|
fill: e.color,
|
|
1028
1044
|
stroke: t.value.style.chart.backgroundColor
|
|
1029
|
-
}, null, 8,
|
|
1045
|
+
}, null, 8, lo)) : y("", !0),
|
|
1030
1046
|
(n(), c("foreignObject", {
|
|
1031
1047
|
x: e.fill.sidePointer.x + 30,
|
|
1032
1048
|
y: e.fill.sidePointer.y - t.value.style.chart.legend.fontSize,
|
|
@@ -1037,7 +1053,7 @@ const gt = ["id"], $t = {
|
|
|
1037
1053
|
t.value.style.chart.legend.showDefault ? (n(), c("div", {
|
|
1038
1054
|
key: 0,
|
|
1039
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}`)
|
|
1040
|
-
}, B(u(
|
|
1056
|
+
}, B(u(oe)(
|
|
1041
1057
|
t.value.style.chart.dataLabel.formatter,
|
|
1042
1058
|
e.value,
|
|
1043
1059
|
`${e.name}: ${u(D)({ v: e.proportion * 100, s: "%", r: t.value.style.chart.legend.roundingPercentage })} (${u(D)({
|
|
@@ -1049,19 +1065,19 @@ const gt = ["id"], $t = {
|
|
|
1049
1065
|
{ datapoint: e, seriesIndex: h, type: "barDatapoint" }
|
|
1050
1066
|
)), 5)) : y("", !0),
|
|
1051
1067
|
P(a.$slots, "legend", je({ ref_for: !0 }, { datapoint: e, config: t.value, dataset: C.value }), void 0, !0)
|
|
1052
|
-
], 8,
|
|
1053
|
-
e.fill.donut && x.value === e.id ? (n(), c("g",
|
|
1068
|
+
], 8, oo)),
|
|
1069
|
+
e.fill.donut && x.value === e.id ? (n(), c("g", so, [
|
|
1054
1070
|
(n(!0), c(_, null, m(e.fill.donut, (l, r) => (n(), c("g", null, [
|
|
1055
1071
|
W(l, e.fill.donut, !0) > 6 ? (n(), c("path", {
|
|
1056
1072
|
key: 0,
|
|
1057
|
-
d: u(
|
|
1073
|
+
d: u(Oe)(l, { x: l.cx, y: l.cy }, 0, 8, !1, !0, 10),
|
|
1058
1074
|
stroke: l.color,
|
|
1059
1075
|
class: "vue-ui-donut-arc-path",
|
|
1060
1076
|
"stroke-width": "0.5",
|
|
1061
1077
|
"stroke-linecap": "round",
|
|
1062
1078
|
"stroke-linejoin": "round",
|
|
1063
1079
|
fill: "none"
|
|
1064
|
-
}, null, 8,
|
|
1080
|
+
}, null, 8, ao)) : y("", !0)
|
|
1065
1081
|
]))), 256)),
|
|
1066
1082
|
(n(!0), c(_, null, m(e.fill.donut, (l, r) => (n(), c("path", {
|
|
1067
1083
|
class: "vue-ui-donut-arc-path",
|
|
@@ -1069,7 +1085,7 @@ const gt = ["id"], $t = {
|
|
|
1069
1085
|
fill: `${l.color}`,
|
|
1070
1086
|
stroke: t.value.style.chart.backgroundColor,
|
|
1071
1087
|
"stroke-width": 1
|
|
1072
|
-
}, null, 8,
|
|
1088
|
+
}, null, 8, no))), 256)),
|
|
1073
1089
|
d("defs", null, [
|
|
1074
1090
|
d("radialGradient", {
|
|
1075
1091
|
id: `hollow_gradient_${b.value}`
|
|
@@ -1077,7 +1093,7 @@ const gt = ["id"], $t = {
|
|
|
1077
1093
|
d("stop", {
|
|
1078
1094
|
offset: "0%",
|
|
1079
1095
|
"stop-color": u(g)(t.value.style.chart.backgroundColor, 0)
|
|
1080
|
-
}, null, 8,
|
|
1096
|
+
}, null, 8, uo),
|
|
1081
1097
|
s[6] || (s[6] = d("stop", {
|
|
1082
1098
|
offset: "77%",
|
|
1083
1099
|
"stop-color": "#FFFFFF20"
|
|
@@ -1085,8 +1101,8 @@ const gt = ["id"], $t = {
|
|
|
1085
1101
|
d("stop", {
|
|
1086
1102
|
offset: "100%",
|
|
1087
1103
|
"stop-color": u(g)(t.value.style.chart.backgroundColor, 0)
|
|
1088
|
-
}, null, 8,
|
|
1089
|
-
], 8,
|
|
1104
|
+
}, null, 8, io)
|
|
1105
|
+
], 8, ro)
|
|
1090
1106
|
]),
|
|
1091
1107
|
(n(!0), c(_, null, m(e.fill.donut, (l, r) => (n(), c("circle", {
|
|
1092
1108
|
class: "vue-ui-donut-arc-path",
|
|
@@ -1094,23 +1110,23 @@ const gt = ["id"], $t = {
|
|
|
1094
1110
|
cy: l.cy,
|
|
1095
1111
|
r: 28,
|
|
1096
1112
|
fill: `url(#hollow_gradient_${b.value})`
|
|
1097
|
-
}, null, 8,
|
|
1113
|
+
}, null, 8, co))), 256)),
|
|
1098
1114
|
(n(!0), c(_, null, m(e.fill.donut, (l, r) => (n(), c("circle", {
|
|
1099
1115
|
class: "vue-ui-donut-arc-path",
|
|
1100
1116
|
cx: l.cx,
|
|
1101
1117
|
cy: l.cy,
|
|
1102
1118
|
r: 14,
|
|
1103
1119
|
fill: t.value.style.chart.backgroundColor
|
|
1104
|
-
}, null, 8,
|
|
1120
|
+
}, null, 8, ho))), 256)),
|
|
1105
1121
|
(n(!0), c(_, null, m(e.fill.donut, (l, r) => (n(), c("g", null, [
|
|
1106
|
-
W(l, e.fill.donut, !0) > 6 ? (n(), c("g",
|
|
1122
|
+
W(l, e.fill.donut, !0) > 6 ? (n(), c("g", vo, [
|
|
1107
1123
|
d("text", {
|
|
1108
1124
|
"text-anchor": u(A)(l, !0, 0).anchor,
|
|
1109
1125
|
x: u(A)(l, !0, 2).x,
|
|
1110
|
-
y: u(
|
|
1126
|
+
y: u(se)(l, 12, 12),
|
|
1111
1127
|
fill: t.value.style.chart.legend.color,
|
|
1112
1128
|
"font-size": t.value.style.chart.legend.fontSize / 1.5
|
|
1113
|
-
}, B(u(
|
|
1129
|
+
}, B(u(oe)(
|
|
1114
1130
|
t.value.style.chart.dataLabel.formatter,
|
|
1115
1131
|
l.value,
|
|
1116
1132
|
`${W(l, e.fill.donut)} (${u(D)({
|
|
@@ -1120,35 +1136,35 @@ const gt = ["id"], $t = {
|
|
|
1120
1136
|
r: t.value.style.chart.legend.roundingValue
|
|
1121
1137
|
})})`,
|
|
1122
1138
|
{ datapoint: l, seriesIndex: r, type: "donutDatapoint" }
|
|
1123
|
-
)), 9,
|
|
1139
|
+
)), 9, fo),
|
|
1124
1140
|
d("text", {
|
|
1125
1141
|
"text-anchor": u(A)(l).anchor,
|
|
1126
1142
|
x: u(A)(l, !0, 2).x,
|
|
1127
|
-
y: u(
|
|
1143
|
+
y: u(se)(l, 12, 12) + t.value.style.chart.legend.fontSize / 1.5,
|
|
1128
1144
|
fill: t.value.style.chart.legend.color,
|
|
1129
1145
|
"font-size": t.value.style.chart.legend.fontSize / 1.5
|
|
1130
|
-
}, B(l.name), 9,
|
|
1146
|
+
}, B(l.name), 9, po)
|
|
1131
1147
|
])) : y("", !0)
|
|
1132
1148
|
]))), 256))
|
|
1133
1149
|
])) : y("", !0),
|
|
1134
|
-
e.fill.miniDonut && !x.value ? (n(), c("g",
|
|
1150
|
+
e.fill.miniDonut && !x.value ? (n(), c("g", yo, [
|
|
1135
1151
|
(n(!0), c(_, null, m(e.fill.miniDonut, (l, r) => (n(), c("path", {
|
|
1136
1152
|
class: "vue-ui-donut-arc-path",
|
|
1137
1153
|
d: l.arcSlice,
|
|
1138
1154
|
fill: `${l.color}`,
|
|
1139
1155
|
stroke: t.value.style.chart.backgroundColor,
|
|
1140
1156
|
"stroke-width": 0.5
|
|
1141
|
-
}, null, 8,
|
|
1157
|
+
}, null, 8, ko))), 256))
|
|
1142
1158
|
])) : y("", !0)
|
|
1143
|
-
], 12,
|
|
1159
|
+
], 12, eo))), 256))
|
|
1144
1160
|
])) : y("", !0)
|
|
1145
1161
|
])) : y("", !0),
|
|
1146
1162
|
P(a.$slots, "svg", { svg: o.value }, void 0, !0)
|
|
1147
|
-
], 14,
|
|
1148
|
-
a.$slots.watermark ? (n(), c("div",
|
|
1149
|
-
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)
|
|
1150
1166
|
])) : y("", !0),
|
|
1151
|
-
|
|
1167
|
+
X.value ? y("", !0) : (n(), U(u(Ge), {
|
|
1152
1168
|
key: 5,
|
|
1153
1169
|
config: {
|
|
1154
1170
|
type: "bar3d",
|
|
@@ -1160,10 +1176,10 @@ const gt = ["id"], $t = {
|
|
|
1160
1176
|
}
|
|
1161
1177
|
}
|
|
1162
1178
|
}, null, 8, ["config"])),
|
|
1163
|
-
a.$slots.source ? (n(), c("div",
|
|
1179
|
+
a.$slots.source ? (n(), c("div", $o, [
|
|
1164
1180
|
P(a.$slots, "source", {}, void 0, !0)
|
|
1165
1181
|
], 512)) : y("", !0),
|
|
1166
|
-
|
|
1182
|
+
X.value && F.value ? (n(), U(u(Ie), {
|
|
1167
1183
|
key: 7,
|
|
1168
1184
|
hideDetails: "",
|
|
1169
1185
|
config: {
|
|
@@ -1179,33 +1195,33 @@ const gt = ["id"], $t = {
|
|
|
1179
1195
|
}
|
|
1180
1196
|
}
|
|
1181
1197
|
}, {
|
|
1182
|
-
content:
|
|
1183
|
-
(n(), U(u(
|
|
1198
|
+
content: T(() => [
|
|
1199
|
+
(n(), U(u(Le), {
|
|
1184
1200
|
key: `table_${ce.value}`,
|
|
1185
|
-
colNames:
|
|
1186
|
-
head:
|
|
1187
|
-
body:
|
|
1188
|
-
config:
|
|
1201
|
+
colNames: Y.value.colNames,
|
|
1202
|
+
head: Y.value.head,
|
|
1203
|
+
body: Y.value.body,
|
|
1204
|
+
config: Y.value.config,
|
|
1189
1205
|
title: `${t.value.style.chart.title.text}${t.value.style.chart.title.subtitle.text ? ` : ${t.value.style.chart.title.subtitle.text}` : ""}`,
|
|
1190
1206
|
onClose: s[1] || (s[1] = (e) => H.value.showTable = !1)
|
|
1191
1207
|
}, {
|
|
1192
|
-
th:
|
|
1208
|
+
th: T(({ th: e }) => [
|
|
1193
1209
|
d("div", {
|
|
1194
1210
|
innerHTML: e,
|
|
1195
1211
|
style: { display: "flex", "align-items": "center" }
|
|
1196
|
-
}, null, 8,
|
|
1212
|
+
}, null, 8, _o)
|
|
1197
1213
|
]),
|
|
1198
|
-
td:
|
|
1199
|
-
|
|
1214
|
+
td: T(({ td: e }) => [
|
|
1215
|
+
ot(B(e.name || e), 1)
|
|
1200
1216
|
]),
|
|
1201
1217
|
_: 1
|
|
1202
1218
|
}, 8, ["colNames", "head", "body", "config", "title"]))
|
|
1203
1219
|
]),
|
|
1204
1220
|
_: 1
|
|
1205
1221
|
}, 8, ["config"])) : y("", !0)
|
|
1206
|
-
], 44,
|
|
1222
|
+
], 44, _t));
|
|
1207
1223
|
}
|
|
1208
|
-
},
|
|
1224
|
+
}, To = /* @__PURE__ */ $t(mo, [["__scopeId", "data-v-8adf5842"]]);
|
|
1209
1225
|
export {
|
|
1210
|
-
|
|
1226
|
+
To as default
|
|
1211
1227
|
};
|