vue-data-ui 2.3.85 → 2.3.87
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-CLOh6oi7.cjs → Arrow-eu15g0Zt.cjs} +1 -1
- package/dist/{Arrow-JwDgP3de.js → Arrow-tDycrMHk.js} +1 -1
- package/dist/{BaseIcon-BBQHz_Sf.cjs → BaseIcon-CgLB-iUq.cjs} +1 -1
- package/dist/{BaseIcon-BysUnfCR.js → BaseIcon-D2n64yMC.js} +1 -1
- package/dist/{DataTable-MkG5Dqrn.js → DataTable-CrbRO0dh.js} +2 -2
- package/dist/{DataTable-pVXaNplZ.cjs → DataTable-DnOI5Ivh.cjs} +1 -1
- package/dist/{Legend-KW7sTwN3.js → Legend-BXctzvx2.js} +1 -1
- package/dist/{Legend-k2mcTp7z.cjs → Legend-sAjd_vcA.cjs} +1 -1
- package/dist/{Shape-COoEWeGM.cjs → Shape-BGa7uWId.cjs} +1 -1
- package/dist/{Shape-BFiZBf3X.js → Shape-BUBQ5omG.js} +1 -1
- package/dist/{Slicer-CALc-Q4W.js → Slicer-CXK3XM-z.js} +79 -87
- package/dist/Slicer-CoyHeBxs.cjs +1 -0
- package/dist/{Title-ISDbzCH8.js → Title-BITuZ5CT.js} +1 -1
- package/dist/{Title-BaKZYHEx.cjs → Title-DbAaPd9q.cjs} +1 -1
- package/dist/{Tooltip-BHmMXOej.js → Tooltip-DDBocDY4.js} +1 -1
- package/dist/{Tooltip-okAYzo5Y.cjs → Tooltip-LE8exuMN.cjs} +1 -1
- package/dist/{index-BiuHBtkZ.js → index-CP7GYbDW.js} +173 -162
- package/dist/index-U4mCr8P0.cjs +4 -0
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +13 -0
- package/dist/types/vue-data-ui.d.ts +13 -0
- package/dist/{useNestedProp-B9yDavuy.cjs → useNestedProp-CgUQgTyB.cjs} +1 -1
- package/dist/{useNestedProp-Ck5_RzLu.js → useNestedProp-Dfz8QNDn.js} +1 -1
- package/dist/usePrinter-BfETb5Ie.js +527 -0
- package/dist/usePrinter-DQLl_Row.cjs +1 -0
- package/dist/{vue-data-ui-CAl2KJv9.js → vue-data-ui-BiTJ4KBF.js} +57 -57
- package/dist/{vue-data-ui-CVYCyzY-.cjs → vue-data-ui-CgTf8Gw2.cjs} +1 -1
- package/dist/vue-data-ui.cjs +1 -1
- package/dist/vue-data-ui.js +1 -1
- package/dist/vue-ui-3d-bar-CKCcmMbS.cjs +19 -0
- package/dist/{vue-ui-3d-bar-CploAEkY.js → vue-ui-3d-bar-CKDV9VVB.js} +11 -10
- package/dist/{vue-ui-accordion-btKAUUTu.cjs → vue-ui-accordion-AcWCsB0f.cjs} +1 -1
- package/dist/{vue-ui-accordion-D2fhyKpk.js → vue-ui-accordion-DZSSaEp4.js} +3 -3
- package/dist/{vue-ui-age-pyramid-DkaM5MrK.js → vue-ui-age-pyramid-Cy-J_3gK.js} +25 -24
- package/dist/vue-ui-age-pyramid-DQ-h0bbz.cjs +1 -0
- package/dist/{vue-ui-annotator-38FBI0Pn.js → vue-ui-annotator-Dn_5RY5_.js} +1 -1
- package/dist/{vue-ui-annotator-BMYk78DR.cjs → vue-ui-annotator-GBAeaQUB.cjs} +1 -1
- package/dist/{vue-ui-candlestick-CKsjq0Uw.js → vue-ui-candlestick-CAdWy5Y1.js} +12 -11
- package/dist/vue-ui-candlestick-guSNt_H0.cjs +2 -0
- package/dist/{vue-ui-carousel-table-Cx72LlTd.cjs → vue-ui-carousel-table-CuFG5v2i.cjs} +1 -1
- package/dist/{vue-ui-carousel-table-DjGaEuM7.js → vue-ui-carousel-table-DmmKDp7-.js} +7 -7
- package/dist/{vue-ui-chestnut-TLyh4dIZ.js → vue-ui-chestnut-BmzjUDjK.js} +10 -9
- package/dist/{vue-ui-chestnut-DAiBfoPN.cjs → vue-ui-chestnut-bAWBqCf3.cjs} +2 -2
- package/dist/{vue-ui-cursor-BunDuWpK.cjs → vue-ui-cursor-CfkNSO9o.cjs} +1 -1
- package/dist/{vue-ui-cursor-B1xa5yua.js → vue-ui-cursor-DDViNH81.js} +2 -2
- package/dist/{vue-ui-dashboard-DdcubzWu.js → vue-ui-dashboard-BGwxII0l.js} +2 -2
- package/dist/{vue-ui-dashboard-CMZ736DL.cjs → vue-ui-dashboard-CT09iVhX.cjs} +1 -1
- package/dist/{vue-ui-digits-BUpjWWnD.js → vue-ui-digits-BYO9w7xM.js} +2 -2
- package/dist/{vue-ui-digits-z5g__gqs.cjs → vue-ui-digits-DObHCYJe.cjs} +1 -1
- package/dist/vue-ui-donut-B-YGaPcq.cjs +1 -0
- package/dist/{vue-ui-donut-ZLpfm-XT.js → vue-ui-donut-DqOvTGAK.js} +34 -33
- package/dist/{vue-ui-donut-evolution-Bn4asQO3.js → vue-ui-donut-evolution-ByIcsVPF.js} +12 -11
- package/dist/vue-ui-donut-evolution-DAzxGbsO.cjs +1 -0
- package/dist/{vue-ui-dumbbell-CY6X8J1K.cjs → vue-ui-dumbbell-Ch6sj_EW.cjs} +2 -2
- package/dist/{vue-ui-dumbbell-D2R9tJ99.js → vue-ui-dumbbell-JpJFPxM2.js} +11 -10
- package/dist/{vue-ui-flow-Dd5uPNTQ.js → vue-ui-flow-BhtIMcan.js} +10 -9
- package/dist/vue-ui-flow-C5N8YgfJ.cjs +1 -0
- package/dist/{vue-ui-galaxy-B7CoWLhj.js → vue-ui-galaxy-BZT14d6d.js} +12 -11
- package/dist/vue-ui-galaxy-Cv38ZzWi.cjs +1 -0
- package/dist/vue-ui-gauge-BrwCmfGP.cjs +1 -0
- package/dist/{vue-ui-gauge-CGh_m922.js → vue-ui-gauge-Dj2gBTkq.js} +29 -28
- package/dist/{vue-ui-gizmo-D5Kn7w7L.cjs → vue-ui-gizmo-BhCZEfOE.cjs} +1 -1
- package/dist/{vue-ui-gizmo-BY3hnKSH.js → vue-ui-gizmo-Dx0mO1Zf.js} +2 -2
- package/dist/{vue-ui-heatmap-yYN0u0I6.js → vue-ui-heatmap-DdSGFMo1.js} +41 -40
- package/dist/vue-ui-heatmap-azP3H0Be.cjs +1 -0
- package/dist/{vue-ui-kpi-B4zr_geL.js → vue-ui-kpi-C0fjrvpC.js} +3 -3
- package/dist/{vue-ui-kpi-Q20yM3IP.cjs → vue-ui-kpi-TKkErBy-.cjs} +1 -1
- package/dist/{vue-ui-mini-loader-GImbaGsN.js → vue-ui-mini-loader-CVflLGuB.js} +2 -2
- package/dist/{vue-ui-mini-loader-GFSZofpE.cjs → vue-ui-mini-loader-DAos2pVd.cjs} +1 -1
- package/dist/vue-ui-molecule-CW1523wC.cjs +1 -0
- package/dist/{vue-ui-molecule-DmrB3kgA.js → vue-ui-molecule-D9OfBp53.js} +290 -286
- package/dist/{vue-ui-mood-radar-sEkQtzI2.js → vue-ui-mood-radar-PMARjoQW.js} +79 -78
- package/dist/vue-ui-mood-radar-vvG5BlGa.cjs +1 -0
- package/dist/{vue-ui-nested-donuts-DvpZLcYd.js → vue-ui-nested-donuts-Bt8ZHG4b.js} +35 -34
- package/dist/vue-ui-nested-donuts-wVELVgGD.cjs +17 -0
- package/dist/{vue-ui-onion-DQMLPe3M.js → vue-ui-onion-B-4djV2X.js} +12 -11
- package/dist/vue-ui-onion-j8P027dX.cjs +5 -0
- package/dist/{vue-ui-parallel-coordinate-plot-DN2LPNyS.js → vue-ui-parallel-coordinate-plot-B2N249AX.js} +14 -13
- package/dist/vue-ui-parallel-coordinate-plot-BRNG5VwG.cjs +8 -0
- package/dist/vue-ui-quadrant-BaDei-7C.cjs +1 -0
- package/dist/{vue-ui-quadrant-D2GpeXI6.js → vue-ui-quadrant-Bvv3ZZI7.js} +13 -12
- package/dist/{vue-ui-quick-chart-C5K9DfUV.js → vue-ui-quick-chart-BzFITYDP.js} +60 -59
- package/dist/vue-ui-quick-chart-OUDWfDwC.cjs +15 -0
- package/dist/vue-ui-radar-Bpz3hyr9.cjs +1 -0
- package/dist/{vue-ui-radar-B9TZPujK.js → vue-ui-radar-CXH5XhDS.js} +13 -12
- package/dist/{vue-ui-rating-DpxzUDQq.cjs → vue-ui-rating-BEtR56Zg.cjs} +1 -1
- package/dist/{vue-ui-rating-B0pNsmGB.js → vue-ui-rating-BcngasYQ.js} +2 -2
- package/dist/{vue-ui-relation-circle-DSnlpLHt.js → vue-ui-relation-circle-BmWv5Kwu.js} +46 -45
- package/dist/{vue-ui-relation-circle-D3B-lpdM.cjs → vue-ui-relation-circle-Cn4xYFeJ.cjs} +1 -1
- package/dist/{vue-ui-rings-cmeFVitd.cjs → vue-ui-rings-BbrUn18Q.cjs} +2 -2
- package/dist/{vue-ui-rings-BuvFDBXg.js → vue-ui-rings-DDvVuJvv.js} +12 -11
- package/dist/vue-ui-scatter-C9B6pkLG.cjs +1 -0
- package/dist/{vue-ui-scatter-D_chvOSJ.js → vue-ui-scatter-CfgLA10v.js} +13 -12
- package/dist/{vue-ui-screenshot-CwrXLMru.cjs → vue-ui-screenshot-BDjgeoQi.cjs} +1 -1
- package/dist/{vue-ui-screenshot-DSHeHshf.js → vue-ui-screenshot-W6aedcDN.js} +1 -1
- package/dist/{vue-ui-skeleton-Du4zw-c1.js → vue-ui-skeleton-BAQjFiop.js} +2 -2
- package/dist/{vue-ui-skeleton-DJhwv2oY.cjs → vue-ui-skeleton-BhG4niml.cjs} +1 -1
- package/dist/{vue-ui-smiley-BtQLJ7rA.js → vue-ui-smiley-CQNAPd4d.js} +2 -2
- package/dist/{vue-ui-smiley-BNkk6suC.cjs → vue-ui-smiley-J1L8V6KG.cjs} +1 -1
- package/dist/{vue-ui-spark-trend-DFIjxBTY.cjs → vue-ui-spark-trend-BTdNsDFX.cjs} +1 -1
- package/dist/{vue-ui-spark-trend-BgA79g7a.js → vue-ui-spark-trend-CBc-tBLR.js} +4 -4
- package/dist/{vue-ui-sparkbar-BlwQfhlY.cjs → vue-ui-sparkbar-D0189X8M.cjs} +1 -1
- package/dist/{vue-ui-sparkbar-DQAWZReF.js → vue-ui-sparkbar-DCLpbzSR.js} +3 -3
- package/dist/{vue-ui-sparkgauge-BCRSQDpt.cjs → vue-ui-sparkgauge-ButS3IF8.cjs} +1 -1
- package/dist/{vue-ui-sparkgauge-CCApU38s.js → vue-ui-sparkgauge-C-12vLRd.js} +3 -3
- package/dist/{vue-ui-sparkhistogram-PKTt4EmH.js → vue-ui-sparkhistogram-CqHEh_4P.js} +4 -4
- package/dist/{vue-ui-sparkhistogram-CTxG1Vtn.cjs → vue-ui-sparkhistogram-NLFMPPXv.cjs} +1 -1
- package/dist/{vue-ui-sparkline-EESAiZyt.js → vue-ui-sparkline-BaHeaRVl.js} +3 -3
- package/dist/{vue-ui-sparkline-BUaixngQ.cjs → vue-ui-sparkline-Cy8fuCDw.cjs} +1 -1
- package/dist/{vue-ui-sparkstackbar-iQnc0zcO.cjs → vue-ui-sparkstackbar-B64XK1yu.cjs} +1 -1
- package/dist/{vue-ui-sparkstackbar-TnLNixdf.js → vue-ui-sparkstackbar-BLvXeEbr.js} +3 -3
- package/dist/{vue-ui-stackbar-Ci04sup3.js → vue-ui-stackbar-B-ZE7Ksh.js} +13 -12
- package/dist/vue-ui-stackbar-CLmcckvD.cjs +6 -0
- package/dist/vue-ui-strip-plot-DTJeRXEM.cjs +1 -0
- package/dist/{vue-ui-strip-plot-DbvW0BuF.js → vue-ui-strip-plot-DbmLZ03_.js} +12 -11
- package/dist/{vue-ui-table-CamkBCdL.js → vue-ui-table-CpUWJGi_.js} +1 -1
- package/dist/{vue-ui-table-328De4vk.cjs → vue-ui-table-DdroDYB6.cjs} +1 -1
- package/dist/vue-ui-table-heatmap-CSHkuLE3.cjs +1 -0
- package/dist/{vue-ui-table-heatmap-D-YdrvGV.js → vue-ui-table-heatmap-XJj-iDhJ.js} +27 -26
- package/dist/{vue-ui-table-sparkline-Dg2RKv6f.js → vue-ui-table-sparkline-DEhCOiH8.js} +25 -24
- package/dist/{vue-ui-table-sparkline-Cmg7wnQ0.cjs → vue-ui-table-sparkline-GgMGhbwH.cjs} +1 -1
- package/dist/{vue-ui-thermometer-jWHbZTc2.js → vue-ui-thermometer-CF9_Jiig.js} +51 -50
- package/dist/vue-ui-thermometer-LM5LB1fZ.cjs +1 -0
- package/dist/{vue-ui-timer-BPepr5eV.js → vue-ui-timer-BN3oSs18.js} +4 -4
- package/dist/{vue-ui-timer-B_FyRAU7.cjs → vue-ui-timer-Kw8zfnyl.cjs} +1 -1
- package/dist/{vue-ui-tiremarks-CaJWlyz8.cjs → vue-ui-tiremarks-B5Ieo2VI.cjs} +1 -1
- package/dist/{vue-ui-tiremarks-DW8Q2IBl.js → vue-ui-tiremarks-CTiztDdT.js} +48 -47
- package/dist/{vue-ui-treemap-B9GpvA0k.cjs → vue-ui-treemap-CHngTUd0.cjs} +1 -1
- package/dist/{vue-ui-treemap-CWu43qLo.js → vue-ui-treemap-DEDT65NP.js} +13 -12
- package/dist/vue-ui-vertical-bar-C8XQwe6S.cjs +4 -0
- package/dist/{vue-ui-vertical-bar-CndASePh.js → vue-ui-vertical-bar-hFeIrO6z.js} +13 -12
- package/dist/{vue-ui-waffle-CdyqwJwN.js → vue-ui-waffle-CLbMVN8j.js} +46 -45
- package/dist/{vue-ui-waffle-c9ycdoKz.cjs → vue-ui-waffle-tFQq8-qt.cjs} +1 -1
- package/dist/vue-ui-wheel-CMRCYfem.cjs +1 -0
- package/dist/{vue-ui-wheel-Byq_BLhl.js → vue-ui-wheel-DpPdEqHh.js} +34 -33
- package/dist/{vue-ui-word-cloud-BVOcsuMP.cjs → vue-ui-word-cloud-C18oOvC0.cjs} +1 -1
- package/dist/{vue-ui-word-cloud-BRxN5uFD.js → vue-ui-word-cloud-DTXq9aIY.js} +10 -9
- package/dist/vue-ui-xy-Bw1GQuGo.cjs +3 -0
- package/dist/{vue-ui-xy-DgEdZz0O.js → vue-ui-xy-DN8TqWYI.js} +342 -339
- package/dist/{vue-ui-xy-canvas-BI7jUOTn.js → vue-ui-xy-canvas-BoH-Grae.js} +54 -53
- package/dist/{vue-ui-xy-canvas-Td0WNYN0.cjs → vue-ui-xy-canvas-Dg9jorcV.cjs} +2 -2
- package/package.json +1 -1
- package/dist/Slicer-DCyxUSsn.cjs +0 -1
- package/dist/index-D-vy9N1v.cjs +0 -4
- package/dist/usePrinter-Do8KiK5h.js +0 -513
- package/dist/usePrinter-P4nLcXX-.cjs +0 -1
- package/dist/vue-ui-3d-bar-DlUqKETN.cjs +0 -19
- package/dist/vue-ui-age-pyramid-CvSoQ1op.cjs +0 -1
- package/dist/vue-ui-candlestick-BJulnyV3.cjs +0 -2
- package/dist/vue-ui-donut-TY2Z9Ljx.cjs +0 -1
- package/dist/vue-ui-donut-evolution-BEm2dOxe.cjs +0 -1
- package/dist/vue-ui-flow-DswsuPwy.cjs +0 -1
- package/dist/vue-ui-galaxy-Dxy6jzus.cjs +0 -1
- package/dist/vue-ui-gauge-CWd_ol6u.cjs +0 -1
- package/dist/vue-ui-heatmap-AUm42a1v.cjs +0 -1
- package/dist/vue-ui-molecule-C9FcDH4x.cjs +0 -1
- package/dist/vue-ui-mood-radar-CRwStVTV.cjs +0 -1
- package/dist/vue-ui-nested-donuts-BcOgxtZV.cjs +0 -17
- package/dist/vue-ui-onion-C9v9YjdJ.cjs +0 -5
- package/dist/vue-ui-parallel-coordinate-plot-BBuPdl2K.cjs +0 -8
- package/dist/vue-ui-quadrant-ulY-rCMI.cjs +0 -1
- package/dist/vue-ui-quick-chart-DFj17h6h.cjs +0 -15
- package/dist/vue-ui-radar-KA287Tp-.cjs +0 -1
- package/dist/vue-ui-scatter-BWPqoSUN.cjs +0 -1
- package/dist/vue-ui-stackbar-Rrcyg4CC.cjs +0 -6
- package/dist/vue-ui-strip-plot-CowHumiU.cjs +0 -1
- package/dist/vue-ui-table-heatmap-CCHre3Gt.cjs +0 -1
- package/dist/vue-ui-thermometer-BDeKErC9.cjs +0 -1
- package/dist/vue-ui-vertical-bar-a_41JdIn.cjs +0 -4
- package/dist/vue-ui-wheel-B3BMfKmd.cjs +0 -1
- package/dist/vue-ui-xy-CsS5ny0q.cjs +0 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),u=require("./index-D-vy9N1v.cjs"),ie=require("./Title-BaKZYHEx.cjs"),j=require("./usePrinter-P4nLcXX-.cjs"),A=require("./useResponsive-B3TrDDIG.cjs"),ce=require("./vue-ui-accordion-btKAUUTu.cjs"),de=require("./DataTable-pVXaNplZ.cjs"),ve=require("./BaseIcon-BBQHz_Sf.cjs"),Y=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),H=require("./useNestedProp-B9yDavuy.cjs"),he=i=>(e.pushScopeId("data-v-3fd7d274"),i=i(),e.popScopeId(),i),me={"data-html2canvas-ignore":""},fe={key:0,class:"reset-wrapper"},ge={key:1,class:"reset-wrapper"},pe={class:"mono-slicer"},ye=he(()=>e.createElementVNode("div",{class:"slider-track"},null,-1)),be=["min","max","value"],Ce={__name:"MonoSlicer",props:{min:{type:Number,default:0},max:{type:Number,default:0},inputColor:{type:String,default:"#1A1A1A"},background:{type:String,default:"#FFFFFF"},borderColor:{type:String,default:"#FFFFFF"},selectColor:{type:String,default:"#4A4A4A"},textColor:{type:String,default:"#1A1A1A"},useResetSlot:{type:Boolean,default:!1},value:{type:Number,default:0},source:{type:Number,default:0}},emits:["update:value","reset"],setup(i,{emit:$}){const r=i;e.useCssVars(f=>({"90ad3208":T.value,"4f9eef70":w.value,"6e07ae3e":k.value,"2fd430a0":i.selectColor,"6b8169a4":g.value}));const T=e.computed(()=>r.inputColor),g=e.computed(()=>r.background),k=e.computed(()=>`${r.selectColor}33`),w=e.computed(()=>r.borderColor);function x(){$("reset")}const p=e.computed(()=>{const f=r.max-r.min,h=0,y=(r.value-r.min)/f*100;return{left:`${h}%`,width:`${y-h}%`,background:r.selectColor}});return(f,h)=>(e.openBlock(),e.createElementBlock("div",me,[i.value!==i.source?(e.openBlock(),e.createElementBlock("div",fe,[i.useResetSlot?e.renderSlot(f.$slots,"reset-action",{key:1,reset:x},void 0,!0):(e.openBlock(),e.createElementBlock("button",{key:0,"data-cy-reset":"",tabindex:"0",role:"button",class:"vue-data-ui-refresh-button",onClick:x},[e.createVNode(ve.default,{name:"refresh",stroke:i.textColor},null,8,["stroke"])]))])):(e.openBlock(),e.createElementBlock("div",ge)),e.createElementVNode("div",pe,[ye,e.createElementVNode("div",{class:"range-highlight",style:e.normalizeStyle(p.value)},null,4),e.createElementVNode("input",{type:"range",min:i.min,max:i.max,value:Number(i.value),onInput:h[0]||(h[0]=y=>$("update:value",Number(y.target.value)))},null,40,be)])]))}},ke=Y._export_sfc(Ce,[["__scopeId","data-v-3fd7d274"]]),we=["id"],xe=["xmlns","viewBox"],Se=["transform"],$e=["fill","font-weight","x","y","font-size","transform"],Ne={key:3,class:"vue-data-ui-watermark"},Be=["innerHTML"],Fe={__name:"vue-ui-word-cloud",props:{config:{type:Object,default(){return{}}},dataset:{type:[Array,String],default(){return[]}}},setup(i,{expose:$}){const r=i,{vue_ui_word_cloud:T}=u.useConfig(),g=e.computed({get(){return!!r.dataset&&r.dataset.length},set(o){return o}}),k=e.ref(typeof r.dataset=="string"?u.createWordCloudDatasetFromPlainText(r.dataset):r.dataset.map(o=>({...o,value:u.checkNaN(o.value)}))),w=e.ref(u.createUid()),x=e.ref(0),p=e.ref(null),f=e.ref(null),h=e.ref(0),y=e.ref(0),t=e.computed({get:()=>O(),set:o=>o});function O(){const o=H.useNestedProp({userConfig:r.config,defaultConfig:T});return o.theme?{...H.useNestedProp({userConfig:u.themes.vue_ui_word_cloud[o.theme]||r.config,defaultConfig:o}),customPalette:u.themePalettes[o.theme]||u.palette}:o}e.watch(()=>r.config,o=>{t.value=O(),R(),h.value+=1,y.value+=1,v.value=t.value.style.chart.width},{deep:!0});const M=e.ref(null),v=e.ref(t.value.style.chart.width),s=e.ref({width:v.value,height:t.value.style.chart.height/t.value.style.chart.height*v.value,maxFontSize:t.value.style.chart.words.maxFontSize,minFontSize:t.value.style.chart.words.minFontSize}),J=A.throttle(()=>{const{width:o,height:a}=A.useResponsive({chart:p.value,title:t.value.style.chart.title.text?f.value:null,slicer:t.value.style.chart.zoom.show&&M.value});s.value.width=o,s.value.height=a,e.nextTick(E)});e.watch(()=>v.value,()=>{K()});const K=A.debounce(()=>{s.value.width=Number(v.value),s.value.height=t.value.style.chart.height/t.value.style.chart.height*Number(v.value),E()},10);function Q(){v.value=t.value.style.chart.width}const N=e.ref(null);e.onMounted(()=>{R()});function R(){u.objectIsEmpty(r.dataset)?u.error({componentName:"VueUiWordCloud",type:"dataset"}):k.value.forEach((o,a)=>{u.getMissingDatasetAttributes({datasetObject:o,requiredAttributes:["name","value"]}).forEach(l=>{g.value=!1,u.error({componentName:"VueUiWordCloud",type:"datasetSerieAttribute",property:l,index:a})})}),t.value.responsive&&(N.value=new ResizeObserver(J),N.value.observe(p.value.parentNode))}e.onBeforeUnmount(()=>{N.value&&N.value.disconnect()});const{isPrinting:q,isImaging:D,generatePdf:U,generateImage:W}=j.usePrinter({elementId:`wordCloud_${w.value}`,fileName:t.value.style.chart.title.text||"vue-ui-word-cloud"}),B=e.ref({showTable:t.value.table.show});function Z(o,a,l="Arial"){const n=document.createElement("canvas").getContext("2d");return n.font=`${a}px ${t.value.style.chart.words.bold?"bold":"normal"} ${l}`,{width:n.measureText(o).width+t.value.style.chart.words.proximity,height:a}}function ee(o,a){return o.x<a.x+a.width&&o.x+o.width>a.x&&o.y<a.y+a.height&&o.y+o.height>a.y}function te(o,a,l){const c=[],n={x:-a/2,y:-l/2,width:a,height:l},d=0,b=0;return o.forEach(C=>{let I=!1;for(let z=0;z<Math.max(a,l)/2&&!I;z+=t.value.style.chart.words.packingWeight)for(let V=0;V<360&&!I;V+=t.value.style.chart.words.packingWeight){const X=V*Math.PI/180,ae=d+z*Math.cos(X)-C.width/2,ne=b+z*Math.sin(X)-C.height/2,m={...C,x:ae,y:ne},re=m.x>=n.x&&m.y>=n.y&&m.x+m.width<=n.x+n.width&&m.y+m.height<=n.y+n.height,se=c.some(ue=>ee(m,ue));re&&!se&&(c.push(m),I=!0)}}),c}const S=e.ref([]);e.watch(()=>r.dataset,E,{immediate:!0});function E(){const o=k.value.map(n=>n.value),a=Math.max(...o),l=Math.min(...o),c=k.value.map((n,d)=>{const b=(n.value-l)/(a-l)*(s.value.maxFontSize-s.value.minFontSize)+s.value.minFontSize,C=Z(n.name,b);return{...n,id:u.createUid(),fontSize:b,width:C.width,height:C.height,color:t.value.style.chart.words.usePalette?t.value.customPalette[d]||t.value.customPalette[d%t.value.customPalette.length]||u.palette[d]||u.palette[d%u.palette.length]:t.value.style.chart.words.color}});S.value=te(c,s.value.width,s.value.height).sort((n,d)=>d.fontSize-n.fontSize)}const F=e.computed(()=>{const o=S.value.map(l=>({name:l.name,color:l.color})),a=S.value.map(l=>l.value);return{head:o,body:a}});function G(){e.nextTick(()=>{const o=F.value.head.map((c,n)=>[[c.name],[F.value.body[n]]]),a=[[t.value.style.chart.title.text],[t.value.style.chart.title.subtitle.text],[[""],[t.value.table.columnNames.value]]].concat(o),l=u.createCsvContent(a);u.downloadCsv({csvContent:l,title:t.value.style.chart.title.text||"vue-ui-word-cloud"})})}const P=e.computed(()=>{const o=[t.value.table.columnNames.series,t.value.table.columnNames.value],a=F.value.head.map((n,d)=>{const b=u.dataLabel({p:t.value.table.td.prefix,v:F.value.body[d],s:t.value.table.td.suffix,r:t.value.table.td.roundingValue});return[{color:n.color,name:n.name},b]}),l={th:{backgroundColor:t.value.table.th.backgroundColor,color:t.value.table.th.color,outline:t.value.table.th.outline},td:{backgroundColor:t.value.table.td.backgroundColor,color:t.value.table.td.color,outline:t.value.table.td.outline},breakpoint:t.value.table.responsiveBreakpoint};return{colNames:[t.value.table.columnNames.series,t.value.table.columnNames.value],head:o,body:a,config:l}}),_=e.ref(!1);function oe(o){_.value=o,x.value+=1}function le(){return S.value}function L(){B.value.showTable=!B.value.showTable}return $({getData:le,generateCsv:G,generatePdf:U,generateImage:W,toggleTable:L}),(o,a)=>(e.openBlock(),e.createElementBlock("div",{class:"vue-ui-word-cloud",ref_key:"wordCloudChart",ref:p,id:`wordCloud_${w.value}`,style:e.normalizeStyle(`width: 100%; font-family:${t.value.style.fontFamily};background:${t.value.style.chart.backgroundColor};${t.value.responsive?"height:100%":""}`)},[t.value.style.chart.title.text?(e.openBlock(),e.createElementBlock("div",{key:0,ref_key:"chartTitle",ref:f,style:"width:100%;background:transparent;padding-bottom:24px"},[(e.openBlock(),e.createBlock(ie._sfc_main,{key:`title_${h.value}`,config:{title:{...t.value.style.chart.title},subtitle:{...t.value.style.chart.title.subtitle}}},null,8,["config"]))],512)):e.createCommentVNode("",!0),t.value.userOptions.show&&g.value?(e.openBlock(),e.createBlock(j.UserOptions,{ref:"details",key:`user_option_${x.value}`,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,isPrinting:e.unref(q),isImaging:e.unref(D),uid:w.value,hasPdf:t.value.userOptions.buttons.pdf,hasXls:t.value.userOptions.buttons.csv,hasImg:t.value.userOptions.buttons.img,hasTable:t.value.userOptions.buttons.table,hasFullscreen:t.value.userOptions.buttons.fullscreen,isFullscreen:_.value,titles:{...t.value.userOptions.buttonTitles},chartElement:p.value,onToggleFullscreen:oe,onGeneratePdf:e.unref(U),onGenerateCsv:G,onGenerateImage:e.unref(W),onToggleTable:L},e.createSlots({_:2},[o.$slots.optionPdf?{name:"optionPdf",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"optionPdf",{},void 0,!0)]),key:"0"}:void 0,o.$slots.optionCsv?{name:"optionCsv",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"optionCsv",{},void 0,!0)]),key:"1"}:void 0,o.$slots.optionImg?{name:"optionImg",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"optionImg",{},void 0,!0)]),key:"2"}:void 0,o.$slots.optionTable?{name:"optionTable",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"optionTable",{},void 0,!0)]),key:"3"}:void 0,o.$slots.optionFullscreen?{name:"optionFullscreen",fn:e.withCtx(({toggleFullscreen:l,isFullscreen:c})=>[e.renderSlot(o.$slots,"optionFullscreen",e.normalizeProps(e.guardReactiveProps({toggleFullscreen:l,isFullscreen:c})),void 0,!0)]),key:"4"}:void 0]),1032,["backgroundColor","color","isPrinting","isImaging","uid","hasPdf","hasXls","hasImg","hasTable","hasFullscreen","isFullscreen","titles","chartElement","onGeneratePdf","onGenerateImage"])):e.createCommentVNode("",!0),g.value?(e.openBlock(),e.createElementBlock("svg",{key:2,class:e.normalizeClass({"vue-data-ui-fullscreen--on":_.value,"vue-data-ui-fulscreen--off":!_.value}),xmlns:e.unref(u.XMLNS),viewBox:`0 0 ${s.value.width<=0?10:s.value.width} ${s.value.height<=0?10:s.value.height}`,style:"overflow:visible;background:transparent;"},[e.createElementVNode("g",{transform:`translate(${(s.value.width<=0?10:s.value.width)/2}, ${(s.value.height<=0?10:s.value.height)/2})`},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(S.value,(l,c)=>(e.openBlock(),e.createElementBlock("g",null,[(e.openBlock(),e.createElementBlock("text",{fill:l.color,"font-weight":t.value.style.chart.words.bold?"bold":"normal",key:c,x:l.x,y:l.y,"font-size":l.fontSize,transform:`translate(${l.width/2}, ${l.height/2})`,style:e.normalizeStyle(`animation-delay:${c*t.value.animationDelayMs}ms !important`),class:e.normalizeClass({animated:t.value.useCssAnimation}),"text-anchor":"middle","dominant-baseline":"middle"},e.toDisplayString(l.name),15,$e))]))),256))],8,Se),e.renderSlot(o.$slots,"svg",{svg:{height:s.value.height,width:s.value.width}},void 0,!0)],10,xe)):e.createCommentVNode("",!0),o.$slots.watermark?(e.openBlock(),e.createElementBlock("div",Ne,[e.renderSlot(o.$slots,"watermark",e.normalizeProps(e.guardReactiveProps({isPrinting:e.unref(q)||e.unref(D)})),void 0,!0)])):e.createCommentVNode("",!0),e.createElementVNode("div",{ref_key:"chartSlicer",ref:M,style:"width:100%;background:transparent","data-html2canvas-ignore":""},[t.value.style.chart.zoom.show?(e.openBlock(),e.createBlock(ke,{key:0,value:v.value,"onUpdate:value":a[0]||(a[0]=l=>v.value=l),min:100,max:t.value.style.chart.width*3,textColor:t.value.style.chart.color,inputColor:t.value.style.chart.zoom.color,selectColor:t.value.style.chart.zoom.highlightColor,useResetSlot:t.value.style.chart.zoom.useResetSlot,background:t.value.style.chart.zoom.color,borderColor:t.value.style.chart.backgroundColor,source:t.value.style.chart.width,onReset:Q},{"reset-action":e.withCtx(({reset:l})=>[e.renderSlot(o.$slots,"reset-action",e.normalizeProps(e.guardReactiveProps({reset:l})),void 0,!0)]),_:3},8,["value","max","textColor","inputColor","selectColor","useResetSlot","background","borderColor","source"])):e.createCommentVNode("",!0)],512),g.value?(e.openBlock(),e.createBlock(ce.default,{key:4,hideDetails:"",config:{open:B.value.showTable,maxHeight:1e4,body:{backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color},head:{backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color}}},{content:e.withCtx(()=>[(e.openBlock(),e.createBlock(de.DataTable,{key:`table_${y.value}`,colNames:P.value.colNames,head:P.value.head,body:P.value.body,config:P.value.config,title:`${t.value.style.chart.title.text}${t.value.style.chart.title.subtitle.text?` : ${t.value.style.chart.title.subtitle.text}`:""}`,onClose:a[1]||(a[1]=l=>B.value.showTable=!1)},{th:e.withCtx(({th:l})=>[e.createElementVNode("div",{innerHTML:l,style:{display:"flex","align-items":"center"}},null,8,Be)]),td:e.withCtx(({td:l})=>[e.createTextVNode(e.toDisplayString(l.name||l),1)]),_:1},8,["colNames","head","body","config","title"]))]),_:1},8,["config"])):e.createCommentVNode("",!0)],12,we))}},Pe=Y._export_sfc(Fe,[["__scopeId","data-v-584c01f3"]]);exports.default=Pe;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),u=require("./index-U4mCr8P0.cjs"),ie=require("./Title-DbAaPd9q.cjs"),j=require("./usePrinter-DQLl_Row.cjs"),O=require("./useResponsive-B3TrDDIG.cjs"),ce=require("./vue-ui-accordion-AcWCsB0f.cjs"),de=require("./DataTable-DnOI5Ivh.cjs"),ve=require("./BaseIcon-CgLB-iUq.cjs"),Y=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),H=require("./useNestedProp-CgUQgTyB.cjs"),he=i=>(e.pushScopeId("data-v-3fd7d274"),i=i(),e.popScopeId(),i),me={"data-html2canvas-ignore":""},fe={key:0,class:"reset-wrapper"},pe={key:1,class:"reset-wrapper"},ge={class:"mono-slicer"},ye=he(()=>e.createElementVNode("div",{class:"slider-track"},null,-1)),be=["min","max","value"],Ce={__name:"MonoSlicer",props:{min:{type:Number,default:0},max:{type:Number,default:0},inputColor:{type:String,default:"#1A1A1A"},background:{type:String,default:"#FFFFFF"},borderColor:{type:String,default:"#FFFFFF"},selectColor:{type:String,default:"#4A4A4A"},textColor:{type:String,default:"#1A1A1A"},useResetSlot:{type:Boolean,default:!1},value:{type:Number,default:0},source:{type:Number,default:0}},emits:["update:value","reset"],setup(i,{emit:$}){const r=i;e.useCssVars(f=>({"90ad3208":T.value,"4f9eef70":w.value,"6e07ae3e":k.value,"2fd430a0":i.selectColor,"6b8169a4":p.value}));const T=e.computed(()=>r.inputColor),p=e.computed(()=>r.background),k=e.computed(()=>`${r.selectColor}33`),w=e.computed(()=>r.borderColor);function x(){$("reset")}const g=e.computed(()=>{const f=r.max-r.min,h=0,y=(r.value-r.min)/f*100;return{left:`${h}%`,width:`${y-h}%`,background:r.selectColor}});return(f,h)=>(e.openBlock(),e.createElementBlock("div",me,[i.value!==i.source?(e.openBlock(),e.createElementBlock("div",fe,[i.useResetSlot?e.renderSlot(f.$slots,"reset-action",{key:1,reset:x},void 0,!0):(e.openBlock(),e.createElementBlock("button",{key:0,"data-cy-reset":"",tabindex:"0",role:"button",class:"vue-data-ui-refresh-button",onClick:x},[e.createVNode(ve.default,{name:"refresh",stroke:i.textColor},null,8,["stroke"])]))])):(e.openBlock(),e.createElementBlock("div",pe)),e.createElementVNode("div",ge,[ye,e.createElementVNode("div",{class:"range-highlight",style:e.normalizeStyle(g.value)},null,4),e.createElementVNode("input",{type:"range",min:i.min,max:i.max,value:Number(i.value),onInput:h[0]||(h[0]=y=>$("update:value",Number(y.target.value)))},null,40,be)])]))}},ke=Y._export_sfc(Ce,[["__scopeId","data-v-3fd7d274"]]),we=["id"],xe=["xmlns","viewBox"],Se=["transform"],$e=["fill","font-weight","x","y","font-size","transform"],Ne={key:3,class:"vue-data-ui-watermark"},Be=["innerHTML"],Fe={__name:"vue-ui-word-cloud",props:{config:{type:Object,default(){return{}}},dataset:{type:[Array,String],default(){return[]}}},setup(i,{expose:$}){const r=i,{vue_ui_word_cloud:T}=u.useConfig(),p=e.computed({get(){return!!r.dataset&&r.dataset.length},set(o){return o}}),k=e.ref(typeof r.dataset=="string"?u.createWordCloudDatasetFromPlainText(r.dataset):r.dataset.map(o=>({...o,value:u.checkNaN(o.value)}))),w=e.ref(u.createUid()),x=e.ref(0),g=e.ref(null),f=e.ref(null),h=e.ref(0),y=e.ref(0),t=e.computed({get:()=>A(),set:o=>o});function A(){const o=H.useNestedProp({userConfig:r.config,defaultConfig:T});return o.theme?{...H.useNestedProp({userConfig:u.themes.vue_ui_word_cloud[o.theme]||r.config,defaultConfig:o}),customPalette:u.themePalettes[o.theme]||u.palette}:o}e.watch(()=>r.config,o=>{t.value=A(),R(),h.value+=1,y.value+=1,v.value=t.value.style.chart.width},{deep:!0});const M=e.ref(null),v=e.ref(t.value.style.chart.width),s=e.ref({width:v.value,height:t.value.style.chart.height/t.value.style.chart.height*v.value,maxFontSize:t.value.style.chart.words.maxFontSize,minFontSize:t.value.style.chart.words.minFontSize}),J=O.throttle(()=>{const{width:o,height:a}=O.useResponsive({chart:g.value,title:t.value.style.chart.title.text?f.value:null,slicer:t.value.style.chart.zoom.show&&M.value});s.value.width=o,s.value.height=a,e.nextTick(E)});e.watch(()=>v.value,()=>{K()});const K=O.debounce(()=>{s.value.width=Number(v.value),s.value.height=t.value.style.chart.height/t.value.style.chart.height*Number(v.value),E()},10);function Q(){v.value=t.value.style.chart.width}const N=e.ref(null);e.onMounted(()=>{R()});function R(){u.objectIsEmpty(r.dataset)?u.error({componentName:"VueUiWordCloud",type:"dataset"}):k.value.forEach((o,a)=>{u.getMissingDatasetAttributes({datasetObject:o,requiredAttributes:["name","value"]}).forEach(l=>{p.value=!1,u.error({componentName:"VueUiWordCloud",type:"datasetSerieAttribute",property:l,index:a})})}),t.value.responsive&&(N.value=new ResizeObserver(J),N.value.observe(g.value.parentNode))}e.onBeforeUnmount(()=>{N.value&&N.value.disconnect()});const{isPrinting:q,isImaging:D,generatePdf:U,generateImage:W}=j.usePrinter({elementId:`wordCloud_${w.value}`,fileName:t.value.style.chart.title.text||"vue-ui-word-cloud"}),B=e.ref({showTable:t.value.table.show});function Z(o,a,l="Arial"){const n=document.createElement("canvas").getContext("2d");return n.font=`${a}px ${t.value.style.chart.words.bold?"bold":"normal"} ${l}`,{width:n.measureText(o).width+t.value.style.chart.words.proximity,height:a}}function ee(o,a){return o.x<a.x+a.width&&o.x+o.width>a.x&&o.y<a.y+a.height&&o.y+o.height>a.y}function te(o,a,l){const c=[],n={x:-a/2,y:-l/2,width:a,height:l},d=0,b=0;return o.forEach(C=>{let I=!1;for(let z=0;z<Math.max(a,l)/2&&!I;z+=t.value.style.chart.words.packingWeight)for(let V=0;V<360&&!I;V+=t.value.style.chart.words.packingWeight){const X=V*Math.PI/180,ae=d+z*Math.cos(X)-C.width/2,ne=b+z*Math.sin(X)-C.height/2,m={...C,x:ae,y:ne},re=m.x>=n.x&&m.y>=n.y&&m.x+m.width<=n.x+n.width&&m.y+m.height<=n.y+n.height,se=c.some(ue=>ee(m,ue));re&&!se&&(c.push(m),I=!0)}}),c}const S=e.ref([]);e.watch(()=>r.dataset,E,{immediate:!0});function E(){const o=k.value.map(n=>n.value),a=Math.max(...o),l=Math.min(...o),c=k.value.map((n,d)=>{const b=(n.value-l)/(a-l)*(s.value.maxFontSize-s.value.minFontSize)+s.value.minFontSize,C=Z(n.name,b);return{...n,id:u.createUid(),fontSize:b,width:C.width,height:C.height,color:t.value.style.chart.words.usePalette?t.value.customPalette[d]||t.value.customPalette[d%t.value.customPalette.length]||u.palette[d]||u.palette[d%u.palette.length]:t.value.style.chart.words.color}});S.value=te(c,s.value.width,s.value.height).sort((n,d)=>d.fontSize-n.fontSize)}const F=e.computed(()=>{const o=S.value.map(l=>({name:l.name,color:l.color})),a=S.value.map(l=>l.value);return{head:o,body:a}});function G(){e.nextTick(()=>{const o=F.value.head.map((c,n)=>[[c.name],[F.value.body[n]]]),a=[[t.value.style.chart.title.text],[t.value.style.chart.title.subtitle.text],[[""],[t.value.table.columnNames.value]]].concat(o),l=u.createCsvContent(a);u.downloadCsv({csvContent:l,title:t.value.style.chart.title.text||"vue-ui-word-cloud"})})}const P=e.computed(()=>{const o=[t.value.table.columnNames.series,t.value.table.columnNames.value],a=F.value.head.map((n,d)=>{const b=u.dataLabel({p:t.value.table.td.prefix,v:F.value.body[d],s:t.value.table.td.suffix,r:t.value.table.td.roundingValue});return[{color:n.color,name:n.name},b]}),l={th:{backgroundColor:t.value.table.th.backgroundColor,color:t.value.table.th.color,outline:t.value.table.th.outline},td:{backgroundColor:t.value.table.td.backgroundColor,color:t.value.table.td.color,outline:t.value.table.td.outline},breakpoint:t.value.table.responsiveBreakpoint};return{colNames:[t.value.table.columnNames.series,t.value.table.columnNames.value],head:o,body:a,config:l}}),_=e.ref(!1);function oe(o){_.value=o,x.value+=1}function le(){return S.value}function L(){B.value.showTable=!B.value.showTable}return $({getData:le,generateCsv:G,generatePdf:U,generateImage:W,toggleTable:L}),(o,a)=>(e.openBlock(),e.createElementBlock("div",{class:"vue-ui-word-cloud",ref_key:"wordCloudChart",ref:g,id:`wordCloud_${w.value}`,style:e.normalizeStyle(`width: 100%; font-family:${t.value.style.fontFamily};background:${t.value.style.chart.backgroundColor};${t.value.responsive?"height:100%":""}`)},[t.value.style.chart.title.text?(e.openBlock(),e.createElementBlock("div",{key:0,ref_key:"chartTitle",ref:f,style:"width:100%;background:transparent;padding-bottom:24px"},[(e.openBlock(),e.createBlock(ie._sfc_main,{key:`title_${h.value}`,config:{title:{...t.value.style.chart.title},subtitle:{...t.value.style.chart.title.subtitle}}},null,8,["config"]))],512)):e.createCommentVNode("",!0),t.value.userOptions.show&&p.value?(e.openBlock(),e.createBlock(j.UserOptions,{ref:"details",key:`user_option_${x.value}`,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,isPrinting:e.unref(q),isImaging:e.unref(D),uid:w.value,hasPdf:t.value.userOptions.buttons.pdf,hasXls:t.value.userOptions.buttons.csv,hasImg:t.value.userOptions.buttons.img,hasTable:t.value.userOptions.buttons.table,hasFullscreen:t.value.userOptions.buttons.fullscreen,isFullscreen:_.value,titles:{...t.value.userOptions.buttonTitles},chartElement:g.value,position:t.value.userOptions.position,onToggleFullscreen:oe,onGeneratePdf:e.unref(U),onGenerateCsv:G,onGenerateImage:e.unref(W),onToggleTable:L},e.createSlots({_:2},[o.$slots.optionPdf?{name:"optionPdf",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"optionPdf",{},void 0,!0)]),key:"0"}:void 0,o.$slots.optionCsv?{name:"optionCsv",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"optionCsv",{},void 0,!0)]),key:"1"}:void 0,o.$slots.optionImg?{name:"optionImg",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"optionImg",{},void 0,!0)]),key:"2"}:void 0,o.$slots.optionTable?{name:"optionTable",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"optionTable",{},void 0,!0)]),key:"3"}:void 0,o.$slots.optionFullscreen?{name:"optionFullscreen",fn:e.withCtx(({toggleFullscreen:l,isFullscreen:c})=>[e.renderSlot(o.$slots,"optionFullscreen",e.normalizeProps(e.guardReactiveProps({toggleFullscreen:l,isFullscreen:c})),void 0,!0)]),key:"4"}:void 0]),1032,["backgroundColor","color","isPrinting","isImaging","uid","hasPdf","hasXls","hasImg","hasTable","hasFullscreen","isFullscreen","titles","chartElement","position","onGeneratePdf","onGenerateImage"])):e.createCommentVNode("",!0),p.value?(e.openBlock(),e.createElementBlock("svg",{key:2,class:e.normalizeClass({"vue-data-ui-fullscreen--on":_.value,"vue-data-ui-fulscreen--off":!_.value}),xmlns:e.unref(u.XMLNS),viewBox:`0 0 ${s.value.width<=0?10:s.value.width} ${s.value.height<=0?10:s.value.height}`,style:"overflow:visible;background:transparent;"},[e.createElementVNode("g",{transform:`translate(${(s.value.width<=0?10:s.value.width)/2}, ${(s.value.height<=0?10:s.value.height)/2})`},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(S.value,(l,c)=>(e.openBlock(),e.createElementBlock("g",null,[(e.openBlock(),e.createElementBlock("text",{fill:l.color,"font-weight":t.value.style.chart.words.bold?"bold":"normal",key:c,x:l.x,y:l.y,"font-size":l.fontSize,transform:`translate(${l.width/2}, ${l.height/2})`,style:e.normalizeStyle(`animation-delay:${c*t.value.animationDelayMs}ms !important`),class:e.normalizeClass({animated:t.value.useCssAnimation}),"text-anchor":"middle","dominant-baseline":"middle"},e.toDisplayString(l.name),15,$e))]))),256))],8,Se),e.renderSlot(o.$slots,"svg",{svg:{height:s.value.height,width:s.value.width}},void 0,!0)],10,xe)):e.createCommentVNode("",!0),o.$slots.watermark?(e.openBlock(),e.createElementBlock("div",Ne,[e.renderSlot(o.$slots,"watermark",e.normalizeProps(e.guardReactiveProps({isPrinting:e.unref(q)||e.unref(D)})),void 0,!0)])):e.createCommentVNode("",!0),e.createElementVNode("div",{ref_key:"chartSlicer",ref:M,style:"width:100%;background:transparent","data-html2canvas-ignore":""},[t.value.style.chart.zoom.show?(e.openBlock(),e.createBlock(ke,{key:0,value:v.value,"onUpdate:value":a[0]||(a[0]=l=>v.value=l),min:100,max:t.value.style.chart.width*3,textColor:t.value.style.chart.color,inputColor:t.value.style.chart.zoom.color,selectColor:t.value.style.chart.zoom.highlightColor,useResetSlot:t.value.style.chart.zoom.useResetSlot,background:t.value.style.chart.zoom.color,borderColor:t.value.style.chart.backgroundColor,source:t.value.style.chart.width,onReset:Q},{"reset-action":e.withCtx(({reset:l})=>[e.renderSlot(o.$slots,"reset-action",e.normalizeProps(e.guardReactiveProps({reset:l})),void 0,!0)]),_:3},8,["value","max","textColor","inputColor","selectColor","useResetSlot","background","borderColor","source"])):e.createCommentVNode("",!0)],512),p.value?(e.openBlock(),e.createBlock(ce.default,{key:4,hideDetails:"",config:{open:B.value.showTable,maxHeight:1e4,body:{backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color},head:{backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color}}},{content:e.withCtx(()=>[(e.openBlock(),e.createBlock(de.DataTable,{key:`table_${y.value}`,colNames:P.value.colNames,head:P.value.head,body:P.value.body,config:P.value.config,title:`${t.value.style.chart.title.text}${t.value.style.chart.title.subtitle.text?` : ${t.value.style.chart.title.subtitle.text}`:""}`,onClose:a[1]||(a[1]=l=>B.value.showTable=!1)},{th:e.withCtx(({th:l})=>[e.createElementVNode("div",{innerHTML:l,style:{display:"flex","align-items":"center"}},null,8,Be)]),td:e.withCtx(({td:l})=>[e.createTextVNode(e.toDisplayString(l.name||l),1)]),_:1},8,["colNames","head","body","config","title"]))]),_:1},8,["config"])):e.createCommentVNode("",!0)],12,we))}},Pe=Y._export_sfc(Fe,[["__scopeId","data-v-3b769470"]]);exports.default=Pe;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { useCssVars as Se, computed as g, openBlock as r, createElementBlock as v, createVNode as Fe, renderSlot as f, createElementVNode as w, normalizeStyle as H, pushScopeId as Ne, popScopeId as _e, ref as c, watch as X, onMounted as Pe, onBeforeUnmount as Te, createBlock as I, createCommentVNode as N, unref as C, createSlots as ze, withCtx as m, normalizeProps as j, guardReactiveProps as q, normalizeClass as se, Fragment as Ie, renderList as Ae, toDisplayString as ne, createTextVNode as Oe, nextTick as re } from "vue";
|
|
2
|
-
import { u as Me, Y as De, v as We, c as ue, t as Be, a as Ee, p as R, o as Re, e as ie, g as Ue, f as Ve, X as Ge, q as Le, r as Xe } from "./index-
|
|
3
|
-
import { _ as je } from "./Title-
|
|
4
|
-
import { u as qe, U as He } from "./usePrinter-
|
|
2
|
+
import { u as Me, Y as De, v as We, c as ue, t as Be, a as Ee, p as R, o as Re, e as ie, g as Ue, f as Ve, X as Ge, q as Le, r as Xe } from "./index-CP7GYbDW.js";
|
|
3
|
+
import { _ as je } from "./Title-BITuZ5CT.js";
|
|
4
|
+
import { u as qe, U as He } from "./usePrinter-BfETb5Ie.js";
|
|
5
5
|
import { d as Ye, t as Je, u as Ke } from "./useResponsive-NZB-WLRF.js";
|
|
6
|
-
import Qe from "./vue-ui-accordion-
|
|
7
|
-
import { D as Ze } from "./DataTable-
|
|
8
|
-
import et from "./BaseIcon-
|
|
6
|
+
import Qe from "./vue-ui-accordion-DZSSaEp4.js";
|
|
7
|
+
import { D as Ze } from "./DataTable-CrbRO0dh.js";
|
|
8
|
+
import et from "./BaseIcon-D2n64yMC.js";
|
|
9
9
|
import { _ as de } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
10
|
-
import { u as ce } from "./useNestedProp-
|
|
10
|
+
import { u as ce } from "./useNestedProp-Dfz8QNDn.js";
|
|
11
11
|
const tt = (u) => (Ne("data-v-3fd7d274"), u = u(), _e(), u), at = { "data-html2canvas-ignore": "" }, ot = {
|
|
12
12
|
key: 0,
|
|
13
13
|
class: "reset-wrapper"
|
|
@@ -362,6 +362,7 @@ const tt = (u) => (Ne("data-v-3fd7d274"), u = u(), _e(), u), at = { "data-html2c
|
|
|
362
362
|
isFullscreen: B.value,
|
|
363
363
|
titles: { ...e.value.userOptions.buttonTitles },
|
|
364
364
|
chartElement: x.value,
|
|
365
|
+
position: e.value.userOptions.position,
|
|
365
366
|
onToggleFullscreen: ye,
|
|
366
367
|
onGeneratePdf: C(ee),
|
|
367
368
|
onGenerateCsv: ae,
|
|
@@ -403,7 +404,7 @@ const tt = (u) => (Ne("data-v-3fd7d274"), u = u(), _e(), u), at = { "data-html2c
|
|
|
403
404
|
]),
|
|
404
405
|
key: "4"
|
|
405
406
|
} : void 0
|
|
406
|
-
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasXls", "hasImg", "hasTable", "hasFullscreen", "isFullscreen", "titles", "chartElement", "onGeneratePdf", "onGenerateImage"])) : N("", !0),
|
|
407
|
+
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasXls", "hasImg", "hasTable", "hasFullscreen", "isFullscreen", "titles", "chartElement", "position", "onGeneratePdf", "onGenerateImage"])) : N("", !0),
|
|
407
408
|
k.value ? (r(), v("svg", {
|
|
408
409
|
key: 2,
|
|
409
410
|
class: se({ "vue-data-ui-fullscreen--on": B.value, "vue-data-ui-fulscreen--off": !B.value }),
|
|
@@ -506,7 +507,7 @@ const tt = (u) => (Ne("data-v-3fd7d274"), u = u(), _e(), u), at = { "data-html2c
|
|
|
506
507
|
}, 8, ["config"])) : N("", !0)
|
|
507
508
|
], 12, ct));
|
|
508
509
|
}
|
|
509
|
-
}, Nt = /* @__PURE__ */ de(gt, [["__scopeId", "data-v-
|
|
510
|
+
}, Nt = /* @__PURE__ */ de(gt, [["__scopeId", "data-v-3b769470"]]);
|
|
510
511
|
export {
|
|
511
512
|
Nt as default
|
|
512
513
|
};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const E=require("./pdf-Cz3729tZ.cjs"),p=require("./usePrinter-DQLl_Row.cjs"),h=require("./index-U4mCr8P0.cjs"),z=require("./DataTable-DnOI5Ivh.cjs"),V=require("./Title-DbAaPd9q.cjs"),G=require("./Tooltip-LE8exuMN.cjs"),M=require("./Shape-BGa7uWId.cjs"),P=require("./BaseIcon-CgLB-iUq.cjs"),T=require("./vue-ui-table-sparkline-GgMGhbwH.cjs"),D=require("./vue-ui-skeleton-BhG4niml.cjs"),R=require("./Slicer-CoyHeBxs.cjs"),H=require("./vue-ui-accordion-AcWCsB0f.cjs"),B=require("./useNestedProp-CgUQgTyB.cjs"),t=require("vue"),W=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),q=h.createUid(),Y={name:"vue-ui-xy",props:{config:{type:Object,default(){return{}}},dataset:{type:Array,default(){return[]}}},components:{DataTable:z.DataTable,Shape:M._sfc_main,Title:V._sfc_main,Tooltip:G._sfc_main,UserOptions:p.UserOptions,BaseIcon:P.default,TableSparkline:T.default,Skeleton:D.default,Slicer:R.Slicer,Accordion:H.default},data(){this.dataset.forEach((n,u)=>{[null,void 0].includes(n.series)&&this.error({componentName:"VueUiXy",type:"datasetSerieAttribute",property:"series (number[])",index:u})});const r=Math.max(...this.dataset.map(n=>n.series.length)),s={start:0,end:r};return{themePalettes:h.themePalettes,themes:h.themes,slicerStep:0,selectedScale:null,CTX:null,CANVAS:null,opacity:h.opacity,useSafeValues:!0,palette:h.palette,height:600,width:1e3,viewBox:"0 0 1000 600",clientPosition:{x:0,y:0},canvasClientPosition:{x:0,y:0},icons:{line:"line",bar:"bar",plot:"plot"},isFullscreen:!1,isPrinting:!1,isImaging:!1,isTooltip:!1,mutableConfig:{dataLabels:{show:!0},showTooltip:!0,showTable:!1,isStacked:!1,useIndividualScale:!1},selectedSerieIndex:null,selectedRowIndex:null,segregatedSeries:[],uniqueId:h.createUid(),step:0,tableStep:0,titleStep:0,slicer:s,__to__:null,maxX:r,showSparklineTable:!0,segregateStep:0,sliderId:q,fontSizes:{xAxis:18,yAxis:12,dataLabels:20,plotLabels:10},plotRadii:{plot:3,line:3},selectedMinimapIndex:null}},watch:{dataset:{handler(r,s){this.maxX=Math.max(...this.dataset.map(n=>n.series.length)),this.slicer={start:0,end:this.maxX},this.slicerStep+=1,this.segregateStep+=1},deep:!0},config:{handler(r,s){this.FINAL_CONFIG=this.prepareConfig(),this.prepareChart(),this.titleStep+=1,this.tableStep+=1},deep:!0}},computed:{minimap(){if(!this.FINAL_CONFIG.chart.zoom.minimap.show)return[];const r=this.datasetWithIds.filter(a=>!this.segregatedSeries.includes(a.id)),s=Math.max(...r.map(a=>a.series.length)),n=[];for(let a=0;a<s;a+=1)n.push(r.map(e=>e.series[a]||0).reduce((e,g)=>(e||0)+(g||0),0));const u=Math.min(...n);return n.map(a=>a+(u<0?Math.abs(u):0))},customPalette(){return this.convertCustomPalette(this.FINAL_CONFIG.customPalette)},backgroundColor(){return this.FINAL_CONFIG.chart.backgroundColor},slicerColor(){return this.FINAL_CONFIG.chart.zoom.color},allScales(){const r=this.lineSet.map(a=>({name:a.name,color:a.color,scale:a.individualScale,scaleYLabels:a.scaleYLabels,zero:a.zeroPosition,max:a.individualMax,scaleLabel:a.scaleLabel||"",id:a.id,yOffset:a.yOffset||0,individualHeight:a.individualHeight||this.drawingArea.height,autoScaleYLabels:a.autoScaleYLabels})),s=this.barSet.map(a=>({name:a.name,color:a.color,scale:a.individualScale,scaleYLabels:a.scaleYLabels,zero:a.zeroPosition,max:a.individualMax,scaleLabel:a.scaleLabel||"",id:a.id,yOffset:a.yOffset||0,individualHeight:a.individualHeight||this.drawingArea.height})),n=this.plotSet.map(a=>({name:a.name,color:a.color,scale:a.individualScale,scaleYLabels:a.scaleYLabels,zero:a.zeroPosition,max:a.individualMax,scaleLabel:a.scaleLabel||"",id:a.id,yOffset:a.yOffset||0,individualHeight:a.individualHeight||this.drawingArea.height})),u=[...r,...s,...n].flatMap(a=>a).length;return[...r,...s,...n].flatMap((a,e)=>({id:a.id,scaleLabel:a.scaleLabel,name:a.name,color:a.color,scale:a.scale,yOffset:a.yOffset,individualHeight:a.individualHeight,x:this.mutableConfig.isStacked?this.drawingArea.left:this.drawingArea.left/u*(e+1),yLabels:a.scaleYLabels||a.scale.ticks.map(g=>({y:g>=0?a.zero-a.individualHeight*(g/a.max):a.zero+a.individualHeight*Math.abs(g)/a.max,value:g}))}))},isDataset(){return!!this.dataset&&this.dataset.length},chartFont(){const r=document.getElementById(`vue-ui-xy_${this.uniqueId}`);return window.getComputedStyle(r,null).getPropertyValue("font-family")},FINAL_CONFIG:{get:function(){return this.prepareConfig()},set:function(r){return r}},hasHighlightArea(){return Array.isArray(this.FINAL_CONFIG.chart.highlightArea)?this.FINAL_CONFIG.chart.highlightArea.some(r=>r.show):this.FINAL_CONFIG.chart.highlightArea&&this.FINAL_CONFIG.chart.highlightArea.show},highlightAreas(){if(Array.isArray(this.FINAL_CONFIG.chart.highlightArea))return this.FINAL_CONFIG.chart.highlightArea.map(s=>({...s,span:s.from===s.to?1:s.to<s.from?0:s.to-s.from+1}));const r=this.FINAL_CONFIG.chart.highlightArea;return[{...r,span:r.from===r.to?1:r.to<r.from?0:r.to-r.from+1}]},xPadding(){return this.FINAL_CONFIG.chart.grid.position==="middle"?0:this.drawingArea.width/this.maxSeries/2},relativeZero(){return this.niceScale.min>=0?0:Math.abs(this.niceScale.min)},absoluteMax(){return this.niceScale.max+this.relativeZero},datasetWithIds(){return this.useSafeValues?this.dataset.map((r,s)=>({...r,id:`uniqueId_${s}`})):this.dataset},safeDataset(){return this.useSafeValues?this.dataset.map((r,s)=>({...r,series:r.series.map(n=>this.isSafeValue(n)?n:null).slice(this.slicer.start,this.slicer.end),color:this.convertColorToHex(r.color?r.color:this.customPalette[s]?this.customPalette[s]:this.palette[s]),id:`uniqueId_${s}`})):this.dataset},relativeDataset(){return this.safeDataset.map((r,s)=>({...r,series:r.series.map(n=>n+this.relativeZero),absoluteValues:r.series})).filter(r=>!this.segregatedSeries.includes(r.id))},tableSparklineDataset(){return this.relativeDataset.map(r=>{const s=r.absoluteValues.map(n=>[void 0,null].includes(n)?0:n);return{id:r.id,name:r.name,color:r.color,values:this.fillArray(this.maxSeries,s)}})},tableSparklineConfig(){return{responsiveBreakpoint:this.FINAL_CONFIG.table.responsiveBreakpoint,roundingValues:this.FINAL_CONFIG.table.rounding,showAverage:!1,showMedian:!1,showTotal:!1,fontFamily:this.FINAL_CONFIG.chart.fontFamily,prefix:this.FINAL_CONFIG.chart.labels.prefix,suffix:this.FINAL_CONFIG.chart.labels.suffix,colNames:JSON.parse(JSON.stringify(this.FINAL_CONFIG.chart.grid.labels.xAxisLabels.values)),thead:{backgroundColor:this.FINAL_CONFIG.table.th.backgroundColor,color:this.FINAL_CONFIG.table.th.color,outline:this.FINAL_CONFIG.table.th.outline},tbody:{backgroundColor:this.FINAL_CONFIG.table.td.backgroundColor,color:this.FINAL_CONFIG.table.td.color,outline:this.FINAL_CONFIG.table.td.outline},userOptions:{show:!1}}},absoluteDataset(){return this.safeDataset.map((r,s)=>({absoluteIndex:s,...r,series:r.series.map(n=>n+this.relativeZero),absoluteValues:r.series,segregate:()=>this.segregate(r),isSegregated:this.segregatedSeries.includes(r.id)}))},barSet(){return this.activeSeriesWithStackRatios.filter(r=>r.type==="bar").map((r,s)=>{this.checkAutoScaleError(r);const n=Math.min(...r.absoluteValues.filter(c=>![null,void 0].includes(c))),u=Math.max(...r.absoluteValues.filter(c=>![null,void 0].includes(c))),e={ratios:r.absoluteValues.filter(c=>![null,void 0].includes(c)).map(c=>(c-n)/(u-n)),valueMin:n,valueMax:u<0?0:u},g={max:r.scaleMax||Math.max(...r.absoluteValues)||1,min:r.scaleMin||Math.min(...r.absoluteValues.filter(c=>![void 0,null].includes(c)))>0?0:Math.min(...r.absoluteValues.filter(c=>![null,void 0].includes(c)))},k=r.scaleSteps||this.FINAL_CONFIG.chart.grid.labels.yAxis.commonScaleSteps,x=1.0000001,m=this.calculateNiceScaleWithExactExtremes(g.min,g.max===g.min?g.max*x:g.max,k),b=this.calculateNiceScaleWithExactExtremes(e.valueMin,e.valueMax===e.valueMin?e.valueMax*x:e.valueMax,k),S=m.min>=0?0:Math.abs(m.min),F=0,C=m.max+S,y=b.max+Math.abs(F),f=this.mutableConfig.isStacked?this.drawingArea.height*(1-r.cumulatedStackRatio):0,l=this.mutableConfig.isStacked?this.drawingArea.height*r.stackRatio-this.FINAL_CONFIG.chart.grid.labels.yAxis.gap:this.drawingArea.height,o=this.drawingArea.bottom-f-l*S/C,i=this.drawingArea.bottom-f-l*F/y,d=this.absoluteDataset.filter(c=>c.type==="bar").filter(c=>!this.segregatedSeries.includes(c.id)).length,A=r.series.map((c,N)=>{const O=this.mutableConfig.useIndividualScale?(r.absoluteValues[N]+S)/C:this.ratioToMax(c),v=this.mutableConfig.useIndividualScale&&this.mutableConfig.isStacked?this.drawingArea.left+this.drawingArea.width/this.maxSeries*N:this.drawingArea.left+this.slot.bar*s+this.slot.bar*N*d-this.barSlot/2-s*this.barPeriodGap;return{yOffset:this.checkNaN(f),individualHeight:this.checkNaN(l),x:this.checkNaN(v),y:this.drawingArea.bottom-f-l*O,value:r.absoluteValues[N],zeroPosition:this.checkNaN(o),individualMax:this.checkNaN(C),comment:r.comments&&r.comments.slice(this.slicer.start,this.slicer.end)[N]||""}}),w=r.absoluteValues.map(c=>b.min>=0?(c-Math.abs(b.min))/(b.max-Math.abs(b.min)):(c+Math.abs(b.min))/(b.max+Math.abs(b.min))),L=r.series.map((c,N)=>{const O=this.mutableConfig.useIndividualScale&&this.mutableConfig.isStacked?this.drawingArea.left+this.drawingArea.width/this.maxSeries*N:this.drawingArea.left-this.slot.bar/2+this.slot.bar*s+this.slot.bar*N*this.absoluteDataset.filter(v=>v.type==="bar").filter(v=>!this.segregatedSeries.includes(v.id)).length;return{yOffset:this.checkNaN(f),individualHeight:this.checkNaN(l),x:this.checkNaN(O),y:this.checkNaN(this.drawingArea.bottom-this.checkNaN(f)-(this.checkNaN(l)*w[N]||0)),value:r.absoluteValues[N],zeroPosition:this.checkNaN(o),individualMax:this.checkNaN(C),comment:r.comments&&r.comments.slice(this.slicer.start,this.slicer.end)[N]||""}}),I=m.ticks.map(c=>({y:c>=0?o-l*(c/C):o+l*Math.abs(c)/C,value:c,prefix:r.prefix||this.FINAL_CONFIG.chart.labels.prefix,suffix:r.suffix||this.FINAL_CONFIG.chart.labels.suffix,datapoint:r})),_=b.ticks.map(c=>{const N=(c-b.min)/(b.max-b.min);return{y:c>=0?i-l*N:i+l*N,value:c,prefix:r.prefix||this.FINAL_CONFIG.chart.labels.prefix,suffix:r.suffix||this.FINAL_CONFIG.chart.labels.suffix,datapoint:r}});return{...r,yOffset:f,autoScaleYLabels:_,individualHeight:l,scaleYLabels:r.autoScaling?_:I,individualScale:r.autoScaling?b:m,individualMax:r.autoScaling?y:C,zeroPosition:r.autoScaling?i:o,plots:r.autoScaling?L:A}})},activeSeriesLength(){return this.absoluteDataset.length},activeSeriesWithStackRatios(){return this.assignStackRatios(this.absoluteDataset.filter(r=>!this.segregatedSeries.includes(r.id)))},lineSet(){return this.activeSeriesWithStackRatios.filter(r=>r.type==="line").map(r=>{this.checkAutoScaleError(r);const s=Math.min(...r.absoluteValues.filter(c=>![void 0,null].includes(c))),n=Math.max(...r.absoluteValues.filter(c=>![void 0,null].includes(c)))||1,a={ratios:r.absoluteValues.filter(c=>![null,void 0].includes(c)).map(c=>(c-s)/(n-s)),valueMin:s,valueMax:n},e={max:r.scaleMax||Math.max(...r.absoluteValues)||1,min:r.scaleMin||(Math.min(...r.absoluteValues)>0?0:Math.min(...r.absoluteValues))},g=r.scaleSteps||this.FINAL_CONFIG.chart.grid.labels.yAxis.commonScaleSteps,k=1.0000001,x=this.calculateNiceScaleWithExactExtremes(e.min,e.max===e.min?e.max*k:e.max,g),m=this.calculateNiceScaleWithExactExtremes(a.valueMin,a.valueMax===a.valueMin?a.valueMax*k:a.valueMax,g),b=x.min>=0?0:Math.abs(x.min),S=0,F=x.max+Math.abs(b),C=m.max+Math.abs(S),y=this.mutableConfig.isStacked?this.drawingArea.height*(1-r.cumulatedStackRatio):0,f=this.mutableConfig.isStacked?this.drawingArea.height*r.stackRatio-this.FINAL_CONFIG.chart.grid.labels.yAxis.gap:this.drawingArea.height,l=this.drawingArea.bottom-y-f*b/F,o=this.drawingArea.bottom-y-f*S/C,i=r.series.map((c,N)=>{const O=this.mutableConfig.useIndividualScale?(r.absoluteValues[N]+Math.abs(b))/F:this.ratioToMax(c);return{x:this.checkNaN(this.drawingArea.left+this.slot.line/2+this.slot.line*N),y:this.checkNaN(this.drawingArea.bottom-y-f*O),value:r.absoluteValues[N],comment:r.comments&&r.comments.slice(this.slicer.start,this.slicer.end)[N]||""}}),d=r.absoluteValues.map(c=>m.min>=0?(c-Math.abs(m.min))/(m.max-Math.abs(m.min)):(c+Math.abs(m.min))/(m.max+Math.abs(m.min))),A=r.series.map((c,N)=>[void 0,null].includes(r.absoluteValues[N])?{x:this.checkNaN(this.drawingArea.left+this.slot.line/2+this.slot.line*N),y:l,value:r.absoluteValues[N],comment:r.comments&&r.comments.slice(this.slicer.start,this.slicer.end)[N]||""}:{x:this.checkNaN(this.drawingArea.left+this.slot.line/2+this.slot.line*N),y:this.checkNaN(this.drawingArea.bottom-y-(f*d[N]||0)),value:r.absoluteValues[N],comment:r.comments&&r.comments.slice(this.slicer.start,this.slicer.end)[N]||""}),w=this.createSmoothPath(i),L=this.createSmoothPath(A),I=x.ticks.map(c=>({y:c>=0?l-f*(c/F):l+f*Math.abs(c)/F,value:c,prefix:r.prefix||this.FINAL_CONFIG.chart.labels.prefix,suffix:r.suffix||this.FINAL_CONFIG.chart.labels.suffix,datapoint:r})),_=m.ticks.map(c=>{const N=(c-m.min)/(m.max-m.min);return{y:c>=0?o-f*N:o+f*N,value:c,prefix:r.prefix||this.FINAL_CONFIG.chart.labels.prefix,suffix:r.suffix||this.FINAL_CONFIG.chart.labels.suffix,datapoint:r}});return{...r,yOffset:y,autoScaleYLabels:_,individualHeight:f,scaleYLabels:r.autoScaling?_:I,individualScale:r.autoScaling?m:x,individualMax:r.autoScaling?C:F,zeroPosition:r.autoScaling?o:l,curve:r.autoScaling?L:w,plots:r.autoScaling?A:i,area:r.useArea?this.mutableConfig.useIndividualScale?this.createIndividualArea(r.autoScaling?A:i,r.autoScaling?o:l):this.createArea(i):""}})},plotSet(){return this.activeSeriesWithStackRatios.filter(r=>r.type==="plot").map(r=>{this.checkAutoScaleError(r);const s=Math.min(...r.absoluteValues.filter(I=>![null,void 0].includes(I))),n=Math.max(...r.absoluteValues.filter(I=>![null,void 0].includes(I)))||1,a={ratios:r.absoluteValues.filter(I=>![null,void 0].includes(I)).map(I=>(I-s)/(n-s)),valueMin:s,valueMax:n},e={max:r.scaleMax||Math.max(...r.absoluteValues)||1,min:r.scaleMin||Math.min(...r.absoluteValues)>0?0:Math.min(...r.absoluteValues)},g=r.scaleSteps||this.FINAL_CONFIG.chart.grid.labels.yAxis.commonScaleSteps,k=1.0000001,x=this.calculateNiceScaleWithExactExtremes(e.min,e.max===e.min?e.max*k:e.max,g),m=this.calculateNiceScaleWithExactExtremes(a.valueMin,a.valueMax===a.valueMin?a.valueMax*k:a.valueMax,g),b=x.min>=0?0:Math.abs(x.min),S=0,F=x.max+b,C=m.max+Math.abs(S),y=this.mutableConfig.isStacked?this.drawingArea.height*(1-r.cumulatedStackRatio):0,f=this.mutableConfig.isStacked?this.drawingArea.height*r.stackRatio-this.FINAL_CONFIG.chart.grid.labels.yAxis.gap:this.drawingArea.height,l=this.drawingArea.bottom-y-f*b/F,o=this.drawingArea.bottom-y-f*S/C,i=r.series.map((I,_)=>{const c=this.mutableConfig.useIndividualScale?(r.absoluteValues[_]+Math.abs(b))/F:this.ratioToMax(I);return{x:this.checkNaN(this.drawingArea.left+this.slot.plot/2+this.slot.plot*_),y:this.checkNaN(this.drawingArea.bottom-y-f*c),value:r.absoluteValues[_],comment:r.comments&&r.comments.slice(this.slicer.start,this.slicer.end)[_]||""}}),d=r.absoluteValues.map(I=>m.min>=0?(I-Math.abs(m.min))/(m.max-Math.abs(m.min)):(I+Math.abs(m.min))/(m.max+Math.abs(m.min))),A=r.series.map((I,_)=>({x:this.checkNaN(this.drawingArea.left+this.slot.plot/2+this.slot.plot*_),y:this.checkNaN(this.drawingArea.bottom-y-(f*d[_]||0)),value:r.absoluteValues[_],comment:r.comments&&r.comments.slice(this.slicer.start,this.slicer.end)[_]||""})),w=x.ticks.map(I=>({y:I>=0?l-f*(I/F):l+f*Math.abs(I)/F,value:I,prefix:r.prefix||this.FINAL_CONFIG.chart.labels.prefix,suffix:r.suffix||this.FINAL_CONFIG.chart.labels.suffix,datapoint:r})),L=m.ticks.map(I=>{const _=(I-m.min)/(m.max-m.min);return{y:I>=0?o-f*_:o+f*_,value:I,prefix:r.prefix||this.FINAL_CONFIG.chart.labels.prefix,suffix:r.suffix||this.FINAL_CONFIG.chart.labels.suffix,datapoint:r}});return{...r,yOffset:y,autoScaleYLabels:L,individualHeight:f,scaleYLabels:r.autoScaling?L:w,individualScale:r.autoScaling?m:x,individualMax:r.autoScaling?C:F,zeroPosition:r.autoScaling?o:l,plots:r.autoScaling?A:i}})},drawingArea(){const r=this.mutableConfig.useIndividualScale&&this.FINAL_CONFIG.chart.grid.labels.show?this.absoluteDataset.filter(s=>!this.segregatedSeries.includes(s.id)).length*(this.mutableConfig.isStacked?0:this.FINAL_CONFIG.chart.grid.labels.yAxis.labelWidth):0;return{top:this.FINAL_CONFIG.chart.padding.top,right:this.width-this.FINAL_CONFIG.chart.padding.right,bottom:this.height-this.FINAL_CONFIG.chart.padding.bottom,left:this.FINAL_CONFIG.chart.padding.left+r,height:this.height-(this.FINAL_CONFIG.chart.padding.top+this.FINAL_CONFIG.chart.padding.bottom),width:this.width-(this.FINAL_CONFIG.chart.padding.right+this.FINAL_CONFIG.chart.padding.left+r)}},max(){return this.FINAL_CONFIG.chart.grid.labels.yAxis.scaleMax?this.FINAL_CONFIG.chart.grid.labels.yAxis.scaleMax:Math.max(...this.safeDataset.filter(r=>!this.segregatedSeries.includes(r.id)).map(r=>Math.max(...r.series)))},min(){if(this.FINAL_CONFIG.chart.grid.labels.yAxis.scaleMin!==null)return this.FINAL_CONFIG.chart.grid.labels.yAxis.scaleMin;const r=Math.min(...this.safeDataset.filter(s=>!this.segregatedSeries.includes(s.id)).map(s=>Math.min(...s.series)));return r>0?0:r},niceScale(){return this.calculateNiceScaleWithExactExtremes(this.min,this.max<0?0:this.max,this.FINAL_CONFIG.chart.grid.labels.yAxis.commonScaleSteps)},maxSeries(){return this.slicer.end-this.slicer.start},timeLabels(){return this.FINAL_CONFIG.chart.grid.labels.xAxisLabels.values.slice(this.slicer.start,this.slicer.end)},slot(){return{bar:this.drawingArea.width/this.maxSeries/this.safeDataset.filter(r=>r.type==="bar").filter(r=>!this.segregatedSeries.includes(r.id)).length,plot:this.drawingArea.width/this.maxSeries,line:this.drawingArea.width/this.maxSeries}},barSlot(){const r=this.safeDataset.filter(s=>s.type==="bar").filter(s=>!this.segregatedSeries.includes(s.id)).length;return this.drawingArea.width/this.maxSeries/r-this.barPeriodGap*r},barPeriodGap(){return this.slot.line*this.FINAL_CONFIG.bar.periodGap},maxSlot(){return Math.max(...Object.values(this.slot).filter(r=>r!==1/0))},table(){if(this.safeDataset.length===0)return{head:[],body:[],config:{},columnNames:[]};const r=this.relativeDataset.map(n=>({label:n.name,color:n.color,type:n.type})),s=[];return this.timeLabels.forEach((n,u)=>{const a=[n];this.relativeDataset.forEach(e=>{a.push(this.canShowValue(e.absoluteValues[u])?Number(e.absoluteValues[u].toFixed(this.FINAL_CONFIG.table.rounding)):"")}),s.push(a)}),{head:r,body:s}},dataTable(){const r=this.FINAL_CONFIG.table.showSum;let s=[""].concat(this.relativeDataset.map(e=>e.name));r&&(s=s.concat(' <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>'));let n=[];for(let e=0;e<this.maxSeries;e+=1){const g=this.relativeDataset.map(k=>k.absoluteValues[e]??0).reduce((k,x)=>k+x,0);n.push([this.timeLabels[e]??"-"].concat(this.relativeDataset.map(k=>this.applyDataLabel(k.type==="line"?this.FINAL_CONFIG.line.labels.formatter:k.type==="bar"?this.FINAL_CONFIG.bar.labels.formatter:this.FINAL_CONFIG.plot.labels.formatter,k.absoluteValues[e]??0,this.dataLabel({p:k.prefix||this.FINAL_CONFIG.chart.labels.prefix,v:k.absoluteValues[e]??0,s:k.suffix||this.FINAL_CONFIG.chart.labels.suffix,r:this.FINAL_CONFIG.table.rounding})))).concat(r?(g??0).toFixed(this.FINAL_CONFIG.table.rounding):[]))}const u={th:{backgroundColor:this.FINAL_CONFIG.table.th.backgroundColor,color:this.FINAL_CONFIG.table.th.color,outline:this.FINAL_CONFIG.table.th.outline},td:{backgroundColor:this.FINAL_CONFIG.table.td.backgroundColor,color:this.FINAL_CONFIG.table.td.color,outline:this.FINAL_CONFIG.table.td.outline},breakpoint:this.FINAL_CONFIG.table.responsiveBreakpoint},a=[this.FINAL_CONFIG.table.columnNames.period].concat(this.relativeDataset.map(e=>e.name)).concat(this.FINAL_CONFIG.table.columnNames.total);return{head:s,body:n,config:u,colNames:a}},dataTooltipSlot(){return{datapoint:this.selectedSeries,seriesIndex:this.selectedSerieIndex,series:this.absoluteDataset,bars:this.barSet,lines:this.lineSet,plots:this.plotSet,config:this.FINAL_CONFIG}},selectedSeries(){return this.relativeDataset.map(r=>({shape:r.shape||null,name:r.name,color:r.color,type:r.type,value:r.absoluteValues.find((s,n)=>n===this.selectedSerieIndex),comments:r.comments||[],prefix:r.prefix||this.FINAL_CONFIG.chart.labels.prefix,suffix:r.suffix||this.FINAL_CONFIG.chart.labels.suffix}))},tooltipContent(){let r="",s=this.selectedSeries.map(a=>a.value).filter(a=>this.isSafeValue(a)&&a!==null).reduce((a,e)=>Math.abs(a)+Math.abs(e),0);const n=this.timeLabels[this.selectedSerieIndex],u=this.FINAL_CONFIG.chart.tooltip.customFormat;return this.isFunction(u)&&this.functionReturnsString(()=>u({seriesIndex:this.selectedSerieIndex,datapoint:this.selectedSeries,series:this.absoluteDataset,bars:this.barSet,lines:this.lineSet,plots:this.plotSet,config:this.FINAL_CONFIG}))?u({seriesIndex:this.selectedSerieIndex,datapoint:this.selectedSeries,series:this.absoluteDataset,bars:this.barSet,lines:this.lineSet,plots:this.plotSet,config:this.FINAL_CONFIG}):(n&&(r+=`<div style="padding-bottom: 6px; margin-bottom: 4px; border-bottom: 1px solid ${this.FINAL_CONFIG.chart.tooltip.borderColor}; width:100%">${n}</div>`),this.selectedSeries.forEach(a=>{if(this.isSafeValue(a.value)){let e="",g="";switch(this.icons[a.type]){case"bar":e=`<svg viewBox="0 0 12 12" height="14" width="14"><rect x="0" y="0" rx="1" stroke="none" height="12" width="12" fill="${a.color}" /></svg>`;break;case"line":!a.shape||!["star","triangle","square","diamond","pentagon","hexagon"].includes(a.shape)?g=`<circle cx="10" cy="8" r="4" stroke="${this.FINAL_CONFIG.chart.tooltip.backgroundColor}" stroke-width="1" fill="${a.color}" />`:a.shape==="triangle"?g=`<path d="${h.createPolygonPath({plot:{x:10,y:8},radius:4,sides:3,rotation:.52}).path}" fill="${a.color}" stroke="${this.FINAL_CONFIG.chart.tooltip.backgroundColor}" stroke-width="1" />`:a.shape==="square"?g=`<path d="${h.createPolygonPath({plot:{x:10,y:8},radius:4,sides:4,rotation:.8}).path}" fill="${a.color}" stroke="${this.FINAL_CONFIG.chart.tooltip.backgroundColor}" stroke-width="1" />`:a.shape==="diamond"?g=`<path d="${h.createPolygonPath({plot:{x:10,y:8},radius:4,sides:4,rotation:0}).path}" fill="${a.color}" stroke="${this.FINAL_CONFIG.chart.tooltip.backgroundColor}" stroke-width="1" />`:a.shape==="pentagon"?g=`<path d="${h.createPolygonPath({plot:{x:10,y:8},radius:4,sides:5,rotation:.95}).path}" fill="${a.color}" stroke="${this.FINAL_CONFIG.chart.tooltip.backgroundColor}" stroke-width="1" />`:a.shape==="hexagon"?g=`<path d="${h.createPolygonPath({plot:{x:10,y:8},radius:4,sides:6,rotation:0}).path}" fill="${a.color}" stroke="${this.FINAL_CONFIG.chart.tooltip.backgroundColor}" stroke-width="1" />`:a.shape==="star"&&(g=`<polygon stroke="${this.FINAL_CONFIG.chart.tooltip.backgroundColor}" stroke-width="1" fill="${a.color}" points="${h.createStar({plot:{x:10,y:8},radius:4})}" />`),e=`<svg viewBox="0 0 20 12" height="14" width="20"><rect rx="3" x="0" y="6" stroke="none" height="4" width="20" fill="${a.color}" />${g}</svg>`;break;case"plot":if(!a.shape||!["star","triangle","square","diamond","pentagon","hexagon"].includes(a.shape)){e=`<svg viewBox="0 0 12 12" height="14" width="14"><circle cx="6" cy="6" r="6" stroke="${this.FINAL_CONFIG.chart.tooltip.backgroundColor}" stroke-width="1" fill="${a.color}" /></svg>`;break}if(a.shape==="star"){e=`<svg viewBox="0 0 12 12" height="14" width="14"><polygon stroke="${this.FINAL_CONFIG.chart.tooltip.backgroundColor}" stroke-width="1" fill="${a.color}" points="${h.createStar({plot:{x:6,y:6},radius:5})}" /></svg>`;break}if(a.shape==="triangle"){e=`<svg viewBox="0 0 12 12" height="14" width="14"><path d="${h.createPolygonPath({plot:{x:6,y:6},radius:6,sides:3,rotation:.52}).path}" fill="${a.color}" stroke="${this.FINAL_CONFIG.chart.tooltip.backgroundColor}" stroke-width="1" /></svg>`;break}if(a.shape==="square"){e=`<svg viewBox="0 0 12 12" height="14" width="14"><path d="${h.createPolygonPath({plot:{x:6,y:6},radius:6,sides:4,rotation:.8}).path}" fill="${a.color}" stroke="${this.FINAL_CONFIG.chart.tooltip.backgroundColor}" stroke-width="1" /></svg>`;break}if(a.shape==="diamond"){e=`<svg viewBox="0 0 12 12" height="14" width="14"><path d="${h.createPolygonPath({plot:{x:6,y:6},radius:5,sides:4,rotation:0}).path}" fill="${a.color}" stroke="${this.FINAL_CONFIG.chart.tooltip.backgroundColor}" stroke-width="1" /></svg>`;break}if(a.shape==="pentagon"){e=`<svg viewBox="0 0 12 12" height="14" width="14"><path d="${h.createPolygonPath({plot:{x:6,y:6},radius:5,sides:5,rotation:.95}).path}" fill="${a.color}" stroke="${this.FINAL_CONFIG.chart.tooltip.backgroundColor}" stroke-width="1" /></svg>`;break}if(a.shape==="hexagon"){e=`<svg viewBox="0 0 12 12" height="14" width="14"><path d="${h.createPolygonPath({plot:{x:6,y:6},radius:5,sides:6,rotation:0}).path}" fill="${a.color}" stroke="${this.FINAL_CONFIG.chart.tooltip.backgroundColor}" stroke-width="1" /></svg>`;break}}r+=`<div style="display:flex;flex-direction:row; align-items:center;gap:3px;"><div style="width:20px">${e}</div> ${a.name}: <b>${this.FINAL_CONFIG.chart.tooltip.showValue?this.applyDataLabel(a.type==="line"?this.FINAL_CONFIG.line.labels.formatter:a.type==="bar"?this.FINAL_CONFIG.bar.labels.formatter:this.FINAL_CONFIG.plot.labels.formatter,a.value,this.dataLabel({p:a.prefix,v:a.value,s:a.suffix,r:this.FINAL_CONFIG.chart.tooltip.roundingValue}),{datapoint:a}):""}</b> ${this.FINAL_CONFIG.chart.tooltip.showPercentage?`(${h.dataLabel({v:this.checkNaN(Math.abs(a.value)/s*100),s:"%",r:this.FINAL_CONFIG.chart.tooltip.roundingPercentage})})`:""}</div>`,this.FINAL_CONFIG.chart.comments.showInTooltip&&a.comments.length&&a.comments.slice(this.slicer.start,this.slicer.end)[this.selectedSerieIndex]&&(r+=`<div class="vue-data-ui-tooltip-comment" style="background:${a.color}20; padding: 6px; margin-bottom: 6px; border-left: 1px solid ${a.color}">${a.comments.slice(this.slicer.start,this.slicer.end)[this.selectedSerieIndex]}</div>`)}}),`<div style="border-radius:4px;padding:12px;font-variant-numeric: tabular-nums;color:${this.FINAL_CONFIG.chart.tooltip.color}">${r}</div>`)},svg(){return{height:this.height,width:this.width}},yLabels(){return this.niceScale.ticks.map(r=>({y:r>=0?this.zero-this.drawingArea.height*this.ratioToMax(r):this.zero+this.drawingArea.height*this.ratioToMax(Math.abs(r)),value:r,prefix:this.FINAL_CONFIG.chart.labels.prefix,suffix:this.FINAL_CONFIG.chart.labels.suffix}))},zero(){return this.drawingArea.bottom-this.drawingArea.height*this.ratioToMax(this.relativeZero)}},mounted(){this.prepareChart(),document.addEventListener("mousemove",r=>{this.clientPosition={x:r.clientX,y:r.clientY}})},methods:{abbreviate:h.abbreviate,adaptColorToBackground:h.adaptColorToBackground,applyDataLabel:h.applyDataLabel,assignStackRatios:h.assignStackRatios,calcLinearProgression:h.calcLinearProgression,calculateNiceScaleWithExactExtremes:h.calculateNiceScaleWithExactExtremes,checkNaN:h.checkNaN,closestDecimal:h.closestDecimal,convertColorToHex:h.convertColorToHex,convertConfigColors:h.convertConfigColors,convertCustomPalette:h.convertCustomPalette,createCsvContent:h.createCsvContent,createSmoothPath:h.createSmoothPath,createTSpans:h.createTSpans,dataLabel:h.dataLabel,downloadCsv:h.downloadCsv,error:h.error,functionReturnsString:h.functionReturnsString,hasDeepProperty:h.hasDeepProperty,img:p.saveAsImage,isFunction:h.isFunction,isSafeValue:h.isSafeValue,objectIsEmpty:h.objectIsEmpty,pdf:E.pdf,setOpacity:h.setOpacity,shiftHue:h.shiftHue,translateSize:h.translateSize,treeShake:h.treeShake,useMouse:G.useMouse,useNestedProp:B.useNestedProp,getHighlightAreaPosition(r){const s=this.drawingArea.left+this.drawingArea.width/this.maxSeries*(r.from-this.slicer.start),n=this.drawingArea.width/(this.slicer.end-this.slicer.start)*r.span<0?1e-5:this.drawingArea.width/(this.slicer.end-this.slicer.start)*r.span;return{x:s<this.drawingArea.left?this.drawingArea.left:s,width:n}},prepareConfig(){const r=h.useConfig().vue_ui_xy;if(!Object.keys(this.config||{}).length)return r;const s=this.useNestedProp({userConfig:this.config,defaultConfig:r});return this.config&&this.hasDeepProperty(this.config,"chart.highlightArea")&&(Array.isArray(this.config.chart.highlightArea)?s.chart.highlightArea=this.config.chart.highlightArea:s.chart.highlightArea=[this.config.chart.highlightArea]),this.config&&this.hasDeepProperty(this.config,"chart.grid.labels.yAxis.scaleMin")?s.chart.grid.labels.yAxis.scaleMin=this.config.chart.grid.labels.yAxis.scaleMin:s.chart.grid.labels.yAxis.scaleMin=null,this.config&&this.hasDeepProperty(this.config,"chart.grid.labels.yAxis.scaleMax")?s.chart.grid.labels.yAxis.scaleMax=this.config.chart.grid.labels.yAxis.scaleMax:s.chart.grid.labels.yAxis.scaleMax=null,s.theme?{...B.useNestedProp({userConfig:this.themes.vue_ui_xy[s.theme]||this.config,defaultConfig:s}),customPalette:this.themePalettes[s.theme]||this.palette}:s},prepareChart(){if(this.objectIsEmpty(this.dataset)?this.error({componentName:"VueUiXy",type:"dataset"}):this.dataset.forEach((r,s)=>{[null,void 0].includes(r.name)&&this.error({componentName:"VueUiXy",type:"datasetSerieAttribute",property:"name (string)",index:s})}),this.FINAL_CONFIG.showWarnings&&this.dataset.forEach(r=>{r.series.forEach((s,n)=>{this.isSafeValue(s)||console.warn(`VueUiXy has detected an unsafe value in your dataset:
|
|
2
|
+
-----> The serie '${r.name}' contains the value '${s}' at index ${n}.
|
|
3
|
+
'${s}' was converted to null to allow the chart to display.`)})}),this.mutableConfig={dataLabels:{show:!0},showTooltip:this.FINAL_CONFIG.chart.tooltip.show===!0,showTable:this.FINAL_CONFIG.showTable===!0,isStacked:this.FINAL_CONFIG.chart.grid.labels.yAxis.stacked,useIndividualScale:this.FINAL_CONFIG.chart.grid.labels.yAxis.useIndividualScale},this.FINAL_CONFIG.responsive){const s=this.$refs.chart.parentNode,{height:n,width:u}=s.getBoundingClientRect();let a=null,e=0;this.FINAL_CONFIG.chart.title.show&&(a=this.$refs.chartTitle,e=a.getBoundingClientRect().height);let g=null,k=0;this.FINAL_CONFIG.chart.zoom.show&&this.maxX>6&&this.isDataset&&(g=this.$refs.chartSlicer.$el,k=g.getBoundingClientRect().height);let x=null,m=0;this.FINAL_CONFIG.chart.legend.show&&(x=this.$refs.chartLegend,m=x.getBoundingClientRect().height),this.height=n-e-m-k,this.width=u,this.viewBox=`0 0 ${this.width<0?10:this.width} ${this.height<0?10:this.height}`,this.convertSizes(),new ResizeObserver(S=>{for(const F of S)this.$refs.chartTitle&&(e=this.$refs.chartTitle.getBoundingClientRect().height),this.$refs.chartSlicer&&this.$refs.chartSlicer.$el&&(k=this.$refs.chartSlicer.$el.getBoundingClientRect().height),this.$refs.chartLegend&&(m=this.$refs.chartLegend.getBoundingClientRect().height),this.height=F.contentBoxSize[0].blockSize-e-m-k-24,this.width=F.contentBoxSize[0].inlineSize,this.viewBox=`0 0 ${this.width<0?10:this.width} ${this.height<0?10:this.height}`,this.convertSizes()}).observe(s)}else this.height=this.FINAL_CONFIG.chart.height,this.width=this.FINAL_CONFIG.chart.width,this.viewBox=`0 0 ${this.width} ${this.height}`,this.fontSizes.dataLabels=this.FINAL_CONFIG.chart.grid.labels.fontSize,this.fontSizes.yAxis=this.FINAL_CONFIG.chart.grid.labels.axis.fontSize,this.fontSizes.xAxis=this.FINAL_CONFIG.chart.grid.labels.xAxisLabels.fontSize,this.fontSizes.plotLabels=this.FINAL_CONFIG.chart.labels.fontSize,this.plotRadii.plot=this.FINAL_CONFIG.plot.radius,this.plotRadii.line=this.FINAL_CONFIG.line.radius},selectMinimapIndex(r){this.selectedMinimapIndex=r},convertSizes(){this.fontSizes.dataLabels=this.translateSize({relator:this.height,adjuster:400,source:this.FINAL_CONFIG.chart.grid.labels.fontSize,threshold:10,fallback:10}),this.fontSizes.yAxis=this.translateSize({relator:this.width,adjuster:1e3,source:this.FINAL_CONFIG.chart.grid.labels.axis.fontSize,threshold:10,fallback:10}),this.fontSizes.xAxis=this.translateSize({relator:this.width,adjuster:1e3,source:this.FINAL_CONFIG.chart.grid.labels.xAxisLabels.fontSize,threshold:10,fallback:10}),this.fontSizes.plotLabels=this.translateSize({relator:this.width,adjuster:800,source:this.FINAL_CONFIG.chart.labels.fontSize,threshold:10,fallback:10}),this.plotRadii.plot=this.translateSize({relator:this.width,adjuster:800,source:this.FINAL_CONFIG.plot.radius,threshold:1,fallback:1}),this.plotRadii.line=this.translateSize({relator:this.width,adjuster:800,source:this.FINAL_CONFIG.line.radius,threshold:1,fallback:1})},toggleStack(){this.mutableConfig.isStacked=!this.mutableConfig.isStacked,this.mutableConfig.isStacked?this.mutableConfig.useIndividualScale=!0:this.mutableConfig.useIndividualScale=this.FINAL_CONFIG.chart.grid.labels.yAxis.useIndividualScale},toggleTable(){this.mutableConfig.showTable=!this.mutableConfig.showTable},toggleLabels(){this.mutableConfig.dataLabels.show=!this.mutableConfig.dataLabels.show},toggleTooltip(){this.mutableConfig.showTooltip=!this.mutableConfig.showTooltip},checkAutoScaleError(r){r.autoScaling&&(this.FINAL_CONFIG.chart.grid.labels.yAxis.useIndividualScale||console.warn(`VueUiXy (datapoint: ${r.name}) : autoScaling only works when config.chart.grid.labels.yAxis.useIndividualScale is set to true`),this.FINAL_CONFIG.chart.grid.labels.yAxis.stacked||console.warn(`VueUiXy (datapoint: ${r.name}) : autoScaling only works when config.chart.grid.labels.yAxis.stacked is set to true`))},createArea(r){if(!r[0])return[-10,-10,"",-10,-10];const s={x:r[0].x,y:this.zero},n={x:r.at(-1).x,y:this.zero},u=[];return r.forEach(a=>{u.push(`${a.x},${a.y} `)}),[s.x,s.y,...u,n.x,n.y].toString()},createIndividualArea(r,s){if(!r[0])return[-10,-10,"",-10,-10];const n={x:r[0]?r[0].x:Math.min(...r.filter(e=>!!e).map(e=>e.x)),y:s},u={x:r.at(-1)?r.at(-1).x:Math.min(...r.filter(e=>!!e).map(e=>e.x)),y:s},a=[];return r.filter(e=>!!e).forEach(e=>{a.push(`${e.x},${e.y} `)}),[n.x,n.y,...a,u.x,u.y].toString()},createStar:h.createStar,createPolygonPath:h.createPolygonPath,fillArray(r,s){let n=Array(r).fill(0);for(let u=0;u<s.length&&u<r;u+=1)n[u]=s[u];return n},refreshSlicer(){this.slicer={start:0,end:Math.max(...this.dataset.map(r=>r.series.length))},this.slicerStep+=1},calcRectHeight(r){return r.value>=0?this.checkNaN(this.zero-r.y<=0?1e-5:this.zero-r.y):this.checkNaN(r.y-this.zero<=0?1e-5:r.y-this.zero)},calcIndividualHeight(r){return r.value>=0?this.checkNaN(r.zeroPosition-r.y<=0?1e-5:r.zeroPosition-r.y):this.checkNaN(r.y-r.zeroPosition<=0?1e-5:r.zeroPosition-r.y)},calcRectWidth(){return this.mutableConfig.useIndividualScale&&this.mutableConfig.isStacked?this.slot.line-this.drawingArea.width/this.maxSeries*.1:this.slot.bar},calcRectX(r){return this.mutableConfig.useIndividualScale&&this.mutableConfig.isStacked?r.x+this.drawingArea.width/this.maxSeries*.05:r.x+this.slot.bar/2},calcRectY(r){return r.value>=0?r.y:this.zero},calcIndividualRectY(r){return r.value>=0?r.y:[null,void 0,NaN,1/0,-1/0].includes(r.zeroPosition)?0:r.zeroPosition},canShowValue(r){return![null,void 0,NaN,1/0,-1/0].includes(r)},findClosestValue(r,s){let n=s[0],u=Math.abs(r-s[0]);for(let a=1;a<s.length;a+=1){const e=Math.abs(r-s[a]);e<u&&s[a]<r&&(n=s[a],u=e)}return n},ratioToMax(r){return r/(this.canShowValue(this.absoluteMax)?this.absoluteMax:1)},selectX(r){this.$emit("selectX",{dataset:this.relativeDataset.map(s=>({name:s.name,value:[null,void 0,NaN].includes(s.absoluteValues[r])?null:s.absoluteValues[r],color:s.color,type:s.type})),index:r,indexLabel:this.FINAL_CONFIG.chart.grid.labels.xAxisLabels.values[r]})},getData(){return this.absoluteDataset.map(r=>({values:r.absoluteValues,color:r.color,name:r.name,type:r.type}))},segregate(r){if(this.segregatedSeries.includes(r.id))this.segregatedSeries=this.segregatedSeries.filter(s=>s!==r.id);else{if(this.segregatedSeries.length+1===this.safeDataset.length)return;this.segregatedSeries.push(r.id)}this.$emit("selectLegend",this.relativeDataset.map(s=>({name:s.name,values:s.absoluteValues,color:s.color,type:s.type}))),this.segregateStep+=1},toggleTooltipVisibility(r,s=null){this.isTooltip=r,r?this.selectedSerieIndex=s:this.selectedSerieIndex=null},toggleFullscreen(r){this.isFullscreen=r,this.step+=1},showSpinnerPdf(){this.isPrinting=!0},generatePdf(){this.showSpinnerPdf(),clearTimeout(this.__to__),this.__to__=setTimeout(()=>{this.pdf({domElement:document.getElementById(`vue-ui-xy_${this.uniqueId}`),fileName:this.FINAL_CONFIG.chart.title.text||"vue-ui-xy"}).finally(()=>{this.isPrinting=!1})},100)},generateCsv(){const r=[[this.FINAL_CONFIG.chart.title.text],[this.FINAL_CONFIG.chart.title.subtitle.text],[""]],s=["",...this.table.head.map(e=>e.label)],n=this.table.body,u=r.concat([s]).concat(n),a=this.createCsvContent(u);this.downloadCsv({csvContent:a,title:this.FINAL_CONFIG.chart.title.text||"vue-ui-xy"})},showSpinnerImage(){this.isImaging=!0},generateImage(){this.showSpinnerImage(),clearTimeout(this.__to__),this.__to__=setTimeout(()=>{this.img({domElement:document.getElementById(`vue-ui-xy_${this.uniqueId}`),fileName:this.FINAL_CONFIG.chart.title.text||"vue-ui-xy",format:"png"}).finally(()=>{this.isImaging=!1})},100)}}},X=["id"],U=["viewBox"],Z={key:0},J={class:"vue-ui-xy-grid"},K=["stroke","x1","x2","y1","y2"],Q=["stroke","x1","x2","y1","y2"],j={key:1},$=["x1","x2","y1","y2","stroke"],ee=["x1","x2","y1","y2","stroke"],te=["x1","x2","y1","y2","stroke"],le={key:3},re=["x1","x2","y1","y2","stroke"],ae=["id"],ie=["stop-color"],se=["stop-color"],oe=["stop-color"],ne=["id"],ce=["stop-color"],he=["stop-color"],de=["stop-color"],ue=["id"],me=["stop-color"],ge=["stop-color"],Ne=["id"],fe=["stop-color"],ke=["stop-color"],Ie=["id"],xe=["stop-color"],be=["stop-color"],Fe=["x","y","height","width","fill"],_e=["x","y","width"],ye=["x","y","height","width","fill"],Ce=["x","y","height","width","rx","fill","stroke","stroke-width"],Se=["width","x","y"],Ae={key:0},Le=["id"],we=["fill"],Oe=["x1","x2","y1","y2","stroke","marker-end"],ve=["x","y","font-size","fill"],pe=["stroke","x1","x2","y1","y2"],Ge={key:2},Be=["x1","x2","y1","y2","stroke","stroke-width","stroke-dasharray"],Ee=["x","y","width","height","stroke","stroke-width","stroke-linecap","stroke-linejoin","stroke-dasharray"],ze={key:4},Ve=["x1","x2","y1","y2","stroke","stroke-width"],Me=["fill","font-size","transform"],Pe=["x1","x2","y1","y2","stroke"],Te=["x","y","font-size","fill"],De=["x1","x2","y1","y2","stroke"],Re=["x","y","font-size","fill"],He=["width","x","y"],We={style:{width:"100%"}},qe={key:0},Ye=["id"],Xe=["fill"],Ue=["x1","x2","y1","y2","stroke","marker-end"],Ze=["x","y","font-size","fill"],Je=["d","stroke","stroke-width","stroke-dasharray"],Ke={key:1},Qe=["x1","x2","y1","y2","stroke","stroke-width","stroke-dasharray"],je={key:0},$e=["d","fill"],et=["d","fill"],tt=["d","stroke","stroke-width","stroke-dasharray"],lt={key:2},rt=["x1","x2","y1","y2","stroke","stroke-width","stroke-dasharray"],at=["width","x","y"],it={style:{width:"100%"}},st={key:3},ot=["id"],nt=["fill"],ct=["x1","x2","y1","y2","stroke","marker-end"],ht=["x","y","font-size","fill"],dt={key:5},ut=["x","y","font-size","fill"],mt=["x","y","font-size","fill","font-weight"],gt={key:6},Nt=["x","y","font-size","fill"],ft=["x","y"],kt=["x","y"],It={key:7},xt=["x","y","font-size","fill"],bt=["x","y"],Ft=["x","y"],_t=["x","y","font-size","fill","innerHTML"],yt=["x","y","font-size","fill","innerHTML"],Ct=["x","y","font-size","fill","innerHTML"],St=["x","y","font-size","fill","innerHTML"],At=["x","y","width","height","fill","onMouseenter"],Lt=["font-size","fill","transform"],wt=["x","y","font-size","fill"],Ot={key:9},vt=["text-anchor","font-size","fill","transform"],pt=["x","y","height","width","onMouseenter","onClick"],Gt={key:10},Bt=["x","y"],Et=["cx","cy","r","fill"],zt={key:3,class:"vue-data-ui-watermark"},Vt=["onClick"],Mt={key:0,viewBox:"0 0 20 12",height:"14",width:"20"},Pt=["fill"],Tt={key:1,viewBox:"0 0 12 12",height:"14",width:"14"},Dt=["fill"],Rt={key:7,ref:"chartLegend"},Ht={style:{display:"flex","flex-direction":"row",gap:"6px","align-items":"center","padding-left":"6px"},"data-html2canvas-ignore":""},Wt=["innerHTML"];function qt(r,s,n,u,a,e){const g=t.resolveComponent("Title"),k=t.resolveComponent("UserOptions"),x=t.resolveComponent("Shape"),m=t.resolveComponent("Skeleton"),b=t.resolveComponent("Slicer"),S=t.resolveComponent("Tooltip"),F=t.resolveComponent("BaseIcon"),C=t.resolveComponent("TableSparkline"),y=t.resolveComponent("DataTable"),f=t.resolveComponent("Accordion");return t.openBlock(),t.createElementBlock("div",{id:`vue-ui-xy_${a.uniqueId}`,class:t.normalizeClass(`vue-ui-xy ${a.isFullscreen?"vue-data-ui-wrapper-fullscreen":""} ${e.FINAL_CONFIG.useCssAnimation?"":"vue-ui-dna"}`),ref:"chart",style:t.normalizeStyle(`background:${e.FINAL_CONFIG.chart.backgroundColor}; color:${e.FINAL_CONFIG.chart.color};width:100%;${e.FINAL_CONFIG.chart.title.text?"":"padding-top:36px"};font-family:${e.FINAL_CONFIG.chart.fontFamily};${e.FINAL_CONFIG.responsive?"height: 100%":""}`)},[e.FINAL_CONFIG.chart.title.show?(t.openBlock(),t.createElementBlock("div",{key:0,ref:"chartTitle",class:"vue-ui-xy-title",style:t.normalizeStyle(`font-family:${e.FINAL_CONFIG.chart.fontFamily}`)},[(t.openBlock(),t.createBlock(g,{key:`title_${a.titleStep}`,config:{title:{cy:"xy-div-title",...e.FINAL_CONFIG.chart.title},subtitle:{cy:"xy-div-subtitle",...e.FINAL_CONFIG.chart.title.subtitle}}},null,8,["config"]))],4)):t.createCommentVNode("",!0),e.FINAL_CONFIG.chart.userOptions.show&&e.isDataset?(t.openBlock(),t.createBlock(k,{ref:"defails",key:`user_options_${a.step}`,backgroundColor:e.FINAL_CONFIG.chart.backgroundColor,color:e.FINAL_CONFIG.chart.color,isPrinting:a.isPrinting,isImaging:a.isImaging,uid:a.uniqueId,hasTooltip:e.FINAL_CONFIG.chart.userOptions.buttons.tooltip&&e.FINAL_CONFIG.chart.tooltip.show,hasPdf:e.FINAL_CONFIG.chart.userOptions.buttons.pdf,hasXls:e.FINAL_CONFIG.chart.userOptions.buttons.csv,hasImg:e.FINAL_CONFIG.chart.userOptions.buttons.img,hasLabel:e.FINAL_CONFIG.chart.userOptions.buttons.labels,hasTable:e.FINAL_CONFIG.chart.userOptions.buttons.table,hasStack:n.dataset.length>1&&e.FINAL_CONFIG.chart.userOptions.buttons.stack,hasFullscreen:e.FINAL_CONFIG.chart.userOptions.buttons.fullscreen,isStacked:a.mutableConfig.isStacked,isFullscreen:a.isFullscreen,chartElement:r.$refs.chart,position:e.FINAL_CONFIG.chart.userOptions.position,isTooltip:a.mutableConfig.showTooltip,titles:{...e.FINAL_CONFIG.chart.userOptions.buttonTitles},onToggleFullscreen:e.toggleFullscreen,onGeneratePdf:e.generatePdf,onGenerateCsv:e.generateCsv,onGenerateImage:e.generateImage,onToggleTable:e.toggleTable,onToggleLabels:e.toggleLabels,onToggleStack:e.toggleStack,onToggleTooltip:e.toggleTooltip},t.createSlots({_:2},[r.$slots.optionTooltip?{name:"optionTooltip",fn:t.withCtx(()=>[t.renderSlot(r.$slots,"optionTooltip",{},void 0,!0)]),key:"0"}:void 0,r.$slots.optionPdf?{name:"optionPdf",fn:t.withCtx(()=>[t.renderSlot(r.$slots,"optionPdf",{},void 0,!0)]),key:"1"}:void 0,r.$slots.optionCsv?{name:"optionCsv",fn:t.withCtx(()=>[t.renderSlot(r.$slots,"optionCsv",{},void 0,!0)]),key:"2"}:void 0,r.$slots.optionImg?{name:"optionImg",fn:t.withCtx(()=>[t.renderSlot(r.$slots,"optionImg",{},void 0,!0)]),key:"3"}:void 0,r.$slots.optionTable?{name:"optionTable",fn:t.withCtx(()=>[t.renderSlot(r.$slots,"optionTable",{},void 0,!0)]),key:"4"}:void 0,r.$slots.optionLabels?{name:"optionLabels",fn:t.withCtx(()=>[t.renderSlot(r.$slots,"optionLabels",{},void 0,!0)]),key:"5"}:void 0,r.$slots.optionStack?{name:"optionStack",fn:t.withCtx(()=>[t.renderSlot(r.$slots,"optionStack",{},void 0,!0)]),key:"6"}:void 0,r.$slots.optionFullscreen?{name:"optionFullscreen",fn:t.withCtx(({toggleFullscreen:l,isFullscreen:o})=>[t.renderSlot(r.$slots,"optionFullscreen",t.normalizeProps(t.guardReactiveProps({toggleFullscreen:l,isFullscreen:o})),void 0,!0)]),key:"7"}:void 0]),1032,["backgroundColor","color","isPrinting","isImaging","uid","hasTooltip","hasPdf","hasXls","hasImg","hasLabel","hasTable","hasStack","hasFullscreen","isStacked","isFullscreen","chartElement","position","isTooltip","titles","onToggleFullscreen","onGeneratePdf","onGenerateCsv","onGenerateImage","onToggleTable","onToggleLabels","onToggleStack","onToggleTooltip"])):t.createCommentVNode("",!0),e.isDataset?(t.openBlock(),t.createElementBlock("svg",{key:2,xmlns:"http://www.w3.org/2000/svg",class:t.normalizeClass([{"vue-data-ui-fullscreen--on":a.isFullscreen,"vue-data-ui-fulscreen--off":!a.isFullscreen},"vue-ui-xy-svg"]),width:"100%",viewBox:a.viewBox,style:t.normalizeStyle(`background: transparent; color:${e.FINAL_CONFIG.chart.color}; font-family:${e.FINAL_CONFIG.chart.fontFamily}`)},[e.maxSeries>0?(t.openBlock(),t.createElementBlock("g",Z,[t.createElementVNode("g",J,[e.FINAL_CONFIG.chart.grid.labels.xAxis.showBaseline?(t.openBlock(),t.createElementBlock("line",{key:0,stroke:e.FINAL_CONFIG.chart.grid.stroke,"stroke-width":"1",x1:e.drawingArea.left+e.xPadding,x2:e.drawingArea.right-e.xPadding,y1:e.drawingArea.bottom,y2:e.drawingArea.bottom,"stroke-linecap":"round"},null,8,K)):t.createCommentVNode("",!0),a.mutableConfig.useIndividualScale?e.FINAL_CONFIG.chart.grid.showHorizontalLines?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:2},t.renderList(e.allScales,l=>(t.openBlock(),t.createElementBlock("g",null,[l.id===a.selectedScale&&l.yLabels.length?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:0},t.renderList(l.yLabels,o=>(t.openBlock(),t.createElementBlock("line",{x1:e.drawingArea.left+e.xPadding,x2:e.drawingArea.right-e.xPadding,y1:e.checkNaN(o.y),y2:e.checkNaN(o.y),stroke:l.color,"stroke-width":.5,"stroke-linecap":"round"},null,8,ee))),256)):l.yLabels.length?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:1},t.renderList(l.yLabels,o=>(t.openBlock(),t.createElementBlock("line",{x1:e.drawingArea.left+e.xPadding,x2:e.drawingArea.right-e.xPadding,y1:e.checkNaN(o.y),y2:e.checkNaN(o.y),stroke:e.FINAL_CONFIG.chart.grid.stroke,"stroke-width":.5,"stroke-linecap":"round"},null,8,te))),256)):t.createCommentVNode("",!0)]))),256)):t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[e.FINAL_CONFIG.chart.grid.labels.yAxis.showBaseline?(t.openBlock(),t.createElementBlock("line",{key:0,stroke:e.FINAL_CONFIG.chart.grid.stroke,"stroke-width":"1",x1:e.drawingArea.left+e.xPadding,x2:e.drawingArea.left+e.xPadding,y1:e.drawingArea.top,y2:e.drawingArea.bottom,"stroke-linecap":"round"},null,8,Q)):t.createCommentVNode("",!0),e.FINAL_CONFIG.chart.grid.showHorizontalLines?(t.openBlock(),t.createElementBlock("g",j,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.yLabels,l=>(t.openBlock(),t.createElementBlock("line",{x1:e.drawingArea.left+e.xPadding,x2:e.drawingArea.right-e.xPadding,y1:e.checkNaN(l.y),y2:e.checkNaN(l.y),stroke:e.FINAL_CONFIG.chart.grid.stroke,"stroke-width":.5,"stroke-linecap":"round"},null,8,$))),256))])):t.createCommentVNode("",!0)],64)),e.FINAL_CONFIG.chart.grid.showVerticalLines?(t.openBlock(),t.createElementBlock("g",le,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.maxSeries+(e.FINAL_CONFIG.chart.grid.position==="middle"?1:0),(l,o)=>(t.openBlock(),t.createElementBlock("line",{key:`grid_vertical_line_${o}`,x1:e.drawingArea.width/e.maxSeries*o+e.drawingArea.left+e.xPadding,x2:e.drawingArea.width/e.maxSeries*o+e.drawingArea.left+e.xPadding,y1:e.drawingArea.top,y2:e.drawingArea.bottom,"stroke-width":"0.5",stroke:e.FINAL_CONFIG.chart.grid.stroke},null,8,re))),128))])):t.createCommentVNode("",!0)]),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.barSet,(l,o)=>(t.openBlock(),t.createElementBlock("defs",{key:`def_rect_${o}`},[t.createElementVNode("linearGradient",{id:`rectGradient_pos_${o}_${a.uniqueId}`,x2:"0%",y2:"100%"},[t.createElementVNode("stop",{offset:"0%","stop-color":l.color},null,8,ie),t.createElementVNode("stop",{offset:"62%","stop-color":`${e.shiftHue(l.color,.02)}`},null,8,se),t.createElementVNode("stop",{offset:"100%","stop-color":`${e.shiftHue(l.color,.05)}`},null,8,oe)],8,ae),t.createElementVNode("linearGradient",{id:`rectGradient_neg_${o}_${a.uniqueId}`,x2:"0%",y2:"100%"},[t.createElementVNode("stop",{offset:"0%","stop-color":`${e.shiftHue(l.color,.05)}`},null,8,ce),t.createElementVNode("stop",{offset:"38%","stop-color":`${e.shiftHue(l.color,.02)}`},null,8,he),t.createElementVNode("stop",{offset:"100%","stop-color":l.color},null,8,de)],8,ne)]))),128)),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.plotSet,(l,o)=>(t.openBlock(),t.createElementBlock("defs",{key:`def_plot_${o}`},[t.createElementVNode("radialGradient",{id:`plotGradient_${o}_${a.uniqueId}`,cx:"50%",cy:"50%",r:"50%",fx:"50%",fy:"50%"},[t.createElementVNode("stop",{offset:"0%","stop-color":`${e.shiftHue(l.color,.05)}`},null,8,me),t.createElementVNode("stop",{offset:"100%","stop-color":l.color},null,8,ge)],8,ue)]))),128)),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.lineSet,(l,o)=>(t.openBlock(),t.createElementBlock("defs",{key:`def_line_${o}`},[t.createElementVNode("radialGradient",{id:`lineGradient_${o}_${a.uniqueId}`,cx:"50%",cy:"50%",r:"50%",fx:"50%",fy:"50%"},[t.createElementVNode("stop",{offset:"0%","stop-color":`${e.shiftHue(l.color,.05)}`},null,8,fe),t.createElementVNode("stop",{offset:"100%","stop-color":l.color},null,8,ke)],8,Ne),t.createElementVNode("linearGradient",{id:`areaGradient_${o}_${a.uniqueId}`,x1:"0%",x2:"100%",y1:"0%",y2:"0%"},[t.createElementVNode("stop",{offset:"0%","stop-color":`${e.setOpacity(e.shiftHue(l.color,.03),e.FINAL_CONFIG.line.area.opacity)}`},null,8,xe),t.createElementVNode("stop",{offset:"100%","stop-color":`${e.setOpacity(l.color,e.FINAL_CONFIG.line.area.opacity)}`},null,8,be)],8,Ie)]))),128)),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.highlightAreas,l=>(t.openBlock(),t.createElementBlock("g",null,[l.show?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:0},t.renderList(l.span,(o,i)=>(t.openBlock(),t.createElementBlock("g",null,[t.createElementVNode("rect",{style:t.normalizeStyle({transition:"none",opacity:l.from+i>=a.slicer.start&&l.from+i<=a.slicer.end-1?1:0}),x:e.drawingArea.left+e.drawingArea.width/e.maxSeries*(l.from+i-a.slicer.start),y:e.drawingArea.top,height:e.drawingArea.height<0?10:e.drawingArea.height,width:e.drawingArea.width/e.maxSeries<0?1e-5:e.drawingArea.width/e.maxSeries,fill:e.setOpacity(l.color,l.opacity)},null,12,Fe),l.caption.text&&i===0?(t.openBlock(),t.createElementBlock("foreignObject",{key:0,x:e.drawingArea.left+e.drawingArea.width/e.maxSeries*(l.from+i-a.slicer.start)-(l.caption.width==="auto"?0:l.caption.width/2-e.drawingArea.width/e.maxSeries*l.span/2),y:e.drawingArea.top+l.caption.offsetY,style:t.normalizeStyle({overflow:"visible",opacity:l.to>=a.slicer.start&&l.from<a.slicer.end?1:0}),height:"1",width:l.caption.width==="auto"?e.drawingArea.width/e.maxSeries*l.span:l.caption.width},[t.createElementVNode("div",{style:t.normalizeStyle(`padding:${l.caption.padding}px;text-align:${l.caption.textAlign};font-size:${l.caption.fontSize}px;color:${l.caption.color};font-weight:${l.caption.bold?"bold":"normal"}`)},t.toDisplayString(l.caption.text),5)],12,_e)):t.createCommentVNode("",!0)]))),256)):t.createCommentVNode("",!0)]))),256)),t.createElementVNode("g",null,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.maxSeries,(l,o)=>(t.openBlock(),t.createElementBlock("g",{key:`tooltip_trap_${o}`},[t.createElementVNode("rect",{x:e.drawingArea.left+e.drawingArea.width/e.maxSeries*o,y:e.drawingArea.top,height:e.drawingArea.height<0?10:e.drawingArea.height,width:e.drawingArea.width/e.maxSeries<0?1e-5:e.drawingArea.width/e.maxSeries,fill:[a.selectedMinimapIndex,a.selectedSerieIndex,a.selectedRowIndex].includes(o)?e.setOpacity(e.FINAL_CONFIG.chart.highlighter.color,e.FINAL_CONFIG.chart.highlighter.opacity):"transparent"},null,8,ye)]))),128))]),e.barSet.length?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:0},t.renderList(e.barSet,(l,o)=>(t.openBlock(),t.createElementBlock("g",{key:`serie_bar_${o}`,class:t.normalizeClass(`serie_bar_${o}`),style:t.normalizeStyle(`opacity:${a.selectedScale?a.selectedScale===l.id?1:.2:1};transition:opacity 0.2s ease-in-out`)},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(l.plots,(i,d)=>(t.openBlock(),t.createElementBlock("g",{key:`bar_plot_${o}_${d}`},[e.canShowValue(i.value)?(t.openBlock(),t.createElementBlock("rect",{key:0,x:e.calcRectX(i),y:a.mutableConfig.useIndividualScale?e.calcIndividualRectY(i):e.calcRectY(i),height:a.mutableConfig.useIndividualScale?Math.abs(e.calcIndividualHeight(i)):Math.abs(e.calcRectHeight(i)),width:e.calcRectWidth()-(a.mutableConfig.useIndividualScale&&a.mutableConfig.isStacked?0:e.barPeriodGap)<0?1e-5:e.calcRectWidth()-(a.mutableConfig.useIndividualScale&&a.mutableConfig.isStacked?0:e.barPeriodGap),rx:e.FINAL_CONFIG.bar.borderRadius,fill:e.FINAL_CONFIG.bar.useGradient?i.value>=0?`url(#rectGradient_pos_${o}_${a.uniqueId})`:`url(#rectGradient_neg_${o}_${a.uniqueId})`:l.color,stroke:e.FINAL_CONFIG.bar.border.useSerieColor?l.color:e.FINAL_CONFIG.bar.border.stroke,"stroke-width":e.FINAL_CONFIG.bar.border.strokeWidth},null,8,Ce)):t.createCommentVNode("",!0),i.comment&&e.FINAL_CONFIG.chart.comments.show?(t.openBlock(),t.createElementBlock("foreignObject",{key:1,style:{overflow:"visible"},height:"12",width:(e.calcRectWidth()-(a.mutableConfig.useIndividualScale&&a.mutableConfig.isStacked?0:e.barPeriodGap)<0?1e-5:e.calcRectWidth()-(a.mutableConfig.useIndividualScale&&a.mutableConfig.isStacked?0:e.barPeriodGap)/2)+e.FINAL_CONFIG.chart.comments.width,x:e.calcRectX(i)-e.FINAL_CONFIG.chart.comments.width/2+e.FINAL_CONFIG.chart.comments.offsetX,y:e.checkNaN(i.y)+e.FINAL_CONFIG.chart.comments.offsetY+6},[t.renderSlot(r.$slots,"plot-comment",{plot:{...i,color:l.color}},void 0,!0)],8,Se)):t.createCommentVNode("",!0)]))),128)),Object.hasOwn(l,"useProgression")&&l.useProgression===!0&&!isNaN(e.calcLinearProgression(l.plots).trend)?(t.openBlock(),t.createElementBlock("g",Ae,[t.createElementVNode("defs",null,[t.createElementVNode("marker",{id:`bar_arrow_${o}`,markerWidth:7,markerHeight:7,refX:"0",refY:7/2,orient:"auto"},[t.createElementVNode("polygon",{points:`0 0, 7 ${7/2}, 0 7`,fill:l.color},null,8,we)],8,Le)]),l.plots.length>1?(t.openBlock(),t.createElementBlock("line",{key:0,x1:e.calcLinearProgression(l.plots).x1,x2:e.calcLinearProgression(l.plots).x2,y1:e.calcLinearProgression(l.plots).y1,y2:e.calcLinearProgression(l.plots).y2,"stroke-width":1,stroke:l.color,"stroke-dasharray":2,"marker-end":`url(#bar_arrow_${o})`},null,8,Oe)):t.createCommentVNode("",!0),l.plots.length>1?(t.openBlock(),t.createElementBlock("text",{key:1,"text-anchor":"middle",x:e.calcLinearProgression(l.plots).x2,y:e.calcLinearProgression(l.plots).y2-6,"font-size":a.fontSizes.plotLabels,fill:l.color},t.toDisplayString(e.dataLabel({v:e.calcLinearProgression(l.plots).trend*100,s:"%",r:2})),9,ve)):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0)],6))),128)):t.createCommentVNode("",!0),!a.mutableConfig.useIndividualScale&&e.FINAL_CONFIG.chart.grid.labels.zeroLine.show?(t.openBlock(),t.createElementBlock("line",{key:1,stroke:e.FINAL_CONFIG.chart.grid.stroke,"stroke-width":"1",x1:e.drawingArea.left+e.xPadding,x2:e.drawingArea.right-e.xPadding,y1:e.checkNaN(e.zero),y2:e.checkNaN(e.zero),"stroke-linecap":"round"},null,8,pe)):t.createCommentVNode("",!0),e.FINAL_CONFIG.chart.highlighter.useLine&&(![null,void 0].includes(a.selectedSerieIndex)||a.selectedMinimapIndex!==null)?(t.openBlock(),t.createElementBlock("g",Ge,[t.createElementVNode("line",{x1:e.drawingArea.left+e.drawingArea.width/e.maxSeries*(a.selectedSerieIndex||a.selectedMinimapIndex)+e.drawingArea.width/e.maxSeries/2,x2:e.drawingArea.left+e.drawingArea.width/e.maxSeries*(a.selectedSerieIndex||a.selectedMinimapIndex)+e.drawingArea.width/e.maxSeries/2,y1:e.drawingArea.top,y2:e.drawingArea.bottom,stroke:e.FINAL_CONFIG.chart.highlighter.color,"stroke-width":e.FINAL_CONFIG.chart.highlighter.lineWidth,"stroke-dasharray":e.FINAL_CONFIG.chart.highlighter.lineDasharray,"stroke-linecap":"round",style:{transition:"none !important",animation:"none !important","pointer-events":"none"}},null,8,Be)])):t.createCommentVNode("",!0),e.FINAL_CONFIG.chart.grid.frame.show?(t.openBlock(),t.createElementBlock("rect",{key:3,style:{pointerEvents:"none",transition:"none"},x:e.drawingArea.left+e.xPadding<0?0:e.drawingArea.left+e.xPadding,y:e.drawingArea.top,width:e.drawingArea.width-(e.FINAL_CONFIG.chart.grid.position==="middle"?0:e.drawingArea.width/e.maxSeries)<0?0:e.drawingArea.width-(e.FINAL_CONFIG.chart.grid.position==="middle"?0:e.drawingArea.width/e.maxSeries),height:e.drawingArea.height<0?0:e.drawingArea.height,fill:"transparent",stroke:e.FINAL_CONFIG.chart.grid.frame.stroke,"stroke-width":e.FINAL_CONFIG.chart.grid.frame.strokeWidth,"stroke-linecap":e.FINAL_CONFIG.chart.grid.frame.strokeLinecap,"stroke-linejoin":e.FINAL_CONFIG.chart.grid.frame.strokeLinejoin,"stroke-dasharray":e.FINAL_CONFIG.chart.grid.frame.strokeDasharray},null,8,Ee)):t.createCommentVNode("",!0),e.FINAL_CONFIG.chart.grid.labels.show?(t.openBlock(),t.createElementBlock("g",ze,[a.mutableConfig.useIndividualScale?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.allScales,l=>(t.openBlock(),t.createElementBlock("g",null,[t.createElementVNode("line",{x1:l.x+e.xPadding,x2:l.x+e.xPadding,y1:a.mutableConfig.isStacked?e.checkNaN(e.drawingArea.bottom-l.yOffset-l.individualHeight):e.checkNaN(e.drawingArea.top),y2:a.mutableConfig.isStacked?e.checkNaN(e.drawingArea.bottom-l.yOffset):e.checkNaN(e.drawingArea.bottom),stroke:l.color,"stroke-width":e.FINAL_CONFIG.chart.grid.stroke,"stroke-linecap":"round",style:t.normalizeStyle(`opacity:${a.selectedScale?a.selectedScale===l.id?1:.3:1};transition:opacity 0.2s ease-in-out`)},null,12,Ve)]))),256)),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.allScales,l=>(t.openBlock(),t.createElementBlock("g",{style:t.normalizeStyle(`opacity:${a.selectedScale?a.selectedScale===l.id?1:.3:1};transition:opacity 0.2s ease-in-out`)},[t.createElementVNode("text",{fill:l.color,"font-size":a.fontSizes.dataLabels,"text-anchor":"middle",transform:`translate(${l.x-e.FINAL_CONFIG.chart.grid.labels.yAxis.labelWidth+5}, ${a.mutableConfig.isStacked?e.drawingArea.bottom-l.yOffset-l.individualHeight/2:e.drawingArea.top+e.drawingArea.height/2}) rotate(-90)`},t.toDisplayString(l.name)+" "+t.toDisplayString(l.scaleLabel?`- ${l.scaleLabel}`:""),9,Me),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(l.yLabels,(o,i)=>(t.openBlock(),t.createElementBlock("line",{x1:l.x-3+e.xPadding,x2:l.x+e.xPadding,y1:e.checkNaN(o.y),y2:e.checkNaN(o.y),stroke:l.color,"stroke-width":1,"stroke-linecap":"round"},null,8,Pe))),256)),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(l.yLabels,(o,i)=>(t.openBlock(),t.createElementBlock("text",{x:l.x-5+e.xPadding,y:e.checkNaN(o.y)+a.fontSizes.dataLabels/3,"font-size":a.fontSizes.dataLabels,"text-anchor":"end",fill:l.color},t.toDisplayString(e.applyDataLabel(e.FINAL_CONFIG.chart.grid.labels.yAxis.formatter,o.value,e.dataLabel({p:o.prefix,v:o.value,s:o.suffix,r:1}),{datapoint:o.datapoint,seriesIndex:i})),9,Te))),256))],4))),256))],64)):(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:1},t.renderList(e.yLabels,(l,o)=>(t.openBlock(),t.createElementBlock("g",{key:`yLabel_${o}`},[e.canShowValue(l)&&l.value>=e.niceScale.min&&l.value<=e.niceScale.max?(t.openBlock(),t.createElementBlock("line",{key:0,x1:e.drawingArea.left+e.xPadding,x2:e.drawingArea.left-5+e.xPadding,y1:e.checkNaN(l.y),y2:e.checkNaN(l.y),stroke:e.FINAL_CONFIG.chart.grid.stroke,"stroke-width":"1","stroke-linecap":"round"},null,8,De)):t.createCommentVNode("",!0),l.value>=e.niceScale.min&&l.value<=e.niceScale.max?(t.openBlock(),t.createElementBlock("text",{key:1,x:e.drawingArea.left-7+e.xPadding,y:e.checkNaN(l.y+a.fontSizes.dataLabels/3),"font-size":a.fontSizes.dataLabels,"text-anchor":"end",fill:e.FINAL_CONFIG.chart.grid.labels.color},t.toDisplayString(e.canShowValue(l.value)?e.applyDataLabel(e.FINAL_CONFIG.chart.grid.labels.yAxis.formatter,l.value,e.dataLabel({p:l.prefix,v:l.value,s:l.suffix,r:1})):""),9,Re)):t.createCommentVNode("",!0)]))),128))])):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.plotSet,(l,o)=>(t.openBlock(),t.createElementBlock("g",{key:`serie_plot_${o}`,class:t.normalizeClass(`serie_plot_${o}`),style:t.normalizeStyle(`opacity:${a.selectedScale?a.selectedScale===l.id?1:.2:1};transition:opacity 0.2s ease-in-out`)},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(l.plots,(i,d)=>(t.openBlock(),t.createElementBlock("g",{key:`circle_plot_${o}_${d}`},[i&&e.canShowValue(i.value)?(t.openBlock(),t.createBlock(x,{key:0,shape:["triangle","square","diamond","pentagon","hexagon","star"].includes(l.shape)?l.shape:"circle",color:e.FINAL_CONFIG.plot.useGradient?`url(#plotGradient_${o}_${a.uniqueId})`:e.FINAL_CONFIG.plot.dot.useSerieColor?l.color:e.FINAL_CONFIG.plot.dot.fill,plot:{x:e.checkNaN(i.x),y:e.checkNaN(i.y)},radius:a.selectedSerieIndex!==null&&a.selectedSerieIndex===d||a.selectedMinimapIndex!==null&&a.selectedMinimapIndex===d?(a.plotRadii.plot||6)*1.5:a.plotRadii.plot||6,stroke:e.FINAL_CONFIG.plot.dot.useSerieColor?e.FINAL_CONFIG.chart.backgroundColor:l.color,strokeWidth:e.FINAL_CONFIG.plot.dot.strokeWidth},null,8,["shape","color","plot","radius","stroke","strokeWidth"])):t.createCommentVNode("",!0),i.comment&&e.FINAL_CONFIG.chart.comments.show?(t.openBlock(),t.createElementBlock("foreignObject",{key:1,style:{overflow:"visible"},height:"12",width:e.FINAL_CONFIG.chart.comments.width,x:i.x-e.FINAL_CONFIG.chart.comments.width/2+e.FINAL_CONFIG.chart.comments.offsetX,y:i.y+e.FINAL_CONFIG.chart.comments.offsetY+6},[t.createElementVNode("div",We,[t.renderSlot(r.$slots,"plot-comment",{plot:{...i,color:l.color}},void 0,!0)])],8,He)):t.createCommentVNode("",!0)]))),128)),Object.hasOwn(l,"useProgression")&&l.useProgression===!0&&!isNaN(e.calcLinearProgression(l.plots).trend)?(t.openBlock(),t.createElementBlock("g",qe,[t.createElementVNode("defs",null,[t.createElementVNode("marker",{id:`plot_arrow_${o}`,markerWidth:7,markerHeight:7,refX:"0",refY:7/2,orient:"auto"},[t.createElementVNode("polygon",{points:`0 0, 7 ${7/2}, 0 7`,fill:l.color},null,8,Xe)],8,Ye)]),l.plots.length>1?(t.openBlock(),t.createElementBlock("line",{key:0,x1:e.calcLinearProgression(l.plots).x1,x2:e.calcLinearProgression(l.plots).x2,y1:e.calcLinearProgression(l.plots).y1,y2:e.calcLinearProgression(l.plots).y2,"stroke-width":1,stroke:l.color,"stroke-dasharray":2,"marker-end":`url(#plot_arrow_${o})`},null,8,Ue)):t.createCommentVNode("",!0),l.plots.length>1?(t.openBlock(),t.createElementBlock("text",{key:1,"text-anchor":"middle",x:e.calcLinearProgression(l.plots).x2,y:e.calcLinearProgression(l.plots).y2-6,"font-size":a.fontSizes.plotLabels,fill:l.color},t.toDisplayString(e.dataLabel({v:e.calcLinearProgression(l.plots).trend*100,s:"%",r:2})),9,Ze)):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0)],6))),128)),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.lineSet,(l,o)=>(t.openBlock(),t.createElementBlock("g",{key:`serie_line_${o}`,class:t.normalizeClass(`serie_line_${o}`),style:t.normalizeStyle(`opacity:${a.selectedScale?a.selectedScale===l.id?1:.2:1};transition:opacity 0.2s ease-in-out`)},[l.smooth&&l.plots.length>1?(t.openBlock(),t.createElementBlock("path",{key:0,d:`M${l.curve}`,stroke:e.FINAL_CONFIG.chart.backgroundColor,"stroke-width":e.FINAL_CONFIG.line.strokeWidth+1,"stroke-dasharray":l.dashed?e.FINAL_CONFIG.line.strokeWidth*2:0,fill:"none"},null,8,Je)):l.plots.length>1?(t.openBlock(),t.createElementBlock("g",Ke,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(l.plots,(i,d)=>(t.openBlock(),t.createElementBlock("g",{key:`line_${o}_${d}`},[i&&d<l.plots.length-1&&l.plots[d+1]&&e.canShowValue(i.value)&&e.canShowValue(l.plots[d+1].value)?(t.openBlock(),t.createElementBlock("line",{key:0,x1:i.x,x2:l.plots[d+1].x,y1:i.y,y2:l.plots[d+1].y,stroke:e.FINAL_CONFIG.chart.backgroundColor,"stroke-width":e.FINAL_CONFIG.line.strokeWidth+1,"stroke-dasharray":l.dashed?e.FINAL_CONFIG.line.strokeWidth*2:0,"stroke-linejoin":"round","stroke-linecap":"round"},null,8,Qe)):t.createCommentVNode("",!0)]))),128))])):t.createCommentVNode("",!0)],6))),128)),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.lineSet,(l,o)=>(t.openBlock(),t.createElementBlock("g",{key:`serie_line_${o}`,class:t.normalizeClass(`serie_line_${o}`),style:t.normalizeStyle(`opacity:${a.selectedScale?a.selectedScale===l.id?1:.2:1};transition:opacity 0.2s ease-in-out`)},[l.useArea&&l.plots.length>1?(t.openBlock(),t.createElementBlock("g",je,[l.smooth?(t.openBlock(),t.createElementBlock("path",{key:0,d:`M ${l.plots[0]?l.plots[0].x:Math.min(...l.plots.filter(i=>!!i).map(i=>i.x))},${a.mutableConfig.isStacked?e.drawingArea.bottom-l.yOffset:e.drawingArea.bottom} ${l.curve} L ${l.plots.at(-1)?l.plots.at(-1).x:e.drawingArea.left+e.slot.line*o+e.slot.line/2},${a.mutableConfig.isStacked?e.drawingArea.bottom-l.yOffset:e.drawingArea.bottom} Z`,fill:e.FINAL_CONFIG.line.area.useGradient?`url(#areaGradient_${o}_${a.uniqueId})`:e.setOpacity(l.color,e.FINAL_CONFIG.line.area.opacity)},null,8,$e)):(t.openBlock(),t.createElementBlock("path",{key:1,d:`M${l.area}Z`,fill:e.FINAL_CONFIG.line.area.useGradient?`url(#areaGradient_${o}_${a.uniqueId})`:e.setOpacity(l.color,e.FINAL_CONFIG.line.area.opacity)},null,8,et))])):t.createCommentVNode("",!0),l.smooth&&l.plots.length>1?(t.openBlock(),t.createElementBlock("path",{key:1,d:`M${l.curve}`,stroke:l.color,"stroke-width":e.FINAL_CONFIG.line.strokeWidth,"stroke-dasharray":l.dashed?e.FINAL_CONFIG.line.strokeWidth*2:0,fill:"none"},null,8,tt)):l.plots.length>1?(t.openBlock(),t.createElementBlock("g",lt,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(l.plots,(i,d)=>(t.openBlock(),t.createElementBlock("g",{key:`line_${o}_${d}`},[i&&d<l.plots.length-1&&l.plots[d+1]&&e.canShowValue(i.value)&&e.canShowValue(l.plots[d+1].value)?(t.openBlock(),t.createElementBlock("line",{key:0,x1:i.x,x2:l.plots[d+1].x,y1:i.y,y2:l.plots[d+1].y,stroke:l.color,"stroke-width":e.FINAL_CONFIG.line.strokeWidth,"stroke-dasharray":l.dashed?e.FINAL_CONFIG.line.strokeWidth*2:0,"stroke-linejoin":"round","stroke-linecap":"round"},null,8,rt)):t.createCommentVNode("",!0)]))),128))])):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(l.plots,(i,d)=>(t.openBlock(),t.createElementBlock("g",{key:`circle_line_${o}_${d}`},[i&&e.canShowValue(i.value)?(t.openBlock(),t.createBlock(x,{key:0,shape:["triangle","square","diamond","pentagon","hexagon","star"].includes(l.shape)?l.shape:"circle",color:e.FINAL_CONFIG.line.useGradient?`url(#lineGradient_${o}_${a.uniqueId})`:e.FINAL_CONFIG.line.dot.useSerieColor?l.color:e.FINAL_CONFIG.line.dot.fill,plot:{x:e.checkNaN(i.x),y:e.checkNaN(i.y)},radius:a.selectedSerieIndex!==null&&a.selectedSerieIndex===d||a.selectedMinimapIndex!==null&&a.selectedMinimapIndex===d?(a.plotRadii.line||6)*1.5:a.plotRadii.line||6,stroke:e.FINAL_CONFIG.line.dot.useSerieColor?e.FINAL_CONFIG.chart.backgroundColor:l.color,strokeWidth:e.FINAL_CONFIG.line.dot.strokeWidth},null,8,["shape","color","plot","radius","stroke","strokeWidth"])):t.createCommentVNode("",!0),i.comment&&e.FINAL_CONFIG.chart.comments.show?(t.openBlock(),t.createElementBlock("foreignObject",{key:1,style:{overflow:"visible"},height:"12",width:e.FINAL_CONFIG.chart.comments.width,x:i.x-e.FINAL_CONFIG.chart.comments.width/2+e.FINAL_CONFIG.chart.comments.offsetX,y:i.y+e.FINAL_CONFIG.chart.comments.offsetY+6},[t.createElementVNode("div",it,[t.renderSlot(r.$slots,"plot-comment",{plot:{...i,color:l.color}},void 0,!0)])],8,at)):t.createCommentVNode("",!0)]))),128)),Object.hasOwn(l,"useProgression")&&l.useProgression===!0&&!isNaN(e.calcLinearProgression(l.plots).trend)?(t.openBlock(),t.createElementBlock("g",st,[t.createElementVNode("defs",null,[t.createElementVNode("marker",{id:`line_arrow_${o}`,markerWidth:7,markerHeight:7,refX:"0",refY:7/2,orient:"auto"},[t.createElementVNode("polygon",{points:`0 0, 7 ${7/2}, 0 7`,fill:l.color},null,8,nt)],8,ot)]),l.plots.length>1?(t.openBlock(),t.createElementBlock("line",{key:0,x1:e.calcLinearProgression(l.plots).x1,x2:e.calcLinearProgression(l.plots).x2,y1:e.calcLinearProgression(l.plots).y1,y2:e.calcLinearProgression(l.plots).y2,"stroke-width":1,stroke:l.color,"stroke-dasharray":2,"marker-end":`url(#line_arrow_${o})`},null,8,ct)):t.createCommentVNode("",!0),l.plots.length>1?(t.openBlock(),t.createElementBlock("text",{key:1,"text-anchor":"middle",x:e.calcLinearProgression(l.plots).x2,y:e.calcLinearProgression(l.plots).y2-6,"font-size":a.fontSizes.plotLabels,fill:l.color},t.toDisplayString(e.dataLabel({v:e.calcLinearProgression(l.plots).trend*100,s:"%",r:2})),9,ht)):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0)],6))),128)),(e.FINAL_CONFIG.bar.labels.show||e.FINAL_CONFIG.bar.serieName.show)&&a.mutableConfig.dataLabels.show?(t.openBlock(),t.createElementBlock("g",dt,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.barSet,(l,o)=>(t.openBlock(),t.createElementBlock("g",{key:`xLabel_bar_${o}`,class:t.normalizeClass(`xLabel_bar_${o}`),style:t.normalizeStyle(`opacity:${a.selectedScale?a.selectedScale===l.id?1:.2:1};transition:opacity 0.2s ease-in-out`)},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(l.plots,(i,d)=>(t.openBlock(),t.createElementBlock("g",{key:`xLabel_bar_${o}_${d}`},[i&&(!Object.hasOwn(l,"dataLabels")||l.dataLabels===!0)&&e.FINAL_CONFIG.bar.labels.show?(t.openBlock(),t.createElementBlock("text",{key:0,x:a.mutableConfig.useIndividualScale&&a.mutableConfig.isStacked?i.x+e.slot.line/2:e.calcRectX(i)+e.calcRectWidth()/2-e.barPeriodGap/2,y:e.checkNaN(i.y)+(i.value>0?e.FINAL_CONFIG.bar.labels.offsetY:-e.FINAL_CONFIG.bar.labels.offsetY*3),"text-anchor":"middle","font-size":a.fontSizes.plotLabels,fill:e.FINAL_CONFIG.bar.labels.color},t.toDisplayString(e.canShowValue(i.value)?e.applyDataLabel(e.FINAL_CONFIG.bar.labels.formatter,i.value,e.dataLabel({p:l.prefix||e.FINAL_CONFIG.chart.labels.prefix,v:i.value,s:l.suffix||e.FINAL_CONFIG.chart.labels.suffix,r:e.FINAL_CONFIG.bar.labels.rounding}),{datapoint:i,serie:l}):""),9,ut)):t.createCommentVNode("",!0),i&&e.FINAL_CONFIG.bar.serieName.show?(t.openBlock(),t.createElementBlock("text",{key:1,x:a.mutableConfig.useIndividualScale&&a.mutableConfig.isStacked?i.x+e.slot.line/2:i.x+e.calcRectWidth()*1.1,y:i.y+(i.value>0?e.FINAL_CONFIG.bar.serieName.offsetY:-e.FINAL_CONFIG.bar.serieName.offsetY*3),"text-anchor":"middle","font-size":a.fontSizes.plotLabels,fill:e.FINAL_CONFIG.bar.serieName.useSerieColor?l.color:e.FINAL_CONFIG.bar.serieName.color,"font-weight":e.FINAL_CONFIG.bar.serieName.bold?"bold":"normal"},t.toDisplayString(e.FINAL_CONFIG.bar.serieName.useAbbreviation?e.abbreviate({source:l.name,length:e.FINAL_CONFIG.bar.serieName.abbreviationSize}):l.name),9,mt)):t.createCommentVNode("",!0)]))),128))],6))),128))])):t.createCommentVNode("",!0),e.FINAL_CONFIG.plot.labels.show&&a.mutableConfig.dataLabels.show?(t.openBlock(),t.createElementBlock("g",gt,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.plotSet,(l,o)=>(t.openBlock(),t.createElementBlock("g",{key:`xLabel_plot_${o}`,class:t.normalizeClass(`xLabel_plot_${o}`),style:t.normalizeStyle(`opacity:${a.selectedScale?a.selectedScale===l.id?1:.2:1};transition:opacity 0.2s ease-in-out`)},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(l.plots,(i,d)=>(t.openBlock(),t.createElementBlock("g",{key:`xLabel_plot_${o}_${d}`},[i&&!Object.hasOwn(l,"dataLabels")||l.dataLabels===!0?(t.openBlock(),t.createElementBlock("text",{key:0,x:i.x,y:i.y+e.FINAL_CONFIG.plot.labels.offsetY,"text-anchor":"middle","font-size":a.fontSizes.plotLabels,fill:e.FINAL_CONFIG.plot.labels.color},t.toDisplayString(e.canShowValue(i.value)?e.applyDataLabel(e.FINAL_CONFIG.plot.labels.formatter,i.value,e.dataLabel({p:l.prefix||e.FINAL_CONFIG.chart.labels.prefix,v:i.value,s:l.suffix||e.FINAL_CONFIG.chart.labels.suffix,r:e.FINAL_CONFIG.plot.labels.rounding}),{datapoint:i,serie:l}):""),9,Nt)):t.createCommentVNode("",!0),i&&d===0&&l.useTag&&l.useTag==="start"?(t.openBlock(),t.createElementBlock("foreignObject",{key:1,x:i.x,y:i.y-20,height:24,width:"150",style:{overflow:"visible"}},[t.createElementVNode("div",{style:t.normalizeStyle(`padding: 3px; background:${e.setOpacity(l.color,80)};color:${e.adaptColorToBackground(l.color)};width:fit-content;font-size:${a.fontSizes.plotLabels}px;border-radius: 2px;`)},t.toDisplayString(l.name),5)],8,ft)):t.createCommentVNode("",!0),i&&d===l.plots.length-1&&l.useTag&&l.useTag==="end"?(t.openBlock(),t.createElementBlock("foreignObject",{key:2,x:i.x-l.name.length*(a.fontSizes.plotLabels/2),y:i.y-20,height:24,width:"150",style:{overflow:"visible"}},[t.createElementVNode("div",{style:t.normalizeStyle(`padding: 3px; background:${e.setOpacity(l.color,80)};color:${e.adaptColorToBackground(l.color)};width:fit-content;font-size:${a.fontSizes.plotLabels}px;border-radius: 2px;`)},t.toDisplayString(l.name),5)],8,kt)):t.createCommentVNode("",!0)]))),128))],6))),128))])):t.createCommentVNode("",!0),e.FINAL_CONFIG.line.labels.show&&a.mutableConfig.dataLabels.show?(t.openBlock(),t.createElementBlock("g",It,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.lineSet,(l,o)=>(t.openBlock(),t.createElementBlock("g",{key:`xLabel_line_${o}`,class:t.normalizeClass(`xLabel_line_${o}`),style:t.normalizeStyle(`opacity:${a.selectedScale?a.selectedScale===l.id?1:.2:1};transition:opacity 0.2s ease-in-out`)},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(l.plots,(i,d)=>(t.openBlock(),t.createElementBlock("g",{key:`xLabel_line_${o}_${d}`},[i&&!Object.hasOwn(l,"dataLabels")||l.dataLabels===!0?(t.openBlock(),t.createElementBlock("text",{key:0,x:i.x,y:i.y+(i.value>0?e.FINAL_CONFIG.line.labels.offsetY:-e.FINAL_CONFIG.line.labels.offsetY*3),"text-anchor":"middle","font-size":a.fontSizes.plotLabels,fill:e.FINAL_CONFIG.line.labels.color},t.toDisplayString(e.canShowValue(i.value)?e.applyDataLabel(e.FINAL_CONFIG.line.labels.formatter,i.value,e.dataLabel({p:l.prefix||e.FINAL_CONFIG.chart.labels.prefix,v:i.value,s:l.suffix||e.FINAL_CONFIG.chart.labels.suffix,r:e.FINAL_CONFIG.line.labels.rounding}),{datapoint:i,serie:l}):""),9,xt)):t.createCommentVNode("",!0),i&&d===0&&l.useTag&&l.useTag==="start"?(t.openBlock(),t.createElementBlock("foreignObject",{key:1,x:i.x,y:i.y-20,height:24,width:"150",style:{overflow:"visible"}},[t.createElementVNode("div",{style:t.normalizeStyle(`padding: 3px; background:${e.setOpacity(l.color,80)};color:${e.adaptColorToBackground(l.color)};width:fit-content;font-size:${a.fontSizes.plotLabels}px;border-radius: 2px;`)},t.toDisplayString(l.name),5)],8,bt)):t.createCommentVNode("",!0),i&&d===l.plots.length-1&&l.useTag&&l.useTag==="end"?(t.openBlock(),t.createElementBlock("foreignObject",{key:2,x:i.x-l.name.length*(a.fontSizes.plotLabels/2),y:i.y-20,height:24,width:"150",style:{overflow:"visible"}},[t.createElementVNode("div",{style:t.normalizeStyle(`padding: 3px; background:${e.setOpacity(l.color,80)};color:${e.adaptColorToBackground(l.color)};width:fit-content;font-size:${a.fontSizes.plotLabels}px;border-radius: 2px;`)},t.toDisplayString(l.name),5)],8,Ft)):t.createCommentVNode("",!0)]))),128))],6))),128))])):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.lineSet,(l,o)=>(t.openBlock(),t.createElementBlock("g",{key:`xLabel_line_${o}`,class:t.normalizeClass(`xLabel_line_${o}`),style:t.normalizeStyle(`opacity:${a.selectedScale?a.selectedScale===l.id?1:.2:1};transition:opacity 0.2s ease-in-out`)},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(l.plots,(i,d)=>(t.openBlock(),t.createElementBlock("g",{key:`xLabel_line_${o}_${d}`},[i&&d===0&&l.showSerieName&&l.showSerieName==="start"?(t.openBlock(),t.createElementBlock("text",{key:0,x:i.x-a.fontSizes.plotLabels,y:i.y,"font-size":a.fontSizes.plotLabels,"text-anchor":"end",fill:l.color,innerHTML:e.createTSpans({content:l.name,fontSize:a.fontSizes.plotLabels,fill:l.color,x:i.x-a.fontSizes.plotLabels,y:i.y,maxWords:2})},null,8,_t)):t.createCommentVNode("",!0),i&&d===l.plots.length-1&&l.showSerieName&&l.showSerieName==="end"?(t.openBlock(),t.createElementBlock("text",{key:1,x:i.x+a.fontSizes.plotLabels,y:i.y,"font-size":a.fontSizes.plotLabels,"text-anchor":"start",fill:l.color,innerHTML:e.createTSpans({content:l.name,fontSize:a.fontSizes.plotLabels,fill:l.color,x:i.x+a.fontSizes.plotLabels,y:i.y,maxWords:2})},null,8,yt)):t.createCommentVNode("",!0)]))),128))],6))),128)),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.plotSet,(l,o)=>(t.openBlock(),t.createElementBlock("g",{key:`xLabel_plot_${o}`,class:t.normalizeClass(`xLabel_plot_${o}`),style:t.normalizeStyle(`opacity:${a.selectedScale?a.selectedScale===l.id?1:.2:1};transition:opacity 0.2s ease-in-out`)},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(l.plots,(i,d)=>(t.openBlock(),t.createElementBlock("g",{key:`xLabel_plot_${o}_${d}`},[i&&d===0&&l.showSerieName&&l.showSerieName==="start"?(t.openBlock(),t.createElementBlock("text",{key:0,x:i.x-a.fontSizes.plotLabels,y:i.y,"font-size":a.fontSizes.plotLabels,"text-anchor":"end",fill:l.color,innerHTML:e.createTSpans({content:l.name,fontSize:a.fontSizes.plotLabels,fill:l.color,x:i.x-a.fontSizes.plotLabels,y:i.y,maxWords:2})},null,8,Ct)):t.createCommentVNode("",!0),i&&d===l.plots.length-1&&l.showSerieName&&l.showSerieName==="end"?(t.openBlock(),t.createElementBlock("text",{key:1,x:i.x+a.fontSizes.plotLabels,y:i.y,"font-size":a.fontSizes.plotLabels,"text-anchor":"start",fill:l.color,innerHTML:e.createTSpans({content:l.name,fontSize:a.fontSizes.plotLabels,fill:l.color,x:i.x+a.fontSizes.plotLabels,y:i.y,maxWords:2})},null,8,St)):t.createCommentVNode("",!0)]))),128))],6))),128)),a.mutableConfig.useIndividualScale&&!a.mutableConfig.isStacked?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:8},t.renderList(e.allScales,l=>(t.openBlock(),t.createElementBlock("rect",{x:l.x-e.FINAL_CONFIG.chart.grid.labels.yAxis.labelWidth,y:e.drawingArea.top,width:e.FINAL_CONFIG.chart.grid.labels.yAxis.labelWidth,height:e.drawingArea.height<0?10:e.drawingArea.height,fill:a.selectedScale===l.id?e.setOpacity(l.color,20):"transparent",onMouseenter:o=>a.selectedScale=l.id,onMouseleave:s[0]||(s[0]=o=>a.selectedScale=null)},null,40,At))),256)):t.createCommentVNode("",!0),t.createElementVNode("g",null,[e.FINAL_CONFIG.chart.grid.labels.axis.yLabel&&!a.mutableConfig.useIndividualScale?(t.openBlock(),t.createElementBlock("text",{key:0,"font-size":a.fontSizes.yAxis,fill:e.FINAL_CONFIG.chart.grid.labels.color,transform:`translate(${a.fontSizes.yAxis+e.FINAL_CONFIG.chart.grid.labels.axis.yLabelOffsetX}, ${e.drawingArea.top+e.drawingArea.height/2}) rotate(-90)`,"text-anchor":"middle",style:{transition:"none"}},t.toDisplayString(e.FINAL_CONFIG.chart.grid.labels.axis.yLabel),9,Lt)):t.createCommentVNode("",!0),e.FINAL_CONFIG.chart.grid.labels.axis.xLabel?(t.openBlock(),t.createElementBlock("text",{key:1,"text-anchor":"middle",x:a.width/2,y:e.drawingArea.bottom+a.fontSizes.yAxis+a.fontSizes.xAxis*1.3+e.FINAL_CONFIG.chart.grid.labels.axis.xLabelOffsetY,"font-size":a.fontSizes.yAxis,fill:e.FINAL_CONFIG.chart.grid.labels.color},t.toDisplayString(e.FINAL_CONFIG.chart.grid.labels.axis.xLabel),9,wt)):t.createCommentVNode("",!0)]),e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.show?(t.openBlock(),t.createElementBlock("g",Ot,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.timeLabels,(l,o)=>(t.openBlock(),t.createElementBlock("g",{key:`time_label_${o}`},[l&&!e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast&&!e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyAtModulo||l&&e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast&&(o===0||o===e.timeLabels.length-1)&&!e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyAtModulo||l&&e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast&&a.selectedSerieIndex===o&&!e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyAtModulo||l&&!e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast&&e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyAtModulo&&o%Math.floor((this.slicer.end-this.slicer.start)/e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.modulo)===0?(t.openBlock(),t.createElementBlock("text",{key:0,"text-anchor":e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.rotation>0?"start":e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.rotation<0?"end":"middle","font-size":a.fontSizes.xAxis,fill:e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.color,transform:`translate(${e.drawingArea.left+e.drawingArea.width/e.maxSeries*o+e.drawingArea.width/e.maxSeries/2}, ${e.drawingArea.bottom+a.fontSizes.xAxis*1.3+e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.yOffset}), rotate(${e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.rotation})`},t.toDisplayString(l||""),9,vt)):t.createCommentVNode("",!0)]))),128))])):t.createCommentVNode("",!0),t.createElementVNode("g",null,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.maxSeries,(l,o)=>(t.openBlock(),t.createElementBlock("g",{key:`tooltip_trap_${o}`},[t.createElementVNode("rect",{"data-cy-trap":"",x:e.drawingArea.left+e.drawingArea.width/e.maxSeries*o,y:e.drawingArea.top,height:e.drawingArea.height<0?10:e.drawingArea.height,width:e.drawingArea.width/e.maxSeries<0?1e-5:e.drawingArea.width/e.maxSeries,fill:"transparent",onMouseenter:i=>e.toggleTooltipVisibility(!0,o),onMouseleave:s[1]||(s[1]=i=>e.toggleTooltipVisibility(!1)),onClick:i=>e.selectX(o)},null,40,pt)]))),128))]),e.FINAL_CONFIG.chart.timeTag.show&&![null,void 0].includes(a.selectedSerieIndex)?(t.openBlock(),t.createElementBlock("g",Gt,[(t.openBlock(),t.createElementBlock("foreignObject",{x:e.drawingArea.left+e.drawingArea.width/e.maxSeries*a.selectedSerieIndex-100+e.drawingArea.width/e.maxSeries/2,y:e.drawingArea.bottom,width:"200",height:"40",style:{overflow:"visible !important"}},[t.createElementVNode("div",{class:"vue-ui-xy-time-tag",style:t.normalizeStyle(`width: fit-content;margin: 0 auto;text-align:center;padding:3px 12px;background:${e.FINAL_CONFIG.chart.timeTag.backgroundColor};color:${e.FINAL_CONFIG.chart.timeTag.color};font-size:${e.FINAL_CONFIG.chart.timeTag.fontSize}px`)},t.toDisplayString(e.timeLabels[a.selectedSerieIndex]||a.selectedSerieIndex),5)],8,Bt)),t.createElementVNode("circle",{cx:e.drawingArea.left+e.drawingArea.width/e.maxSeries*a.selectedSerieIndex+e.drawingArea.width/e.maxSeries/2,cy:e.drawingArea.bottom,r:e.FINAL_CONFIG.chart.timeTag.circleMarker.radius,fill:e.FINAL_CONFIG.chart.timeTag.circleMarker.color},null,8,Et)])):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0),t.renderSlot(r.$slots,"svg",{svg:e.svg},void 0,!0)],14,U)):t.createCommentVNode("",!0),r.$slots.watermark?(t.openBlock(),t.createElementBlock("div",zt,[t.renderSlot(r.$slots,"watermark",t.normalizeProps(t.guardReactiveProps({isPrinting:a.isPrinting||a.isImaging})),void 0,!0)])):t.createCommentVNode("",!0),e.isDataset?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(m,{key:4,config:{type:"line",style:{backgroundColor:e.FINAL_CONFIG.chart.backgroundColor,line:{axis:{color:e.FINAL_CONFIG.chart.grid.stroke},path:{color:e.FINAL_CONFIG.chart.grid.stroke,strokeWidth:.5}}}}},null,8,["config"])),e.FINAL_CONFIG.chart.zoom.show&&a.maxX>6&&e.isDataset?(t.openBlock(),t.createBlock(b,{ref:"chartSlicer",key:`slicer_${a.slicerStep}`,background:e.FINAL_CONFIG.chart.zoom.color,fontSize:e.FINAL_CONFIG.chart.zoom.fontSize,useResetSlot:e.FINAL_CONFIG.chart.zoom.useResetSlot,labelLeft:e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.values[a.slicer.start],labelRight:e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.values[a.slicer.end-1],textColor:e.FINAL_CONFIG.chart.color,inputColor:e.FINAL_CONFIG.chart.zoom.color,selectColor:e.FINAL_CONFIG.chart.zoom.highlightColor,borderColor:e.FINAL_CONFIG.chart.backgroundColor,minimap:e.minimap,smoothMinimap:e.FINAL_CONFIG.chart.zoom.minimap.smooth,minimapSelectedColor:e.FINAL_CONFIG.chart.zoom.minimap.selectedColor,minimapSelectionRadius:e.FINAL_CONFIG.chart.zoom.minimap.selectionRadius,minimapLineColor:e.FINAL_CONFIG.chart.zoom.minimap.lineColor,minimapSelectedColorOpacity:e.FINAL_CONFIG.chart.zoom.minimap.selectedColorOpacity,minimapSelectedIndex:a.selectedSerieIndex,minimapIndicatorColor:e.FINAL_CONFIG.chart.zoom.minimap.indicatorColor,max:a.maxX,min:0,valueStart:a.slicer.start,valueEnd:a.slicer.end,start:a.slicer.start,"onUpdate:start":s[2]||(s[2]=l=>a.slicer.start=l),end:a.slicer.end,"onUpdate:end":s[3]||(s[3]=l=>a.slicer.end=l),onReset:e.refreshSlicer,onTrapMouse:e.selectMinimapIndex},{"reset-action":t.withCtx(({reset:l})=>[t.renderSlot(r.$slots,"reset-action",t.normalizeProps(t.guardReactiveProps({reset:l})),void 0,!0)]),_:3},8,["background","fontSize","useResetSlot","labelLeft","labelRight","textColor","inputColor","selectColor","borderColor","minimap","smoothMinimap","minimapSelectedColor","minimapSelectionRadius","minimapLineColor","minimapSelectedColorOpacity","minimapSelectedIndex","minimapIndicatorColor","max","valueStart","valueEnd","start","end","onReset","onTrapMouse"])):t.createCommentVNode("",!0),e.FINAL_CONFIG.chart.legend.show?(t.openBlock(),t.createElementBlock("div",{key:6,ref:"chartLegend",class:"vue-ui-xy-legend",style:t.normalizeStyle(`font-size:${e.FINAL_CONFIG.chart.legend.fontSize}px`)},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.absoluteDataset,(l,o)=>(t.openBlock(),t.createElementBlock("div",{key:`div_legend_item_${o}`,onClick:i=>e.segregate(l),class:t.normalizeClass({"vue-ui-xy-legend-item":!0,"vue-ui-xy-legend-item-segregated":a.segregatedSeries.includes(l.id)})},[a.icons[l.type]==="line"?(t.openBlock(),t.createElementBlock("svg",Mt,[t.createElementVNode("rect",{x:"0",y:"7",rx:"3",stroke:"none",height:"4",width:"20",fill:l.color},null,8,Pt),t.createVNode(x,{plot:{x:10,y:9},radius:4,color:l.color,shape:["triangle","square","diamond","pentagon","hexagon","star"].includes(l.shape)?l.shape:"circle",stroke:e.FINAL_CONFIG.chart.backgroundColor,strokeWidth:1},null,8,["color","shape","stroke"])])):(t.openBlock(),t.createElementBlock("svg",Tt,[a.icons[l.type]==="bar"?(t.openBlock(),t.createElementBlock("rect",{key:0,x:"0",y:"0",rx:"1",height:"12",width:"12",stroke:"none",fill:l.color},null,8,Dt)):(t.openBlock(),t.createBlock(x,{key:1,plot:{x:6,y:6},radius:5,color:l.color,shape:["triangle","square","diamond","pentagon","hexagon","star"].includes(l.shape)?l.shape:"circle"},null,8,["color","shape"]))])),t.createElementVNode("span",{style:t.normalizeStyle(`color:${e.FINAL_CONFIG.chart.legend.color}`)},t.toDisplayString(l.name),5)],10,Vt))),128))],4)):(t.openBlock(),t.createElementBlock("div",Rt,[t.renderSlot(r.$slots,"legend",{legend:e.absoluteDataset},void 0,!0)],512)),t.createVNode(S,{show:a.mutableConfig.showTooltip&&a.isTooltip,backgroundColor:e.FINAL_CONFIG.chart.tooltip.backgroundColor,color:e.FINAL_CONFIG.chart.tooltip.color,fontSize:e.FINAL_CONFIG.chart.tooltip.fontSize,borderRadius:e.FINAL_CONFIG.chart.tooltip.borderRadius,borderColor:e.FINAL_CONFIG.chart.tooltip.borderColor,borderWidth:e.FINAL_CONFIG.chart.tooltip.borderWidth,backgroundOpacity:e.FINAL_CONFIG.chart.tooltip.backgroundOpacity,position:e.FINAL_CONFIG.chart.tooltip.position,offsetY:e.FINAL_CONFIG.chart.tooltip.offsetY,parent:r.$refs.chart,content:e.tooltipContent,isCustom:e.FINAL_CONFIG.chart.tooltip.customFormat&&typeof e.FINAL_CONFIG.chart.tooltip.customFormat=="function"},{"tooltip-before":t.withCtx(()=>[t.renderSlot(r.$slots,"tooltip-before",t.normalizeProps(t.guardReactiveProps({...e.dataTooltipSlot})),void 0,!0)]),"tooltip-after":t.withCtx(()=>[t.renderSlot(r.$slots,"tooltip-after",t.normalizeProps(t.guardReactiveProps({...e.dataTooltipSlot})),void 0,!0)]),_:3},8,["show","backgroundColor","color","fontSize","borderRadius","borderColor","borderWidth","backgroundOpacity","position","offsetY","parent","content","isCustom"]),e.isDataset?(t.openBlock(),t.createBlock(f,{key:8,hideDetails:"",config:{open:a.mutableConfig.showTable,maxHeight:1e4,body:{backgroundColor:e.FINAL_CONFIG.chart.backgroundColor,color:e.FINAL_CONFIG.chart.color},head:{backgroundColor:e.FINAL_CONFIG.chart.backgroundColor,color:e.FINAL_CONFIG.chart.color}}},{content:t.withCtx(()=>[t.createElementVNode("div",{style:t.normalizeStyle(`${a.isPrinting?"":"max-height:400px"};overflow:auto;width:100%;margin-top:48px`)},[t.createElementVNode("div",Ht,[t.withDirectives(t.createElementVNode("input",{type:"checkbox","onUpdate:modelValue":s[4]||(s[4]=l=>a.showSparklineTable=l)},null,512),[[t.vModelCheckbox,a.showSparklineTable]]),t.createElementVNode("div",{onClick:s[5]||(s[5]=l=>a.showSparklineTable=!a.showSparklineTable),style:{cursor:"pointer"}},[t.createVNode(F,{name:"chartLine",size:20,stroke:e.FINAL_CONFIG.chart.color},null,8,["stroke"])])]),a.showSparklineTable?(t.openBlock(),t.createBlock(C,{key:`sparkline_${a.segregateStep}`,dataset:e.tableSparklineDataset,config:e.tableSparklineConfig},null,8,["dataset","config"])):(t.openBlock(),t.createBlock(y,{key:`table_${a.tableStep}`,colNames:e.dataTable.colNames,head:e.dataTable.head,body:e.dataTable.body,config:e.dataTable.config,title:`${e.FINAL_CONFIG.chart.title.text}${e.FINAL_CONFIG.chart.title.subtitle.text?` : ${e.FINAL_CONFIG.chart.title.subtitle.text}`:""}`,onClose:s[6]||(s[6]=l=>a.mutableConfig.showTable=!1)},{th:t.withCtx(({th:l})=>[t.createElementVNode("div",{innerHTML:l},null,8,Wt)]),td:t.withCtx(({td:l})=>[t.createTextVNode(t.toDisplayString(isNaN(Number(l))?l:e.dataLabel({p:e.FINAL_CONFIG.chart.labels.prefix,v:l,s:e.FINAL_CONFIG.chart.labels.suffix,r:e.FINAL_CONFIG.table.rounding})),1)]),_:1},8,["colNames","head","body","config","title"]))],4)]),_:1},8,["config"])):t.createCommentVNode("",!0)],14,X)}const Yt=W._export_sfc(Y,[["render",qt],["__scopeId","data-v-72e644a5"]]);exports.default=Yt;
|