vue-data-ui 3.0.0-next.7 → 3.0.0-next.71
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{Arrow-Bl8urcli.js → Arrow-BZNpld6u.js} +1 -1
- package/dist/{BaseDraggableDialog-CyhpaZU5.js → BaseDraggableDialog-kg-eVvXZ.js} +2 -2
- package/dist/{BaseIcon-BCZfTCeM.js → BaseIcon-BdOEhJar.js} +1 -1
- package/dist/{ColorPicker-CSJf42vx.js → ColorPicker-CWvXlPxS.js} +2 -2
- package/dist/{DataTable-mQ6Wd-rR.js → DataTable-B3yakHEM.js} +2 -2
- package/dist/{Legend-B2hrDh4G.js → Legend-DiGLrlzP.js} +2 -2
- package/dist/{NonSvgPenAndPaper-DQ8KsK4W.js → NonSvgPenAndPaper-C-ZjpJQd.js} +3 -3
- package/dist/{PackageVersion-CeEYZfaH.js → PackageVersion-6s4eI8W7.js} +1 -1
- package/dist/{PenAndPaper-DhSxfUrQ.js → PenAndPaper-JoUN7Ink.js} +3 -3
- package/dist/{Shape-C2qH26wh.js → Shape-CWIa2nta.js} +43 -37
- package/dist/Slicer-DYuvPkEM.js +602 -0
- package/dist/{SparkTooltip-BcHgW6YX.js → SparkTooltip-C_fUmbP7.js} +1 -1
- package/dist/{Title-B7Xb3YuE.js → Title-VLWyIYrj.js} +1 -1
- package/dist/{Tooltip-BidRoM5E.js → Tooltip-BS5naLS2.js} +23 -19
- package/dist/{UserOptions-0tvMM8PF.js → UserOptions-BV_xM-sB.js} +2 -2
- package/dist/{dom-to-png-CTrlbKHr.js → dom-to-png-PUk0ukSG.js} +1 -1
- package/dist/{img-D72yZNUg.js → img-DD_2wgY3.js} +1 -1
- package/dist/{index-Cg-RjxqH.js → index-DKpp7RIH.js} +2236 -1505
- package/dist/{pdf-DgX01_wu.js → pdf-0TQQyXWM.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +610 -22
- package/dist/types/vue-data-ui.d.ts +610 -22
- package/dist/useAutoSizeLabelsInsideViewbox-Qhry5WvH.js +81 -0
- package/dist/useFitSvgText-2crs6Fv5.js +69 -0
- package/dist/useLoading-D7YHNtLX.js +29 -0
- package/dist/useNestedProp-D-8c0o4p.js +13 -0
- package/dist/usePanZoom-BVca3eMk.js +122 -0
- package/dist/{usePrinter-BUzmyQf9.js → usePrinter-NUeckmCX.js} +2 -2
- package/dist/useTimeLabelCollider-CIsgDrl9.js +78 -0
- package/dist/{useTimeLabels-Mrr0jrpL.js → useTimeLabels-DkzmKfZn.js} +211 -152
- package/dist/{vue-data-ui-DpO93ey5.js → vue-data-ui-BIXXEsFZ.js} +105 -100
- package/dist/vue-data-ui.js +23 -22
- package/dist/vue-ui-3d-bar-CVUfj12F.js +1323 -0
- package/dist/{vue-ui-accordion-CRomxzaL.js → vue-ui-accordion-Cpovz3RE.js} +3 -3
- package/dist/vue-ui-age-pyramid-CQWFaHLV.js +834 -0
- package/dist/{vue-ui-annotator-BAOxPiFx.js → vue-ui-annotator-C49Xw5Mh.js} +2 -2
- package/dist/vue-ui-bullet-DED2SuIa.js +571 -0
- package/dist/vue-ui-candlestick-DGgbevy6.js +999 -0
- package/dist/{vue-ui-carousel-table-DVGlPZIa.js → vue-ui-carousel-table-DKIgSB1T.js} +29 -29
- package/dist/{vue-ui-chestnut-P1v4ffD0.js → vue-ui-chestnut-D1bEM91d.js} +5 -5
- package/dist/vue-ui-chord-CBLSqtEP.js +1038 -0
- package/dist/{vue-ui-circle-pack-FXmemXgl.js → vue-ui-circle-pack-g2ts9NTG.js} +24 -24
- package/dist/{vue-ui-cursor-CdvMgIrP.js → vue-ui-cursor-DSxmPUD8.js} +2 -2
- package/dist/{vue-ui-dashboard-Vke0452J.js → vue-ui-dashboard-B6FfoNjQ.js} +62 -62
- package/dist/{vue-ui-digits-BVhyYqCs.js → vue-ui-digits-DKffQVgr.js} +2 -2
- package/dist/{vue-ui-donut-BpIivKcf.js → vue-ui-donut-CJrWc4-g.js} +320 -308
- package/dist/vue-ui-donut-evolution-Bys6cs-D.js +1075 -0
- package/dist/vue-ui-dumbbell-Cb_I__qC.js +1119 -0
- package/dist/vue-ui-flow-BzuT3ij5.js +841 -0
- package/dist/{vue-ui-funnel-BbFmbsft.js → vue-ui-funnel-Ctp7GDiN.js} +16 -16
- package/dist/vue-ui-galaxy-CRBy0aio.js +680 -0
- package/dist/vue-ui-gauge-NcQq5UFr.js +791 -0
- package/dist/vue-ui-gizmo-Cwfb8c-0.js +210 -0
- package/dist/vue-ui-heatmap-DElqpFVY.js +1078 -0
- package/dist/vue-ui-history-plot-De1Dvnhw.js +1073 -0
- package/dist/{vue-ui-kpi-jN_yMnLj.js → vue-ui-kpi-_bLScmgO.js} +26 -26
- package/dist/{vue-ui-mini-loader-rYr76x8g.js → vue-ui-mini-loader-PsHE_2Wy.js} +2 -2
- package/dist/{vue-ui-molecule-BWZHOQLi.js → vue-ui-molecule-CgiahnC6.js} +53 -51
- package/dist/vue-ui-mood-radar-dXVOOrhl.js +785 -0
- package/dist/vue-ui-nested-donuts-C0X6BetT.js +1286 -0
- package/dist/vue-ui-onion-C7sxQzk_.js +776 -0
- package/dist/vue-ui-parallel-coordinate-plot-jwtnNX59.js +915 -0
- package/dist/{vue-ui-quadrant-BFFzfDw3.js → vue-ui-quadrant-DguDE91h.js} +512 -459
- package/dist/vue-ui-quick-chart-BpEDS08U.js +1761 -0
- package/dist/vue-ui-radar-lFrqTRqo.js +796 -0
- package/dist/{vue-ui-rating-BAauyqTn.js → vue-ui-rating-BHghXziv.js} +2 -2
- package/dist/vue-ui-relation-circle-C5W6NFOb.js +598 -0
- package/dist/vue-ui-ridgeline-A2DuFEDS.js +1153 -0
- package/dist/vue-ui-rings-BgJAm9_b.js +728 -0
- package/dist/vue-ui-scatter-COfpLChz.js +1178 -0
- package/dist/{vue-ui-skeleton-CUOhCY4p.js → vue-ui-skeleton-DMLCBUtZ.js} +3 -3
- package/dist/{vue-ui-smiley-B6SqWMov.js → vue-ui-smiley-ZopESYc_.js} +26 -26
- package/dist/vue-ui-spark-trend-CuSQ03fQ.js +315 -0
- package/dist/vue-ui-sparkbar-BCsX9M4q.js +351 -0
- package/dist/vue-ui-sparkgauge-DdyZLA0T.js +232 -0
- package/dist/vue-ui-sparkhistogram-CUxFgIcE.js +380 -0
- package/dist/vue-ui-sparkline-DOkofsLL.js +489 -0
- package/dist/vue-ui-sparkstackbar-Bq9PZzmH.js +421 -0
- package/dist/vue-ui-stackbar-B7ceoT0V.js +1370 -0
- package/dist/vue-ui-strip-plot-DYh-NGQN.js +915 -0
- package/dist/{vue-ui-table-heatmap-DazTE3fa.js → vue-ui-table-heatmap-BVTb1xuA.js} +5 -5
- package/dist/{vue-ui-table-Dwjl3L0p.js → vue-ui-table-pESH5KAJ.js} +11 -11
- package/dist/{vue-ui-table-sparkline-BXMPUEpN.js → vue-ui-table-sparkline-Bw-6l9lA.js} +14 -14
- package/dist/vue-ui-thermometer-BqqfmS-B.js +541 -0
- package/dist/{vue-ui-timer-yLvNAZL_.js → vue-ui-timer-CVisMxLS.js} +5 -5
- package/dist/vue-ui-tiremarks-K1dcCdpj.js +406 -0
- package/dist/vue-ui-treemap-Bz3c68s4.js +1035 -0
- package/dist/{vue-ui-vertical-bar-BrYCoVym.js → vue-ui-vertical-bar-BvtXpCjw.js} +71 -69
- package/dist/vue-ui-waffle-CYO7bIf1.js +910 -0
- package/dist/vue-ui-wheel-De1spwLh.js +379 -0
- package/dist/vue-ui-word-cloud-BMmVrx_T.js +765 -0
- package/dist/{vue-ui-world-B4Dqrk4l.js → vue-ui-world-Ccpr00nJ.js} +11 -9
- package/dist/vue-ui-xy-D4jaRKe3.js +3771 -0
- package/dist/{vue-ui-xy-canvas-D7fL36kT.js → vue-ui-xy-canvas-DE-Uu5oq.js} +265 -264
- package/package.json +1 -1
- package/dist/Slicer-BD8Z8VCW.js +0 -577
- package/dist/useLoading-Bt5Doa8m.js +0 -28
- package/dist/useNestedProp-C_G5E08Y.js +0 -13
- package/dist/usePanZoom-BQMvRXEQ.js +0 -115
- package/dist/vue-ui-3d-bar-D8imUwEz.js +0 -1227
- package/dist/vue-ui-age-pyramid-CV7gtFOC.js +0 -746
- package/dist/vue-ui-bullet-BtuMMBF7.js +0 -513
- package/dist/vue-ui-candlestick-BsRtXKrv.js +0 -873
- package/dist/vue-ui-chord-CIuzYmpM.js +0 -949
- package/dist/vue-ui-donut-evolution-BRlsCA4U.js +0 -903
- package/dist/vue-ui-dumbbell-D87Dumjh.js +0 -753
- package/dist/vue-ui-flow-D_L_xssL.js +0 -765
- package/dist/vue-ui-galaxy-Cn6vHbaw.js +0 -617
- package/dist/vue-ui-gauge-Ds4terqY.js +0 -738
- package/dist/vue-ui-gizmo-BTncpI62.js +0 -192
- package/dist/vue-ui-heatmap-B6GpjeWC.js +0 -877
- package/dist/vue-ui-history-plot-DTDzEeGq.js +0 -924
- package/dist/vue-ui-mood-radar-CPfS6f1L.js +0 -670
- package/dist/vue-ui-nested-donuts-Bsd2kGoJ.js +0 -1177
- package/dist/vue-ui-onion-BQ4nISXW.js +0 -701
- package/dist/vue-ui-parallel-coordinate-plot-BoHgVgbn.js +0 -807
- package/dist/vue-ui-quick-chart-oNMTeOAL.js +0 -1612
- package/dist/vue-ui-radar-98mXFZe-.js +0 -741
- package/dist/vue-ui-relation-circle-6oDCSxkO.js +0 -542
- package/dist/vue-ui-ridgeline-CugMGjOU.js +0 -969
- package/dist/vue-ui-rings-bsGXaD2m.js +0 -685
- package/dist/vue-ui-scatter-7ssLliGg.js +0 -1045
- package/dist/vue-ui-spark-trend-jauInkkN.js +0 -291
- package/dist/vue-ui-sparkbar-DXByIxQH.js +0 -301
- package/dist/vue-ui-sparkgauge-BMrV2gDi.js +0 -201
- package/dist/vue-ui-sparkhistogram-CoNM4G7o.js +0 -313
- package/dist/vue-ui-sparkline-DrN3_wS0.js +0 -459
- package/dist/vue-ui-sparkstackbar-W1a0JQi9.js +0 -381
- package/dist/vue-ui-stackbar-D1-gbUgE.js +0 -1207
- package/dist/vue-ui-strip-plot-KhfvrVuN.js +0 -761
- package/dist/vue-ui-thermometer-Cn6lJRs3.js +0 -495
- package/dist/vue-ui-tiremarks-BYsWePfK.js +0 -358
- package/dist/vue-ui-treemap-Ce7RVFG3.js +0 -965
- package/dist/vue-ui-waffle-CCrR2T1G.js +0 -863
- package/dist/vue-ui-wheel-BuxjnrDN.js +0 -352
- package/dist/vue-ui-word-cloud-C6fawHJE.js +0 -659
- package/dist/vue-ui-xy-ubRnv9iJ.js +0 -2980
|
@@ -1,1227 +0,0 @@
|
|
|
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-Cg-RjxqH.js";
|
|
3
|
-
import { u as ze } from "./useNestedProp-C_G5E08Y.js";
|
|
4
|
-
import { u as ft } from "./usePrinter-BUzmyQf9.js";
|
|
5
|
-
import { u as pt } from "./useUserOptionState-BIvW1Kz7.js";
|
|
6
|
-
import { u as yt } from "./useChartAccessibility-9icAAmYg.js";
|
|
7
|
-
import kt from "./Title-B7Xb3YuE.js";
|
|
8
|
-
import gt from "./img-D72yZNUg.js";
|
|
9
|
-
import { _ as $t } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
10
|
-
const _t = ["id"], mt = {
|
|
11
|
-
key: 1,
|
|
12
|
-
style: "width:100%;background:transparent"
|
|
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 = {
|
|
14
|
-
key: 4,
|
|
15
|
-
class: "vue-data-ui-watermark"
|
|
16
|
-
}, $o = {
|
|
17
|
-
key: 6,
|
|
18
|
-
ref: "source",
|
|
19
|
-
dir: "auto"
|
|
20
|
-
}, _o = ["innerHTML"], mo = {
|
|
21
|
-
__name: "vue-ui-3d-bar",
|
|
22
|
-
props: {
|
|
23
|
-
config: {
|
|
24
|
-
type: Object,
|
|
25
|
-
default() {
|
|
26
|
-
return {};
|
|
27
|
-
}
|
|
28
|
-
},
|
|
29
|
-
dataset: {
|
|
30
|
-
type: Object,
|
|
31
|
-
default() {
|
|
32
|
-
return {};
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
},
|
|
36
|
-
emits: ["selectDatapoint"],
|
|
37
|
-
setup(Ne, { expose: Be, emit: Ae }) {
|
|
38
|
-
const Ie = G(() => import("./vue-ui-accordion-CRomxzaL.js")), Le = G(() => import("./DataTable-mQ6Wd-rR.js")), Ve = G(() => import("./PackageVersion-CeEYZfaH.js")), We = G(() => import("./PenAndPaper-DhSxfUrQ.js")), Ge = G(() => import("./vue-ui-skeleton-CUOhCY4p.js")), Ue = G(() => import("./UserOptions-0tvMM8PF.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({
|
|
39
|
-
get: () => pe(),
|
|
40
|
-
set: (a) => a
|
|
41
|
-
}), { userOptionsVisible: ae, setUserOptionsVisibility: he, keepUserOptionState: ve } = pt({ config: t.value }), { svgRef: fe } = yt({ config: t.value.style.chart.title });
|
|
42
|
-
function pe() {
|
|
43
|
-
const a = ze({
|
|
44
|
-
userConfig: $.config,
|
|
45
|
-
defaultConfig: Ee
|
|
46
|
-
});
|
|
47
|
-
return a.theme ? {
|
|
48
|
-
...ze({
|
|
49
|
-
userConfig: rt.vue_ui_3d_bar[a.theme] || $.config,
|
|
50
|
-
defaultConfig: a
|
|
51
|
-
}),
|
|
52
|
-
customPalette: nt[a.theme] || ee
|
|
53
|
-
} : a;
|
|
54
|
-
}
|
|
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;
|
|
57
|
-
}, { deep: !0 });
|
|
58
|
-
const { isPrinting: ye, isImaging: ke, generatePdf: ge, generateImage: $e } = ft({
|
|
59
|
-
elementId: `3d_bar_${b.value}`,
|
|
60
|
-
fileName: t.value.style.chart.title.text || "vue-ui-3d-bar",
|
|
61
|
-
options: t.value.userOptions.print
|
|
62
|
-
}), He = j(() => ut(t.value.customPalette)), H = S({
|
|
63
|
-
showTable: t.value.table.show
|
|
64
|
-
}), F = j(() => $.dataset.series && $.dataset.series.length), o = j(() => ({
|
|
65
|
-
height: t.value.style.chart.box.dimensions.height,
|
|
66
|
-
width: t.value.style.chart.box.dimensions.width,
|
|
67
|
-
absoluteWidth: t.value.style.chart.box.dimensions.width * (F.value ? 2 : 1),
|
|
68
|
-
top: t.value.style.chart.box.dimensions.top,
|
|
69
|
-
bottom: t.value.style.chart.box.dimensions.bottom,
|
|
70
|
-
left: t.value.style.chart.box.dimensions.left,
|
|
71
|
-
right: t.value.style.chart.box.dimensions.right,
|
|
72
|
-
perspective: t.value.style.chart.box.dimensions.perspective
|
|
73
|
-
})), C = j(() => {
|
|
74
|
-
if (F.value) {
|
|
75
|
-
const a = $.dataset.series.map((l) => l.value || 0).reduce((l, r) => l + r, 0), s = $.dataset.series.map((l, r) => ({
|
|
76
|
-
...l,
|
|
77
|
-
id: Te(),
|
|
78
|
-
proportion: (l.value || 0) / a,
|
|
79
|
-
color: it(l.color) || He.value[r] || ee[r] || ee[r % ee.length],
|
|
80
|
-
breakdown: l.breakdown ? l.breakdown.sort((i, k) => k.value - i.value) : null
|
|
81
|
-
})).sort((l, r) => r.value - l.value), e = [];
|
|
82
|
-
let h = 0;
|
|
83
|
-
for (let l = 0; l < s.length; l += 1)
|
|
84
|
-
e.push({
|
|
85
|
-
...s[l],
|
|
86
|
-
fill: Ze(h, s[l].proportion, s[l].breakdown, s[l].color)
|
|
87
|
-
}), h += s[l].proportion;
|
|
88
|
-
return e;
|
|
89
|
-
}
|
|
90
|
-
return null;
|
|
91
|
-
}), z = j(() => ({
|
|
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}`,
|
|
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}`,
|
|
94
|
-
side: `M${o.value.width / 2},${o.value.height - o.value.bottom} ${o.value.width / 2},${o.value.top + o.value.perspective * 2}`,
|
|
95
|
-
topSides: `M${o.value.left},${o.value.top + o.value.perspective} ${o.value.width / 2},${o.value.top + o.value.perspective * 2} ${o.value.width - o.value.right},${o.value.top + o.value.perspective}`,
|
|
96
|
-
tubeTop: `M${o.value.left},${o.value.top + o.value.perspective} C ${o.value.left},${o.value.top - o.value.perspective / 3} ${o.value.width - o.value.right},${o.value.top - o.value.perspective / 3} ${o.value.width - o.value.right},${o.value.top + o.value.perspective} C ${o.value.width - o.value.right},${o.value.top + o.value.perspective * 2.3} ${o.value.left},${o.value.top + o.value.perspective * 2.3} ${o.value.left},${o.value.top + o.value.perspective}`,
|
|
97
|
-
tubeLeft: `M${o.value.left},${o.value.top + o.value.perspective} ${o.value.left},${o.value.height - o.value.bottom - o.value.perspective}`,
|
|
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}`,
|
|
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}`
|
|
100
|
-
})), V = S(t.value.style.chart.animation.use ? 0 : $.dataset.percentage);
|
|
101
|
-
et(() => {
|
|
102
|
-
_e();
|
|
103
|
-
let a = 0, s = t.value.style.chart.animation.speed, e = 5e-3 * t.value.style.chart.animation.acceleration;
|
|
104
|
-
function h() {
|
|
105
|
-
V.value += s + a, a += e, V.value < $.dataset.percentage ? requestAnimationFrame(h) : V.value = $.dataset.percentage;
|
|
106
|
-
}
|
|
107
|
-
t.value.style.chart.animation.use && (V.value = 0, h());
|
|
108
|
-
});
|
|
109
|
-
function _e() {
|
|
110
|
-
dt($.dataset) ? te({
|
|
111
|
-
componentName: "VueUi3dBar",
|
|
112
|
-
type: "dataset"
|
|
113
|
-
}) : $.dataset.series ? $.dataset.series.forEach((a, s) => {
|
|
114
|
-
ie({
|
|
115
|
-
datasetObject: a,
|
|
116
|
-
requiredAttributes: ["name", "value"]
|
|
117
|
-
}).forEach((e) => {
|
|
118
|
-
te({
|
|
119
|
-
componentName: "VueUi3dBar",
|
|
120
|
-
type: "datasetSerieAttribute",
|
|
121
|
-
property: e,
|
|
122
|
-
index: s
|
|
123
|
-
});
|
|
124
|
-
}), a.breakdown && a.breakdown.forEach((e, h) => {
|
|
125
|
-
ie({
|
|
126
|
-
datasetObject: e,
|
|
127
|
-
requiredAttributes: ["name", "value"]
|
|
128
|
-
}).forEach((l) => {
|
|
129
|
-
te({
|
|
130
|
-
componentName: "VueUi3dBar",
|
|
131
|
-
type: "datasetSerieAttribute",
|
|
132
|
-
property: l,
|
|
133
|
-
index: `${s} - ${h}`
|
|
134
|
-
});
|
|
135
|
-
});
|
|
136
|
-
});
|
|
137
|
-
}) : ie({
|
|
138
|
-
datasetObject: $.dataset,
|
|
139
|
-
requiredAttributes: ["percentage"]
|
|
140
|
-
}).forEach((a) => {
|
|
141
|
-
te({
|
|
142
|
-
componentName: "VueUi3dBar",
|
|
143
|
-
type: "datasetAttribute",
|
|
144
|
-
property: a
|
|
145
|
-
});
|
|
146
|
-
});
|
|
147
|
-
}
|
|
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(
|
|
156
|
-
{ series: e },
|
|
157
|
-
r + o.value.absoluteWidth / 4 - 14,
|
|
158
|
-
Ye === "top" ? ue - Ce : ue + Ce,
|
|
159
|
-
28,
|
|
160
|
-
28,
|
|
161
|
-
1.99999,
|
|
162
|
-
2,
|
|
163
|
-
1,
|
|
164
|
-
360,
|
|
165
|
-
105.25,
|
|
166
|
-
14
|
|
167
|
-
), Me = De(
|
|
168
|
-
{ series: e },
|
|
169
|
-
r - w + 20,
|
|
170
|
-
i - v - p - l * s / 2,
|
|
171
|
-
6,
|
|
172
|
-
6,
|
|
173
|
-
1.99999,
|
|
174
|
-
2,
|
|
175
|
-
1,
|
|
176
|
-
360,
|
|
177
|
-
105.25,
|
|
178
|
-
6
|
|
179
|
-
)), {
|
|
180
|
-
donut: Fe,
|
|
181
|
-
miniDonut: Me,
|
|
182
|
-
sidePointer: {
|
|
183
|
-
x: r - w,
|
|
184
|
-
y: i - v - p - l * s / 2,
|
|
185
|
-
topY: i - v - p - l * s,
|
|
186
|
-
height: l * s
|
|
187
|
-
},
|
|
188
|
-
apexBottom: { y: i - v, x: r / 2 },
|
|
189
|
-
apexTop: { y: i - v - l * s, x: r / 2 },
|
|
190
|
-
right: `M${r / 2},${i - v} ${r / 2},${i - v - l * s} ${r - w},${i - v - p - l * s} ${r - w},${i - v - p}Z`,
|
|
191
|
-
left: `M${r / 2},${i - v} ${r / 2},${i - v - l * s} ${f}, ${i - v - p - l * s} ${f},${i - v - p}Z`,
|
|
192
|
-
liningTop: `M${f},${i - v - p - l * s} ${r / 2},${i - v - l * s} ${r - w},${i - v - p - l * s}`,
|
|
193
|
-
liningTopShade: `M${f},${i - v - p - l * s - 0.5} ${r / 2},${i - v - l * s - 0.5} ${r - w},${i - v - p - l * s - 0.5}`,
|
|
194
|
-
top: `M${r / 2},${i - v - l * s} ${f},${i - v - p - l * s} ${r / 2},${i - v - p * 2 - l * s} ${r - w},${i - v - p - l * s} Z`,
|
|
195
|
-
tubeTop: `M${f},${i - v - l * s - p} C ${f},${i - v - l * s - p * 2.5} ${r - w},${i - v - l * s - p * 2.5} ${r - w},${i - v - l * s - p} C ${r - w},${i - v - l * s + p / 2} ${f},${i - v - l * s + p / 2} ${f},${i - v - l * s - p}`,
|
|
196
|
-
bottomTubeTop: `M ${r - w - 0.5},${i - v - p} C ${r - w - 0.5},${i - v + p / 2} ${f},${i - v + p / 2} ${f + 0.5},${i - v - p}`,
|
|
197
|
-
tubeBody: `M
|
|
198
|
-
${f},${i - v - l * s - p}
|
|
199
|
-
C ${f},${i - v - l * s + p / 2}
|
|
200
|
-
${r - w},${i - v - l * s + p / 2}
|
|
201
|
-
${r - w},${i - v - l * s - p}
|
|
202
|
-
L${r - w},${i - v - p}
|
|
203
|
-
C
|
|
204
|
-
${r - w},${i - v + p / 2}
|
|
205
|
-
${f},${i - v + p / 2}
|
|
206
|
-
${f},${i - v - p}Z`
|
|
207
|
-
};
|
|
208
|
-
}
|
|
209
|
-
const Z = j(() => {
|
|
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;
|
|
211
|
-
return {
|
|
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`,
|
|
213
|
-
left: `M${e / 2},${h - f} ${e / 2},${h - f - s * a} ${i}, ${h - f - k - s * a} ${i},${h - f - k}Z`,
|
|
214
|
-
top: `M${e / 2},${h - f - s * a} ${i},${h - f - k - s * a} ${e / 2},${h - f - k * 2 - s * a} ${e - r},${h - f - k - s * a} Z`,
|
|
215
|
-
tubeTop: `M${i},${h - f - s * a - k} C ${i},${h - f - s * a - k * 2.5} ${e - r},${h - f - s * a - k * 2.5} ${e - r},${h - f - s * a - k} C ${e - r},${h - f - s * a + k / 2} ${i},${h - f - s * a + k / 2} ${i},${h - f - s * a - k}`,
|
|
216
|
-
tubeBody: `M
|
|
217
|
-
${i},${h - f - s * a - k}
|
|
218
|
-
C ${i},${h - f - s * a + k / 2}
|
|
219
|
-
${e - r},${h - f - s * a + k / 2}
|
|
220
|
-
${e - r},${h - f - s * a - k}
|
|
221
|
-
L${e - r},${h - k * 1.5}
|
|
222
|
-
C
|
|
223
|
-
${e - r},${h}
|
|
224
|
-
${i},${h}
|
|
225
|
-
${i},${h - f - k}Z`
|
|
226
|
-
};
|
|
227
|
-
}), x = S(null);
|
|
228
|
-
function M(a, s = !1) {
|
|
229
|
-
q("selectDatapoint", a), s || (x.value = a.id), s && I.value && (I.value = !1), s && !I.value && (I.value = !0);
|
|
230
|
-
}
|
|
231
|
-
function L() {
|
|
232
|
-
I.value || (x.value = null);
|
|
233
|
-
}
|
|
234
|
-
function W(a, s, e = !1) {
|
|
235
|
-
const h = $.dataset.series.map((i) => i.value || 0).reduce((i, k) => i + k, 0), l = isNaN(a.value / h) ? 0 : a.value / h * 100, r = isNaN(a.value / me(s)) ? 0 : a.value / me(s) * 100;
|
|
236
|
-
return e ? r : l.toFixed(0) + "%";
|
|
237
|
-
}
|
|
238
|
-
function me(a) {
|
|
239
|
-
return [...a].map((s) => s.value).reduce((s, e) => s + e, 0);
|
|
240
|
-
}
|
|
241
|
-
const ne = S(!1);
|
|
242
|
-
function be(a) {
|
|
243
|
-
ne.value = a;
|
|
244
|
-
}
|
|
245
|
-
function qe() {
|
|
246
|
-
return F.value ? C.value : $.dataset.percentage;
|
|
247
|
-
}
|
|
248
|
-
const N = j(() => {
|
|
249
|
-
if (F.value) {
|
|
250
|
-
const a = C.value.flatMap((e) => e.breakdown && e.breakdown.length ? [{ name: e.name, color: e.color }, ...e.breakdown.map((h, l) => ({
|
|
251
|
-
name: h.name,
|
|
252
|
-
color: E(e.color, l / e.breakdown.length)
|
|
253
|
-
}))] : {
|
|
254
|
-
name: e.name,
|
|
255
|
-
color: e.color
|
|
256
|
-
}), s = C.value.flatMap((e) => e.breakdown && e.breakdown.length ? [e.value, ...e.breakdown.map((h) => h.value)] : e.value);
|
|
257
|
-
return { head: a, body: s };
|
|
258
|
-
} else
|
|
259
|
-
return null;
|
|
260
|
-
});
|
|
261
|
-
function xe(a = null) {
|
|
262
|
-
if (!F.value) {
|
|
263
|
-
console.warn("VueUi3dBar : CSV download is only available in stack mode (providing dataset.series instead of dataset.percentage)");
|
|
264
|
-
return;
|
|
265
|
-
}
|
|
266
|
-
st(() => {
|
|
267
|
-
const s = C.value.map((r) => r.value).reduce((r, i) => r + i, 0), e = N.value.head.map((r, i) => [[
|
|
268
|
-
r.name
|
|
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" });
|
|
271
|
-
});
|
|
272
|
-
}
|
|
273
|
-
const Y = j(() => {
|
|
274
|
-
const a = C.value.map((r) => r.value).reduce((r, i) => r + i, 0), s = [
|
|
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>',
|
|
276
|
-
D({ p: t.value.style.chart.legend.prefix, v: a, s: t.value.style.chart.legend.suffix, r: t.value.table.td.roundingValue }),
|
|
277
|
-
"100%"
|
|
278
|
-
], e = N.value.head.map((r, i) => {
|
|
279
|
-
const k = D({ p: t.value.style.chart.legend.prefix, v: N.value.body[i], s: t.value.style.chart.legend.suffix, r: t.value.table.td.roundingValue });
|
|
280
|
-
return [
|
|
281
|
-
{
|
|
282
|
-
color: r.color,
|
|
283
|
-
name: r.name
|
|
284
|
-
},
|
|
285
|
-
k,
|
|
286
|
-
isNaN(N.value.body[i] / a) ? "-" : D({
|
|
287
|
-
v: N.value.body[i] / a * 100,
|
|
288
|
-
s: "%",
|
|
289
|
-
r: t.value.table.td.roundingPercentage
|
|
290
|
-
})
|
|
291
|
-
];
|
|
292
|
-
}), h = {
|
|
293
|
-
th: {
|
|
294
|
-
backgroundColor: t.value.table.th.backgroundColor,
|
|
295
|
-
color: t.value.table.th.color,
|
|
296
|
-
outline: t.value.table.th.outline
|
|
297
|
-
},
|
|
298
|
-
td: {
|
|
299
|
-
backgroundColor: t.value.table.td.backgroundColor,
|
|
300
|
-
color: t.value.table.td.color,
|
|
301
|
-
outline: t.value.table.td.outline
|
|
302
|
-
},
|
|
303
|
-
breakpoint: t.value.table.responsiveBreakpoint,
|
|
304
|
-
shape: t.value.style.shape === "tube" ? "circle" : "square"
|
|
305
|
-
};
|
|
306
|
-
return {
|
|
307
|
-
colNames: [
|
|
308
|
-
t.value.table.columnNames.series,
|
|
309
|
-
t.value.table.columnNames.value,
|
|
310
|
-
t.value.table.columnNames.percentage
|
|
311
|
-
],
|
|
312
|
-
head: s,
|
|
313
|
-
body: e,
|
|
314
|
-
config: h
|
|
315
|
-
};
|
|
316
|
-
});
|
|
317
|
-
function we() {
|
|
318
|
-
H.value.showTable = !H.value.showTable;
|
|
319
|
-
}
|
|
320
|
-
const J = S(!1);
|
|
321
|
-
function re() {
|
|
322
|
-
J.value = !J.value;
|
|
323
|
-
}
|
|
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,
|
|
339
|
-
generatePdf: ge,
|
|
340
|
-
generateImage: $e,
|
|
341
|
-
getData: qe,
|
|
342
|
-
toggleTable: we,
|
|
343
|
-
toggleAnnotator: re,
|
|
344
|
-
toggleFullscreen: be
|
|
345
|
-
}), (a, s) => (n(), c("div", {
|
|
346
|
-
ref_key: "bar3dChart",
|
|
347
|
-
ref: R,
|
|
348
|
-
class: Se("vue-ui-3d-bar"),
|
|
349
|
-
style: O(`font-family:${t.value.style.fontFamily};width:100%; text-align:center;background:${t.value.style.chart.backgroundColor}`),
|
|
350
|
-
id: `3d_bar_${b.value}`,
|
|
351
|
-
onMouseenter: s[2] || (s[2] = () => u(he)(!0)),
|
|
352
|
-
onMouseleave: s[3] || (s[3] = () => u(he)(!1))
|
|
353
|
-
}, [
|
|
354
|
-
t.value.userOptions.buttons.annotator ? (n(), U(u(We), {
|
|
355
|
-
key: 0,
|
|
356
|
-
svgRef: u(fe),
|
|
357
|
-
backgroundColor: t.value.style.chart.backgroundColor,
|
|
358
|
-
color: t.value.style.chart.color,
|
|
359
|
-
active: J.value,
|
|
360
|
-
onClose: re
|
|
361
|
-
}, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : y("", !0),
|
|
362
|
-
t.value.style.chart.title.text ? (n(), c("div", mt, [
|
|
363
|
-
(n(), U(kt, {
|
|
364
|
-
key: `title_${de.value}`,
|
|
365
|
-
config: {
|
|
366
|
-
title: {
|
|
367
|
-
cy: "3dBar-div-title",
|
|
368
|
-
...t.value.style.chart.title
|
|
369
|
-
},
|
|
370
|
-
subtitle: {
|
|
371
|
-
cy: "3dBar-div-subtitle",
|
|
372
|
-
...t.value.style.chart.title.subtitle
|
|
373
|
-
}
|
|
374
|
-
}
|
|
375
|
-
}, null, 8, ["config"]))
|
|
376
|
-
])) : y("", !0),
|
|
377
|
-
t.value.userOptions.show && X.value && (u(ve) || u(ae)) ? (n(), U(u(Ue), {
|
|
378
|
-
key: 2,
|
|
379
|
-
ref_key: "details",
|
|
380
|
-
ref: Re,
|
|
381
|
-
backgroundColor: t.value.style.chart.backgroundColor,
|
|
382
|
-
color: t.value.style.chart.color,
|
|
383
|
-
isPrinting: u(ye),
|
|
384
|
-
isImaging: u(ke),
|
|
385
|
-
uid: b.value,
|
|
386
|
-
hasPdf: t.value.userOptions.buttons.pdf,
|
|
387
|
-
hasTable: !!F.value && t.value.userOptions.buttons.table,
|
|
388
|
-
hasXls: !!F.value && t.value.userOptions.buttons.csv,
|
|
389
|
-
hasImg: t.value.userOptions.buttons.img,
|
|
390
|
-
hasFullscreen: t.value.userOptions.buttons.fullscreen,
|
|
391
|
-
titles: { ...t.value.userOptions.buttonTitles },
|
|
392
|
-
chartElement: R.value,
|
|
393
|
-
position: t.value.userOptions.position,
|
|
394
|
-
hasAnnotator: t.value.userOptions.buttons.annotator,
|
|
395
|
-
isAnnotation: J.value,
|
|
396
|
-
callbacks: t.value.userOptions.callbacks,
|
|
397
|
-
printScale: t.value.userOptions.print.scale,
|
|
398
|
-
onToggleFullscreen: be,
|
|
399
|
-
onGeneratePdf: u(ge),
|
|
400
|
-
onGenerateCsv: xe,
|
|
401
|
-
onGenerateImage: u($e),
|
|
402
|
-
onToggleTable: we,
|
|
403
|
-
onToggleAnnotator: re,
|
|
404
|
-
style: O({
|
|
405
|
-
visibility: u(ve) ? u(ae) ? "visible" : "hidden" : "visible"
|
|
406
|
-
})
|
|
407
|
-
}, tt({ _: 2 }, [
|
|
408
|
-
a.$slots.menuIcon ? {
|
|
409
|
-
name: "menuIcon",
|
|
410
|
-
fn: T(({ isOpen: e, color: h }) => [
|
|
411
|
-
P(a.$slots, "menuIcon", K(Q({ isOpen: e, color: h })), void 0, !0)
|
|
412
|
-
]),
|
|
413
|
-
key: "0"
|
|
414
|
-
} : void 0,
|
|
415
|
-
a.$slots.optionPdf ? {
|
|
416
|
-
name: "optionPdf",
|
|
417
|
-
fn: T(() => [
|
|
418
|
-
P(a.$slots, "optionPdf", {}, void 0, !0)
|
|
419
|
-
]),
|
|
420
|
-
key: "1"
|
|
421
|
-
} : void 0,
|
|
422
|
-
a.$slots.optionCsv ? {
|
|
423
|
-
name: "optionCsv",
|
|
424
|
-
fn: T(() => [
|
|
425
|
-
P(a.$slots, "optionCsv", {}, void 0, !0)
|
|
426
|
-
]),
|
|
427
|
-
key: "2"
|
|
428
|
-
} : void 0,
|
|
429
|
-
a.$slots.optionImg ? {
|
|
430
|
-
name: "optionImg",
|
|
431
|
-
fn: T(() => [
|
|
432
|
-
P(a.$slots, "optionImg", {}, void 0, !0)
|
|
433
|
-
]),
|
|
434
|
-
key: "3"
|
|
435
|
-
} : void 0,
|
|
436
|
-
a.$slots.optionTable ? {
|
|
437
|
-
name: "optionTable",
|
|
438
|
-
fn: T(() => [
|
|
439
|
-
P(a.$slots, "optionTable", {}, void 0, !0)
|
|
440
|
-
]),
|
|
441
|
-
key: "4"
|
|
442
|
-
} : void 0,
|
|
443
|
-
a.$slots.optionFullscreen ? {
|
|
444
|
-
name: "optionFullscreen",
|
|
445
|
-
fn: T(({ toggleFullscreen: e, isFullscreen: h }) => [
|
|
446
|
-
P(a.$slots, "optionFullscreen", K(Q({ toggleFullscreen: e, isFullscreen: h })), void 0, !0)
|
|
447
|
-
]),
|
|
448
|
-
key: "5"
|
|
449
|
-
} : void 0,
|
|
450
|
-
a.$slots.optionAnnotator ? {
|
|
451
|
-
name: "optionAnnotator",
|
|
452
|
-
fn: T(({ toggleAnnotator: e, isAnnotator: h }) => [
|
|
453
|
-
P(a.$slots, "optionAnnotator", K(Q({ toggleAnnotator: e, isAnnotator: h })), void 0, !0)
|
|
454
|
-
]),
|
|
455
|
-
key: "6"
|
|
456
|
-
} : void 0
|
|
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", {
|
|
459
|
-
key: 3,
|
|
460
|
-
ref_key: "svgRef",
|
|
461
|
-
ref: fe,
|
|
462
|
-
xmlns: u(ct),
|
|
463
|
-
class: Se({ "vue-data-ui-fullscreen--on": ne.value, "vue-data-ui-fulscreen--off": !ne.value }),
|
|
464
|
-
viewBox: `0 0 ${o.value.absoluteWidth} ${o.value.height}`,
|
|
465
|
-
style: O(`max-width:100%; overflow: visible; background:transparent;color:${t.value.style.chart.color}`)
|
|
466
|
-
}, [
|
|
467
|
-
lt(u(Ve)),
|
|
468
|
-
a.$slots["chart-background"] ? (n(), c("foreignObject", {
|
|
469
|
-
key: 0,
|
|
470
|
-
x: 0,
|
|
471
|
-
y: 0,
|
|
472
|
-
width: o.value.absoluteWidth,
|
|
473
|
-
height: o.value.height,
|
|
474
|
-
style: {
|
|
475
|
-
pointerEvents: "none"
|
|
476
|
-
}
|
|
477
|
-
}, [
|
|
478
|
-
P(a.$slots, "chart-background", {}, void 0, !0)
|
|
479
|
-
], 8, xt)) : y("", !0),
|
|
480
|
-
d("defs", null, [
|
|
481
|
-
d("radialGradient", {
|
|
482
|
-
id: `gradient_top${b.value}`
|
|
483
|
-
}, [
|
|
484
|
-
d("stop", {
|
|
485
|
-
offset: "0%",
|
|
486
|
-
"stop-color": u(g)(t.value.style.chart.backgroundColor, 0)
|
|
487
|
-
}, null, 8, Ct),
|
|
488
|
-
d("stop", {
|
|
489
|
-
offset: "100%",
|
|
490
|
-
"stop-color": t.value.style.chart.bar.color
|
|
491
|
-
}, null, 8, Ft)
|
|
492
|
-
], 8, wt),
|
|
493
|
-
d("radialGradient", {
|
|
494
|
-
id: `gradient_left${b.value}`
|
|
495
|
-
}, [
|
|
496
|
-
d("stop", {
|
|
497
|
-
offset: "0%",
|
|
498
|
-
"stop-color": u(g)(t.value.style.chart.backgroundColor, 0)
|
|
499
|
-
}, null, 8, Pt),
|
|
500
|
-
d("stop", {
|
|
501
|
-
offset: "100%",
|
|
502
|
-
"stop-color": u(g)(t.value.style.chart.bar.color, 20)
|
|
503
|
-
}, null, 8, St)
|
|
504
|
-
], 8, Mt),
|
|
505
|
-
d("radialGradient", {
|
|
506
|
-
id: `gradient_right${b.value}`
|
|
507
|
-
}, [
|
|
508
|
-
d("stop", {
|
|
509
|
-
offset: "0%",
|
|
510
|
-
"stop-color": u(g)(t.value.style.chart.backgroundColor, 0)
|
|
511
|
-
}, null, 8, Tt),
|
|
512
|
-
d("stop", {
|
|
513
|
-
offset: "100%",
|
|
514
|
-
"stop-color": u(g)(t.value.style.chart.bar.color, 20)
|
|
515
|
-
}, null, 8, Dt)
|
|
516
|
-
], 8, jt),
|
|
517
|
-
d("linearGradient", {
|
|
518
|
-
id: `gradient_tube_body${b.value}`,
|
|
519
|
-
x1: "0%",
|
|
520
|
-
y1: "0%",
|
|
521
|
-
x2: "100%",
|
|
522
|
-
y2: "0%"
|
|
523
|
-
}, [
|
|
524
|
-
d("stop", {
|
|
525
|
-
offset: "0%",
|
|
526
|
-
"stop-color": `${t.value.style.chart.bar.color}`
|
|
527
|
-
}, null, 8, zt),
|
|
528
|
-
d("stop", {
|
|
529
|
-
offset: "75%",
|
|
530
|
-
"stop-color": u(g)(t.value.style.chart.backgroundColor, 0)
|
|
531
|
-
}, null, 8, Nt),
|
|
532
|
-
d("stop", {
|
|
533
|
-
offset: "100%",
|
|
534
|
-
"stop-color": u(g)(t.value.style.chart.bar.color, 40)
|
|
535
|
-
}, null, 8, Bt)
|
|
536
|
-
], 8, Ot)
|
|
537
|
-
]),
|
|
538
|
-
F.value ? (n(), c("defs", At, [
|
|
539
|
-
(n(!0), c(_, null, m(C.value, (e) => (n(), c("radialGradient", {
|
|
540
|
-
id: `grad_top_${e.id}`
|
|
541
|
-
}, [
|
|
542
|
-
d("stop", {
|
|
543
|
-
offset: "0%",
|
|
544
|
-
"stop-color": u(g)(u(E)(e.color, 0.5), 80)
|
|
545
|
-
}, null, 8, Lt),
|
|
546
|
-
d("stop", {
|
|
547
|
-
offset: "100%",
|
|
548
|
-
"stop-color": e.color
|
|
549
|
-
}, null, 8, Vt)
|
|
550
|
-
], 8, It))), 256)),
|
|
551
|
-
(n(!0), c(_, null, m(C.value, (e) => (n(), c("linearGradient", {
|
|
552
|
-
id: `grad_left_${e.id}`
|
|
553
|
-
}, [
|
|
554
|
-
d("stop", {
|
|
555
|
-
offset: "0%",
|
|
556
|
-
"stop-color": u(g)(e.color, 80)
|
|
557
|
-
}, null, 8, Gt),
|
|
558
|
-
d("stop", {
|
|
559
|
-
offset: "100%",
|
|
560
|
-
"stop-color": u(g)(u(le)(e.color, 0.5), 100)
|
|
561
|
-
}, null, 8, Ut)
|
|
562
|
-
], 8, Wt))), 256)),
|
|
563
|
-
(n(!0), c(_, null, m(C.value, (e) => (n(), c("linearGradient", {
|
|
564
|
-
id: `grad_right_${e.id}`
|
|
565
|
-
}, [
|
|
566
|
-
d("stop", {
|
|
567
|
-
offset: "2%",
|
|
568
|
-
"stop-color": u(g)(u(E)(e.color, 0.5), 100)
|
|
569
|
-
}, null, 8, Rt),
|
|
570
|
-
d("stop", {
|
|
571
|
-
offset: "100%",
|
|
572
|
-
"stop-color": u(g)(e.color, 80)
|
|
573
|
-
}, null, 8, Ht)
|
|
574
|
-
], 8, Et))), 256)),
|
|
575
|
-
d("linearGradient", {
|
|
576
|
-
x1: "0%",
|
|
577
|
-
y1: "0%",
|
|
578
|
-
x2: "0%",
|
|
579
|
-
y2: "100%",
|
|
580
|
-
id: `vertical_line_${b.value}`
|
|
581
|
-
}, s[4] || (s[4] = [
|
|
582
|
-
d("stop", {
|
|
583
|
-
offset: "0%",
|
|
584
|
-
"stop-color": "#FFFFFF"
|
|
585
|
-
}, null, -1),
|
|
586
|
-
d("stop", {
|
|
587
|
-
offset: "100%",
|
|
588
|
-
"stop-color": "#FFFFFF33"
|
|
589
|
-
}, null, -1)
|
|
590
|
-
]), 8, Zt)
|
|
591
|
-
])) : y("", !0),
|
|
592
|
-
t.value.style.chart.dataLabel.show && ![null, void 0].includes($.dataset.percentage) && [null, void 0].includes($.dataset.series) ? (n(), c("text", {
|
|
593
|
-
key: 2,
|
|
594
|
-
x: o.value.width / 2,
|
|
595
|
-
y: o.value.top - t.value.style.chart.dataLabel.fontSize / 2,
|
|
596
|
-
"font-size": t.value.style.chart.dataLabel.fontSize,
|
|
597
|
-
"font-weight": t.value.style.chart.dataLabel.bold ? "bold" : "normal",
|
|
598
|
-
fill: t.value.style.chart.dataLabel.color,
|
|
599
|
-
"text-anchor": "middle"
|
|
600
|
-
}, B(u(D)({
|
|
601
|
-
v: V.value,
|
|
602
|
-
s: "%",
|
|
603
|
-
r: t.value.style.chart.dataLabel.rounding
|
|
604
|
-
})), 9, qt)) : y("", !0),
|
|
605
|
-
I.value ? (n(), c("g", {
|
|
606
|
-
key: 3,
|
|
607
|
-
onClick: s[0] || (s[0] = (e) => {
|
|
608
|
-
I.value = !1, x.value = null;
|
|
609
|
-
}),
|
|
610
|
-
"data-dom-to-png-ignore": "",
|
|
611
|
-
style: { cursor: "pointer" }
|
|
612
|
-
}, [
|
|
613
|
-
d("rect", {
|
|
614
|
-
x: o.value.width / 2 - 6,
|
|
615
|
-
y: o.value.top - 20,
|
|
616
|
-
height: 12,
|
|
617
|
-
width: 12,
|
|
618
|
-
fill: "transparent"
|
|
619
|
-
}, null, 8, Xt),
|
|
620
|
-
d("path", {
|
|
621
|
-
d: `M${o.value.width / 2 - 6},${o.value.top - 20} ${o.value.width / 2 + 6},${o.value.top - 9}`,
|
|
622
|
-
stroke: t.value.style.chart.color,
|
|
623
|
-
"stroke-linecap": "round",
|
|
624
|
-
"stroke-width": "1"
|
|
625
|
-
}, null, 8, Yt),
|
|
626
|
-
d("path", {
|
|
627
|
-
d: `M${o.value.width / 2 + 6},${o.value.top - 20} ${o.value.width / 2 - 6},${o.value.top - 9}`,
|
|
628
|
-
stroke: t.value.style.chart.color,
|
|
629
|
-
"stroke-linecap": "round",
|
|
630
|
-
"stroke-width": "1"
|
|
631
|
-
}, null, 8, Jt)
|
|
632
|
-
])) : y("", !0),
|
|
633
|
-
!t.value.style.shape || t.value.style.shape === "bar" ? (n(), c("g", Kt, [
|
|
634
|
-
F.value ? y("", !0) : (n(), c("g", Qt, [
|
|
635
|
-
d("path", {
|
|
636
|
-
"stroke-dasharray": t.value.style.chart.box.strokeDasharray,
|
|
637
|
-
d: z.value.right,
|
|
638
|
-
stroke: t.value.style.chart.box.stroke,
|
|
639
|
-
"stroke-width": t.value.style.chart.box.strokeWidth,
|
|
640
|
-
"stroke-linejoin": "round",
|
|
641
|
-
"stroke-linecap": "round",
|
|
642
|
-
fill: "none"
|
|
643
|
-
}, null, 8, el),
|
|
644
|
-
d("path", {
|
|
645
|
-
"stroke-dasharray": t.value.style.chart.box.strokeDasharray,
|
|
646
|
-
d: z.value.left,
|
|
647
|
-
stroke: t.value.style.chart.box.stroke,
|
|
648
|
-
"stroke-width": t.value.style.chart.box.strokeWidth,
|
|
649
|
-
"stroke-linejoin": "round",
|
|
650
|
-
"stroke-linecap": "round",
|
|
651
|
-
fill: "none"
|
|
652
|
-
}, null, 8, tl),
|
|
653
|
-
d("path", {
|
|
654
|
-
"stroke-dasharray": t.value.style.chart.box.strokeDasharray,
|
|
655
|
-
d: z.value.side,
|
|
656
|
-
stroke: t.value.style.chart.box.stroke,
|
|
657
|
-
"stroke-width": t.value.style.chart.box.strokeWidth,
|
|
658
|
-
"stroke-linejoin": "round",
|
|
659
|
-
"stroke-linecap": "round",
|
|
660
|
-
fill: "none"
|
|
661
|
-
}, null, 8, ll),
|
|
662
|
-
d("path", {
|
|
663
|
-
"stroke-dasharray": t.value.style.chart.box.strokeDasharray,
|
|
664
|
-
d: z.value.topSides,
|
|
665
|
-
stroke: t.value.style.chart.box.stroke,
|
|
666
|
-
"stroke-width": t.value.style.chart.box.strokeWidth,
|
|
667
|
-
"stroke-linejoin": "round",
|
|
668
|
-
"stroke-linecap": "round",
|
|
669
|
-
fill: "none"
|
|
670
|
-
}, null, 8, ol)
|
|
671
|
-
])),
|
|
672
|
-
F.value ? y("", !0) : (n(), c("g", sl, [
|
|
673
|
-
d("path", {
|
|
674
|
-
d: Z.value.right,
|
|
675
|
-
stroke: t.value.style.chart.bar.stroke,
|
|
676
|
-
"stroke-width": t.value.style.chart.bar.strokeWidth,
|
|
677
|
-
"stroke-linejoin": "round",
|
|
678
|
-
"stroke-linecap": "round",
|
|
679
|
-
fill: `url(#gradient_right${b.value})`
|
|
680
|
-
}, null, 8, al),
|
|
681
|
-
d("path", {
|
|
682
|
-
d: Z.value.left,
|
|
683
|
-
stroke: t.value.style.chart.bar.stroke,
|
|
684
|
-
"stroke-width": t.value.style.chart.bar.strokeWidth,
|
|
685
|
-
"stroke-linejoin": "round",
|
|
686
|
-
"stroke-linecap": "round",
|
|
687
|
-
fill: `url(#gradient_left${b.value})`
|
|
688
|
-
}, null, 8, nl),
|
|
689
|
-
d("path", {
|
|
690
|
-
d: Z.value.top,
|
|
691
|
-
stroke: t.value.style.chart.bar.stroke,
|
|
692
|
-
"stroke-width": t.value.style.chart.bar.strokeWidth,
|
|
693
|
-
"stroke-linejoin": "round",
|
|
694
|
-
"stroke-linecap": "round",
|
|
695
|
-
fill: `url(#gradient_top${b.value})`
|
|
696
|
-
}, null, 8, rl)
|
|
697
|
-
])),
|
|
698
|
-
F.value ? (n(), c("g", ul, [
|
|
699
|
-
(n(!0), c(_, null, m(C.value, (e, h) => (n(), c("g", {
|
|
700
|
-
style: O(`opacity:${x.value ? x.value === e.id ? 1 : 0.3 : 1}`),
|
|
701
|
-
class: "vue-ui-3d-bar-stack"
|
|
702
|
-
}, [
|
|
703
|
-
d("path", {
|
|
704
|
-
d: e.fill.right,
|
|
705
|
-
fill: `url(#grad_right_${e.id})`,
|
|
706
|
-
onMouseenter: (l) => M(e),
|
|
707
|
-
onClick: (l) => M(e, !0),
|
|
708
|
-
onMouseout: L
|
|
709
|
-
}, null, 40, il),
|
|
710
|
-
d("path", {
|
|
711
|
-
d: e.fill.left,
|
|
712
|
-
fill: `url(#grad_left_${e.id})`,
|
|
713
|
-
onMouseenter: (l) => M(e),
|
|
714
|
-
onClick: (l) => M(e, !0),
|
|
715
|
-
onMouseout: L
|
|
716
|
-
}, null, 40, dl),
|
|
717
|
-
d("path", {
|
|
718
|
-
d: e.fill.top,
|
|
719
|
-
fill: `url(#grad_top_${e.id})`,
|
|
720
|
-
onMouseenter: (l) => M(e),
|
|
721
|
-
onClick: (l) => M(e, !0),
|
|
722
|
-
onMouseout: L
|
|
723
|
-
}, null, 40, cl),
|
|
724
|
-
d("path", {
|
|
725
|
-
d: e.fill.liningTop,
|
|
726
|
-
stroke: "#FFFFFF",
|
|
727
|
-
"stroke-width": "0.5",
|
|
728
|
-
"stroke-linecap": "round",
|
|
729
|
-
fill: "none",
|
|
730
|
-
onMouseenter: (l) => M(e),
|
|
731
|
-
onClick: (l) => M(e, !0),
|
|
732
|
-
onMouseout: L
|
|
733
|
-
}, null, 40, hl),
|
|
734
|
-
d("path", {
|
|
735
|
-
d: `M ${e.fill.apexTop.x},${e.fill.apexTop.y} ${e.fill.apexBottom.x},${e.fill.apexBottom.y}`,
|
|
736
|
-
stroke: "#FFFFFF",
|
|
737
|
-
"stroke-width": "0.5",
|
|
738
|
-
"stroke-linecap": "round"
|
|
739
|
-
}, null, 8, vl)
|
|
740
|
-
], 4))), 256)),
|
|
741
|
-
(n(!0), c(_, null, m(C.value, (e, h) => (n(), c("g", null, [
|
|
742
|
-
h !== C.value.length - 1 ? (n(), c("path", {
|
|
743
|
-
key: 0,
|
|
744
|
-
d: e.fill.liningTopShade,
|
|
745
|
-
stroke: t.value.style.chart.bar.shadeColor,
|
|
746
|
-
"stroke-width": "0.5",
|
|
747
|
-
"stroke-linecap": "round",
|
|
748
|
-
fill: "none",
|
|
749
|
-
style: { "pointer-events": "none" }
|
|
750
|
-
}, null, 8, fl)) : y("", !0)
|
|
751
|
-
]))), 256)),
|
|
752
|
-
(n(!0), c(_, null, m(C.value, (e, h) => (n(), c("g", {
|
|
753
|
-
style: O(`opacity:${x.value ? x.value === e.id ? 1 : 0 : e.proportion * 100 > t.value.style.chart.legend.hideUnderPercentage ? 1 : 0}`),
|
|
754
|
-
onClick: (l) => q("selectDatapoint", e)
|
|
755
|
-
}, [
|
|
756
|
-
d("path", {
|
|
757
|
-
stroke: t.value.style.chart.color,
|
|
758
|
-
"stroke-dasharray": "1",
|
|
759
|
-
"stroke-width": "0.5",
|
|
760
|
-
"stroke-linecap": "round",
|
|
761
|
-
d: `M${e.fill.sidePointer.x},${e.fill.sidePointer.y} ${e.fill.sidePointer.x + 20},${e.fill.sidePointer.y}`
|
|
762
|
-
}, null, 8, yl),
|
|
763
|
-
!e.fill.miniDonut || x.value ? (n(), c("circle", {
|
|
764
|
-
key: 0,
|
|
765
|
-
cx: e.fill.sidePointer.x + 20,
|
|
766
|
-
cy: e.fill.sidePointer.y,
|
|
767
|
-
r: 2,
|
|
768
|
-
fill: e.color,
|
|
769
|
-
stroke: t.value.style.chart.backgroundColor
|
|
770
|
-
}, null, 8, kl)) : y("", !0),
|
|
771
|
-
(n(), c("foreignObject", {
|
|
772
|
-
x: e.fill.sidePointer.x + 30,
|
|
773
|
-
y: e.fill.sidePointer.y - t.value.style.chart.legend.fontSize,
|
|
774
|
-
width: o.value.absoluteWidth / 2 - 12,
|
|
775
|
-
height: t.value.style.chart.legend.fontSize * 2,
|
|
776
|
-
style: { overflow: "visible", position: "relative" }
|
|
777
|
-
}, [
|
|
778
|
-
t.value.style.chart.legend.showDefault ? (n(), c("div", {
|
|
779
|
-
key: 0,
|
|
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}`)
|
|
781
|
-
}, B(u(oe)(
|
|
782
|
-
t.value.style.chart.dataLabel.formatter,
|
|
783
|
-
e.value,
|
|
784
|
-
`${e.name}: ${u(D)({ v: e.proportion * 100, s: "%", r: t.value.style.chart.legend.roundingPercentage })} (${u(D)({
|
|
785
|
-
p: t.value.style.chart.legend.prefix,
|
|
786
|
-
v: e.value,
|
|
787
|
-
s: t.value.style.chart.legend.suffix,
|
|
788
|
-
r: t.value.style.chart.legend.roundingValue
|
|
789
|
-
})})`,
|
|
790
|
-
{ datapoint: e, seriesIndex: h, type: "barDatapoint" }
|
|
791
|
-
)), 5)) : y("", !0),
|
|
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, [
|
|
795
|
-
(n(!0), c(_, null, m(e.fill.donut, (l, r) => (n(), c("g", null, [
|
|
796
|
-
W(l, e.fill.donut, !0) > 6 ? (n(), c("path", {
|
|
797
|
-
key: 0,
|
|
798
|
-
d: u(Oe)(l, { x: l.cx, y: l.cy }, 0, 8, !1, !0, 10),
|
|
799
|
-
stroke: l.color,
|
|
800
|
-
class: "vue-ui-donut-arc-path",
|
|
801
|
-
"stroke-width": "0.5",
|
|
802
|
-
"stroke-linecap": "round",
|
|
803
|
-
"stroke-linejoin": "round",
|
|
804
|
-
fill: "none"
|
|
805
|
-
}, null, 8, _l)) : y("", !0)
|
|
806
|
-
]))), 256)),
|
|
807
|
-
(n(!0), c(_, null, m(e.fill.donut, (l, r) => (n(), c("path", {
|
|
808
|
-
class: "vue-ui-donut-arc-path",
|
|
809
|
-
d: l.arcSlice,
|
|
810
|
-
fill: `${l.color}`,
|
|
811
|
-
stroke: t.value.style.chart.backgroundColor,
|
|
812
|
-
"stroke-width": 1
|
|
813
|
-
}, null, 8, ml))), 256)),
|
|
814
|
-
d("defs", null, [
|
|
815
|
-
d("radialGradient", {
|
|
816
|
-
id: `hollow_gradient_${b.value}`
|
|
817
|
-
}, [
|
|
818
|
-
d("stop", {
|
|
819
|
-
offset: "0%",
|
|
820
|
-
"stop-color": u(g)(t.value.style.chart.backgroundColor, 0)
|
|
821
|
-
}, null, 8, xl),
|
|
822
|
-
s[5] || (s[5] = d("stop", {
|
|
823
|
-
offset: "77%",
|
|
824
|
-
"stop-color": "#FFFFFF20"
|
|
825
|
-
}, null, -1)),
|
|
826
|
-
d("stop", {
|
|
827
|
-
offset: "100%",
|
|
828
|
-
"stop-color": u(g)(t.value.style.chart.backgroundColor, 0)
|
|
829
|
-
}, null, 8, wl)
|
|
830
|
-
], 8, bl)
|
|
831
|
-
]),
|
|
832
|
-
(n(!0), c(_, null, m(e.fill.donut, (l, r) => (n(), c("circle", {
|
|
833
|
-
class: "vue-ui-donut-arc-path",
|
|
834
|
-
cx: l.cx,
|
|
835
|
-
cy: l.cy,
|
|
836
|
-
r: 28,
|
|
837
|
-
fill: `url(#hollow_gradient_${b.value})`
|
|
838
|
-
}, null, 8, Cl))), 256)),
|
|
839
|
-
(n(!0), c(_, null, m(e.fill.donut, (l, r) => (n(), c("circle", {
|
|
840
|
-
class: "vue-ui-donut-arc-path",
|
|
841
|
-
cx: l.cx,
|
|
842
|
-
cy: l.cy,
|
|
843
|
-
r: 14,
|
|
844
|
-
fill: t.value.style.chart.backgroundColor
|
|
845
|
-
}, null, 8, Fl))), 256)),
|
|
846
|
-
(n(!0), c(_, null, m(e.fill.donut, (l, r) => (n(), c("g", null, [
|
|
847
|
-
W(l, e.fill.donut, !0) > 6 ? (n(), c("g", Ml, [
|
|
848
|
-
d("text", {
|
|
849
|
-
"text-anchor": u(A)(l, !0, 0).anchor,
|
|
850
|
-
x: u(A)(l, !0, 2).x,
|
|
851
|
-
y: u(se)(l, 12, 12),
|
|
852
|
-
fill: t.value.style.chart.legend.color,
|
|
853
|
-
"font-size": t.value.style.chart.legend.fontSize / 1.5
|
|
854
|
-
}, B(u(oe)(
|
|
855
|
-
t.value.style.chart.dataLabel.formatter,
|
|
856
|
-
l.value,
|
|
857
|
-
`${W(l, e.fill.donut)} (${u(D)({
|
|
858
|
-
p: t.value.style.chart.legend.prefix,
|
|
859
|
-
v: l.value,
|
|
860
|
-
s: t.value.style.chart.legend.suffix,
|
|
861
|
-
r: t.value.style.chart.legend.roundingValue
|
|
862
|
-
})})`,
|
|
863
|
-
{ datapoint: l, seriesIndex: r, type: "donutDatapoint" }
|
|
864
|
-
)), 9, Pl),
|
|
865
|
-
d("text", {
|
|
866
|
-
"text-anchor": u(A)(l).anchor,
|
|
867
|
-
x: u(A)(l, !0, 2).x,
|
|
868
|
-
y: u(se)(l, 12, 12) + t.value.style.chart.legend.fontSize / 1.5,
|
|
869
|
-
fill: t.value.style.chart.legend.color,
|
|
870
|
-
"font-size": t.value.style.chart.legend.fontSize / 1.5
|
|
871
|
-
}, B(l.name), 9, Sl)
|
|
872
|
-
])) : y("", !0)
|
|
873
|
-
]))), 256))
|
|
874
|
-
])) : y("", !0),
|
|
875
|
-
e.fill.miniDonut && !x.value ? (n(), c("g", jl, [
|
|
876
|
-
(n(!0), c(_, null, m(e.fill.miniDonut, (l, r) => (n(), c("path", {
|
|
877
|
-
class: "vue-ui-donut-arc-path",
|
|
878
|
-
d: l.arcSlice,
|
|
879
|
-
fill: `${l.color}`,
|
|
880
|
-
stroke: t.value.style.chart.backgroundColor,
|
|
881
|
-
"stroke-width": 0.5
|
|
882
|
-
}, null, 8, Tl))), 256))
|
|
883
|
-
])) : y("", !0)
|
|
884
|
-
], 12, pl))), 256))
|
|
885
|
-
])) : y("", !0)
|
|
886
|
-
])) : y("", !0),
|
|
887
|
-
t.value.style.shape === "tube" ? (n(), c("g", Dl, [
|
|
888
|
-
F.value ? y("", !0) : (n(), c("g", Ol, [
|
|
889
|
-
d("path", {
|
|
890
|
-
"stroke-dasharray": t.value.style.chart.box.strokeDasharray,
|
|
891
|
-
d: z.value.tubeTop,
|
|
892
|
-
stroke: t.value.style.chart.box.stroke,
|
|
893
|
-
"stroke-width": t.value.style.chart.box.strokeWidth,
|
|
894
|
-
"stroke-linejoin": "round",
|
|
895
|
-
"stroke-linecap": "round",
|
|
896
|
-
fill: "none"
|
|
897
|
-
}, null, 8, zl),
|
|
898
|
-
d("path", {
|
|
899
|
-
"stroke-dasharray": t.value.style.chart.box.strokeDasharray,
|
|
900
|
-
d: z.value.tubeLeft,
|
|
901
|
-
stroke: t.value.style.chart.box.stroke,
|
|
902
|
-
"stroke-width": t.value.style.chart.box.strokeWidth,
|
|
903
|
-
"stroke-linejoin": "round",
|
|
904
|
-
"stroke-linecap": "round",
|
|
905
|
-
fill: "none"
|
|
906
|
-
}, null, 8, Nl),
|
|
907
|
-
d("path", {
|
|
908
|
-
"stroke-dasharray": t.value.style.chart.box.strokeDasharray,
|
|
909
|
-
d: z.value.tubeRight,
|
|
910
|
-
stroke: t.value.style.chart.box.stroke,
|
|
911
|
-
"stroke-width": t.value.style.chart.box.strokeWidth,
|
|
912
|
-
"stroke-linejoin": "round",
|
|
913
|
-
"stroke-linecap": "round",
|
|
914
|
-
fill: "none"
|
|
915
|
-
}, null, 8, Bl),
|
|
916
|
-
d("path", {
|
|
917
|
-
"stroke-dasharray": t.value.style.chart.box.strokeDasharray,
|
|
918
|
-
d: z.value.tubeBottom,
|
|
919
|
-
stroke: t.value.style.chart.box.stroke,
|
|
920
|
-
"stroke-width": t.value.style.chart.box.strokeWidth,
|
|
921
|
-
"stroke-linejoin": "round",
|
|
922
|
-
"stroke-linecap": "round",
|
|
923
|
-
fill: "none"
|
|
924
|
-
}, null, 8, Al),
|
|
925
|
-
d("path", {
|
|
926
|
-
d: Z.value.tubeTop,
|
|
927
|
-
stroke: t.value.style.chart.bar.stroke,
|
|
928
|
-
"stroke-width": t.value.style.chart.bar.strokeWidth,
|
|
929
|
-
"stroke-linejoin": "round",
|
|
930
|
-
"stroke-linecap": "round",
|
|
931
|
-
fill: `url(#gradient_top${b.value})`
|
|
932
|
-
}, null, 8, Il),
|
|
933
|
-
d("path", {
|
|
934
|
-
d: Z.value.tubeBody,
|
|
935
|
-
stroke: t.value.style.chart.bar.stroke,
|
|
936
|
-
"stroke-width": t.value.style.chart.bar.strokeWidth,
|
|
937
|
-
"stroke-linejoin": "round",
|
|
938
|
-
"stroke-linecap": "round",
|
|
939
|
-
fill: `url(#gradient_tube_body${b.value})`
|
|
940
|
-
}, null, 8, Ll)
|
|
941
|
-
])),
|
|
942
|
-
F.value ? (n(), c("g", Vl, [
|
|
943
|
-
(n(!0), c(_, null, m(C.value, (e, h) => (n(), c("g", {
|
|
944
|
-
style: O(`opacity:${x.value ? x.value === e.id ? 1 : 0.3 : 1}`),
|
|
945
|
-
class: "vue-ui-3d-bar-stack",
|
|
946
|
-
onClick: (l) => q("selectDatapoint", e)
|
|
947
|
-
}, [
|
|
948
|
-
d("defs", null, [
|
|
949
|
-
d("radialGradient", {
|
|
950
|
-
id: `gradient_tube_top_${e.id}`,
|
|
951
|
-
fx: "10%",
|
|
952
|
-
cy: "55%"
|
|
953
|
-
}, [
|
|
954
|
-
d("stop", {
|
|
955
|
-
offset: "0%",
|
|
956
|
-
"stop-color": u(g)(u(E)(e.color, 0.5), 80)
|
|
957
|
-
}, null, 8, Ul),
|
|
958
|
-
d("stop", {
|
|
959
|
-
offset: "100%",
|
|
960
|
-
"stop-color": u(g)(u(le)(e.color, 0.1), 80)
|
|
961
|
-
}, null, 8, El)
|
|
962
|
-
], 8, Gl),
|
|
963
|
-
d("linearGradient", {
|
|
964
|
-
id: `gradient_tube_body_${e.id}`,
|
|
965
|
-
x1: "0%",
|
|
966
|
-
y1: "0%",
|
|
967
|
-
x2: "100%",
|
|
968
|
-
y2: "0%"
|
|
969
|
-
}, [
|
|
970
|
-
d("stop", {
|
|
971
|
-
offset: "0%",
|
|
972
|
-
"stop-color": `${e.color}`
|
|
973
|
-
}, null, 8, Hl),
|
|
974
|
-
d("stop", {
|
|
975
|
-
offset: "10%",
|
|
976
|
-
"stop-color": u(g)(u(le)(e.color, 0.7), 100)
|
|
977
|
-
}, null, 8, Zl),
|
|
978
|
-
d("stop", {
|
|
979
|
-
offset: "25%",
|
|
980
|
-
"stop-color": u(g)(u(le)(e.color, 0.5), 100)
|
|
981
|
-
}, null, 8, ql),
|
|
982
|
-
d("stop", {
|
|
983
|
-
offset: "75%",
|
|
984
|
-
"stop-color": u(g)(e.color, 80)
|
|
985
|
-
}, null, 8, Xl),
|
|
986
|
-
d("stop", {
|
|
987
|
-
offset: "100%",
|
|
988
|
-
"stop-color": u(g)(u(E)(e.color, 0.7), 100)
|
|
989
|
-
}, null, 8, Yl)
|
|
990
|
-
], 8, Rl)
|
|
991
|
-
]),
|
|
992
|
-
d("path", {
|
|
993
|
-
onMouseenter: (l) => M(e),
|
|
994
|
-
onClick: (l) => M(e, !0),
|
|
995
|
-
onMouseout: L,
|
|
996
|
-
d: e.fill.tubeBody,
|
|
997
|
-
stroke: "#FFFFFF",
|
|
998
|
-
"stroke-width": 0.5,
|
|
999
|
-
"stroke-linejoin": "round",
|
|
1000
|
-
"stroke-linecap": "round",
|
|
1001
|
-
fill: `url(#gradient_tube_body_${e.id})`
|
|
1002
|
-
}, null, 40, Jl),
|
|
1003
|
-
h > 0 ? (n(), c("path", {
|
|
1004
|
-
key: 0,
|
|
1005
|
-
onMouseenter: (l) => M(e),
|
|
1006
|
-
onClick: (l) => M(e, !0),
|
|
1007
|
-
onMouseout: L,
|
|
1008
|
-
d: e.fill.bottomTubeTop,
|
|
1009
|
-
stroke: "#000000",
|
|
1010
|
-
"stroke-width": 0.5,
|
|
1011
|
-
"stroke-linejoin": "round",
|
|
1012
|
-
"stroke-linecap": "round",
|
|
1013
|
-
fill: "none"
|
|
1014
|
-
}, null, 40, Kl)) : y("", !0),
|
|
1015
|
-
d("path", {
|
|
1016
|
-
onMouseenter: (l) => M(e),
|
|
1017
|
-
onClick: (l) => M(e, !0),
|
|
1018
|
-
onMouseout: L,
|
|
1019
|
-
d: e.fill.tubeTop,
|
|
1020
|
-
stroke: "#FFFFFF",
|
|
1021
|
-
"stroke-width": 0.5,
|
|
1022
|
-
"stroke-linejoin": "round",
|
|
1023
|
-
"stroke-linecap": "round",
|
|
1024
|
-
fill: `url(#gradient_tube_top_${e.id})`
|
|
1025
|
-
}, null, 40, Ql)
|
|
1026
|
-
], 12, Wl))), 256)),
|
|
1027
|
-
(n(!0), c(_, null, m(C.value, (e, h) => (n(), c("g", {
|
|
1028
|
-
style: O(`opacity:${x.value ? x.value === e.id ? 1 : 0 : e.proportion * 100 > t.value.style.chart.legend.hideUnderPercentage ? 1 : 0}`),
|
|
1029
|
-
onClick: (l) => q("selectDatapoint", e)
|
|
1030
|
-
}, [
|
|
1031
|
-
d("path", {
|
|
1032
|
-
stroke: t.value.style.chart.color,
|
|
1033
|
-
"stroke-dasharray": "1",
|
|
1034
|
-
"stroke-width": "0.5",
|
|
1035
|
-
"stroke-linecap": "round",
|
|
1036
|
-
d: `M${e.fill.sidePointer.x},${e.fill.sidePointer.y} ${e.fill.sidePointer.x + 20},${e.fill.sidePointer.y}`
|
|
1037
|
-
}, null, 8, to),
|
|
1038
|
-
!e.fill.miniDonut || x.value ? (n(), c("circle", {
|
|
1039
|
-
key: 0,
|
|
1040
|
-
cx: e.fill.sidePointer.x + 20,
|
|
1041
|
-
cy: e.fill.sidePointer.y,
|
|
1042
|
-
r: 2,
|
|
1043
|
-
fill: e.color,
|
|
1044
|
-
stroke: t.value.style.chart.backgroundColor
|
|
1045
|
-
}, null, 8, lo)) : y("", !0),
|
|
1046
|
-
(n(), c("foreignObject", {
|
|
1047
|
-
x: e.fill.sidePointer.x + 30,
|
|
1048
|
-
y: e.fill.sidePointer.y - t.value.style.chart.legend.fontSize,
|
|
1049
|
-
width: o.value.absoluteWidth / 2 - 12,
|
|
1050
|
-
height: t.value.style.chart.legend.fontSize * 2,
|
|
1051
|
-
style: { overflow: "visible", position: "relative" }
|
|
1052
|
-
}, [
|
|
1053
|
-
t.value.style.chart.legend.showDefault ? (n(), c("div", {
|
|
1054
|
-
key: 0,
|
|
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}`)
|
|
1056
|
-
}, B(u(oe)(
|
|
1057
|
-
t.value.style.chart.dataLabel.formatter,
|
|
1058
|
-
e.value,
|
|
1059
|
-
`${e.name}: ${u(D)({ v: e.proportion * 100, s: "%", r: t.value.style.chart.legend.roundingPercentage })} (${u(D)({
|
|
1060
|
-
p: t.value.style.chart.legend.prefix,
|
|
1061
|
-
v: e.value,
|
|
1062
|
-
s: t.value.style.chart.legend.suffix,
|
|
1063
|
-
r: t.value.style.chart.legend.roundingValue
|
|
1064
|
-
})})`,
|
|
1065
|
-
{ datapoint: e, seriesIndex: h, type: "barDatapoint" }
|
|
1066
|
-
)), 5)) : y("", !0),
|
|
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, [
|
|
1070
|
-
(n(!0), c(_, null, m(e.fill.donut, (l, r) => (n(), c("g", null, [
|
|
1071
|
-
W(l, e.fill.donut, !0) > 6 ? (n(), c("path", {
|
|
1072
|
-
key: 0,
|
|
1073
|
-
d: u(Oe)(l, { x: l.cx, y: l.cy }, 0, 8, !1, !0, 10),
|
|
1074
|
-
stroke: l.color,
|
|
1075
|
-
class: "vue-ui-donut-arc-path",
|
|
1076
|
-
"stroke-width": "0.5",
|
|
1077
|
-
"stroke-linecap": "round",
|
|
1078
|
-
"stroke-linejoin": "round",
|
|
1079
|
-
fill: "none"
|
|
1080
|
-
}, null, 8, ao)) : y("", !0)
|
|
1081
|
-
]))), 256)),
|
|
1082
|
-
(n(!0), c(_, null, m(e.fill.donut, (l, r) => (n(), c("path", {
|
|
1083
|
-
class: "vue-ui-donut-arc-path",
|
|
1084
|
-
d: l.arcSlice,
|
|
1085
|
-
fill: `${l.color}`,
|
|
1086
|
-
stroke: t.value.style.chart.backgroundColor,
|
|
1087
|
-
"stroke-width": 1
|
|
1088
|
-
}, null, 8, no))), 256)),
|
|
1089
|
-
d("defs", null, [
|
|
1090
|
-
d("radialGradient", {
|
|
1091
|
-
id: `hollow_gradient_${b.value}`
|
|
1092
|
-
}, [
|
|
1093
|
-
d("stop", {
|
|
1094
|
-
offset: "0%",
|
|
1095
|
-
"stop-color": u(g)(t.value.style.chart.backgroundColor, 0)
|
|
1096
|
-
}, null, 8, uo),
|
|
1097
|
-
s[6] || (s[6] = d("stop", {
|
|
1098
|
-
offset: "77%",
|
|
1099
|
-
"stop-color": "#FFFFFF20"
|
|
1100
|
-
}, null, -1)),
|
|
1101
|
-
d("stop", {
|
|
1102
|
-
offset: "100%",
|
|
1103
|
-
"stop-color": u(g)(t.value.style.chart.backgroundColor, 0)
|
|
1104
|
-
}, null, 8, io)
|
|
1105
|
-
], 8, ro)
|
|
1106
|
-
]),
|
|
1107
|
-
(n(!0), c(_, null, m(e.fill.donut, (l, r) => (n(), c("circle", {
|
|
1108
|
-
class: "vue-ui-donut-arc-path",
|
|
1109
|
-
cx: l.cx,
|
|
1110
|
-
cy: l.cy,
|
|
1111
|
-
r: 28,
|
|
1112
|
-
fill: `url(#hollow_gradient_${b.value})`
|
|
1113
|
-
}, null, 8, co))), 256)),
|
|
1114
|
-
(n(!0), c(_, null, m(e.fill.donut, (l, r) => (n(), c("circle", {
|
|
1115
|
-
class: "vue-ui-donut-arc-path",
|
|
1116
|
-
cx: l.cx,
|
|
1117
|
-
cy: l.cy,
|
|
1118
|
-
r: 14,
|
|
1119
|
-
fill: t.value.style.chart.backgroundColor
|
|
1120
|
-
}, null, 8, ho))), 256)),
|
|
1121
|
-
(n(!0), c(_, null, m(e.fill.donut, (l, r) => (n(), c("g", null, [
|
|
1122
|
-
W(l, e.fill.donut, !0) > 6 ? (n(), c("g", vo, [
|
|
1123
|
-
d("text", {
|
|
1124
|
-
"text-anchor": u(A)(l, !0, 0).anchor,
|
|
1125
|
-
x: u(A)(l, !0, 2).x,
|
|
1126
|
-
y: u(se)(l, 12, 12),
|
|
1127
|
-
fill: t.value.style.chart.legend.color,
|
|
1128
|
-
"font-size": t.value.style.chart.legend.fontSize / 1.5
|
|
1129
|
-
}, B(u(oe)(
|
|
1130
|
-
t.value.style.chart.dataLabel.formatter,
|
|
1131
|
-
l.value,
|
|
1132
|
-
`${W(l, e.fill.donut)} (${u(D)({
|
|
1133
|
-
p: t.value.style.chart.legend.prefix,
|
|
1134
|
-
v: l.value,
|
|
1135
|
-
s: t.value.style.chart.legend.suffix,
|
|
1136
|
-
r: t.value.style.chart.legend.roundingValue
|
|
1137
|
-
})})`,
|
|
1138
|
-
{ datapoint: l, seriesIndex: r, type: "donutDatapoint" }
|
|
1139
|
-
)), 9, fo),
|
|
1140
|
-
d("text", {
|
|
1141
|
-
"text-anchor": u(A)(l).anchor,
|
|
1142
|
-
x: u(A)(l, !0, 2).x,
|
|
1143
|
-
y: u(se)(l, 12, 12) + t.value.style.chart.legend.fontSize / 1.5,
|
|
1144
|
-
fill: t.value.style.chart.legend.color,
|
|
1145
|
-
"font-size": t.value.style.chart.legend.fontSize / 1.5
|
|
1146
|
-
}, B(l.name), 9, po)
|
|
1147
|
-
])) : y("", !0)
|
|
1148
|
-
]))), 256))
|
|
1149
|
-
])) : y("", !0),
|
|
1150
|
-
e.fill.miniDonut && !x.value ? (n(), c("g", yo, [
|
|
1151
|
-
(n(!0), c(_, null, m(e.fill.miniDonut, (l, r) => (n(), c("path", {
|
|
1152
|
-
class: "vue-ui-donut-arc-path",
|
|
1153
|
-
d: l.arcSlice,
|
|
1154
|
-
fill: `${l.color}`,
|
|
1155
|
-
stroke: t.value.style.chart.backgroundColor,
|
|
1156
|
-
"stroke-width": 0.5
|
|
1157
|
-
}, null, 8, ko))), 256))
|
|
1158
|
-
])) : y("", !0)
|
|
1159
|
-
], 12, eo))), 256))
|
|
1160
|
-
])) : y("", !0)
|
|
1161
|
-
])) : y("", !0),
|
|
1162
|
-
P(a.$slots, "svg", { svg: o.value }, void 0, !0)
|
|
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)
|
|
1166
|
-
])) : y("", !0),
|
|
1167
|
-
X.value ? y("", !0) : (n(), U(u(Ge), {
|
|
1168
|
-
key: 5,
|
|
1169
|
-
config: {
|
|
1170
|
-
type: "bar3d",
|
|
1171
|
-
style: {
|
|
1172
|
-
backgroundColor: t.value.style.chart.backgroundColor,
|
|
1173
|
-
bar3d: {
|
|
1174
|
-
color: "#CCCCCC"
|
|
1175
|
-
}
|
|
1176
|
-
}
|
|
1177
|
-
}
|
|
1178
|
-
}, null, 8, ["config"])),
|
|
1179
|
-
a.$slots.source ? (n(), c("div", $o, [
|
|
1180
|
-
P(a.$slots, "source", {}, void 0, !0)
|
|
1181
|
-
], 512)) : y("", !0),
|
|
1182
|
-
X.value && F.value ? (n(), U(u(Ie), {
|
|
1183
|
-
key: 7,
|
|
1184
|
-
hideDetails: "",
|
|
1185
|
-
config: {
|
|
1186
|
-
open: H.value.showTable,
|
|
1187
|
-
maxHeight: 1e4,
|
|
1188
|
-
body: {
|
|
1189
|
-
backgroundColor: t.value.style.chart.backgroundColor,
|
|
1190
|
-
color: t.value.style.chart.color
|
|
1191
|
-
},
|
|
1192
|
-
head: {
|
|
1193
|
-
backgroundColor: t.value.style.chart.backgroundColor,
|
|
1194
|
-
color: t.value.style.chart.color
|
|
1195
|
-
}
|
|
1196
|
-
}
|
|
1197
|
-
}, {
|
|
1198
|
-
content: T(() => [
|
|
1199
|
-
(n(), U(u(Le), {
|
|
1200
|
-
key: `table_${ce.value}`,
|
|
1201
|
-
colNames: Y.value.colNames,
|
|
1202
|
-
head: Y.value.head,
|
|
1203
|
-
body: Y.value.body,
|
|
1204
|
-
config: Y.value.config,
|
|
1205
|
-
title: `${t.value.style.chart.title.text}${t.value.style.chart.title.subtitle.text ? ` : ${t.value.style.chart.title.subtitle.text}` : ""}`,
|
|
1206
|
-
onClose: s[1] || (s[1] = (e) => H.value.showTable = !1)
|
|
1207
|
-
}, {
|
|
1208
|
-
th: T(({ th: e }) => [
|
|
1209
|
-
d("div", {
|
|
1210
|
-
innerHTML: e,
|
|
1211
|
-
style: { display: "flex", "align-items": "center" }
|
|
1212
|
-
}, null, 8, _o)
|
|
1213
|
-
]),
|
|
1214
|
-
td: T(({ td: e }) => [
|
|
1215
|
-
ot(B(e.name || e), 1)
|
|
1216
|
-
]),
|
|
1217
|
-
_: 1
|
|
1218
|
-
}, 8, ["colNames", "head", "body", "config", "title"]))
|
|
1219
|
-
]),
|
|
1220
|
-
_: 1
|
|
1221
|
-
}, 8, ["config"])) : y("", !0)
|
|
1222
|
-
], 44, _t));
|
|
1223
|
-
}
|
|
1224
|
-
}, To = /* @__PURE__ */ $t(mo, [["__scopeId", "data-v-8adf5842"]]);
|
|
1225
|
-
export {
|
|
1226
|
-
To as default
|
|
1227
|
-
};
|