vue-data-ui 3.0.23 → 3.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{Arrow-B1Op9F3x.js → Arrow-xQM7mBzd.js} +1 -1
- package/dist/{BaseDraggableDialog-B4OaMIom.js → BaseDraggableDialog-B2BQC0-h.js} +72 -59
- package/dist/{BaseIcon-CgUOIGjr.js → BaseIcon-DLesaZpW.js} +1 -1
- package/dist/{useLoading-D7YHNtLX.js → BaseScanner-BgWxam9d.js} +11 -11
- package/dist/{ColorPicker-C0nf8VH0.js → ColorPicker-BKvJvFtX.js} +2 -2
- package/dist/DataTable-BAf4Obr9.js +140 -0
- package/dist/{Legend-CyYXMSsW.js → Legend-8_V5egWW.js} +2 -2
- package/dist/{NonSvgPenAndPaper-D63qeScu.js → NonSvgPenAndPaper-Cq4fHmA0.js} +3 -3
- package/dist/{PackageVersion-B6M-3jRt.js → PackageVersion-Cv_ypT0N.js} +1 -1
- package/dist/{PenAndPaper-zym5uEeN.js → PenAndPaper-B6OvfyHH.js} +3 -3
- package/dist/{Shape-CYVs2kYz.js → Shape-Cjca5zta.js} +1 -1
- package/dist/{Slicer-BTIFUO4x.js → Slicer-6w3K8gAc.js} +2 -2
- package/dist/{SparkTooltip-CNz7AYUL.js → SparkTooltip-BV4Z-NMp.js} +1 -1
- package/dist/{Title-D_e0SFWS.js → Title-Dz-j6ERs.js} +1 -1
- package/dist/{Tooltip-DjVoFYj1.js → Tooltip-BTGOEC7w.js} +1 -1
- package/dist/{UserOptions-z0NWZ7aQ.js → UserOptions-CsDlFB0L.js} +2 -2
- package/dist/{dom-to-png-DD0au3Qz.js → dom-to-png-BOu5-Ohz.js} +1 -1
- package/dist/{img-z5p1gGfY.js → img-gBDz7xQQ.js} +1 -1
- package/dist/{index-BEuUtONc.js → index-BKQqb9lF.js} +37 -2
- package/dist/{pdf-BmUjVBni.js → pdf-Cjsn5GEE.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +35 -0
- package/dist/types/vue-data-ui.d.ts +35 -0
- package/dist/{useAutoSizeLabelsInsideViewbox-CchB8S-o.js → useAutoSizeLabelsInsideViewbox-IO2dh0Uq.js} +1 -1
- package/dist/{useNestedProp-DhLFhguL.js → useNestedProp-aBOhgs4U.js} +1 -1
- package/dist/{usePrinter-DiB0_UNt.js → usePrinter-BzuXiubT.js} +2 -2
- package/dist/useTableResponsive-Cbx-ACcP.js +22 -0
- package/dist/{vue-data-ui-DJIAas-7.js → vue-data-ui-B6eM6hF3.js} +64 -64
- package/dist/vue-data-ui.js +1 -1
- package/dist/vue-ui-3d-bar-DBeWmnvH.js +1369 -0
- package/dist/{vue-ui-accordion-B4YfUjZ5.js → vue-ui-accordion-B5QeV3BK.js} +3 -3
- package/dist/{vue-ui-age-pyramid-CkXXNN79.js → vue-ui-age-pyramid-rZFdUsgz.js} +333 -286
- package/dist/{vue-ui-annotator-DnSsIkvU.js → vue-ui-annotator-CCCuslrT.js} +2 -2
- package/dist/{vue-ui-bullet-kZkBsWPY.js → vue-ui-bullet-DhJf9mvK.js} +8 -8
- package/dist/{vue-ui-candlestick-CIn0xZm0.js → vue-ui-candlestick-CGVtDKqZ.js} +453 -406
- package/dist/{vue-ui-carousel-table-f1FDOAqH.js → vue-ui-carousel-table-DLAR3WY8.js} +4 -4
- package/dist/{vue-ui-chestnut-B-jSj7FT.js → vue-ui-chestnut-BXnSxoXB.js} +563 -520
- package/dist/vue-ui-chord-DH_MwAKX.js +1100 -0
- package/dist/vue-ui-circle-pack-Cx_E1R63.js +755 -0
- package/dist/{vue-ui-cursor-DdBrui6i.js → vue-ui-cursor-CEvH1qDS.js} +2 -2
- package/dist/{vue-ui-dashboard-DSUfW7mI.js → vue-ui-dashboard-CvduVgEy.js} +62 -62
- package/dist/{vue-ui-digits-Cb3Wq5WR.js → vue-ui-digits-PTozKs3l.js} +2 -2
- package/dist/{vue-ui-donut-BCZqlAO3.js → vue-ui-donut-CsEtKJJD.js} +477 -431
- package/dist/{vue-ui-donut-evolution-HmQBq9VP.js → vue-ui-donut-evolution-DD7o-CxF.js} +482 -435
- package/dist/{vue-ui-dumbbell-B5w2oqNO.js → vue-ui-dumbbell-DfPYl3fu.js} +443 -398
- package/dist/vue-ui-flow-CSTTZHwg.js +900 -0
- package/dist/vue-ui-funnel-C-NUZqIo.js +666 -0
- package/dist/vue-ui-galaxy-BwsZnU6T.js +744 -0
- package/dist/{vue-ui-gauge-C_KLPWk2.js → vue-ui-gauge-D9MUneq0.js} +8 -8
- package/dist/{vue-ui-gizmo-CsPX25Ti.js → vue-ui-gizmo-Dnzs9wSf.js} +4 -4
- package/dist/{vue-ui-heatmap-BHq6hBaL.js → vue-ui-heatmap-CYaQIhy8.js} +501 -461
- package/dist/{vue-ui-history-plot-DgpYiaUD.js → vue-ui-history-plot-DMTFzl-_.js} +408 -361
- package/dist/{vue-ui-kpi-DOgibU7W.js → vue-ui-kpi-CkPotdff.js} +3 -3
- package/dist/{vue-ui-mini-loader-BjsQAxDx.js → vue-ui-mini-loader-CCE-bDOJ.js} +2 -2
- package/dist/vue-ui-molecule-DaN5lroq.js +702 -0
- package/dist/{vue-ui-mood-radar-DMwVl3wz.js → vue-ui-mood-radar-tM0mmZh8.js} +342 -291
- package/dist/{vue-ui-nested-donuts-H0GzIAF0.js → vue-ui-nested-donuts-RB4r6beI.js} +548 -502
- package/dist/{vue-ui-onion-A6nKcus1.js → vue-ui-onion-CxDozHg3.js} +363 -317
- package/dist/vue-ui-parallel-coordinate-plot-CK9nNExU.js +979 -0
- package/dist/vue-ui-quadrant-C7tLJYn7.js +1483 -0
- package/dist/{vue-ui-quick-chart-mwXE3w_o.js → vue-ui-quick-chart-MUBAkrHb.js} +7 -7
- package/dist/vue-ui-radar-Br4K80I9.js +858 -0
- package/dist/{vue-ui-rating-CleNHFo5.js → vue-ui-rating-NtvT9r_M.js} +2 -2
- package/dist/{vue-ui-relation-circle-CMCH7Ia6.js → vue-ui-relation-circle-CPQjAy1g.js} +8 -8
- package/dist/vue-ui-ridgeline-C2M_Cjlh.js +1204 -0
- package/dist/vue-ui-rings-DEru-cWN.js +785 -0
- package/dist/{vue-ui-scatter-kv28dsT3.js → vue-ui-scatter-CJKkiKle.js} +594 -548
- package/dist/{vue-ui-skeleton-DCNOYh9x.js → vue-ui-skeleton--twnjS2t.js} +3 -3
- package/dist/{vue-ui-smiley-DcS0CM-z.js → vue-ui-smiley-CNccdPZ7.js} +2 -2
- package/dist/{vue-ui-spark-trend-LHgReXth.js → vue-ui-spark-trend-9BFkkC0u.js} +4 -4
- package/dist/{vue-ui-sparkbar-Da315uRq.js → vue-ui-sparkbar-RYAThoA4.js} +4 -4
- package/dist/{vue-ui-sparkgauge-BeAkjGap.js → vue-ui-sparkgauge-DkPlmgMF.js} +4 -4
- package/dist/{vue-ui-sparkhistogram-Cy19W3y1.js → vue-ui-sparkhistogram-6EkCyYRF.js} +5 -5
- package/dist/{vue-ui-sparkline-IjlQWgs3.js → vue-ui-sparkline-Bl3nj8zd.js} +4 -4
- package/dist/{vue-ui-sparkstackbar-CoFgOa3r.js → vue-ui-sparkstackbar-B88lA7iy.js} +4 -4
- package/dist/{vue-ui-stackbar-fbCs4sHF.js → vue-ui-stackbar-Csj7NhT6.js} +525 -479
- package/dist/{vue-ui-strip-plot-Cm8Zr6RE.js → vue-ui-strip-plot-yY9NsUUI.js} +390 -343
- package/dist/{vue-ui-table-q7jWgS26.js → vue-ui-table-Dg6U31ex.js} +3 -3
- package/dist/{vue-ui-table-heatmap-CsK9gR1G.js → vue-ui-table-heatmap-BWU7CAWP.js} +5 -5
- package/dist/{vue-ui-table-sparkline-CXTPucPr.js → vue-ui-table-sparkline-DV4Y9aRL.js} +4 -4
- package/dist/{vue-ui-thermometer-BFxdNgrd.js → vue-ui-thermometer-C3fKamV-.js} +8 -8
- package/dist/{vue-ui-timer-BsoeDFjK.js → vue-ui-timer-6VAK9XyF.js} +5 -5
- package/dist/{vue-ui-tiremarks-BW_jSayT.js → vue-ui-tiremarks-BB-KAkF7.js} +7 -7
- package/dist/vue-ui-treemap-GrXkD_3Z.js +1092 -0
- package/dist/{vue-ui-vertical-bar-OrLV4CxH.js → vue-ui-vertical-bar-Mmz6u4aX.js} +504 -461
- package/dist/{vue-ui-waffle-BA6rNfVs.js → vue-ui-waffle-DzPVRUOA.js} +416 -370
- package/dist/{vue-ui-wheel-B_BkI-5f.js → vue-ui-wheel-idRCvS5t.js} +7 -7
- package/dist/vue-ui-word-cloud-B2641uNP.js +811 -0
- package/dist/{vue-ui-world-B4mKuSSn.js → vue-ui-world-D6s5Eph8.js} +512 -466
- package/dist/{vue-ui-xy-m1SWJk77.js → vue-ui-xy-BKTGSvfU.js} +1551 -1500
- package/dist/vue-ui-xy-canvas-BOQyxVRl.js +1291 -0
- package/package.json +1 -1
- package/dist/DataTable-nO6ydJO2.js +0 -133
- package/dist/vue-ui-3d-bar-B56WqLJ-.js +0 -1323
- package/dist/vue-ui-chord-Ck4yV3Tb.js +0 -1049
- package/dist/vue-ui-circle-pack-BAfRk_Hd.js +0 -709
- package/dist/vue-ui-flow-BXkxtUoF.js +0 -852
- package/dist/vue-ui-funnel-DFvDO--q.js +0 -620
- package/dist/vue-ui-galaxy-BXNLLc3U.js +0 -691
- package/dist/vue-ui-molecule-BtyMTwEn.js +0 -656
- package/dist/vue-ui-parallel-coordinate-plot-DZ9_0F5c.js +0 -927
- package/dist/vue-ui-quadrant-CUggSeUN.js +0 -1432
- package/dist/vue-ui-radar-BRKZ8e_X.js +0 -807
- package/dist/vue-ui-ridgeline-xW7UrSfR.js +0 -1157
- package/dist/vue-ui-rings-D3NfFMaO.js +0 -739
- package/dist/vue-ui-treemap-DhAYSVB9.js +0 -1046
- package/dist/vue-ui-word-cloud-CrSLGFOK.js +0 -765
- package/dist/vue-ui-xy-canvas-CX2JT6T3.js +0 -1243
|
@@ -1,1323 +0,0 @@
|
|
|
1
|
-
import { defineAsyncComponent as te, computed as S, ref as b, toRefs as yt, watch as Re, onMounted as kt, createElementBlock as c, openBlock as u, unref as n, normalizeStyle as I, normalizeClass as Ve, createBlock as J, createCommentVNode as p, createSlots as gt, withCtx as D, renderSlot as T, normalizeProps as re, guardReactiveProps as ue, createVNode as $t, createElementVNode as i, Fragment as C, renderList as M, toDisplayString as E, withKeys as He, withModifiers as Ue, mergeProps as Xe, createTextVNode as _t, nextTick as Ze } from "vue";
|
|
2
|
-
import { u as mt, c as qe, t as bt, a as xt, p as ie, b as wt, d as Ct, e as Mt, o as Ft, f as de, g as $e, l as W, m as Ye, h as Pt, i as j, X as Tt, s as $, j as H, k as ce, n as Ke, q as ve, r as G, v as At, w as St } from "./index-BEuUtONc.js";
|
|
3
|
-
import { u as Je } from "./useNestedProp-DhLFhguL.js";
|
|
4
|
-
import { u as Dt } from "./usePrinter-DiB0_UNt.js";
|
|
5
|
-
import { u as jt } from "./useUserOptionState-BIvW1Kz7.js";
|
|
6
|
-
import { u as zt } from "./useChartAccessibility-9icAAmYg.js";
|
|
7
|
-
import Ot from "./Title-D_e0SFWS.js";
|
|
8
|
-
import It from "./img-z5p1gGfY.js";
|
|
9
|
-
import { t as Nt, u as Bt } from "./useResponsive-DfdjqQps.js";
|
|
10
|
-
import { u as Lt, B as Et } from "./useLoading-D7YHNtLX.js";
|
|
11
|
-
import { _ as Wt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
12
|
-
const Gt = ["id"], Rt = ["xmlns", "viewBox"], Vt = ["width", "height"], Ht = ["id"], Ut = ["stop-color"], Xt = ["stop-color"], Zt = ["id"], qt = ["stop-color"], Yt = ["stop-color"], Kt = ["id"], Jt = ["stop-color"], Qt = ["stop-color"], el = ["id"], tl = ["stop-color"], ll = ["stop-color"], ol = ["id"], sl = ["stop-color"], al = ["stop-color"], nl = ["stop-color"], rl = ["stop-color"], ul = ["stop-color"], il = { key: 1 }, dl = ["id"], cl = ["stop-color"], vl = ["stop-color"], hl = ["id"], fl = ["stop-color"], pl = ["stop-color"], yl = ["id"], kl = ["stop-color"], gl = ["stop-color"], $l = ["id"], _l = ["x", "y", "font-size", "font-weight", "fill"], ml = ["x", "y"], bl = ["cx", "cy", "stroke", "opacity"], xl = ["d", "stroke"], wl = ["d", "stroke"], Cl = { key: 4 }, Ml = { key: 0 }, Fl = ["stroke-dasharray", "d", "stroke", "stroke-width"], Pl = ["stroke-dasharray", "d", "stroke", "stroke-width"], Tl = ["stroke-dasharray", "d", "stroke", "stroke-width"], Al = ["stroke-dasharray", "d", "stroke", "stroke-width"], Sl = { key: 1 }, Dl = ["d", "stroke", "stroke-width", "fill"], jl = ["d", "stroke", "stroke-width", "fill"], zl = ["d", "stroke", "stroke-width", "fill"], Ol = { key: 2 }, Il = ["d", "fill", "onMouseenter", "onClick", "onMouseout"], Nl = ["d", "fill", "onMouseenter", "onClick", "onMouseout"], Bl = ["d", "fill", "onMouseenter", "onClick", "onMouseout"], Ll = ["d", "onMouseenter", "onClick", "onMouseout"], El = ["d"], Wl = ["d", "stroke"], Gl = ["onClick"], Rl = ["stroke", "d"], Vl = ["cx", "cy", "fill", "stroke"], Hl = ["x", "y", "width", "height"], Ul = ["x", "y", "width", "height"], Xl = { key: 3 }, Zl = ["d", "stroke"], ql = ["d", "fill", "stroke"], Yl = { key: 0 }, Kl = ["text-anchor", "x", "y", "fill", "font-size"], Jl = ["text-anchor", "x", "y", "fill", "font-size"], Ql = { key: 4 }, eo = ["d", "fill", "stroke"], to = { key: 5 }, lo = { key: 0 }, oo = ["stroke-dasharray", "d", "stroke", "stroke-width"], so = ["stroke-dasharray", "d", "stroke", "stroke-width"], ao = ["stroke-dasharray", "d", "stroke", "stroke-width"], no = ["stroke-dasharray", "d", "stroke", "stroke-width"], ro = ["d", "stroke", "stroke-width", "fill"], uo = ["d", "stroke", "stroke-width", "fill"], io = ["d"], co = { key: 1 }, vo = ["onClick"], ho = ["id"], fo = ["stop-color"], po = ["stop-color"], yo = ["id"], ko = ["stop-color"], go = ["stop-color"], $o = ["stop-color"], _o = ["stop-color"], mo = ["stop-color"], bo = ["onMouseenter", "onClick", "onMouseout", "d", "fill"], xo = ["onMouseenter", "onClick", "onMouseout", "d"], wo = ["onMouseenter", "onClick", "onMouseout", "d", "fill"], Co = ["onClick"], Mo = ["stroke", "d"], Fo = ["cx", "cy", "fill", "stroke"], Po = ["x", "y", "width", "height"], To = ["x", "y", "width", "height"], Ao = { key: 3 }, So = ["d", "stroke"], Do = ["d", "fill", "stroke"], jo = { key: 0 }, zo = ["text-anchor", "x", "y", "fill", "font-size"], Oo = ["text-anchor", "x", "y", "fill", "font-size"], Io = { key: 4 }, No = ["d", "fill", "stroke"], Bo = {
|
|
13
|
-
key: 3,
|
|
14
|
-
class: "vue-data-ui-watermark"
|
|
15
|
-
}, Lo = ["innerHTML"], Eo = {
|
|
16
|
-
__name: "vue-ui-3d-bar",
|
|
17
|
-
props: {
|
|
18
|
-
config: {
|
|
19
|
-
type: Object,
|
|
20
|
-
default() {
|
|
21
|
-
return {};
|
|
22
|
-
}
|
|
23
|
-
},
|
|
24
|
-
dataset: {
|
|
25
|
-
type: Object,
|
|
26
|
-
default() {
|
|
27
|
-
return {};
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
},
|
|
31
|
-
emits: ["selectDatapoint"],
|
|
32
|
-
setup(Qe, { expose: et, emit: tt }) {
|
|
33
|
-
const lt = te(() => import("./vue-ui-accordion-B4YfUjZ5.js")), ot = te(() => import("./DataTable-nO6ydJO2.js")), st = te(() => import("./PackageVersion-B6M-3jRt.js")), at = te(() => import("./PenAndPaper-zym5uEeN.js")), nt = te(() => import("./UserOptions-z0NWZ7aQ.js")), { vue_ui_3d_bar: rt } = mt(), A = Qe, le = tt, _e = S(() => !!A.dataset && Object.keys(A.dataset).length), F = b(qe()), ut = b(null), R = b(null), z = b(!1), me = b(0), be = b(0), xe = b(null), Q = b(null), oe = b(null), we = b(null), ee = b(!1), t = b(fe()), { loading: U, FINAL_DATASET: O } = Lt({
|
|
34
|
-
...yt(A),
|
|
35
|
-
FINAL_CONFIG: t,
|
|
36
|
-
prepareConfig: fe,
|
|
37
|
-
callback: () => {
|
|
38
|
-
Promise.resolve().then(async () => {
|
|
39
|
-
await Ze(), je();
|
|
40
|
-
});
|
|
41
|
-
},
|
|
42
|
-
skeletonDataset: {
|
|
43
|
-
series: [
|
|
44
|
-
{
|
|
45
|
-
name: "_",
|
|
46
|
-
value: 21,
|
|
47
|
-
breakdown: [
|
|
48
|
-
{ name: "_", value: 13 },
|
|
49
|
-
{ name: "_", value: 8 }
|
|
50
|
-
]
|
|
51
|
-
},
|
|
52
|
-
{
|
|
53
|
-
name: "_",
|
|
54
|
-
value: 13,
|
|
55
|
-
breakdown: [
|
|
56
|
-
{ name: "_", value: 8 },
|
|
57
|
-
{ name: "_", value: 5 }
|
|
58
|
-
]
|
|
59
|
-
},
|
|
60
|
-
{
|
|
61
|
-
name: "_",
|
|
62
|
-
value: 8,
|
|
63
|
-
breakdown: [
|
|
64
|
-
{ name: "_", value: 5 },
|
|
65
|
-
{ name: "_", value: 3 }
|
|
66
|
-
]
|
|
67
|
-
}
|
|
68
|
-
]
|
|
69
|
-
},
|
|
70
|
-
skeletonConfig: bt({
|
|
71
|
-
defaultConfig: t.value,
|
|
72
|
-
userConfig: {
|
|
73
|
-
customPalette: ["#808080", "#ADADAD", "#DBDBDB"],
|
|
74
|
-
userOptions: { show: !1 },
|
|
75
|
-
table: { show: !1 },
|
|
76
|
-
style: {
|
|
77
|
-
chart: {
|
|
78
|
-
backgroundColor: "#99999930",
|
|
79
|
-
color: "#6A6A6A",
|
|
80
|
-
bar: {
|
|
81
|
-
color: "#ADADAD",
|
|
82
|
-
stroke: "#6A6A6A"
|
|
83
|
-
},
|
|
84
|
-
box: {
|
|
85
|
-
stroke: "#6A6A6A"
|
|
86
|
-
}
|
|
87
|
-
}
|
|
88
|
-
}
|
|
89
|
-
}
|
|
90
|
-
})
|
|
91
|
-
}), { userOptionsVisible: he, setUserOptionsVisibility: Ce, keepUserOptionState: Me } = jt({ config: t.value }), { svgRef: Fe } = zt({ config: t.value.style.chart.title });
|
|
92
|
-
function fe() {
|
|
93
|
-
const a = Je({
|
|
94
|
-
userConfig: A.config,
|
|
95
|
-
defaultConfig: rt
|
|
96
|
-
});
|
|
97
|
-
return a.theme ? {
|
|
98
|
-
...Je({
|
|
99
|
-
userConfig: wt.vue_ui_3d_bar[a.theme] || A.config,
|
|
100
|
-
defaultConfig: a
|
|
101
|
-
}),
|
|
102
|
-
customPalette: xt[a.theme] || ie
|
|
103
|
-
} : a;
|
|
104
|
-
}
|
|
105
|
-
Re(() => A.config, (a) => {
|
|
106
|
-
U.value || (t.value = fe()), he.value = !t.value.userOptions.showOnChartHover, ze(), me.value += 1, be.value += 1, X.value.showTable = t.value.table.show;
|
|
107
|
-
}, { deep: !0 });
|
|
108
|
-
const { isPrinting: Pe, isImaging: Te, generatePdf: Ae, generateImage: Se } = Dt({
|
|
109
|
-
elementId: `3d_bar_${F.value}`,
|
|
110
|
-
fileName: t.value.style.chart.title.text || "vue-ui-3d-bar",
|
|
111
|
-
options: t.value.userOptions.print
|
|
112
|
-
}), it = S(() => Ct(t.value.customPalette)), X = b({
|
|
113
|
-
showTable: t.value.table.show
|
|
114
|
-
});
|
|
115
|
-
Re(t, () => {
|
|
116
|
-
X.value = {
|
|
117
|
-
showTable: t.value.table.show
|
|
118
|
-
};
|
|
119
|
-
}, { immediate: !0 });
|
|
120
|
-
const x = S(() => O.value.series && O.value.series.length), pe = b(t.value.style.chart.box.dimensions.width * (x.value ? 2 : 1)), De = b(t.value.style.chart.box.dimensions.height), o = S(() => ({
|
|
121
|
-
height: De.value,
|
|
122
|
-
width: pe.value,
|
|
123
|
-
absoluteWidth: pe.value,
|
|
124
|
-
top: t.value.style.chart.box.dimensions.top,
|
|
125
|
-
bottom: t.value.style.chart.box.dimensions.bottom,
|
|
126
|
-
left: t.value.style.chart.box.dimensions.left,
|
|
127
|
-
right: t.value.style.chart.box.dimensions.right,
|
|
128
|
-
perspective: t.value.style.chart.box.dimensions.perspective
|
|
129
|
-
})), w = S(() => {
|
|
130
|
-
if (x.value) {
|
|
131
|
-
const a = O.value.series.map((l) => l.value || 0).reduce((l, d) => l + d, 0), s = O.value.series.map((l, d) => ({
|
|
132
|
-
...l,
|
|
133
|
-
seriesIndex: d,
|
|
134
|
-
id: qe(),
|
|
135
|
-
proportion: (l.value || 0) / a,
|
|
136
|
-
color: Mt(l.color) || it.value[d] || ie[d] || ie[d % ie.length],
|
|
137
|
-
breakdown: l.breakdown ? l.breakdown.sort((r, k) => k.value - r.value) : null
|
|
138
|
-
})).sort((l, d) => d.value - l.value), e = [];
|
|
139
|
-
let v = 0;
|
|
140
|
-
for (let l = 0; l < s.length; l += 1)
|
|
141
|
-
e.push({
|
|
142
|
-
...s[l],
|
|
143
|
-
fill: dt(v, s[l].proportion, s[l].breakdown, s[l].color)
|
|
144
|
-
}), v += s[l].proportion;
|
|
145
|
-
return e;
|
|
146
|
-
}
|
|
147
|
-
return null;
|
|
148
|
-
}), N = S(() => {
|
|
149
|
-
const a = o.value.width / 2;
|
|
150
|
-
return {
|
|
151
|
-
right: `M${a},${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} ${a},${o.value.height - o.value.bottom}`,
|
|
152
|
-
left: `M${a},${o.value.top} ${o.value.left},${o.value.top + o.value.perspective} ${o.value.left},${o.value.height - o.value.bottom - o.value.perspective} ${a},${o.value.height - o.value.bottom}`,
|
|
153
|
-
side: `M${a},${o.value.height - o.value.bottom} ${a},${o.value.top + o.value.perspective * 2}`,
|
|
154
|
-
topSides: `M${o.value.left},${o.value.top + o.value.perspective} ${a},${o.value.top + o.value.perspective * 2} ${o.value.width - o.value.right},${o.value.top + o.value.perspective}`,
|
|
155
|
-
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}`,
|
|
156
|
-
tubeLeft: `M${o.value.left},${o.value.top + o.value.perspective} ${o.value.left},${o.value.height - o.value.bottom - o.value.perspective}`,
|
|
157
|
-
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}`,
|
|
158
|
-
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}`
|
|
159
|
-
};
|
|
160
|
-
}), Z = b(t.value.style.chart.animation.use ? 0 : O.value.percentage);
|
|
161
|
-
function je() {
|
|
162
|
-
let a = 0, s = t.value.style.chart.animation.speed, e = 5e-3 * t.value.style.chart.animation.acceleration;
|
|
163
|
-
function v() {
|
|
164
|
-
Z.value += s + a, a += e, Z.value < O.value.percentage ? requestAnimationFrame(v) : Z.value = O.value.percentage;
|
|
165
|
-
}
|
|
166
|
-
t.value.style.chart.animation.use && (Z.value = 0, v());
|
|
167
|
-
}
|
|
168
|
-
kt(() => {
|
|
169
|
-
ze(), je();
|
|
170
|
-
});
|
|
171
|
-
const se = S(() => !!t.value.debug);
|
|
172
|
-
function ze() {
|
|
173
|
-
if (Ft(A.dataset) ? de({
|
|
174
|
-
componentName: "VueUi3dBar",
|
|
175
|
-
type: "dataset",
|
|
176
|
-
debug: se.value
|
|
177
|
-
}) : A.dataset.series ? A.dataset.series.forEach((a, s) => {
|
|
178
|
-
$e({
|
|
179
|
-
datasetObject: a,
|
|
180
|
-
requiredAttributes: ["name", "value"]
|
|
181
|
-
}).forEach((e) => {
|
|
182
|
-
de({
|
|
183
|
-
componentName: "VueUi3dBar",
|
|
184
|
-
type: "datasetSerieAttribute",
|
|
185
|
-
property: e,
|
|
186
|
-
index: s,
|
|
187
|
-
debug: se.value
|
|
188
|
-
});
|
|
189
|
-
}), a.breakdown && a.breakdown.forEach((e, v) => {
|
|
190
|
-
$e({
|
|
191
|
-
datasetObject: e,
|
|
192
|
-
requiredAttributes: ["name", "value"]
|
|
193
|
-
}).forEach((l) => {
|
|
194
|
-
de({
|
|
195
|
-
componentName: "VueUi3dBar",
|
|
196
|
-
type: "datasetSerieAttribute",
|
|
197
|
-
property: l,
|
|
198
|
-
index: `${s} - ${v}`,
|
|
199
|
-
debug: se.value
|
|
200
|
-
});
|
|
201
|
-
});
|
|
202
|
-
});
|
|
203
|
-
}) : $e({
|
|
204
|
-
datasetObject: A.dataset,
|
|
205
|
-
requiredAttributes: ["percentage"]
|
|
206
|
-
}).forEach((a) => {
|
|
207
|
-
de({
|
|
208
|
-
componentName: "VueUi3dBar",
|
|
209
|
-
type: "datasetAttribute",
|
|
210
|
-
property: a,
|
|
211
|
-
debug: se.value
|
|
212
|
-
});
|
|
213
|
-
}), t.value.responsive) {
|
|
214
|
-
const a = Nt(() => {
|
|
215
|
-
const { width: s, height: e } = Bt({
|
|
216
|
-
chart: R.value,
|
|
217
|
-
title: t.value.style.chart.title.text ? xe.value : null,
|
|
218
|
-
source: we.value
|
|
219
|
-
});
|
|
220
|
-
requestAnimationFrame(() => {
|
|
221
|
-
De.value = e - 12, pe.value = s;
|
|
222
|
-
});
|
|
223
|
-
});
|
|
224
|
-
Q.value && (oe.value && Q.value.unobserve(oe.value), Q.value.disconnect()), Q.value = new ResizeObserver(a), oe.value = R.value.parentNode, Q.value.observe(oe.value);
|
|
225
|
-
}
|
|
226
|
-
}
|
|
227
|
-
const q = S(() => o.value.width / 4);
|
|
228
|
-
function dt(a, s, e, v) {
|
|
229
|
-
const l = o.value.height - o.value.bottom - o.value.top - o.value.perspective * 2, { width: d, height: r, bottom: k, right: L, left: g, perspective: y } = o.value, f = x.value ? d / 4 : d / 2, m = f * 2 + g, h = k + l * a, ge = r - h - y - l * s / 2, ht = ge > o.value.height / 2 ? "top" : "bottom", Le = r * 0.25, ft = !!e;
|
|
230
|
-
let Ee = null, We = null;
|
|
231
|
-
return ft && (e = e.map((Ge, pt) => ({
|
|
232
|
-
...Ge,
|
|
233
|
-
value: Ge.value || 0,
|
|
234
|
-
color: W(v, pt / e.length)
|
|
235
|
-
})), Ee = Ye(
|
|
236
|
-
{ series: e },
|
|
237
|
-
d / 2 + d / 5,
|
|
238
|
-
ht === "top" ? ge - Le : ge + Le,
|
|
239
|
-
d / 10,
|
|
240
|
-
d / 10,
|
|
241
|
-
1.99999,
|
|
242
|
-
2,
|
|
243
|
-
1,
|
|
244
|
-
360,
|
|
245
|
-
105.25,
|
|
246
|
-
d / 20
|
|
247
|
-
), We = Ye(
|
|
248
|
-
{ series: e },
|
|
249
|
-
d - m + d / 14,
|
|
250
|
-
r - h - y - l * s / 2,
|
|
251
|
-
d / 40,
|
|
252
|
-
d / 40,
|
|
253
|
-
1.99999,
|
|
254
|
-
2,
|
|
255
|
-
1,
|
|
256
|
-
360,
|
|
257
|
-
105.25,
|
|
258
|
-
d / 40
|
|
259
|
-
)), {
|
|
260
|
-
donut: Ee,
|
|
261
|
-
miniDonut: We,
|
|
262
|
-
donutR: d / 20,
|
|
263
|
-
CENTER_X: f,
|
|
264
|
-
sidePointer: {
|
|
265
|
-
x: d - m,
|
|
266
|
-
x2: d - m + d / 14,
|
|
267
|
-
xText: d - m + d / 9,
|
|
268
|
-
y: r - h - y - l * s / 2,
|
|
269
|
-
topY: r - h - y - l * s,
|
|
270
|
-
height: l * s
|
|
271
|
-
},
|
|
272
|
-
apexBottom: { y: r - h, x: f },
|
|
273
|
-
apexTop: { y: r - h - l * s, x: f },
|
|
274
|
-
right: `M${f},${r - h} ${f},${r - h - l * s} ${d - m},${r - h - y - l * s} ${d - m},${r - h - y}Z`,
|
|
275
|
-
left: `M${f},${r - h} ${f},${r - h - l * s} ${g}, ${r - h - y - l * s} ${g},${r - h - y}Z`,
|
|
276
|
-
liningTop: `M${g},${r - h - y - l * s} ${f},${r - h - l * s} ${d - m},${r - h - y - l * s}`,
|
|
277
|
-
liningTopShade: `M${g},${r - h - y - l * s - 0.5} ${f},${r - h - l * s - 0.5} ${d - m},${r - h - y - l * s - 0.5}`,
|
|
278
|
-
top: `M${f},${r - h - l * s} ${g},${r - h - y - l * s} ${f},${r - h - y * 2 - l * s} ${d - m},${r - h - y - l * s} Z`,
|
|
279
|
-
tubeTop: `M${g},${r - h - l * s - y} C ${g},${r - h - l * s - y * 2.5} ${d - m},${r - h - l * s - y * 2.5} ${d - m},${r - h - l * s - y} C ${d - m},${r - h - l * s + y / 2} ${g},${r - h - l * s + y / 2} ${g},${r - h - l * s - y}`,
|
|
280
|
-
bottomTubeTop: `M ${d - m - 0.5},${r - h - y} C ${d - m - 0.5},${r - h + y / 2} ${g},${r - h + y / 2} ${g + 0.5},${r - h - y}`,
|
|
281
|
-
tubeBody: `M
|
|
282
|
-
${g},${r - h - l * s - y}
|
|
283
|
-
C ${g},${r - h - l * s + y / 2}
|
|
284
|
-
${d - m},${r - h - l * s + y / 2}
|
|
285
|
-
${d - m},${r - h - l * s - y}
|
|
286
|
-
L${d - m},${r - h - y}
|
|
287
|
-
C
|
|
288
|
-
${d - m},${r - h + y / 2}
|
|
289
|
-
${g},${r - h + y / 2}
|
|
290
|
-
${g},${r - h - y}Z`
|
|
291
|
-
};
|
|
292
|
-
}
|
|
293
|
-
const Y = S(() => {
|
|
294
|
-
const a = Pt(Z.value / 100), s = o.value.height - o.value.bottom - o.value.top - o.value.perspective * 2, { width: e, height: v, bottom: l, right: d, left: r, perspective: k } = o.value, L = x.value ? e / 4 : e / 2, g = x.value ? L * 2 + r : d, f = l + s * 0;
|
|
295
|
-
return {
|
|
296
|
-
right: `M${L},${v - f} ${L},${v - f - s * a} ${e - g},${v - f - k - s * a} ${e - g},${v - f - k}Z`,
|
|
297
|
-
left: `M${L},${v - f} ${L},${v - f - s * a} ${r}, ${v - f - k - s * a} ${r},${v - f - k}Z`,
|
|
298
|
-
top: `M${L},${v - f - s * a} ${r},${v - f - k - s * a} ${L},${v - f - k * 2 - s * a} ${e - g},${v - f - k - s * a} Z`,
|
|
299
|
-
tubeTop: `M${r},${v - f - s * a - k} C ${r},${v - f - s * a - k * 2.5} ${e - g},${v - f - s * a - k * 2.5} ${e - g},${v - f - s * a - k} C ${e - g},${v - f - s * a + k / 2} ${r},${v - f - s * a + k / 2} ${r},${v - f - s * a - k}`,
|
|
300
|
-
tubeBody: `M
|
|
301
|
-
${r},${v - f - s * a - k}
|
|
302
|
-
C ${r},${v - f - s * a + k / 2}
|
|
303
|
-
${e - g},${v - f - s * a + k / 2}
|
|
304
|
-
${e - g},${v - f - s * a - k}
|
|
305
|
-
L${e - g},${v - k * 1.5}
|
|
306
|
-
C
|
|
307
|
-
${e - g},${v}
|
|
308
|
-
${r},${v}
|
|
309
|
-
${r},${v - f - k}Z`
|
|
310
|
-
};
|
|
311
|
-
}), _ = b(null);
|
|
312
|
-
function P(a, s = !1) {
|
|
313
|
-
t.value.events.datapointEnter && !s && t.value.events.datapointEnter({ datapoint: a, seriesIndex: a.seriesIndex }), t.value.events.datapointClick && s && t.value.events.datapointClick({ datapoint: a, seriesIndex: a.seriesIndex }), le("selectDatapoint", a), s || (_.value = a.id), s && z.value && (z.value = !1), s && !z.value && (z.value = !0);
|
|
314
|
-
}
|
|
315
|
-
function V(a) {
|
|
316
|
-
t.value.events.datapointLeave && t.value.events.datapointLeave({ datapoint: a, seriesIndex: a.seriesIndex }), !z.value && (_.value = null);
|
|
317
|
-
}
|
|
318
|
-
function K(a, s, e = !1) {
|
|
319
|
-
const v = O.value.series.map((r) => r.value || 0).reduce((r, k) => r + k, 0), l = isNaN(a.value / v) ? 0 : a.value / v * 100, d = isNaN(a.value / Oe(s)) ? 0 : a.value / Oe(s) * 100;
|
|
320
|
-
return e ? d : l.toFixed(0) + "%";
|
|
321
|
-
}
|
|
322
|
-
function Oe(a) {
|
|
323
|
-
return [...a].map((s) => s.value).reduce((s, e) => s + e, 0);
|
|
324
|
-
}
|
|
325
|
-
const ye = b(!1);
|
|
326
|
-
function Ie(a) {
|
|
327
|
-
ye.value = a;
|
|
328
|
-
}
|
|
329
|
-
function ct() {
|
|
330
|
-
return x.value ? w.value : O.value.percentage;
|
|
331
|
-
}
|
|
332
|
-
const B = S(() => {
|
|
333
|
-
if (x.value) {
|
|
334
|
-
const a = w.value.flatMap((e) => e.breakdown && e.breakdown.length ? [{ name: e.name, color: e.color }, ...e.breakdown.map((v, l) => ({
|
|
335
|
-
name: v.name,
|
|
336
|
-
color: W(e.color, l / e.breakdown.length)
|
|
337
|
-
}))] : {
|
|
338
|
-
name: e.name,
|
|
339
|
-
color: e.color
|
|
340
|
-
}), s = w.value.flatMap((e) => e.breakdown && e.breakdown.length ? [e.value, ...e.breakdown.map((v) => v.value)] : e.value);
|
|
341
|
-
return { head: a, body: s };
|
|
342
|
-
} else
|
|
343
|
-
return null;
|
|
344
|
-
});
|
|
345
|
-
function Ne(a = null) {
|
|
346
|
-
if (!x.value) {
|
|
347
|
-
console.warn("VueUi3dBar : CSV download is only available in stack mode (providing dataset.series instead of dataset.percentage)");
|
|
348
|
-
return;
|
|
349
|
-
}
|
|
350
|
-
Ze(() => {
|
|
351
|
-
const s = w.value.map((d) => d.value).reduce((d, r) => d + r, 0), e = B.value.head.map((d, r) => [[
|
|
352
|
-
d.name
|
|
353
|
-
], [B.value.body[r]], [isNaN(B.value.body[r] / s) ? "-" : B.value.body[r] / s * 100]]), v = [[t.value.style.chart.title.text], [t.value.style.chart.title.subtitle.text], [[""], ["val"], ["%"]]].concat(e), l = At(v);
|
|
354
|
-
a ? a(l) : St({ csvContent: l, title: t.value.style.chart.title.text || "vue-ui-3d-bar" });
|
|
355
|
-
});
|
|
356
|
-
}
|
|
357
|
-
const ae = S(() => {
|
|
358
|
-
const a = w.value.map((d) => d.value).reduce((d, r) => d + r, 0), s = [
|
|
359
|
-
' <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>',
|
|
360
|
-
j({ p: t.value.style.chart.legend.prefix, v: a, s: t.value.style.chart.legend.suffix, r: t.value.table.td.roundingValue }),
|
|
361
|
-
"100%"
|
|
362
|
-
], e = B.value.head.map((d, r) => {
|
|
363
|
-
const k = j({ p: t.value.style.chart.legend.prefix, v: B.value.body[r], s: t.value.style.chart.legend.suffix, r: t.value.table.td.roundingValue });
|
|
364
|
-
return [
|
|
365
|
-
{
|
|
366
|
-
color: d.color,
|
|
367
|
-
name: d.name
|
|
368
|
-
},
|
|
369
|
-
k,
|
|
370
|
-
isNaN(B.value.body[r] / a) ? "-" : j({
|
|
371
|
-
v: B.value.body[r] / a * 100,
|
|
372
|
-
s: "%",
|
|
373
|
-
r: t.value.table.td.roundingPercentage
|
|
374
|
-
})
|
|
375
|
-
];
|
|
376
|
-
}), v = {
|
|
377
|
-
th: {
|
|
378
|
-
backgroundColor: t.value.table.th.backgroundColor,
|
|
379
|
-
color: t.value.table.th.color,
|
|
380
|
-
outline: t.value.table.th.outline
|
|
381
|
-
},
|
|
382
|
-
td: {
|
|
383
|
-
backgroundColor: t.value.table.td.backgroundColor,
|
|
384
|
-
color: t.value.table.td.color,
|
|
385
|
-
outline: t.value.table.td.outline
|
|
386
|
-
},
|
|
387
|
-
breakpoint: t.value.table.responsiveBreakpoint,
|
|
388
|
-
shape: t.value.style.shape === "tube" ? "circle" : "square"
|
|
389
|
-
};
|
|
390
|
-
return {
|
|
391
|
-
colNames: [
|
|
392
|
-
t.value.table.columnNames.series,
|
|
393
|
-
t.value.table.columnNames.value,
|
|
394
|
-
t.value.table.columnNames.percentage
|
|
395
|
-
],
|
|
396
|
-
head: s,
|
|
397
|
-
body: e,
|
|
398
|
-
config: v
|
|
399
|
-
};
|
|
400
|
-
});
|
|
401
|
-
function Be() {
|
|
402
|
-
X.value.showTable = !X.value.showTable;
|
|
403
|
-
}
|
|
404
|
-
const ne = b(!1);
|
|
405
|
-
function ke() {
|
|
406
|
-
ne.value = !ne.value;
|
|
407
|
-
}
|
|
408
|
-
async function vt({ scale: a = 2 } = {}) {
|
|
409
|
-
if (!R.value) return;
|
|
410
|
-
const { width: s, height: e } = R.value.getBoundingClientRect(), v = s / e, { imageUri: l, base64: d } = await It({ domElement: R.value, base64: !0, img: !0, scale: a });
|
|
411
|
-
return {
|
|
412
|
-
imageUri: l,
|
|
413
|
-
base64: d,
|
|
414
|
-
title: t.value.style.chart.title.text,
|
|
415
|
-
width: s,
|
|
416
|
-
height: e,
|
|
417
|
-
aspectRatio: v
|
|
418
|
-
};
|
|
419
|
-
}
|
|
420
|
-
return et({
|
|
421
|
-
getImage: vt,
|
|
422
|
-
generateCsv: Ne,
|
|
423
|
-
generatePdf: Ae,
|
|
424
|
-
generateImage: Se,
|
|
425
|
-
getData: ct,
|
|
426
|
-
toggleTable: Be,
|
|
427
|
-
toggleAnnotator: ke,
|
|
428
|
-
toggleFullscreen: Ie
|
|
429
|
-
}), (a, s) => (u(), c("div", {
|
|
430
|
-
ref_key: "bar3dChart",
|
|
431
|
-
ref: R,
|
|
432
|
-
class: Ve("vue-ui-3d-bar"),
|
|
433
|
-
style: I(`font-family:${t.value.style.fontFamily};width:100%; text-align:center;background:${t.value.style.chart.backgroundColor}`),
|
|
434
|
-
id: `3d_bar_${F.value}`,
|
|
435
|
-
onMouseenter: s[8] || (s[8] = () => n(Ce)(!0)),
|
|
436
|
-
onMouseleave: s[9] || (s[9] = () => n(Ce)(!1))
|
|
437
|
-
}, [
|
|
438
|
-
t.value.userOptions.buttons.annotator ? (u(), J(n(at), {
|
|
439
|
-
key: 0,
|
|
440
|
-
svgRef: n(Fe),
|
|
441
|
-
backgroundColor: t.value.style.chart.backgroundColor,
|
|
442
|
-
color: t.value.style.chart.color,
|
|
443
|
-
active: ne.value,
|
|
444
|
-
onClose: ke
|
|
445
|
-
}, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : p("", !0),
|
|
446
|
-
t.value.style.chart.title.text ? (u(), c("div", {
|
|
447
|
-
key: 1,
|
|
448
|
-
ref_key: "chartTitle",
|
|
449
|
-
ref: xe,
|
|
450
|
-
style: "width:100%;background:transparent"
|
|
451
|
-
}, [
|
|
452
|
-
(u(), J(Ot, {
|
|
453
|
-
key: `title_${me.value}`,
|
|
454
|
-
config: {
|
|
455
|
-
title: {
|
|
456
|
-
cy: "3dBar-div-title",
|
|
457
|
-
...t.value.style.chart.title
|
|
458
|
-
},
|
|
459
|
-
subtitle: {
|
|
460
|
-
cy: "3dBar-div-subtitle",
|
|
461
|
-
...t.value.style.chart.title.subtitle
|
|
462
|
-
}
|
|
463
|
-
}
|
|
464
|
-
}, null, 8, ["config"]))
|
|
465
|
-
], 512)) : p("", !0),
|
|
466
|
-
t.value.userOptions.show && _e.value && (n(Me) || n(he)) ? (u(), J(n(nt), {
|
|
467
|
-
key: 2,
|
|
468
|
-
ref_key: "details",
|
|
469
|
-
ref: ut,
|
|
470
|
-
backgroundColor: t.value.style.chart.backgroundColor,
|
|
471
|
-
color: t.value.style.chart.color,
|
|
472
|
-
isPrinting: n(Pe),
|
|
473
|
-
isImaging: n(Te),
|
|
474
|
-
uid: F.value,
|
|
475
|
-
hasPdf: t.value.userOptions.buttons.pdf,
|
|
476
|
-
hasTable: !!x.value && t.value.userOptions.buttons.table,
|
|
477
|
-
hasXls: !!x.value && t.value.userOptions.buttons.csv,
|
|
478
|
-
hasImg: t.value.userOptions.buttons.img,
|
|
479
|
-
hasFullscreen: t.value.userOptions.buttons.fullscreen,
|
|
480
|
-
titles: { ...t.value.userOptions.buttonTitles },
|
|
481
|
-
chartElement: R.value,
|
|
482
|
-
position: t.value.userOptions.position,
|
|
483
|
-
hasAnnotator: t.value.userOptions.buttons.annotator,
|
|
484
|
-
isAnnotation: ne.value,
|
|
485
|
-
callbacks: t.value.userOptions.callbacks,
|
|
486
|
-
printScale: t.value.userOptions.print.scale,
|
|
487
|
-
onToggleFullscreen: Ie,
|
|
488
|
-
onGeneratePdf: n(Ae),
|
|
489
|
-
onGenerateCsv: Ne,
|
|
490
|
-
onGenerateImage: n(Se),
|
|
491
|
-
onToggleTable: Be,
|
|
492
|
-
onToggleAnnotator: ke,
|
|
493
|
-
style: I({
|
|
494
|
-
visibility: n(Me) ? n(he) ? "visible" : "hidden" : "visible"
|
|
495
|
-
})
|
|
496
|
-
}, gt({ _: 2 }, [
|
|
497
|
-
a.$slots.menuIcon ? {
|
|
498
|
-
name: "menuIcon",
|
|
499
|
-
fn: D(({ isOpen: e, color: v }) => [
|
|
500
|
-
T(a.$slots, "menuIcon", re(ue({ isOpen: e, color: v })), void 0, !0)
|
|
501
|
-
]),
|
|
502
|
-
key: "0"
|
|
503
|
-
} : void 0,
|
|
504
|
-
a.$slots.optionPdf ? {
|
|
505
|
-
name: "optionPdf",
|
|
506
|
-
fn: D(() => [
|
|
507
|
-
T(a.$slots, "optionPdf", {}, void 0, !0)
|
|
508
|
-
]),
|
|
509
|
-
key: "1"
|
|
510
|
-
} : void 0,
|
|
511
|
-
a.$slots.optionCsv ? {
|
|
512
|
-
name: "optionCsv",
|
|
513
|
-
fn: D(() => [
|
|
514
|
-
T(a.$slots, "optionCsv", {}, void 0, !0)
|
|
515
|
-
]),
|
|
516
|
-
key: "2"
|
|
517
|
-
} : void 0,
|
|
518
|
-
a.$slots.optionImg ? {
|
|
519
|
-
name: "optionImg",
|
|
520
|
-
fn: D(() => [
|
|
521
|
-
T(a.$slots, "optionImg", {}, void 0, !0)
|
|
522
|
-
]),
|
|
523
|
-
key: "3"
|
|
524
|
-
} : void 0,
|
|
525
|
-
a.$slots.optionTable ? {
|
|
526
|
-
name: "optionTable",
|
|
527
|
-
fn: D(() => [
|
|
528
|
-
T(a.$slots, "optionTable", {}, void 0, !0)
|
|
529
|
-
]),
|
|
530
|
-
key: "4"
|
|
531
|
-
} : void 0,
|
|
532
|
-
a.$slots.optionFullscreen ? {
|
|
533
|
-
name: "optionFullscreen",
|
|
534
|
-
fn: D(({ toggleFullscreen: e, isFullscreen: v }) => [
|
|
535
|
-
T(a.$slots, "optionFullscreen", re(ue({ toggleFullscreen: e, isFullscreen: v })), void 0, !0)
|
|
536
|
-
]),
|
|
537
|
-
key: "5"
|
|
538
|
-
} : void 0,
|
|
539
|
-
a.$slots.optionAnnotator ? {
|
|
540
|
-
name: "optionAnnotator",
|
|
541
|
-
fn: D(({ toggleAnnotator: e, isAnnotator: v }) => [
|
|
542
|
-
T(a.$slots, "optionAnnotator", re(ue({ toggleAnnotator: e, isAnnotator: v })), void 0, !0)
|
|
543
|
-
]),
|
|
544
|
-
key: "6"
|
|
545
|
-
} : void 0
|
|
546
|
-
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasTable", "hasXls", "hasImg", "hasFullscreen", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "onGeneratePdf", "onGenerateImage", "style"])) : p("", !0),
|
|
547
|
-
(u(), c("svg", {
|
|
548
|
-
ref_key: "svgRef",
|
|
549
|
-
ref: Fe,
|
|
550
|
-
xmlns: n(Tt),
|
|
551
|
-
class: Ve({ "vue-data-ui-fullscreen--on": ye.value, "vue-data-ui-fulscreen--off": !ye.value, animated: t.value.useCssAnimation }),
|
|
552
|
-
viewBox: `0 0 ${o.value.absoluteWidth} ${o.value.height}`,
|
|
553
|
-
style: I(`max-width:100%; overflow: visible; background:transparent;color:${t.value.style.chart.color}`)
|
|
554
|
-
}, [
|
|
555
|
-
$t(n(st)),
|
|
556
|
-
a.$slots["chart-background"] ? (u(), c("foreignObject", {
|
|
557
|
-
key: 0,
|
|
558
|
-
x: 0,
|
|
559
|
-
y: 0,
|
|
560
|
-
width: o.value.absoluteWidth,
|
|
561
|
-
height: o.value.height,
|
|
562
|
-
style: {
|
|
563
|
-
pointerEvents: "none"
|
|
564
|
-
}
|
|
565
|
-
}, [
|
|
566
|
-
T(a.$slots, "chart-background", {}, void 0, !0)
|
|
567
|
-
], 8, Vt)) : p("", !0),
|
|
568
|
-
i("defs", null, [
|
|
569
|
-
i("radialGradient", {
|
|
570
|
-
id: `gradient_top${F.value}`
|
|
571
|
-
}, [
|
|
572
|
-
i("stop", {
|
|
573
|
-
offset: "0%",
|
|
574
|
-
"stop-color": n($)(t.value.style.chart.backgroundColor, 0)
|
|
575
|
-
}, null, 8, Ut),
|
|
576
|
-
i("stop", {
|
|
577
|
-
offset: "100%",
|
|
578
|
-
"stop-color": t.value.style.chart.bar.color
|
|
579
|
-
}, null, 8, Xt)
|
|
580
|
-
], 8, Ht),
|
|
581
|
-
i("radialGradient", {
|
|
582
|
-
id: `gradient_tube_top${F.value}`
|
|
583
|
-
}, [
|
|
584
|
-
i("stop", {
|
|
585
|
-
offset: "0%",
|
|
586
|
-
"stop-color": n($)(n(W)(t.value.style.chart.bar.color, 0.5), 80)
|
|
587
|
-
}, null, 8, qt),
|
|
588
|
-
i("stop", {
|
|
589
|
-
offset: "100%",
|
|
590
|
-
"stop-color": n($)(n(H)(t.value.style.chart.bar.color, 0.1), 80)
|
|
591
|
-
}, null, 8, Yt)
|
|
592
|
-
], 8, Zt),
|
|
593
|
-
i("radialGradient", {
|
|
594
|
-
id: `gradient_left${F.value}`
|
|
595
|
-
}, [
|
|
596
|
-
i("stop", {
|
|
597
|
-
offset: "0%",
|
|
598
|
-
"stop-color": n($)(t.value.style.chart.backgroundColor, 0)
|
|
599
|
-
}, null, 8, Jt),
|
|
600
|
-
i("stop", {
|
|
601
|
-
offset: "100%",
|
|
602
|
-
"stop-color": n($)(t.value.style.chart.bar.color, 20)
|
|
603
|
-
}, null, 8, Qt)
|
|
604
|
-
], 8, Kt),
|
|
605
|
-
i("radialGradient", {
|
|
606
|
-
id: `gradient_right${F.value}`
|
|
607
|
-
}, [
|
|
608
|
-
i("stop", {
|
|
609
|
-
offset: "0%",
|
|
610
|
-
"stop-color": n($)(t.value.style.chart.backgroundColor, 0)
|
|
611
|
-
}, null, 8, tl),
|
|
612
|
-
i("stop", {
|
|
613
|
-
offset: "100%",
|
|
614
|
-
"stop-color": n($)(t.value.style.chart.bar.color, 20)
|
|
615
|
-
}, null, 8, ll)
|
|
616
|
-
], 8, el),
|
|
617
|
-
i("linearGradient", {
|
|
618
|
-
id: `gradient_tube_body${F.value}`,
|
|
619
|
-
x1: "0%",
|
|
620
|
-
y1: "0%",
|
|
621
|
-
x2: "100%",
|
|
622
|
-
y2: "0%"
|
|
623
|
-
}, [
|
|
624
|
-
i("stop", {
|
|
625
|
-
offset: "0%",
|
|
626
|
-
"stop-color": `${t.value.style.chart.bar.color}`
|
|
627
|
-
}, null, 8, sl),
|
|
628
|
-
i("stop", {
|
|
629
|
-
offset: "10%",
|
|
630
|
-
"stop-color": n($)(n(H)(t.value.style.chart.bar.color, 0.7), 100)
|
|
631
|
-
}, null, 8, al),
|
|
632
|
-
i("stop", {
|
|
633
|
-
offset: "25%",
|
|
634
|
-
"stop-color": n($)(n(H)(t.value.style.chart.bar.color, 0.5), 100)
|
|
635
|
-
}, null, 8, nl),
|
|
636
|
-
i("stop", {
|
|
637
|
-
offset: "75%",
|
|
638
|
-
"stop-color": n($)(t.value.style.chart.bar.color, 80)
|
|
639
|
-
}, null, 8, rl),
|
|
640
|
-
i("stop", {
|
|
641
|
-
offset: "100%",
|
|
642
|
-
"stop-color": n($)(n(W)(t.value.style.chart.bar.color, 0.7), 100)
|
|
643
|
-
}, null, 8, ul)
|
|
644
|
-
], 8, ol)
|
|
645
|
-
]),
|
|
646
|
-
x.value ? (u(), c("defs", il, [
|
|
647
|
-
(u(!0), c(C, null, M(w.value, (e) => (u(), c("radialGradient", {
|
|
648
|
-
id: `grad_top_${e.id}`
|
|
649
|
-
}, [
|
|
650
|
-
i("stop", {
|
|
651
|
-
offset: "0%",
|
|
652
|
-
"stop-color": n($)(n(W)(e.color, 0.5), 80)
|
|
653
|
-
}, null, 8, cl),
|
|
654
|
-
i("stop", {
|
|
655
|
-
offset: "100%",
|
|
656
|
-
"stop-color": e.color
|
|
657
|
-
}, null, 8, vl)
|
|
658
|
-
], 8, dl))), 256)),
|
|
659
|
-
(u(!0), c(C, null, M(w.value, (e) => (u(), c("linearGradient", {
|
|
660
|
-
id: `grad_left_${e.id}`
|
|
661
|
-
}, [
|
|
662
|
-
i("stop", {
|
|
663
|
-
offset: "0%",
|
|
664
|
-
"stop-color": n($)(e.color, 80)
|
|
665
|
-
}, null, 8, fl),
|
|
666
|
-
i("stop", {
|
|
667
|
-
offset: "100%",
|
|
668
|
-
"stop-color": n($)(n(H)(e.color, 0.5), 100)
|
|
669
|
-
}, null, 8, pl)
|
|
670
|
-
], 8, hl))), 256)),
|
|
671
|
-
(u(!0), c(C, null, M(w.value, (e) => (u(), c("linearGradient", {
|
|
672
|
-
id: `grad_right_${e.id}`
|
|
673
|
-
}, [
|
|
674
|
-
i("stop", {
|
|
675
|
-
offset: "2%",
|
|
676
|
-
"stop-color": n($)(n(W)(e.color, 0.5), 100)
|
|
677
|
-
}, null, 8, kl),
|
|
678
|
-
i("stop", {
|
|
679
|
-
offset: "100%",
|
|
680
|
-
"stop-color": n($)(e.color, 80)
|
|
681
|
-
}, null, 8, gl)
|
|
682
|
-
], 8, yl))), 256)),
|
|
683
|
-
i("linearGradient", {
|
|
684
|
-
x1: "0%",
|
|
685
|
-
y1: "0%",
|
|
686
|
-
x2: "0%",
|
|
687
|
-
y2: "100%",
|
|
688
|
-
id: `vertical_line_${F.value}`
|
|
689
|
-
}, [...s[10] || (s[10] = [
|
|
690
|
-
i("stop", {
|
|
691
|
-
offset: "0%",
|
|
692
|
-
"stop-color": "#FFFFFF"
|
|
693
|
-
}, null, -1),
|
|
694
|
-
i("stop", {
|
|
695
|
-
offset: "100%",
|
|
696
|
-
"stop-color": "#FFFFFF33"
|
|
697
|
-
}, null, -1)
|
|
698
|
-
])], 8, $l)
|
|
699
|
-
])) : p("", !0),
|
|
700
|
-
t.value.style.chart.dataLabel.show && ![null, void 0].includes(A.dataset.percentage) && [null, void 0].includes(A.dataset.series) ? (u(), c("text", {
|
|
701
|
-
key: 2,
|
|
702
|
-
x: o.value.width / 2,
|
|
703
|
-
y: o.value.top - t.value.style.chart.dataLabel.fontSize / 2,
|
|
704
|
-
"font-size": t.value.style.chart.dataLabel.fontSize,
|
|
705
|
-
"font-weight": t.value.style.chart.dataLabel.bold ? "bold" : "normal",
|
|
706
|
-
fill: t.value.style.chart.dataLabel.color,
|
|
707
|
-
"text-anchor": "middle"
|
|
708
|
-
}, E(n(j)({
|
|
709
|
-
v: Z.value,
|
|
710
|
-
s: "%",
|
|
711
|
-
r: t.value.style.chart.dataLabel.rounding
|
|
712
|
-
})), 9, _l)) : p("", !0),
|
|
713
|
-
z.value ? (u(), c("g", {
|
|
714
|
-
key: 3,
|
|
715
|
-
role: "button",
|
|
716
|
-
tabindex: "0",
|
|
717
|
-
"aria-label": "Clear selection",
|
|
718
|
-
onClick: s[0] || (s[0] = (e) => {
|
|
719
|
-
z.value = !1, _.value = null;
|
|
720
|
-
}),
|
|
721
|
-
onKeydown: [
|
|
722
|
-
s[1] || (s[1] = He(Ue((e) => {
|
|
723
|
-
z.value = !1, _.value = null;
|
|
724
|
-
}, ["prevent"]), ["enter"])),
|
|
725
|
-
s[2] || (s[2] = He(Ue((e) => {
|
|
726
|
-
z.value = !1, _.value = null;
|
|
727
|
-
}, ["prevent"]), ["space"]))
|
|
728
|
-
],
|
|
729
|
-
onFocus: s[3] || (s[3] = (e) => ee.value = !0),
|
|
730
|
-
onBlur: s[4] || (s[4] = (e) => ee.value = !1),
|
|
731
|
-
onMouseenter: s[5] || (s[5] = (e) => ee.value = !0),
|
|
732
|
-
onMouseleave: s[6] || (s[6] = (e) => ee.value = !1),
|
|
733
|
-
class: "svg-btn",
|
|
734
|
-
"data-dom-to-png-ignore": "",
|
|
735
|
-
style: { cursor: "pointer", outline: "none" }
|
|
736
|
-
}, [
|
|
737
|
-
s[11] || (s[11] = i("title", null, "Clear selection", -1)),
|
|
738
|
-
i("rect", {
|
|
739
|
-
x: q.value - 12,
|
|
740
|
-
y: o.value.top - 24,
|
|
741
|
-
width: 24,
|
|
742
|
-
height: 24,
|
|
743
|
-
fill: "transparent",
|
|
744
|
-
"pointer-events": "all"
|
|
745
|
-
}, null, 8, ml),
|
|
746
|
-
i("circle", {
|
|
747
|
-
cx: q.value,
|
|
748
|
-
cy: o.value.top - 12,
|
|
749
|
-
r: "10",
|
|
750
|
-
fill: "none",
|
|
751
|
-
stroke: t.value.style.chart.color,
|
|
752
|
-
"stroke-width": "2",
|
|
753
|
-
"vector-effect": "non-scaling-stroke",
|
|
754
|
-
opacity: ee.value ? 0.5 : 0
|
|
755
|
-
}, null, 8, bl),
|
|
756
|
-
i("path", {
|
|
757
|
-
d: `M${q.value - 6},${o.value.top - 18} ${q.value + 6},${o.value.top - 6}`,
|
|
758
|
-
stroke: t.value.style.chart.color,
|
|
759
|
-
"stroke-linecap": "round",
|
|
760
|
-
"stroke-width": "2",
|
|
761
|
-
"vector-effect": "non-scaling-stroke"
|
|
762
|
-
}, null, 8, xl),
|
|
763
|
-
i("path", {
|
|
764
|
-
d: `M${q.value + 6},${o.value.top - 18} ${q.value - 6},${o.value.top - 6}`,
|
|
765
|
-
stroke: t.value.style.chart.color,
|
|
766
|
-
"stroke-linecap": "round",
|
|
767
|
-
"stroke-width": "2",
|
|
768
|
-
"vector-effect": "non-scaling-stroke"
|
|
769
|
-
}, null, 8, wl)
|
|
770
|
-
], 32)) : p("", !0),
|
|
771
|
-
!t.value.style.shape || t.value.style.shape === "bar" ? (u(), c("g", Cl, [
|
|
772
|
-
x.value ? p("", !0) : (u(), c("g", Ml, [
|
|
773
|
-
i("path", {
|
|
774
|
-
"stroke-dasharray": t.value.style.chart.box.strokeDasharray,
|
|
775
|
-
d: N.value.right,
|
|
776
|
-
stroke: t.value.style.chart.box.stroke,
|
|
777
|
-
"stroke-width": t.value.style.chart.box.strokeWidth,
|
|
778
|
-
"stroke-linejoin": "round",
|
|
779
|
-
"stroke-linecap": "round",
|
|
780
|
-
fill: "none"
|
|
781
|
-
}, null, 8, Fl),
|
|
782
|
-
i("path", {
|
|
783
|
-
"stroke-dasharray": t.value.style.chart.box.strokeDasharray,
|
|
784
|
-
d: N.value.left,
|
|
785
|
-
stroke: t.value.style.chart.box.stroke,
|
|
786
|
-
"stroke-width": t.value.style.chart.box.strokeWidth,
|
|
787
|
-
"stroke-linejoin": "round",
|
|
788
|
-
"stroke-linecap": "round",
|
|
789
|
-
fill: "none"
|
|
790
|
-
}, null, 8, Pl),
|
|
791
|
-
i("path", {
|
|
792
|
-
"stroke-dasharray": t.value.style.chart.box.strokeDasharray,
|
|
793
|
-
d: N.value.side,
|
|
794
|
-
stroke: t.value.style.chart.box.stroke,
|
|
795
|
-
"stroke-width": t.value.style.chart.box.strokeWidth,
|
|
796
|
-
"stroke-linejoin": "round",
|
|
797
|
-
"stroke-linecap": "round",
|
|
798
|
-
fill: "none"
|
|
799
|
-
}, null, 8, Tl),
|
|
800
|
-
i("path", {
|
|
801
|
-
"stroke-dasharray": t.value.style.chart.box.strokeDasharray,
|
|
802
|
-
d: N.value.topSides,
|
|
803
|
-
stroke: t.value.style.chart.box.stroke,
|
|
804
|
-
"stroke-width": t.value.style.chart.box.strokeWidth,
|
|
805
|
-
"stroke-linejoin": "round",
|
|
806
|
-
"stroke-linecap": "round",
|
|
807
|
-
fill: "none"
|
|
808
|
-
}, null, 8, Al)
|
|
809
|
-
])),
|
|
810
|
-
x.value ? p("", !0) : (u(), c("g", Sl, [
|
|
811
|
-
i("path", {
|
|
812
|
-
d: Y.value.right,
|
|
813
|
-
stroke: t.value.style.chart.bar.stroke,
|
|
814
|
-
"stroke-width": t.value.style.chart.bar.strokeWidth,
|
|
815
|
-
"stroke-linejoin": "round",
|
|
816
|
-
"stroke-linecap": "round",
|
|
817
|
-
fill: `url(#gradient_right${F.value})`
|
|
818
|
-
}, null, 8, Dl),
|
|
819
|
-
i("path", {
|
|
820
|
-
d: Y.value.left,
|
|
821
|
-
stroke: t.value.style.chart.bar.stroke,
|
|
822
|
-
"stroke-width": t.value.style.chart.bar.strokeWidth,
|
|
823
|
-
"stroke-linejoin": "round",
|
|
824
|
-
"stroke-linecap": "round",
|
|
825
|
-
fill: `url(#gradient_left${F.value})`
|
|
826
|
-
}, null, 8, jl),
|
|
827
|
-
i("path", {
|
|
828
|
-
d: Y.value.top,
|
|
829
|
-
stroke: t.value.style.chart.bar.stroke,
|
|
830
|
-
"stroke-width": t.value.style.chart.bar.strokeWidth,
|
|
831
|
-
"stroke-linejoin": "round",
|
|
832
|
-
"stroke-linecap": "round",
|
|
833
|
-
fill: `url(#gradient_top${F.value})`
|
|
834
|
-
}, null, 8, zl)
|
|
835
|
-
])),
|
|
836
|
-
x.value ? (u(), c("g", Ol, [
|
|
837
|
-
(u(!0), c(C, null, M(w.value, (e, v) => (u(), c("g", {
|
|
838
|
-
style: I(`opacity:${_.value ? _.value === e.id ? 1 : 0.3 : 1}`),
|
|
839
|
-
class: "vue-ui-3d-bar-stack"
|
|
840
|
-
}, [
|
|
841
|
-
i("path", {
|
|
842
|
-
d: e.fill.right,
|
|
843
|
-
fill: `url(#grad_right_${e.id})`,
|
|
844
|
-
onMouseenter: (l) => P(e),
|
|
845
|
-
onClick: (l) => P(e, !0),
|
|
846
|
-
onMouseout: (l) => V(e)
|
|
847
|
-
}, null, 40, Il),
|
|
848
|
-
i("path", {
|
|
849
|
-
d: e.fill.left,
|
|
850
|
-
fill: `url(#grad_left_${e.id})`,
|
|
851
|
-
onMouseenter: (l) => P(e),
|
|
852
|
-
onClick: (l) => P(e, !0),
|
|
853
|
-
onMouseout: (l) => V(e)
|
|
854
|
-
}, null, 40, Nl),
|
|
855
|
-
i("path", {
|
|
856
|
-
d: e.fill.top,
|
|
857
|
-
fill: `url(#grad_top_${e.id})`,
|
|
858
|
-
onMouseenter: (l) => P(e),
|
|
859
|
-
onClick: (l) => P(e, !0),
|
|
860
|
-
onMouseout: (l) => V(e)
|
|
861
|
-
}, null, 40, Bl),
|
|
862
|
-
i("path", {
|
|
863
|
-
d: e.fill.liningTop,
|
|
864
|
-
stroke: "#FFFFFF",
|
|
865
|
-
"stroke-width": "0.5",
|
|
866
|
-
"stroke-linecap": "round",
|
|
867
|
-
fill: "none",
|
|
868
|
-
onMouseenter: (l) => P(e),
|
|
869
|
-
onClick: (l) => P(e, !0),
|
|
870
|
-
onMouseout: (l) => V(e)
|
|
871
|
-
}, null, 40, Ll),
|
|
872
|
-
i("path", {
|
|
873
|
-
d: `M ${e.fill.apexTop.x},${e.fill.apexTop.y} ${e.fill.apexBottom.x},${e.fill.apexBottom.y}`,
|
|
874
|
-
stroke: "#FFFFFF",
|
|
875
|
-
"stroke-width": "0.5",
|
|
876
|
-
"stroke-linecap": "round"
|
|
877
|
-
}, null, 8, El)
|
|
878
|
-
], 4))), 256)),
|
|
879
|
-
(u(!0), c(C, null, M(w.value, (e, v) => (u(), c("g", null, [
|
|
880
|
-
v !== w.value.length - 1 ? (u(), c("path", {
|
|
881
|
-
key: 0,
|
|
882
|
-
d: e.fill.liningTopShade,
|
|
883
|
-
stroke: t.value.style.chart.bar.shadeColor,
|
|
884
|
-
"stroke-width": "0.5",
|
|
885
|
-
"stroke-linecap": "round",
|
|
886
|
-
fill: "none",
|
|
887
|
-
style: { "pointer-events": "none" }
|
|
888
|
-
}, null, 8, Wl)) : p("", !0)
|
|
889
|
-
]))), 256)),
|
|
890
|
-
(u(!0), c(C, null, M(w.value, (e, v) => (u(), c("g", {
|
|
891
|
-
style: I(`opacity:${_.value ? _.value === e.id ? 1 : 0 : e.proportion * 100 > t.value.style.chart.legend.hideUnderPercentage ? 1 : 0}`),
|
|
892
|
-
onClick: (l) => le("selectDatapoint", e)
|
|
893
|
-
}, [
|
|
894
|
-
i("path", {
|
|
895
|
-
stroke: t.value.style.chart.color,
|
|
896
|
-
"stroke-dasharray": "1",
|
|
897
|
-
"stroke-width": "0.5",
|
|
898
|
-
"stroke-linecap": "round",
|
|
899
|
-
d: `M${e.fill.sidePointer.x},${e.fill.sidePointer.y} ${e.fill.sidePointer.x2},${e.fill.sidePointer.y}`
|
|
900
|
-
}, null, 8, Rl),
|
|
901
|
-
!e.fill.miniDonut || _.value ? (u(), c("circle", {
|
|
902
|
-
key: 0,
|
|
903
|
-
cx: e.fill.sidePointer.x2,
|
|
904
|
-
cy: e.fill.sidePointer.y,
|
|
905
|
-
r: 2,
|
|
906
|
-
fill: e.color,
|
|
907
|
-
stroke: t.value.style.chart.backgroundColor
|
|
908
|
-
}, null, 8, Vl)) : p("", !0),
|
|
909
|
-
n(U) ? (u(), c("rect", {
|
|
910
|
-
key: 1,
|
|
911
|
-
x: e.fill.sidePointer.xText,
|
|
912
|
-
y: e.fill.sidePointer.y - t.value.style.chart.legend.fontSize / 2,
|
|
913
|
-
width: o.value.width / 3,
|
|
914
|
-
height: t.value.style.chart.legend.fontSize,
|
|
915
|
-
fill: "#6A6A6A80",
|
|
916
|
-
rx: "3"
|
|
917
|
-
}, null, 8, Hl)) : p("", !0),
|
|
918
|
-
n(U) ? p("", !0) : (u(), c("foreignObject", {
|
|
919
|
-
key: 2,
|
|
920
|
-
x: e.fill.sidePointer.xText,
|
|
921
|
-
y: e.fill.sidePointer.y - t.value.style.chart.legend.fontSize,
|
|
922
|
-
width: o.value.absoluteWidth / 3,
|
|
923
|
-
height: t.value.style.chart.legend.fontSize * 2,
|
|
924
|
-
style: { overflow: "visible", position: "relative" }
|
|
925
|
-
}, [
|
|
926
|
-
t.value.style.chart.legend.showDefault ? (u(), c("div", {
|
|
927
|
-
key: 0,
|
|
928
|
-
style: I(`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}`)
|
|
929
|
-
}, E(n(ce)(
|
|
930
|
-
t.value.style.chart.dataLabel.formatter,
|
|
931
|
-
e.value,
|
|
932
|
-
`${e.name}: ${n(j)({ v: e.proportion * 100, s: "%", r: t.value.style.chart.legend.roundingPercentage })} (${n(j)({
|
|
933
|
-
p: t.value.style.chart.legend.prefix,
|
|
934
|
-
v: e.value,
|
|
935
|
-
s: t.value.style.chart.legend.suffix,
|
|
936
|
-
r: t.value.style.chart.legend.roundingValue
|
|
937
|
-
})})`,
|
|
938
|
-
{ datapoint: e, seriesIndex: v, type: "barDatapoint" }
|
|
939
|
-
)), 5)) : p("", !0),
|
|
940
|
-
T(a.$slots, "legend", Xe({ ref_for: !0 }, { datapoint: e, config: t.value, dataset: w.value }), void 0, !0)
|
|
941
|
-
], 8, Ul)),
|
|
942
|
-
e.fill.donut && _.value === e.id ? (u(), c("g", Xl, [
|
|
943
|
-
(u(!0), c(C, null, M(e.fill.donut, (l, d) => (u(), c("g", null, [
|
|
944
|
-
K(l, e.fill.donut, !0) > 6 ? (u(), c("path", {
|
|
945
|
-
key: 0,
|
|
946
|
-
d: n(Ke)(l, { x: l.cx, y: l.cy }, 0, 8, !1, !0, 10),
|
|
947
|
-
stroke: l.color,
|
|
948
|
-
class: "vue-ui-donut-arc-path",
|
|
949
|
-
"stroke-width": "0.5",
|
|
950
|
-
"stroke-linecap": "round",
|
|
951
|
-
"stroke-linejoin": "round",
|
|
952
|
-
fill: "none"
|
|
953
|
-
}, null, 8, Zl)) : p("", !0)
|
|
954
|
-
]))), 256)),
|
|
955
|
-
(u(!0), c(C, null, M(e.fill.donut, (l, d) => (u(), c("path", {
|
|
956
|
-
class: "vue-ui-donut-arc-path",
|
|
957
|
-
d: l.arcSlice,
|
|
958
|
-
fill: `${l.color}`,
|
|
959
|
-
stroke: t.value.style.chart.backgroundColor,
|
|
960
|
-
"stroke-width": 1
|
|
961
|
-
}, null, 8, ql))), 256)),
|
|
962
|
-
(u(!0), c(C, null, M(e.fill.donut, (l, d) => (u(), c("g", null, [
|
|
963
|
-
K(l, e.fill.donut, !0) > 6 ? (u(), c("g", Yl, [
|
|
964
|
-
i("text", {
|
|
965
|
-
"text-anchor": n(G)(l, !0, 0).anchor,
|
|
966
|
-
x: n(G)(l, !0, 2).x,
|
|
967
|
-
y: n(ve)(l, 12, 12),
|
|
968
|
-
fill: t.value.style.chart.legend.color,
|
|
969
|
-
"font-size": t.value.style.chart.legend.fontSize / 1.5
|
|
970
|
-
}, E(n(ce)(
|
|
971
|
-
t.value.style.chart.dataLabel.formatter,
|
|
972
|
-
l.value,
|
|
973
|
-
`${K(l, e.fill.donut)} (${n(j)({
|
|
974
|
-
p: t.value.style.chart.legend.prefix,
|
|
975
|
-
v: l.value,
|
|
976
|
-
s: t.value.style.chart.legend.suffix,
|
|
977
|
-
r: t.value.style.chart.legend.roundingValue
|
|
978
|
-
})})`,
|
|
979
|
-
{ datapoint: l, seriesIndex: d, type: "donutDatapoint" }
|
|
980
|
-
)), 9, Kl),
|
|
981
|
-
i("text", {
|
|
982
|
-
"text-anchor": n(G)(l).anchor,
|
|
983
|
-
x: n(G)(l, !0, 2).x,
|
|
984
|
-
y: n(ve)(l, 12, 12) + t.value.style.chart.legend.fontSize / 1.5,
|
|
985
|
-
fill: t.value.style.chart.legend.color,
|
|
986
|
-
"font-size": t.value.style.chart.legend.fontSize / 1.5
|
|
987
|
-
}, E(l.name), 9, Jl)
|
|
988
|
-
])) : p("", !0)
|
|
989
|
-
]))), 256))
|
|
990
|
-
])) : p("", !0),
|
|
991
|
-
e.fill.miniDonut && !_.value ? (u(), c("g", Ql, [
|
|
992
|
-
(u(!0), c(C, null, M(e.fill.miniDonut, (l, d) => (u(), c("path", {
|
|
993
|
-
class: "vue-ui-donut-arc-path",
|
|
994
|
-
d: l.arcSlice,
|
|
995
|
-
fill: `${l.color}`,
|
|
996
|
-
stroke: t.value.style.chart.backgroundColor,
|
|
997
|
-
"stroke-width": 0.5
|
|
998
|
-
}, null, 8, eo))), 256))
|
|
999
|
-
])) : p("", !0)
|
|
1000
|
-
], 12, Gl))), 256))
|
|
1001
|
-
])) : p("", !0)
|
|
1002
|
-
])) : p("", !0),
|
|
1003
|
-
t.value.style.shape === "tube" ? (u(), c("g", to, [
|
|
1004
|
-
x.value ? p("", !0) : (u(), c("g", lo, [
|
|
1005
|
-
i("path", {
|
|
1006
|
-
"stroke-dasharray": t.value.style.chart.box.strokeDasharray,
|
|
1007
|
-
d: N.value.tubeTop,
|
|
1008
|
-
stroke: t.value.style.chart.box.stroke,
|
|
1009
|
-
"stroke-width": t.value.style.chart.box.strokeWidth,
|
|
1010
|
-
"stroke-linejoin": "round",
|
|
1011
|
-
"stroke-linecap": "round",
|
|
1012
|
-
fill: "none"
|
|
1013
|
-
}, null, 8, oo),
|
|
1014
|
-
i("path", {
|
|
1015
|
-
"stroke-dasharray": t.value.style.chart.box.strokeDasharray,
|
|
1016
|
-
d: N.value.tubeLeft,
|
|
1017
|
-
stroke: t.value.style.chart.box.stroke,
|
|
1018
|
-
"stroke-width": t.value.style.chart.box.strokeWidth,
|
|
1019
|
-
"stroke-linejoin": "round",
|
|
1020
|
-
"stroke-linecap": "round",
|
|
1021
|
-
fill: "none"
|
|
1022
|
-
}, null, 8, so),
|
|
1023
|
-
i("path", {
|
|
1024
|
-
"stroke-dasharray": t.value.style.chart.box.strokeDasharray,
|
|
1025
|
-
d: N.value.tubeRight,
|
|
1026
|
-
stroke: t.value.style.chart.box.stroke,
|
|
1027
|
-
"stroke-width": t.value.style.chart.box.strokeWidth,
|
|
1028
|
-
"stroke-linejoin": "round",
|
|
1029
|
-
"stroke-linecap": "round",
|
|
1030
|
-
fill: "none"
|
|
1031
|
-
}, null, 8, ao),
|
|
1032
|
-
i("path", {
|
|
1033
|
-
"stroke-dasharray": t.value.style.chart.box.strokeDasharray,
|
|
1034
|
-
d: N.value.tubeBottom,
|
|
1035
|
-
stroke: t.value.style.chart.box.stroke,
|
|
1036
|
-
"stroke-width": t.value.style.chart.box.strokeWidth,
|
|
1037
|
-
"stroke-linejoin": "round",
|
|
1038
|
-
"stroke-linecap": "round",
|
|
1039
|
-
fill: "none"
|
|
1040
|
-
}, null, 8, no),
|
|
1041
|
-
i("path", {
|
|
1042
|
-
d: Y.value.tubeTop,
|
|
1043
|
-
stroke: t.value.style.chart.bar.stroke,
|
|
1044
|
-
"stroke-width": t.value.style.chart.bar.strokeWidth,
|
|
1045
|
-
"stroke-linejoin": "round",
|
|
1046
|
-
"stroke-linecap": "round",
|
|
1047
|
-
fill: `url(#gradient_tube_top${F.value})`
|
|
1048
|
-
}, null, 8, ro),
|
|
1049
|
-
i("path", {
|
|
1050
|
-
d: Y.value.tubeBody,
|
|
1051
|
-
stroke: t.value.style.chart.bar.stroke,
|
|
1052
|
-
"stroke-width": t.value.style.chart.bar.strokeWidth,
|
|
1053
|
-
"stroke-linejoin": "round",
|
|
1054
|
-
"stroke-linecap": "round",
|
|
1055
|
-
fill: `url(#gradient_tube_body${F.value})`
|
|
1056
|
-
}, null, 8, uo),
|
|
1057
|
-
i("path", {
|
|
1058
|
-
d: Y.value.tubeTop,
|
|
1059
|
-
stroke: "#FFFFFF",
|
|
1060
|
-
"stroke-width": 0.5,
|
|
1061
|
-
"stroke-linejoin": "round",
|
|
1062
|
-
"stroke-linecap": "round",
|
|
1063
|
-
fill: "none"
|
|
1064
|
-
}, null, 8, io)
|
|
1065
|
-
])),
|
|
1066
|
-
x.value ? (u(), c("g", co, [
|
|
1067
|
-
(u(!0), c(C, null, M(w.value, (e, v) => (u(), c("g", {
|
|
1068
|
-
style: I(`opacity:${_.value ? _.value === e.id ? 1 : 0.3 : 1}`),
|
|
1069
|
-
class: "vue-ui-3d-bar-stack",
|
|
1070
|
-
onClick: (l) => le("selectDatapoint", e)
|
|
1071
|
-
}, [
|
|
1072
|
-
i("defs", null, [
|
|
1073
|
-
i("radialGradient", {
|
|
1074
|
-
id: `gradient_tube_top_${e.id}`,
|
|
1075
|
-
fx: "10%",
|
|
1076
|
-
cy: "55%"
|
|
1077
|
-
}, [
|
|
1078
|
-
i("stop", {
|
|
1079
|
-
offset: "0%",
|
|
1080
|
-
"stop-color": n($)(n(W)(e.color, 0.5), 80)
|
|
1081
|
-
}, null, 8, fo),
|
|
1082
|
-
i("stop", {
|
|
1083
|
-
offset: "100%",
|
|
1084
|
-
"stop-color": n($)(n(H)(e.color, 0.1), 80)
|
|
1085
|
-
}, null, 8, po)
|
|
1086
|
-
], 8, ho),
|
|
1087
|
-
i("linearGradient", {
|
|
1088
|
-
id: `gradient_tube_body_${e.id}`,
|
|
1089
|
-
x1: "0%",
|
|
1090
|
-
y1: "0%",
|
|
1091
|
-
x2: "100%",
|
|
1092
|
-
y2: "0%"
|
|
1093
|
-
}, [
|
|
1094
|
-
i("stop", {
|
|
1095
|
-
offset: "0%",
|
|
1096
|
-
"stop-color": `${e.color}`
|
|
1097
|
-
}, null, 8, ko),
|
|
1098
|
-
i("stop", {
|
|
1099
|
-
offset: "10%",
|
|
1100
|
-
"stop-color": n($)(n(H)(e.color, 0.7), 100)
|
|
1101
|
-
}, null, 8, go),
|
|
1102
|
-
i("stop", {
|
|
1103
|
-
offset: "25%",
|
|
1104
|
-
"stop-color": n($)(n(H)(e.color, 0.5), 100)
|
|
1105
|
-
}, null, 8, $o),
|
|
1106
|
-
i("stop", {
|
|
1107
|
-
offset: "75%",
|
|
1108
|
-
"stop-color": n($)(e.color, 80)
|
|
1109
|
-
}, null, 8, _o),
|
|
1110
|
-
i("stop", {
|
|
1111
|
-
offset: "100%",
|
|
1112
|
-
"stop-color": n($)(n(W)(e.color, 0.7), 100)
|
|
1113
|
-
}, null, 8, mo)
|
|
1114
|
-
], 8, yo)
|
|
1115
|
-
]),
|
|
1116
|
-
i("path", {
|
|
1117
|
-
onMouseenter: (l) => P(e),
|
|
1118
|
-
onClick: (l) => P(e, !0),
|
|
1119
|
-
onMouseout: (l) => V(e),
|
|
1120
|
-
d: e.fill.tubeBody,
|
|
1121
|
-
stroke: "#FFFFFF",
|
|
1122
|
-
"stroke-width": 0.5,
|
|
1123
|
-
"stroke-linejoin": "round",
|
|
1124
|
-
"stroke-linecap": "round",
|
|
1125
|
-
fill: `url(#gradient_tube_body_${e.id})`
|
|
1126
|
-
}, null, 40, bo),
|
|
1127
|
-
v > 0 ? (u(), c("path", {
|
|
1128
|
-
key: 0,
|
|
1129
|
-
onMouseenter: (l) => P(e),
|
|
1130
|
-
onClick: (l) => P(e, !0),
|
|
1131
|
-
onMouseout: (l) => V(e),
|
|
1132
|
-
d: e.fill.bottomTubeTop,
|
|
1133
|
-
stroke: "#000000",
|
|
1134
|
-
"stroke-width": 0.5,
|
|
1135
|
-
"stroke-linejoin": "round",
|
|
1136
|
-
"stroke-linecap": "round",
|
|
1137
|
-
fill: "none"
|
|
1138
|
-
}, null, 40, xo)) : p("", !0),
|
|
1139
|
-
i("path", {
|
|
1140
|
-
onMouseenter: (l) => P(e),
|
|
1141
|
-
onClick: (l) => P(e, !0),
|
|
1142
|
-
onMouseout: (l) => V(e),
|
|
1143
|
-
d: e.fill.tubeTop,
|
|
1144
|
-
stroke: "#FFFFFF",
|
|
1145
|
-
"stroke-width": 0.5,
|
|
1146
|
-
"stroke-linejoin": "round",
|
|
1147
|
-
"stroke-linecap": "round",
|
|
1148
|
-
fill: `url(#gradient_tube_top_${e.id})`
|
|
1149
|
-
}, null, 40, wo)
|
|
1150
|
-
], 12, vo))), 256)),
|
|
1151
|
-
(u(!0), c(C, null, M(w.value, (e, v) => (u(), c("g", {
|
|
1152
|
-
style: I(`opacity:${_.value ? _.value === e.id ? 1 : 0 : e.proportion * 100 > t.value.style.chart.legend.hideUnderPercentage ? 1 : 0}`),
|
|
1153
|
-
onClick: (l) => le("selectDatapoint", e)
|
|
1154
|
-
}, [
|
|
1155
|
-
i("path", {
|
|
1156
|
-
stroke: t.value.style.chart.color,
|
|
1157
|
-
"stroke-dasharray": "1",
|
|
1158
|
-
"stroke-width": "0.5",
|
|
1159
|
-
"stroke-linecap": "round",
|
|
1160
|
-
d: `M${e.fill.sidePointer.x},${e.fill.sidePointer.y} ${e.fill.sidePointer.x2},${e.fill.sidePointer.y}`
|
|
1161
|
-
}, null, 8, Mo),
|
|
1162
|
-
!e.fill.miniDonut || _.value ? (u(), c("circle", {
|
|
1163
|
-
key: 0,
|
|
1164
|
-
cx: e.fill.sidePointer.x2,
|
|
1165
|
-
cy: e.fill.sidePointer.y,
|
|
1166
|
-
r: 2,
|
|
1167
|
-
fill: e.color,
|
|
1168
|
-
stroke: t.value.style.chart.backgroundColor
|
|
1169
|
-
}, null, 8, Fo)) : p("", !0),
|
|
1170
|
-
n(U) ? (u(), c("rect", {
|
|
1171
|
-
key: 1,
|
|
1172
|
-
x: e.fill.sidePointer.xText,
|
|
1173
|
-
y: e.fill.sidePointer.y - t.value.style.chart.legend.fontSize / 2,
|
|
1174
|
-
width: o.value.width / 3,
|
|
1175
|
-
height: t.value.style.chart.legend.fontSize,
|
|
1176
|
-
fill: "#6A6A6A80",
|
|
1177
|
-
rx: "3"
|
|
1178
|
-
}, null, 8, Po)) : p("", !0),
|
|
1179
|
-
n(U) ? p("", !0) : (u(), c("foreignObject", {
|
|
1180
|
-
key: 2,
|
|
1181
|
-
x: e.fill.sidePointer.xText,
|
|
1182
|
-
y: e.fill.sidePointer.y - t.value.style.chart.legend.fontSize,
|
|
1183
|
-
width: o.value.absoluteWidth / 3,
|
|
1184
|
-
height: t.value.style.chart.legend.fontSize * 2,
|
|
1185
|
-
style: { overflow: "visible", position: "relative" }
|
|
1186
|
-
}, [
|
|
1187
|
-
t.value.style.chart.legend.showDefault ? (u(), c("div", {
|
|
1188
|
-
key: 0,
|
|
1189
|
-
style: I(`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}`)
|
|
1190
|
-
}, E(n(ce)(
|
|
1191
|
-
t.value.style.chart.dataLabel.formatter,
|
|
1192
|
-
e.value,
|
|
1193
|
-
`${e.name}: ${n(j)({ v: e.proportion * 100, s: "%", r: t.value.style.chart.legend.roundingPercentage })} (${n(j)({
|
|
1194
|
-
p: t.value.style.chart.legend.prefix,
|
|
1195
|
-
v: e.value,
|
|
1196
|
-
s: t.value.style.chart.legend.suffix,
|
|
1197
|
-
r: t.value.style.chart.legend.roundingValue
|
|
1198
|
-
})})`,
|
|
1199
|
-
{ datapoint: e, seriesIndex: v, type: "barDatapoint" }
|
|
1200
|
-
)), 5)) : p("", !0),
|
|
1201
|
-
T(a.$slots, "legend", Xe({ ref_for: !0 }, { datapoint: e, config: t.value, dataset: w.value }), void 0, !0)
|
|
1202
|
-
], 8, To)),
|
|
1203
|
-
e.fill.donut && _.value === e.id ? (u(), c("g", Ao, [
|
|
1204
|
-
(u(!0), c(C, null, M(e.fill.donut, (l, d) => (u(), c("g", null, [
|
|
1205
|
-
K(l, e.fill.donut, !0) > 6 ? (u(), c("path", {
|
|
1206
|
-
key: 0,
|
|
1207
|
-
d: n(Ke)(l, { x: l.cx, y: l.cy }, 0, 8, !1, !0, 10),
|
|
1208
|
-
stroke: l.color,
|
|
1209
|
-
class: "vue-ui-donut-arc-path",
|
|
1210
|
-
"stroke-width": "0.5",
|
|
1211
|
-
"stroke-linecap": "round",
|
|
1212
|
-
"stroke-linejoin": "round",
|
|
1213
|
-
fill: "none"
|
|
1214
|
-
}, null, 8, So)) : p("", !0)
|
|
1215
|
-
]))), 256)),
|
|
1216
|
-
(u(!0), c(C, null, M(e.fill.donut, (l, d) => (u(), c("path", {
|
|
1217
|
-
class: "vue-ui-donut-arc-path",
|
|
1218
|
-
d: l.arcSlice,
|
|
1219
|
-
fill: `${l.color}`,
|
|
1220
|
-
stroke: t.value.style.chart.backgroundColor,
|
|
1221
|
-
"stroke-width": 1
|
|
1222
|
-
}, null, 8, Do))), 256)),
|
|
1223
|
-
(u(!0), c(C, null, M(e.fill.donut, (l, d) => (u(), c("g", null, [
|
|
1224
|
-
K(l, e.fill.donut, !0) > 6 ? (u(), c("g", jo, [
|
|
1225
|
-
i("text", {
|
|
1226
|
-
"text-anchor": n(G)(l, !0, 0).anchor,
|
|
1227
|
-
x: n(G)(l, !0, 2).x,
|
|
1228
|
-
y: n(ve)(l, 12, 12),
|
|
1229
|
-
fill: t.value.style.chart.legend.color,
|
|
1230
|
-
"font-size": t.value.style.chart.legend.fontSize / 1.5
|
|
1231
|
-
}, E(n(ce)(
|
|
1232
|
-
t.value.style.chart.dataLabel.formatter,
|
|
1233
|
-
l.value,
|
|
1234
|
-
`${K(l, e.fill.donut)} (${n(j)({
|
|
1235
|
-
p: t.value.style.chart.legend.prefix,
|
|
1236
|
-
v: l.value,
|
|
1237
|
-
s: t.value.style.chart.legend.suffix,
|
|
1238
|
-
r: t.value.style.chart.legend.roundingValue
|
|
1239
|
-
})})`,
|
|
1240
|
-
{ datapoint: l, seriesIndex: d, type: "donutDatapoint" }
|
|
1241
|
-
)), 9, zo),
|
|
1242
|
-
i("text", {
|
|
1243
|
-
"text-anchor": n(G)(l).anchor,
|
|
1244
|
-
x: n(G)(l, !0, 2).x,
|
|
1245
|
-
y: n(ve)(l, 12, 12) + t.value.style.chart.legend.fontSize / 1.5,
|
|
1246
|
-
fill: t.value.style.chart.legend.color,
|
|
1247
|
-
"font-size": t.value.style.chart.legend.fontSize / 1.5
|
|
1248
|
-
}, E(l.name), 9, Oo)
|
|
1249
|
-
])) : p("", !0)
|
|
1250
|
-
]))), 256))
|
|
1251
|
-
])) : p("", !0),
|
|
1252
|
-
e.fill.miniDonut && !_.value ? (u(), c("g", Io, [
|
|
1253
|
-
(u(!0), c(C, null, M(e.fill.miniDonut, (l, d) => (u(), c("path", {
|
|
1254
|
-
class: "vue-ui-donut-arc-path",
|
|
1255
|
-
d: l.arcSlice,
|
|
1256
|
-
fill: `${l.color}`,
|
|
1257
|
-
stroke: t.value.style.chart.backgroundColor,
|
|
1258
|
-
"stroke-width": 0.5
|
|
1259
|
-
}, null, 8, No))), 256))
|
|
1260
|
-
])) : p("", !0)
|
|
1261
|
-
], 12, Co))), 256))
|
|
1262
|
-
])) : p("", !0)
|
|
1263
|
-
])) : p("", !0),
|
|
1264
|
-
T(a.$slots, "svg", { svg: o.value }, void 0, !0)
|
|
1265
|
-
], 14, Rt)),
|
|
1266
|
-
a.$slots.watermark ? (u(), c("div", Bo, [
|
|
1267
|
-
T(a.$slots, "watermark", re(ue({ isPrinting: n(Pe) || n(Te) })), void 0, !0)
|
|
1268
|
-
])) : p("", !0),
|
|
1269
|
-
a.$slots.source ? (u(), c("div", {
|
|
1270
|
-
key: 4,
|
|
1271
|
-
ref_key: "source",
|
|
1272
|
-
ref: we,
|
|
1273
|
-
dir: "auto"
|
|
1274
|
-
}, [
|
|
1275
|
-
T(a.$slots, "source", {}, void 0, !0)
|
|
1276
|
-
], 512)) : p("", !0),
|
|
1277
|
-
_e.value && x.value ? (u(), J(n(lt), {
|
|
1278
|
-
key: 5,
|
|
1279
|
-
hideDetails: "",
|
|
1280
|
-
config: {
|
|
1281
|
-
open: X.value.showTable,
|
|
1282
|
-
maxHeight: 1e4,
|
|
1283
|
-
body: {
|
|
1284
|
-
backgroundColor: t.value.style.chart.backgroundColor,
|
|
1285
|
-
color: t.value.style.chart.color
|
|
1286
|
-
},
|
|
1287
|
-
head: {
|
|
1288
|
-
backgroundColor: t.value.style.chart.backgroundColor,
|
|
1289
|
-
color: t.value.style.chart.color
|
|
1290
|
-
}
|
|
1291
|
-
}
|
|
1292
|
-
}, {
|
|
1293
|
-
content: D(() => [
|
|
1294
|
-
(u(), J(n(ot), {
|
|
1295
|
-
key: `table_${be.value}`,
|
|
1296
|
-
colNames: ae.value.colNames,
|
|
1297
|
-
head: ae.value.head,
|
|
1298
|
-
body: ae.value.body,
|
|
1299
|
-
config: ae.value.config,
|
|
1300
|
-
title: `${t.value.style.chart.title.text}${t.value.style.chart.title.subtitle.text ? ` : ${t.value.style.chart.title.subtitle.text}` : ""}`,
|
|
1301
|
-
onClose: s[7] || (s[7] = (e) => X.value.showTable = !1)
|
|
1302
|
-
}, {
|
|
1303
|
-
th: D(({ th: e }) => [
|
|
1304
|
-
i("div", {
|
|
1305
|
-
innerHTML: e,
|
|
1306
|
-
style: { display: "flex", "align-items": "center" }
|
|
1307
|
-
}, null, 8, Lo)
|
|
1308
|
-
]),
|
|
1309
|
-
td: D(({ td: e }) => [
|
|
1310
|
-
_t(E(e.name || e), 1)
|
|
1311
|
-
]),
|
|
1312
|
-
_: 1
|
|
1313
|
-
}, 8, ["colNames", "head", "body", "config", "title"]))
|
|
1314
|
-
]),
|
|
1315
|
-
_: 1
|
|
1316
|
-
}, 8, ["config"])) : p("", !0),
|
|
1317
|
-
n(U) ? (u(), J(Et, { key: 6 })) : p("", !0)
|
|
1318
|
-
], 44, Gt));
|
|
1319
|
-
}
|
|
1320
|
-
}, Qo = /* @__PURE__ */ Wt(Eo, [["__scopeId", "data-v-8f46be8e"]]);
|
|
1321
|
-
export {
|
|
1322
|
-
Qo as default
|
|
1323
|
-
};
|