vue-data-ui 2.4.13 → 2.4.15
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-D-arGVx0.cjs → Arrow-BCKnYufb.cjs} +1 -1
- package/dist/{Arrow-Bj-fZHYt.js → Arrow-ChrPMCIE.js} +1 -1
- package/dist/{BaseIcon-CJw1rm7G.js → BaseIcon-CSptCx3b.js} +1 -1
- package/dist/{BaseIcon-bxNR7IJr.cjs → BaseIcon-rMg8xfhX.cjs} +1 -1
- package/dist/{DataTable-DPFAxETx.cjs → DataTable-CRmILZBX.cjs} +1 -1
- package/dist/{DataTable-DSmlK27d.js → DataTable-Cccy3rvu.js} +2 -2
- package/dist/{Legend-CjRX0KB0.js → Legend-CfcLlhaP.js} +1 -1
- package/dist/{Legend-pFwNBjPs.cjs → Legend-Dx7YB-Bt.cjs} +1 -1
- package/dist/{PackageVersion-Bdfz6JAs.cjs → PackageVersion-B34JcKhO.cjs} +1 -1
- package/dist/{PackageVersion-6g32vfzE.js → PackageVersion-CiFF5PGi.js} +1 -1
- package/dist/{PenAndPaper-Bxz6JnY-.js → PenAndPaper-BpIqWG4P.js} +2 -2
- package/dist/{PenAndPaper-qO8pMTxM.cjs → PenAndPaper-DrCIS0Eh.cjs} +1 -1
- package/dist/{Shape-B9d1hhZS.js → Shape-HKyyToSG.js} +1 -1
- package/dist/{Shape-tOhcWMkG.cjs → Shape-JdI6ZCm8.cjs} +1 -1
- package/dist/{Slicer-BzuIYjHU.js → Slicer-Dgnj8x-K.js} +92 -88
- package/dist/Slicer-t7C4_beF.cjs +1 -0
- package/dist/{Title-CFHy9-HZ.js → Title-BYSs_RNw.js} +1 -1
- package/dist/{Title-DPx1SQ60.cjs → Title-CExB31p9.cjs} +1 -1
- package/dist/{Tooltip-BxmlUqdH.cjs → Tooltip-CLsCXPX_.cjs} +1 -1
- package/dist/{Tooltip-DLCVqP66.js → Tooltip-CZd_cGTh.js} +1 -1
- package/dist/{index-DwLdoaoI.js → index-XO811G4S.js} +1 -1
- package/dist/{index-YfDOzIGL.cjs → index-kr_QwGDL.cjs} +1 -1
- package/dist/style.css +1 -1
- package/dist/{useNestedProp-WJ8kD00a.cjs → useNestedProp-DCTYscDQ.cjs} +1 -1
- package/dist/{useNestedProp-BE-9rWPi.js → useNestedProp-LP4oR6kx.js} +1 -1
- package/dist/{usePrinter-QQ8sIBRI.js → usePrinter-CsX9yzzX.js} +2 -2
- package/dist/{usePrinter-BfKKkLev.cjs → usePrinter-DnY533x9.cjs} +1 -1
- package/dist/{vue-data-ui-B8pOC7vP.cjs → vue-data-ui-DuqyXh3Z.cjs} +1 -1
- package/dist/{vue-data-ui-a0ppZO9B.js → vue-data-ui-DxuS01kK.js} +58 -58
- package/dist/vue-data-ui.cjs +1 -1
- package/dist/vue-data-ui.js +1 -1
- package/dist/{vue-ui-3d-bar-BLM0gdFx.cjs → vue-ui-3d-bar-46IqOg67.cjs} +1 -1
- package/dist/{vue-ui-3d-bar-cP2pNaKD.js → vue-ui-3d-bar-BcY_qYRY.js} +9 -9
- package/dist/{vue-ui-accordion-BDO_Zh68.cjs → vue-ui-accordion-Cc1lCYCG.cjs} +1 -1
- package/dist/{vue-ui-accordion-BCbBgQnM.js → vue-ui-accordion-DvWhOtea.js} +3 -3
- package/dist/{vue-ui-age-pyramid-D83sx902.cjs → vue-ui-age-pyramid-CfCFWXzM.cjs} +1 -1
- package/dist/{vue-ui-age-pyramid-CrCircJT.js → vue-ui-age-pyramid-iHGxmPqt.js} +10 -10
- package/dist/{vue-ui-annotator-CPc0zP6z.cjs → vue-ui-annotator-BUiIefjR.cjs} +1 -1
- package/dist/{vue-ui-annotator-Bsxswk9y.js → vue-ui-annotator-CS09PEb4.js} +1 -1
- package/dist/{vue-ui-bullet-Y-4z-p0q.js → vue-ui-bullet-DifOvgtE.js} +8 -8
- package/dist/{vue-ui-bullet-0uF7uLzI.cjs → vue-ui-bullet-EzXv2sWS.cjs} +1 -1
- package/dist/{vue-ui-candlestick-DEf62bqT.cjs → vue-ui-candlestick-CUGe6R39.cjs} +1 -1
- package/dist/{vue-ui-candlestick-DgcbuAOG.js → vue-ui-candlestick-DByuzyzO.js} +11 -11
- package/dist/{vue-ui-carousel-table-JVCaW1uQ.js → vue-ui-carousel-table-DDRFUlqH.js} +4 -4
- package/dist/{vue-ui-carousel-table-D5mhqTJP.cjs → vue-ui-carousel-table-DPLphRGv.cjs} +1 -1
- package/dist/{vue-ui-chestnut-Bf-i3FaN.js → vue-ui-chestnut-0ZG6Eg8o.js} +8 -8
- package/dist/{vue-ui-chestnut-BzIsyDCJ.cjs → vue-ui-chestnut-_pU4PH9Y.cjs} +1 -1
- package/dist/{vue-ui-cursor-QzjfpeEf.js → vue-ui-cursor-BL-euH7c.js} +2 -2
- package/dist/{vue-ui-cursor-BbkGAq5Z.cjs → vue-ui-cursor-Ci3pOLTZ.cjs} +1 -1
- package/dist/{vue-ui-dashboard-DCU5dw0v.cjs → vue-ui-dashboard-1--C3XNW.cjs} +1 -1
- package/dist/{vue-ui-dashboard-BRi99J78.js → vue-ui-dashboard-ZJ8u97Qf.js} +2 -2
- package/dist/{vue-ui-digits-RFS4E6dl.cjs → vue-ui-digits-C5O9vZxI.cjs} +1 -1
- package/dist/{vue-ui-digits-C2fR0QCG.js → vue-ui-digits-CMskyA7T.js} +2 -2
- package/dist/{vue-ui-donut-C2yuDXOJ.cjs → vue-ui-donut-BNiP18Il.cjs} +1 -1
- package/dist/{vue-ui-donut-BC07kmTG.js → vue-ui-donut-CX41zowC.js} +11 -11
- package/dist/{vue-ui-donut-evolution-DxdShz3M.js → vue-ui-donut-evolution-QV1JE3Fo.js} +11 -11
- package/dist/{vue-ui-donut-evolution-D0aPzssn.cjs → vue-ui-donut-evolution-vqZF9YJJ.cjs} +1 -1
- package/dist/{vue-ui-dumbbell-DQq-pgEi.cjs → vue-ui-dumbbell-BY4NAOG1.cjs} +1 -1
- package/dist/{vue-ui-dumbbell-5moTjRU_.js → vue-ui-dumbbell-DxhJJy_r.js} +10 -10
- package/dist/{vue-ui-flow-EMWBDlYH.cjs → vue-ui-flow-DBBfBgUK.cjs} +1 -1
- package/dist/{vue-ui-flow-CJVI2R0U.js → vue-ui-flow-DjydJgwR.js} +9 -9
- package/dist/{vue-ui-galaxy-xrPaGHQg.js → vue-ui-galaxy-CtcRy5Ij.js} +11 -11
- package/dist/{vue-ui-galaxy-0PGxS1cN.cjs → vue-ui-galaxy-VSr_DAmu.cjs} +1 -1
- package/dist/{vue-ui-gauge-UDtF52j4.js → vue-ui-gauge-BjmS4qFe.js} +7 -7
- package/dist/{vue-ui-gauge-CS3jqlat.cjs → vue-ui-gauge-IvNa_DR8.cjs} +1 -1
- package/dist/{vue-ui-gizmo-1NLXOp5J.js → vue-ui-gizmo-BzLy3mWD.js} +3 -3
- package/dist/{vue-ui-gizmo-BvSR_xyA.cjs → vue-ui-gizmo-DgANbqmC.cjs} +1 -1
- package/dist/{vue-ui-heatmap-Dm0WDiz1.js → vue-ui-heatmap-Bvej9oTA.js} +10 -10
- package/dist/{vue-ui-heatmap-DyDsLNJO.cjs → vue-ui-heatmap-yQSNz-vk.cjs} +1 -1
- package/dist/{vue-ui-kpi-DX6XNFXG.cjs → vue-ui-kpi-9eMhWuJa.cjs} +1 -1
- package/dist/{vue-ui-kpi-DJjEfWZh.js → vue-ui-kpi-B08Q3iHK.js} +3 -3
- package/dist/{vue-ui-mini-loader-CILHcM-o.cjs → vue-ui-mini-loader-BdW1vPkj.cjs} +1 -1
- package/dist/{vue-ui-mini-loader-izD98Oto.js → vue-ui-mini-loader-CA8Jh2xW.js} +2 -2
- package/dist/{vue-ui-molecule-BwmpBwnD.js → vue-ui-molecule-JzIu9Xhu.js} +11 -11
- package/dist/{vue-ui-molecule-D8tlnNvH.cjs → vue-ui-molecule-oCNTo9qq.cjs} +1 -1
- package/dist/{vue-ui-mood-radar-CorAQOLG.js → vue-ui-mood-radar-BlUEjpq1.js} +11 -11
- package/dist/{vue-ui-mood-radar-iFQR2rec.cjs → vue-ui-mood-radar-D4MmvJeX.cjs} +1 -1
- package/dist/{vue-ui-nested-donuts-3tDIUZ4K.cjs → vue-ui-nested-donuts-D1vpqiqh.cjs} +1 -1
- package/dist/{vue-ui-nested-donuts-DmHkGxsD.js → vue-ui-nested-donuts-Di7bDbya.js} +11 -11
- package/dist/{vue-ui-onion-vTqEZNQz.js → vue-ui-onion-BuxtifKO.js} +11 -11
- package/dist/{vue-ui-onion-CqdVnbs9.cjs → vue-ui-onion-D73_4ozI.cjs} +1 -1
- package/dist/vue-ui-parallel-coordinate-plot-B5gOiDmN.cjs +8 -0
- package/dist/{vue-ui-parallel-coordinate-plot-BgOxX64T.js → vue-ui-parallel-coordinate-plot-D984zizH.js} +139 -120
- package/dist/{vue-ui-quadrant-BWQq4PHY.js → vue-ui-quadrant-1lD2dgpm.js} +12 -12
- package/dist/{vue-ui-quadrant-BI_7I8Yj.cjs → vue-ui-quadrant-qXlDTKps.cjs} +1 -1
- package/dist/{vue-ui-quick-chart-CqHSqq5T.js → vue-ui-quick-chart-A78wO49s.js} +9 -9
- package/dist/{vue-ui-quick-chart-N-1EOfxf.cjs → vue-ui-quick-chart-BYL-VfNK.cjs} +1 -1
- package/dist/{vue-ui-radar-DXS1Am0r.js → vue-ui-radar-D3KbMPY7.js} +12 -12
- package/dist/{vue-ui-radar-B-jTKgCL.cjs → vue-ui-radar-DXcRNCAa.cjs} +1 -1
- package/dist/{vue-ui-rating-DjuCoq0M.js → vue-ui-rating-CnkBBFHV.js} +2 -2
- package/dist/{vue-ui-rating-CWLJYf2s.cjs → vue-ui-rating-rjjSmIEJ.cjs} +1 -1
- package/dist/{vue-ui-relation-circle-AK--8JLM.js → vue-ui-relation-circle-CZ_FS4Hd.js} +7 -7
- package/dist/{vue-ui-relation-circle-Ql6ZFkYK.cjs → vue-ui-relation-circle-DtPwUZGn.cjs} +1 -1
- package/dist/{vue-ui-rings-DlszOdMT.cjs → vue-ui-rings-BMwEdEke.cjs} +1 -1
- package/dist/{vue-ui-rings-lOFH_to8.js → vue-ui-rings-ByRA0qd4.js} +11 -11
- package/dist/{vue-ui-scatter-l-l8Cllm.js → vue-ui-scatter-BXpXY86w.js} +12 -12
- package/dist/{vue-ui-scatter-DldUTIFq.cjs → vue-ui-scatter-Cpjy_MXZ.cjs} +1 -1
- package/dist/{vue-ui-screenshot-CrvTcVxC.cjs → vue-ui-screenshot-BjEmpeGQ.cjs} +1 -1
- package/dist/{vue-ui-screenshot-BiVtkpB9.js → vue-ui-screenshot-CLTmzBUl.js} +1 -1
- package/dist/{vue-ui-skeleton-C7cQjNuh.js → vue-ui-skeleton-B-eJiyiK.js} +3 -3
- package/dist/{vue-ui-skeleton-BypGpnGR.cjs → vue-ui-skeleton-BFwKDNWk.cjs} +1 -1
- package/dist/{vue-ui-smiley-BBUWMyj5.cjs → vue-ui-smiley-B0aRXyCK.cjs} +1 -1
- package/dist/{vue-ui-smiley-C0P-U_YM.js → vue-ui-smiley-DPT05g_d.js} +2 -2
- package/dist/{vue-ui-spark-trend-Pohir-w4.cjs → vue-ui-spark-trend-DFhBUPgA.cjs} +1 -1
- package/dist/{vue-ui-spark-trend-jPUjOnKd.js → vue-ui-spark-trend-ciVsjAVV.js} +5 -5
- package/dist/{vue-ui-sparkbar-DRGrJShZ.js → vue-ui-sparkbar-7G6NJ6jC.js} +4 -4
- package/dist/{vue-ui-sparkbar-DSIgmn4z.cjs → vue-ui-sparkbar-DXwlMAdA.cjs} +1 -1
- package/dist/{vue-ui-sparkgauge-KMNHHr4A.js → vue-ui-sparkgauge-DtL-EHgS.js} +4 -4
- package/dist/{vue-ui-sparkgauge-Bb_GeFli.cjs → vue-ui-sparkgauge-RLpXQQdL.cjs} +1 -1
- package/dist/{vue-ui-sparkhistogram-BqwrB7j-.cjs → vue-ui-sparkhistogram-C05pVLX4.cjs} +1 -1
- package/dist/{vue-ui-sparkhistogram-CMvUAyiv.js → vue-ui-sparkhistogram-CBabO6KY.js} +5 -5
- package/dist/{vue-ui-sparkline-ptuGTvxy.js → vue-ui-sparkline-CGpCbxYp.js} +4 -4
- package/dist/{vue-ui-sparkline-BGV0iTE1.cjs → vue-ui-sparkline-Dzx9vneB.cjs} +1 -1
- package/dist/{vue-ui-sparkstackbar-Bg-rRMOG.js → vue-ui-sparkstackbar-0XJ1y_hw.js} +5 -5
- package/dist/{vue-ui-sparkstackbar-B0yQaDMk.cjs → vue-ui-sparkstackbar-BvvoP0Hr.cjs} +1 -1
- package/dist/{vue-ui-stackbar-B4iWyEBr.js → vue-ui-stackbar-RxoRAQV1.js} +12 -12
- package/dist/{vue-ui-stackbar-BhcvcsKz.cjs → vue-ui-stackbar-S4ZxRQNf.cjs} +1 -1
- package/dist/{vue-ui-strip-plot-CteBC2Pl.cjs → vue-ui-strip-plot-6Zxs0p_t.cjs} +1 -1
- package/dist/{vue-ui-strip-plot-BEj83Tgt.js → vue-ui-strip-plot-Dd7unCwX.js} +11 -11
- package/dist/{vue-ui-table-CVvMDfob.cjs → vue-ui-table-CSEZc0DF.cjs} +1 -1
- package/dist/{vue-ui-table-BUeJnxZj.js → vue-ui-table-DZLcx9jA.js} +1 -1
- package/dist/{vue-ui-table-heatmap-CBbrj4Q-.cjs → vue-ui-table-heatmap-BA9KsnPZ.cjs} +1 -1
- package/dist/{vue-ui-table-heatmap-B49k29Rh.js → vue-ui-table-heatmap-DE6RTOjN.js} +4 -4
- package/dist/{vue-ui-table-sparkline-ycJMm1Hk.cjs → vue-ui-table-sparkline-BQZylioG.cjs} +1 -1
- package/dist/{vue-ui-table-sparkline-Dvbvgw65.js → vue-ui-table-sparkline-ChmFLAEt.js} +5 -5
- package/dist/{vue-ui-thermometer-CkRdpjaQ.cjs → vue-ui-thermometer-BgMnwVpw.cjs} +1 -1
- package/dist/{vue-ui-thermometer-CV1MMj-E.js → vue-ui-thermometer-Bj8e-yG-.js} +7 -7
- package/dist/{vue-ui-timer-BN12JB4S.js → vue-ui-timer-CcUwIcM7.js} +5 -5
- package/dist/{vue-ui-timer-DaBdNn36.cjs → vue-ui-timer-Dql8XcMQ.cjs} +1 -1
- package/dist/{vue-ui-tiremarks-DHXn5sWw.cjs → vue-ui-tiremarks-CfNXN9nv.cjs} +1 -1
- package/dist/{vue-ui-tiremarks-ClWPLlir.js → vue-ui-tiremarks-ZWxDYt63.js} +7 -7
- package/dist/{vue-ui-treemap-DWq5_ImB.cjs → vue-ui-treemap-BQUkiRrP.cjs} +1 -1
- package/dist/{vue-ui-treemap-1uBqR8E7.js → vue-ui-treemap-DJlHYN6o.js} +11 -11
- package/dist/{vue-ui-vertical-bar-CTEo3CxB.cjs → vue-ui-vertical-bar-DLFK5GLD.cjs} +1 -1
- package/dist/{vue-ui-vertical-bar-DV8c2BrB.js → vue-ui-vertical-bar-DfMOQWhA.js} +11 -11
- package/dist/{vue-ui-waffle-CuA3KaoT.cjs → vue-ui-waffle-BzqYPHzr.cjs} +1 -1
- package/dist/{vue-ui-waffle-fXL2N03M.js → vue-ui-waffle-CVmVbugH.js} +11 -11
- package/dist/{vue-ui-wheel-D3l8Zj6H.cjs → vue-ui-wheel-B7jyz4v1.cjs} +1 -1
- package/dist/{vue-ui-wheel-Buw3ZXPa.js → vue-ui-wheel-DPgJtWnl.js} +7 -7
- package/dist/{vue-ui-word-cloud-Xqjh9Q30.js → vue-ui-word-cloud-D_aYLkHs.js} +10 -10
- package/dist/{vue-ui-word-cloud-B8VMBqal.cjs → vue-ui-word-cloud-YBQ8Tptq.cjs} +1 -1
- package/dist/vue-ui-xy-CnXzhDb7.cjs +3 -0
- package/dist/{vue-ui-xy-Cr_UmMcD.js → vue-ui-xy-DIvGE5ZZ.js} +869 -869
- package/dist/{vue-ui-xy-canvas-CBxPjJOJ.cjs → vue-ui-xy-canvas-Dy7oda3-.cjs} +1 -1
- package/dist/{vue-ui-xy-canvas-B82jCvbc.js → vue-ui-xy-canvas-Kf-kmYwM.js} +11 -11
- package/package.json +2 -2
- package/dist/Slicer-CiHJ4t5H.cjs +0 -1
- package/dist/vue-ui-parallel-coordinate-plot-DfMN7jaW.cjs +0 -8
- package/dist/vue-ui-xy-BSvt9roY.cjs +0 -3
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("vue"),n=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("vue"),n=require("./index-kr_QwGDL.cjs"),d=require("./useResponsive-BJ7DTGpm.cjs"),Je=require("./Tooltip-CLsCXPX_.cjs"),Ke=require("./Legend-Dx7YB-Bt.cjs"),Qe=require("./Title-CExB31p9.cjs"),et=require("./Slicer-t7C4_beF.cjs"),Pe=require("./usePrinter-DnY533x9.cjs"),tt=require("./vue-ui-accordion-Cc1lCYCG.cjs"),at=require("./DataTable-CRmILZBX.cjs"),lt=require("./vue-ui-skeleton-BFwKDNWk.cjs"),Me=require("./useNestedProp-DCTYscDQ.cjs"),ot=require("./PenAndPaper-DrCIS0Eh.cjs"),rt=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),ut=["id"],nt=["onClick"],st={key:2,class:"vue-data-ui-watermark"},it=["innerHTML"],ct={__name:"vue-ui-xy-canvas",props:{dataset:{type:Array,default(){return[]}},config:{type:Object,default(){return{}}}},emits:["selectLegend"],setup(Q,{expose:Re,emit:Oe}){const M=Q,{vue_ui_xy_canvas:Ne}=n.useConfig(),U=a.ref(n.createUid()),B=a.ref(null),C=a.ref(null),I=a.ref(null),i=a.ref(null),p=a.ref(1),z=a.ref(1),A=a.ref(!1),f=a.ref(null),_=a.ref(""),ee=a.ref(null),L=a.ref([]),O=a.ref(1),R=a.ref(!0),w=a.ref(!0),X=a.ref(null),te=a.ref(0),ae=a.ref(0),Z=a.ref(!1),le=a.ref(null),oe=a.ref(null),re=a.ref(null),ue=a.ref(null),ne=a.ref(0),se=a.ref(0),ie=a.ref(0),G=a.computed(()=>!!M.dataset&&M.dataset.length),t=a.computed({get:()=>ce(),set:e=>e});function ce(){const e=Me.useNestedProp({userConfig:M.config,defaultConfig:Ne});return e.theme?{...Me.useNestedProp({userConfig:n.themes.vue_ui_xy_canvas[e.theme]||M.config,defaultConfig:e}),customPalette:n.themePalettes[e.theme]||n.palette}:e}a.watch(()=>M.config,e=>{t.value=ce(),xe(),ne.value+=1,se.value+=1,ie.value+=1},{deep:!0});const ve=a.ref(t.value.style.chart.aspectRatio),{isPrinting:de,isImaging:he,generatePdf:fe,generateImage:ye}=Pe.usePrinter({elementId:`xy_canvas_${U.value}`,fileName:t.value.style.chart.title.text||"vue-ui-xy-canvas"}),s=a.ref({showTable:t.value.table.show,showDataLabels:t.value.style.chart.dataLabels.show,stacked:t.value.style.chart.stacked,showTooltip:t.value.style.chart.tooltip.show});function Be(e){Z.value=e,ae.value+=1}const pe=a.computed(()=>n.convertCustomPalette(t.value.customPalette)),$=a.computed(()=>N.value?Math.max(...N.value.filter((e,o)=>!L.value.includes(e.absoluteIndex)).map(e=>e.series.length)):0),l=a.computed(()=>{const e=p.value-p.value*(t.value.style.chart.paddingProportions.left+t.value.style.chart.paddingProportions.right);return{canvasWidth:p.value,canvasHeight:z.value,left:p.value*t.value.style.chart.paddingProportions.left,top:z.value*t.value.style.chart.paddingProportions.top,right:p.value-p.value*t.value.style.chart.paddingProportions.right,bottom:z.value-z.value*t.value.style.chart.paddingProportions.bottom,width:e,height:z.value-z.value*(t.value.style.chart.paddingProportions.top+t.value.style.chart.paddingProportions.bottom),slot:e/(u.value.end-u.value.start)}});function ge(e,o){return e/o}function Ie({hasAutoScale:e,series:o,min:r,max:v,scale:h,yOffset:g,individualHeight:c,stackIndex:m=null}){return o.map((k,K)=>{const S=h.min<0?Math.abs(h.min):0,T=ge(k+S,S+h.max);let P,E;e&&(P=Math.abs(h.min),E=ge(k+P,h.max+P));let F=0;return m===null?F=l.value.bottom-l.value.height*(e?E:T):F=l.value.bottom-g-c*(e?E:T),{x:l.value.left+l.value.slot*K+l.value.slot/2,y:F,value:k}})}const b=a.computed(()=>{const e=Math.min(...N.value.filter((c,m)=>!L.value.includes(c.absoluteIndex)).flatMap(c=>c.series.slice(u.value.start,u.value.end))),o=Math.max(...N.value.filter((c,m)=>!L.value.includes(c.absoluteIndex)).flatMap(c=>c.series.slice(u.value.start,u.value.end))),r=n.calculateNiceScale(e<0?e:0,o===e?e+1<0?0:e+1:o<0?0:o,t.value.style.chart.scale.ticks),v=r.min<0?Math.abs(r.min):0,h=l.value.bottom-l.value.height*(v/(r.max+v)),g=r.ticks.map(c=>({y:l.value.bottom-l.value.height*((c+v)/(r.max+v)),x:l.value.left-8,value:c}));return{absoluteMin:v,max:o,min:e,scale:r,yLabels:g,zero:h}}),Ee=a.computed(()=>y.value.map(e=>`
|
|
2
2
|
<div style="display:flex;flex-direction:row;gap:6px;align-items:center;">
|
|
3
3
|
<svg viewBox="0 0 10 10" height="12" width="12">
|
|
4
4
|
<circle cx="5" cy="5" r="5" fill="${e.color}"/>
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { ref as v, computed as m, watch as Y, onMounted as xa, onBeforeUnmount as La, openBlock as C, createElementBlock as q, normalizeStyle as J, normalizeClass as ka, createBlock as P, createCommentVNode as A, unref as _, createSlots as Ca, withCtx as b, renderSlot as x, normalizeProps as B, guardReactiveProps as X, createElementVNode as K, createVNode as wa, toDisplayString as Ve, createTextVNode as Sa } from "vue";
|
|
2
|
-
import { u as $a, c as za, t as Ta, a as Ma, p as D, b as Ra, C as ge, i as Q, f as ee, Y as Ia, I as Oa, d as je, a2 as Pa, o as Fa, e as Ea, x as qe, y as Na, q as Aa, r as _a, s as ae, l as Da } from "./index-
|
|
2
|
+
import { u as $a, c as za, t as Ta, a as Ma, p as D, b as Ra, C as ge, i as Q, f as ee, Y as Ia, I as Oa, d as je, a2 as Pa, o as Fa, e as Ea, x as qe, y as Na, q as Aa, r as _a, s as ae, l as Da } from "./index-XO811G4S.js";
|
|
3
3
|
import { d as Ha, c as Wa, a as Je, t as Ya, l as w, r as pe, b as F, p as Ke, u as Ba } from "./useResponsive-CoxXLe23.js";
|
|
4
|
-
import { _ as Xa } from "./Tooltip-
|
|
5
|
-
import { L as Ua } from "./Legend-
|
|
6
|
-
import { _ as Za } from "./Title-
|
|
7
|
-
import { S as Ga } from "./Slicer-
|
|
8
|
-
import { u as Va, U as ja } from "./usePrinter-
|
|
9
|
-
import qa from "./vue-ui-accordion-
|
|
10
|
-
import { D as Ja } from "./DataTable-
|
|
11
|
-
import Ka from "./vue-ui-skeleton-
|
|
12
|
-
import { u as Qe } from "./useNestedProp-
|
|
13
|
-
import { P as Qa } from "./PenAndPaper-
|
|
4
|
+
import { _ as Xa } from "./Tooltip-CZd_cGTh.js";
|
|
5
|
+
import { L as Ua } from "./Legend-CfcLlhaP.js";
|
|
6
|
+
import { _ as Za } from "./Title-BYSs_RNw.js";
|
|
7
|
+
import { S as Ga } from "./Slicer-Dgnj8x-K.js";
|
|
8
|
+
import { u as Va, U as ja } from "./usePrinter-CsX9yzzX.js";
|
|
9
|
+
import qa from "./vue-ui-accordion-DvWhOtea.js";
|
|
10
|
+
import { D as Ja } from "./DataTable-Cccy3rvu.js";
|
|
11
|
+
import Ka from "./vue-ui-skeleton-B-eJiyiK.js";
|
|
12
|
+
import { u as Qe } from "./useNestedProp-LP4oR6kx.js";
|
|
13
|
+
import { P as Qa } from "./PenAndPaper-BpIqWG4P.js";
|
|
14
14
|
import { _ as et } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
15
15
|
const at = ["id"], tt = ["onClick"], lt = {
|
|
16
16
|
key: 2,
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vue-data-ui",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "2.4.
|
|
4
|
+
"version": "2.4.15",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"description": "A user-empowering data visualization Vue 3 components library for eloquent data storytelling",
|
|
7
7
|
"keywords": [
|
|
@@ -91,7 +91,7 @@
|
|
|
91
91
|
},
|
|
92
92
|
"devDependencies": {
|
|
93
93
|
"@vitejs/plugin-vue": "^5.1.4",
|
|
94
|
-
"cypress": "^13.
|
|
94
|
+
"cypress": "^13.16.0",
|
|
95
95
|
"html2canvas": "^1.4.1",
|
|
96
96
|
"jspdf": "^2.5.1",
|
|
97
97
|
"remove-attr": "^0.0.13",
|
package/dist/Slicer-CiHJ4t5H.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const e=require("vue"),O=require("./BaseIcon-bxNR7IJr.cjs"),C=require("./useResponsive-BJ7DTGpm.cjs"),v=require("./index-YfDOzIGL.cjs"),T=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),w=l=>(e.pushScopeId("data-v-c184b7d6"),l=l(),e.popScopeId(),l),U={"data-html2canvas-ignore":"",style:{padding:"0 24px"}},W={class:"vue-data-ui-slicer-labels",style:{position:"relative","z-index":"1","pointer-events":"none"}},j={key:0,style:{width:"100%",position:"relative"}},X={key:0,class:"minimap",style:{width:"100%"}},Z=["xmlns","viewBox"],_=["id"],G=["stop-color"],H=w(()=>e.createElementVNode("stop",{offset:"100%","stop-color":"transparent"},null,-1)),J=["d","stroke"],K=["x","width","height","fill","rx"],Q=["d","fill"],Y=["x","width","height","rx","fill"],ee=["x","width","height","fill","rx"],te=["d","fill"],le=["d","stroke"],ae=["cx","cy","stroke","fill"],ne=["cx","cy","stroke","fill"],oe=["x1","x2","y2","stroke"],ie=["x","height","width","onMouseenter"],re=w(()=>e.createElementVNode("div",{class:"slider-track"},null,-1)),ue=["min","max"],se=["min","max"],ce={__name:"Slicer",props:{background:{type:String,default:"#FFFFFF"},borderColor:{type:String,default:"#FFFFFF"},fontSize:{type:Number,default:14},labelLeft:{type:String,default:""},labelRight:{type:String,default:""},textColor:{type:String,default:"#1A1A1A"},inputColor:{type:String,default:"#1A1A1A"},max:{type:Number,default:0},min:{type:Number,default:0},selectColor:{type:String,default:"#4A4A4A"},useResetSlot:{type:Boolean,default:!1},valueStart:{type:[Number,String],default:0},valueEnd:{type:[Number,String],default:0},minimap:{type:Array,default:[]},smoothMinimap:{type:Boolean,default:!1},minimapSelectedColor:{type:String,default:"#1f77b4"},minimapSelectionRadius:{type:Number,default:12},minimapLineColor:{type:String,default:"#2D353C"},minimapSelectedColorOpacity:{type:Number,default:.2},minimapSelectedIndex:{type:Number,default:null},minimapIndicatorColor:{type:String,default:"#2D353C"}},emits:["update:start","update:end","reset","trapMouse"],setup(l,{emit:h}){const t=l;e.useCssVars(a=>({"74ec9808":$.value,"5d7f3c70":f.value,"2eaeb5e1":z.value,"3db47da0":l.selectColor,"2531182e":B.value}));const r=e.ref(t.min),u=e.ref(t.max),p=e.computed(()=>!!t.minimap.length),g=e.ref(v.createUid()),V=e.computed(()=>{const a=t.max-t.min,o=(r.value-t.min)/a*100,i=(u.value-t.min)/a*100;return{left:`${o}%`,width:`${i-o}%`,background:t.selectColor}}),$=e.computed(()=>t.inputColor),B=e.computed(()=>t.background),z=e.computed(()=>`${t.selectColor}33`),f=e.computed(()=>t.borderColor),k=e.computed(()=>{let a=[];for(let o=0;o<t.minimap.length;o+=1)a.push(o);return a});function N(){h("reset")}function L(){Number(r.value)>Number(u.value)-1&&(r.value=Number(u.value)-1),h("update:start",Number(r.value))}function M(){Number(u.value)<Number(r.value)+1&&(u.value=Number(r.value)+1),h("update:end",Number(u.value))}e.watch(()=>t.min,a=>{Number(r.value)<Number(a)&&(r.value=Number(a)),Number(u.value)<Number(a)&&(u.value=Number(a))}),e.watch(()=>t.max,a=>{Number(r.value)>Number(a)&&(r.value=Number(a)),Number(u.value)>Number(a)&&(u.value=Number(a))});const x=e.ref(null),n=e.ref({width:1,height:1}),E=e.ref(null);e.onMounted(()=>{if(p.value){const a=C.throttle(()=>{const{width:o,height:i}=C.useResponsive({chart:x.value});n.value.width=o,n.value.height=i-47});E.value=new ResizeObserver(a),E.value.observe(x.value)}});const s=e.computed(()=>t.minimap.length?n.value.width/t.minimap.length:0),c=e.computed(()=>{if(!t.minimap.length)return[];const a=Math.max(...t.minimap),o=Math.min(...t.minimap)-10,i=a-(o>0?0:o),d=t.minimap.map((A,q)=>{const D=A-o;return{x:n.value.width/t.minimap.length*q+s.value/2,y:n.value.height-D/i*(n.value.height*.9)}}),S=t.smoothMinimap?v.createSmoothPath(d):v.createStraightPath(d),b=[...d].slice(t.valueStart,t.valueEnd),R=t.smoothMinimap?v.createSmoothPath(b):v.createStraightPath(b);return{fullSet:S,selectionSet:R,sliced:b,firstPlot:d[t.valueStart],lastPlot:d[t.valueEnd-1]}}),m=e.computed(()=>({x:s.value*r.value+s.value/2,width:n.value.width*((u.value-r.value)/t.max)-s.value})),F=e.computed(()=>({left:0,color:t.textColor,fontSize:`${t.fontSize}px`,top:p.value?"28px":"-28px",pointerEvents:"none"})),I=e.computed(()=>({right:0,color:t.textColor,fontSize:`${t.fontSize}px`,top:p.value?"28px":"-28px",direction:"rtl",pointerEvents:"none"})),y=e.ref(t.minimapSelectedIndex);e.watch(()=>t.minimapSelectedIndex,a=>{y.value=a+t.valueStart},{immediate:!0});function P(a){y.value=a,a>=t.valueStart&&a<t.valueEnd&&h("trapMouse",a-t.valueStart)}return(a,o)=>(e.openBlock(),e.createElementBlock("div",U,[e.createElementVNode("div",W,[l.valueStart>0||l.valueEnd<l.max?(e.openBlock(),e.createElementBlock("div",j,[l.useResetSlot?e.renderSlot(a.$slots,"reset-action",{key:1,reset:N},void 0,!0):(e.openBlock(),e.createElementBlock("button",{key:0,"data-cy-reset":"",tabindex:"0",role:"button",class:"vue-data-ui-refresh-button",style:e.normalizeStyle({top:p.value?"36px":"-16px",pointerEvents:"all !important"}),onClick:N},[e.createVNode(O.default,{name:"refresh",stroke:l.textColor},null,8,["stroke"])],4))])):e.createCommentVNode("",!0)]),e.createElementVNode("div",{class:"double-range-slider",ref_key:"minimapWrapper",ref:x,style:{"z-index":"0"}},[p.value?(e.openBlock(),e.createElementBlock("div",X,[(e.openBlock(),e.createElementBlock("svg",{xmlns:e.unref(v.XMLNS),viewBox:`0 0 ${n.value.width<0?0:n.value.width} ${n.value.height<0?0:n.value.height}`},[e.createElementVNode("defs",null,[e.createElementVNode("linearGradient",{id:g.value,x1:"0%",y1:"0%",x2:"0%",y2:"100%"},[e.createElementVNode("stop",{offset:"0%","stop-color":`${l.minimapLineColor}50`},null,8,G),H],8,_)]),e.createElementVNode("path",{d:`M${c.value.fullSet}`,stroke:`${l.minimapLineColor}`,fill:"none","stroke-width":"1","stroke-linecap":"round","stroke-linejoin":"round",style:{opacity:"1"}},null,8,J),e.createElementVNode("rect",{x:m.value.x,width:m.value.width<0?0:m.value.width,height:n.value.height,y:0,fill:f.value,rx:l.minimapSelectionRadius,stroke:"none"},null,8,K),e.createElementVNode("path",{d:`M${s.value/2},${n.value.height} ${c.value.fullSet} L${n.value.width-s.value/2},${n.value.height}Z`,fill:`url(#${g.value})`,stroke:"none",style:{opacity:"1"}},null,8,Q),e.createElementVNode("rect",{x:m.value.x,width:m.value.width<0?0:m.value.width,height:n.value.height,y:0,rx:l.minimapSelectionRadius,fill:f.value},null,8,Y),e.createElementVNode("rect",{x:m.value.x,width:m.value.width<0?0:m.value.width,height:n.value.height,y:0,fill:l.minimapSelectedColor,rx:l.minimapSelectionRadius,style:e.normalizeStyle({opacity:l.minimapSelectedColorOpacity})},null,12,ee),e.createElementVNode("path",{d:`M${c.value.sliced[0].x},${n.value.height} ${c.value.selectionSet} L${c.value.sliced.at(-1).x},${n.value.height}Z`,fill:`url(#${g.value})`,stroke:"none",style:{opacity:"1"}},null,8,te),e.createElementVNode("path",{d:`M ${c.value.selectionSet}`,stroke:`${l.minimapLineColor}`,fill:"transparent","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},null,8,le),e.createElementVNode("circle",{cx:c.value.firstPlot.x,cy:c.value.firstPlot.y,"stroke-width":"0.5",stroke:f.value,r:"3",fill:l.minimapLineColor},null,8,ae),e.createElementVNode("circle",{cx:c.value.lastPlot.x,cy:c.value.lastPlot.y,"stroke-width":"0.5",stroke:f.value,r:"3",fill:l.minimapLineColor},null,8,ne),y.value!==null?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(k.value,(i,d)=>(e.openBlock(),e.createElementBlock("g",null,[y.value===i&&i>=l.valueStart&&i<l.valueEnd?(e.openBlock(),e.createElementBlock("line",{key:0,x1:s.value*d+s.value/2,x2:s.value*d+s.value/2,y1:0,y2:n.value.height,stroke:l.minimapIndicatorColor,"stroke-linecap":"round","stroke-dasharray":"2","stroke-width":"1"},null,8,oe)):e.createCommentVNode("",!0)]))),256)):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(k.value,(i,d)=>(e.openBlock(),e.createElementBlock("rect",{x:s.value*d,y:0,height:n.value.height,width:s.value,fill:"transparent",style:{"pointer-events":"all !important"},onMouseenter:S=>P(i),onMouseleave:o[0]||(o[0]=S=>{y.value=null,h("trapMouse",null)})},null,40,ie))),256))],8,Z))])):e.createCommentVNode("",!0),re,e.createElementVNode("div",{class:"range-highlight",style:e.normalizeStyle(V.value)},null,4),e.withDirectives(e.createElementVNode("input",{type:"range",class:"range-left",min:l.min,max:l.max,"onUpdate:modelValue":o[1]||(o[1]=i=>r.value=i),onInput:L},null,40,ue),[[e.vModelText,r.value]]),e.createElementVNode("div",{class:"thumb-label thumb-label-left",style:e.normalizeStyle(F.value)},e.toDisplayString(l.labelLeft),5),e.withDirectives(e.createElementVNode("input",{type:"range",class:"range-right",min:l.min,max:l.max,"onUpdate:modelValue":o[2]||(o[2]=i=>u.value=i),onInput:M},null,40,se),[[e.vModelText,u.value]]),e.createElementVNode("div",{class:"thumb-label thumb-label-right",style:e.normalizeStyle(I.value)},e.toDisplayString(l.labelRight),5)],512)]))}},de=T._export_sfc(ce,[["__scopeId","data-v-c184b7d6"]]);exports.Slicer=de;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),i=require("./index-YfDOzIGL.cjs"),se=require("./useResponsive-BJ7DTGpm.cjs"),xe=require("./Title-DPx1SQ60.cjs"),Ce=require("./Legend-pFwNBjPs.cjs"),we=require("./Tooltip-BxmlUqdH.cjs"),Be=require("./Shape-tOhcWMkG.cjs"),re=require("./usePrinter-BfKKkLev.cjs"),$e=require("./DataTable-DPFAxETx.cjs"),Se=require("./vue-ui-accordion-BDO_Zh68.cjs"),ze=require("./vue-ui-skeleton-BypGpnGR.cjs"),ie=require("./useNestedProp-WJ8kD00a.cjs"),Ne=require("./PackageVersion-Bdfz6JAs.cjs"),Ae=require("./PenAndPaper-qO8pMTxM.cjs"),Te=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),Pe=["id"],_e=["xmlns","viewBox"],Fe={style:{"pointer-events":"none"}},Me=["x1","x2","y1","y2","stroke","stroke-width"],Ee=["x","y","fill","font-size","font-weight"],Le=["x1","x2","y1","y2","stroke","stroke-width"],Ie=["x","y","fill","font-size","font-weight"],Ve={key:0},Oe=["x","y","font-size","fill"],De=["width","x","y"],qe={style:{width:"100%"}},Re=["x","y","fill","font-weight","font-size","onMouseenter"],Ue=["d","stroke","stroke-width","onMouseenter"],We={key:5,class:"vue-data-ui-watermark"},je=["onClick"],He=["innerHTML"],Ge={__name:"vue-ui-parallel-coordinate-plot",props:{config:{type:Object,default(){return{}}},dataset:{type:Array,default(){return[]}}},emits:["selectLegend","selectDatapoint"],setup(ue,{expose:ce,emit:L}){const b=ue,{vue_ui_parallel_coordinate_plot:de}=i.useConfig(),x=e.computed({get(){return!!b.dataset&&b.dataset.length},set(l){return l}}),I=e.ref(0),C=e.ref(null),V=e.ref(null),O=e.ref(null),D=e.ref(null),q=e.ref(null),R=e.ref(0),U=e.ref(0),W=e.ref(0),A=e.ref(i.createUid()),B=e.ref(!1);function ve(l){B.value=l,I.value+=1}const t=e.computed({get:()=>j(),set:l=>l});function j(){const l=ie.useNestedProp({userConfig:b.config,defaultConfig:de});return l.theme?{...ie.useNestedProp({userConfig:i.themes.vue_ui_parallel_coordinate_plot[l.theme]||b.config,defaultConfig:l}),customPalette:i.themePalettes[l.theme]||i.palette}:l}e.watch(()=>b.config,l=>{t.value=j(),H(),R.value+=1,W.value+=1,U.value+=1},{deep:!0});const S=e.ref(null);e.onMounted(()=>{H()});function H(){if(i.objectIsEmpty(b.dataset)?i.error({componentName:"VueUiParallelCoordinatePlot",type:"dataset"}):b.dataset.forEach((l,o)=>{i.getMissingDatasetAttributes({datasetObject:l,requiredAttributes:["name","series"]}).forEach(a=>{x.value=!1,i.error({componentName:"VueUiParallelCoordinatePlot",type:"datasetSerieAttribute",property:a,index:o})})}),t.value.responsive){const l=se.throttle(()=>{const{width:o,height:a}=se.useResponsive({chart:C.value,title:t.value.style.chart.title.text?V.value:null,legend:t.value.style.chart.legend.show?O.value:null,source:D.value,noTitle:q.value});c.value.width=o,c.value.height=a,c.value.plotSize=i.translateSize({relator:Math.min(o,a),adjuster:600,source:t.value.style.chart.plots.radius,threshold:2,fallback:2}),c.value.ticksFontSize=i.translateSize({relator:Math.min(o,a),adjuster:600,source:t.value.style.chart.yAxis.labels.ticks.fontSize,threshold:10,fallback:10}),c.value.datapointFontSize=i.translateSize({relator:Math.min(o,a),adjuster:600,source:t.value.style.chart.yAxis.labels.datapoints.fontSize,threshold:10,fallback:10}),c.value.axisNameFontSize=i.translateSize({relator:Math.min(o,a),adjuster:600,source:t.value.style.chart.yAxis.labels.axisNamesFontSize,threshold:12,fallback:12})});S.value=new ResizeObserver(l),S.value.observe(C.value.parentNode)}}e.onBeforeUnmount(()=>{S.value&&S.value.disconnect()});const{isPrinting:G,isImaging:Y,generatePdf:X,generateImage:J}=re.usePrinter({elementId:`pcp_${A.value}`,fileName:t.value.style.chart.title.text||"vue-ui-parallel-coordinate-plot"}),pe=e.computed(()=>t.value.userOptions.show&&!t.value.style.chart.title.text),c=e.ref({height:t.value.style.chart.height,width:t.value.style.chart.width,plotSize:t.value.style.chart.plots.radius,ticksFontSize:t.value.style.chart.yAxis.labels.ticks.fontSize,datapointFontSize:t.value.style.chart.yAxis.labels.datapoints.fontSize,axisNameFontSize:t.value.style.chart.yAxis.labels.axisNamesFontSize}),d=e.computed(()=>{const{top:l,right:o,bottom:a,left:n}=t.value.style.chart.padding,r=c.value.height,s=c.value.width;return{chartHeight:r,chartWidth:s,height:r-l-a,width:s-n-o,top:l,left:n,right:s-o,bottom:r-a}}),he=e.computed(()=>i.convertCustomPalette(t.value.customPalette)),m=e.ref({dataLabels:{show:t.value.style.chart.yAxis.labels.datapoints.show},showTable:t.value.table.show,showTooltip:t.value.style.chart.tooltip.show}),f=e.ref([]);function K(l){f.value.includes(l)?f.value=f.value.filter(o=>o!==l):f.value.push(l)}const k=e.computed(()=>b.dataset.map((l,o)=>{const a=i.convertColorToHex(l.color)||he.value[o]||i.palette[o]||i.palette[o%i.palette.length];return{...l,series:l.series.map(n=>({...n,id:i.createUid(),color:a})),seriesIndex:o,color:a,id:i.createUid(),shape:l.shape||"circle"}})),me=e.computed(()=>k.value.map(l=>({...l,opacity:f.value.includes(l.id)?.5:1,segregate:()=>K(l.id),isSegregated:f.value.includes(l.id)}))),ye=e.computed(()=>({cy:"pcp-div-legend",backgroundColor:t.value.style.chart.legend.backgroundColor,color:t.value.style.chart.legend.color,fontSize:t.value.style.chart.legend.fontSize,paddingBottom:12,fontWeight:t.value.style.chart.legend.bold?"bold":""})),Q=e.computed(()=>Math.max(...k.value.filter(l=>!f.value.includes(l.id)).map(l=>Math.max(...l.series.flatMap(o=>o.values.length))))),y=e.computed(()=>d.value.width/Q.value),T=e.computed(()=>k.value.filter(l=>!f.value.includes(l.id))),h=e.computed(()=>{let l=[];for(let o=0;o<Q.value;o+=1){const a=Math.min(...T.value.flatMap(v=>v.series.map(N=>N.values[o]||0)||0)),n=Math.max(...T.value.flatMap(v=>v.series.map(N=>N.values[o]||0)||0)),r=n===a?a/4:a,s=n===a?n*2:n,u=i.calculateNiceScale(r,s,t.value.style.chart.yAxis.scaleTicks),g=u.ticks.map((v,N)=>{const be=u.min<0?v+Math.abs(u.min):v-Math.abs(u.min),ke=u.min<0?u.max+Math.abs(u.min):u.max-Math.abs(u.min);return{y:d.value.bottom-d.value.height*(be/ke),x:d.value.left+y.value*o+y.value/2,value:v}});l.push({scale:u,ticks:g,name:t.value.style.chart.yAxis.labels.axisNames[o]||`Y-${o+1}`})}return l}),P=e.computed(()=>T.value.map((l,o)=>({...l,series:l.series.map((a,n)=>({...a,datapoints:a.values.map((r,s)=>{const u=h.value[s].scale.min<0?(r||0)+Math.abs(h.value[s].scale.min):(r||0)-Math.abs(h.value[s].scale.min),g=h.value[s].scale.min<0?h.value[s].scale.max+Math.abs(h.value[s].scale.min):h.value[s].scale.max-Math.abs(h.value[s].scale.min);return{name:a.name,seriesName:l.name,axisIndex:s,datapointIndex:n,seriesIndex:o,value:r||0,x:d.value.left+y.value*s+y.value/2,y:d.value.bottom-d.value.height*(u/g),comment:a.comments&&a.comments[s]||""}})}))})).map(l=>({...l,series:l.series.map(o=>{const a=i.createStraightPath(o.datapoints),n=i.createSmoothPath(o.datapoints),r=i.getPathLengthFromCoordinates(t.value.style.chart.lines.smooth?`M ${n}`:`M ${a}`);return{...o,smoothPath:n,straightPath:a,pathLength:r}})})));function Z({value:l,index:o,datapoint:a}){return i.applyDataLabel(t.value.style.chart.yAxis.labels.formatters[o]||null,l,i.dataLabel({p:t.value.style.chart.yAxis.labels.prefixes[o]||"",v:l,s:t.value.style.chart.yAxis.labels.suffixes[o]||"",r:t.value.style.chart.yAxis.labels.roundings[o]||0}),{datapoint:a,seriesIndex:o})}const p=e.ref(null),_=e.ref(null),$=e.ref(!1),F=e.ref("");function M({shape:l,serieName:o,serie:a,relativeIndex:n,seriesIndex:r}){_.value={serie:a,relativeIndex:n,seriesIndex:r,series:k.value,scales:h.value},$.value=!0,p.value=a.id;let s="";const u=t.value.style.chart.tooltip.customFormat;i.isFunction(u)&&i.functionReturnsString(()=>u({serie:a,seriesIndex:a.seriesIndex,series:k.value,config:t.value,scales:h.value}))?F.value=u({serie:a,seriesIndex:a.seriesIndex,series:k.value,config:t.value,scales:h.value}):(s+=`<div style="width:100%;text-align:center;border-bottom:1px solid ${t.value.style.chart.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;">${o?o+" - ":""}${a.name}</div>`,h.value.map(g=>g.name).forEach((g,v)=>{s+=`
|
|
2
|
-
<div class="vue-ui-tooltip-item" style="text-align:left">
|
|
3
|
-
<span>${g}: </span>
|
|
4
|
-
<span>
|
|
5
|
-
${i.applyDataLabel(t.value.style.chart.yAxis.labels.formatters[v]||null,a.datapoints[v].value,i.dataLabel({p:t.value.style.chart.yAxis.labels.prefixes[v]||"",v:a.datapoints[v].value,s:t.value.style.chart.yAxis.labels.suffixes[v]||"",r:t.value.style.chart.yAxis.labels.roundings[v]||""}),{datapoint:a.datapoints[v],seriesIndex:v})}
|
|
6
|
-
</span>
|
|
7
|
-
</div>
|
|
8
|
-
`,t.value.style.chart.comments.showInTooltip&&a.datapoints[v].comment&&(s+=`<div class="vue-data-ui-tooltip-comment" style="background:${a.color}20; padding: 6px; margin-bottom: 6px; border-left: 1px solid ${a.color}">${a.datapoints[v].comment}</div>`)}),F.value=`<div>${s}</div>`)}function fe(){return k.value}const w=e.computed(()=>{const l=[t.value.table.columnNames.series].concat([t.value.table.columnNames.item]).concat(h.value.map(r=>r.name)),o=P.value.flatMap((r,s)=>r.series.map(u=>[r.name].concat([u.name]).concat(u.values))),a={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},n=[t.value.table.columnNames.series].concat([t.value.table.columnNames.item]).concat(h.value.map(r=>r.name));return{body:o,head:l,config:a,colNames:n}}),ee=e.computed(()=>P.value.length===0?{head:[],body:[],config:{},columnNames:[]}:{head:w.value.head,body:w.value.body});function te(){const l=[[t.value.style.chart.title.text],[t.value.style.chart.title.subtitle.text],[""]],o=ee.value.head,a=ee.value.body,n=l.concat([o]).concat(a),r=i.createCsvContent(n);i.downloadCsv({csvContent:r,title:t.value.style.chart.title.text||"vue-ui-parallel-coordinate-plot"})}function ge(l){L("selectDatapoint",l)}function le(l){L("selectLegend",{...l,isSegregated:!l.isSegregated,opacity:l.isSegregated?1:.5})}function ae(){m.value.showTable=!m.value.showTable}function oe(){m.value.dataLabels.show=!m.value.dataLabels.show}function ne(){m.value.showTooltip=!m.value.showTooltip}const z=e.ref(!1);function E(){z.value=!z.value}return ce({getData:fe,generateCsv:te,generatePdf:X,generateImage:J,toggleTable:ae,toggleLabels:oe,toggleTooltip:ne,toggleAnnotator:E}),(l,o)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"pcpChart",ref:C,class:e.normalizeClass(`vue-ui-pcp ${B.value?"vue-data-ui-wrapper-fullscreen":""} ${t.value.useCssAnimation?"":"vue-ui-dna"}`),style:e.normalizeStyle(`font-family:${t.value.style.fontFamily};width:100%; text-align:center;background:${t.value.style.chart.backgroundColor};${t.value.responsive?"height:100%":""}`),id:`pcp_${A.value}`},[t.value.userOptions.buttons.annotator?(e.openBlock(),e.createBlock(Ae.PenAndPaper,{key:0,parent:C.value,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,active:z.value,onClose:E},null,8,["parent","backgroundColor","color","active"])):e.createCommentVNode("",!0),pe.value?(e.openBlock(),e.createElementBlock("div",{key:1,ref_key:"noTitle",ref:q,class:"vue-data-ui-no-title-space",style:"height:36px; width: 100%;background:transparent"},null,512)):e.createCommentVNode("",!0),t.value.style.chart.title.text?(e.openBlock(),e.createElementBlock("div",{key:2,ref_key:"chartTitle",ref:V,style:"width:100%;background:transparent;padding-bottom:24px"},[(e.openBlock(),e.createBlock(xe._sfc_main,{key:`title_${R.value}`,config:{title:{cy:"pcp-div-title",...t.value.style.chart.title},subtitle:{cy:"pcp-div-subtitle",...t.value.style.chart.title.subtitle}}},null,8,["config"]))],512)):e.createCommentVNode("",!0),t.value.userOptions.show&&x.value?(e.openBlock(),e.createBlock(re.UserOptions,{ref:"details",key:`user_options_${I.value}`,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,isPrinting:e.unref(G),isImaging:e.unref(Y),uid:A.value,hasTooltip:t.value.userOptions.buttons.tooltip&&t.value.style.chart.tooltip.show,hasPdf:t.value.userOptions.buttons.pdf,hasXls:t.value.userOptions.buttons.csv,hasImg:t.value.userOptions.buttons.img,hasTable:t.value.userOptions.buttons.table,hasLabel:t.value.userOptions.buttons.labels,hasFullscreen:t.value.userOptions.buttons.fullscreen,isFullscreen:B.value,isTooltip:m.value.showTooltip,titles:{...t.value.userOptions.buttonTitles},chartElement:C.value,position:t.value.userOptions.position,hasAnnotator:t.value.userOptions.buttons.annotator,isAnnotation:z.value,onToggleFullscreen:ve,onGeneratePdf:e.unref(X),onGenerateCsv:te,onGenerateImage:e.unref(J),onToggleTable:ae,onToggleLabels:oe,onToggleTooltip:ne,onToggleAnnotator:E},e.createSlots({_:2},[l.$slots.optionPdf?{name:"optionPdf",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionPdf",{},void 0,!0)]),key:"0"}:void 0,l.$slots.optionCsv?{name:"optionCsv",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionCsv",{},void 0,!0)]),key:"1"}:void 0,l.$slots.optionImg?{name:"optionImg",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionImg",{},void 0,!0)]),key:"2"}:void 0,l.$slots.optionTable?{name:"optionTable",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionTable",{},void 0,!0)]),key:"3"}:void 0,l.$slots.optionLabels?{name:"optionLabels",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionLabels",{},void 0,!0)]),key:"4"}:void 0,l.$slots.optionFullscreen?{name:"optionFullscreen",fn:e.withCtx(({toggleFullscreen:a,isFullscreen:n})=>[e.renderSlot(l.$slots,"optionFullscreen",e.normalizeProps(e.guardReactiveProps({toggleFullscreen:a,isFullscreen:n})),void 0,!0)]),key:"5"}:void 0,l.$slots.optionAnnotator?{name:"optionAnnotator",fn:e.withCtx(({toggleAnnotator:a,isAnnotator:n})=>[e.renderSlot(l.$slots,"optionAnnotator",e.normalizeProps(e.guardReactiveProps({toggleAnnotator:a,isAnnotator:n})),void 0,!0)]),key:"6"}:void 0]),1032,["backgroundColor","color","isPrinting","isImaging","uid","hasTooltip","hasPdf","hasXls","hasImg","hasTable","hasLabel","hasFullscreen","isFullscreen","isTooltip","titles","chartElement","position","hasAnnotator","isAnnotation","onGeneratePdf","onGenerateImage"])):e.createCommentVNode("",!0),x.value?(e.openBlock(),e.createElementBlock("svg",{key:4,xmlns:e.unref(i.XMLNS),class:e.normalizeClass({"vue-data-ui-fullscreen--on":B.value,"vue-data-ui-fulscreen--off":!B.value}),viewBox:`0 0 ${d.value.chartWidth<=0?10:d.value.chartWidth} ${d.value.chartHeight<=0?10:d.value.chartHeight}`,style:e.normalizeStyle(`max-width:100%; overflow: visible; background:transparent;color:${t.value.style.chart.color}`)},[e.createVNode(Ne._sfc_main),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(h.value,(a,n)=>(e.openBlock(),e.createElementBlock("g",Fe,[e.createElementVNode("line",{x1:d.value.left+y.value*n+y.value/2,x2:d.value.left+y.value*n+y.value/2,y1:d.value.top,y2:d.value.bottom,stroke:t.value.style.chart.yAxis.stroke,"stroke-width":t.value.style.chart.yAxis.strokeWidth},null,8,Me),e.createElementVNode("text",{x:d.value.left+y.value*n+y.value/2,y:d.value.top-24,fill:t.value.style.chart.yAxis.labels.axisNamesColor,"font-size":c.value.axisNameFontSize,"font-weight":t.value.style.chart.yAxis.labels.axisNamesBold?"bold":"","text-anchor":"middle"},e.toDisplayString(a.name),9,Ee),t.value.style.chart.yAxis.labels.ticks.show?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.ticks,r=>(e.openBlock(),e.createElementBlock("line",{x1:r.x,x2:r.x-10,y1:r.y,y2:r.y,stroke:t.value.style.chart.yAxis.stroke,"stroke-width":t.value.style.chart.yAxis.strokeWidth,style:e.normalizeStyle(`opacity:${p.value&&!m.value.showTooltip?.2:1}`)},null,12,Le))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.ticks,r=>(e.openBlock(),e.createElementBlock("text",{x:r.x-12+t.value.style.chart.yAxis.labels.ticks.offsetX,y:r.y+t.value.style.chart.yAxis.labels.ticks.offsetY+c.value.ticksFontSize/3,fill:t.value.style.chart.yAxis.labels.ticks.color,"text-anchor":"end","font-size":c.value.ticksFontSize,"font-weight":t.value.style.chart.yAxis.labels.ticks.bold?"bold":"normal",style:e.normalizeStyle(`opacity:${p.value&&!m.value.showTooltip?.2:1}`)},e.toDisplayString(Z({value:r.value,index:n,datapoint:r})),13,Ie))),256))],64)):e.createCommentVNode("",!0)]))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(P.value,a=>(e.openBlock(),e.createElementBlock("g",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.series,(n,r)=>(e.openBlock(),e.createElementBlock("g",null,[t.value.style.chart.plots.show?(e.openBlock(),e.createElementBlock("g",Ve,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.datapoints,s=>(e.openBlock(),e.createBlock(Be._sfc_main,{plot:{x:s.x,y:s.y},color:a.color,shape:a.shape,radius:a.shape==="triangle"?c.value.plotSize*1.2:c.value.plotSize,stroke:t.value.style.chart.backgroundColor,strokeWidth:.5,onMouseenter:u=>M({shape:a.shape,serieName:a.name,serie:n,relativeIndex:r,seriesIndex:n.seriesIndex}),onMouseleave:o[0]||(o[0]=u=>{p.value=null,$.value=!1}),style:e.normalizeStyle(`opacity:${p.value?p.value===n.id?t.value.style.chart.plots.opacity:.2:t.value.style.chart.plots.opacity}`),onClick:()=>ge(s)},null,8,["plot","color","shape","radius","stroke","onMouseenter","style","onClick"]))),256)),m.value.showTooltip?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[p.value&&p.value===n.id&&n.datapoints.length?(e.openBlock(),e.createElementBlock("text",{key:0,x:n.datapoints[0].x-c.value.ticksFontSize,y:n.datapoints[0].y+c.value.ticksFontSize/3,"text-anchor":"end","font-size":c.value.ticksFontSize,fill:a.color,"font-weight":"bold"},e.toDisplayString(n.name),9,Oe)):e.createCommentVNode("",!0)],64)),t.value.style.chart.comments.show?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:1},e.renderList(n.datapoints,s=>(e.openBlock(),e.createElementBlock("g",null,[s.comment?(e.openBlock(),e.createElementBlock("foreignObject",{key:0,style:{overflow:"visible"},height:"12",width:t.value.style.chart.comments.width,x:s.x-t.value.style.chart.comments.width/2+t.value.style.chart.comments.offsetX,y:s.y+t.value.style.chart.comments.offsetY+6},[e.createElementVNode("div",qe,[e.renderSlot(l.$slots,"plot-comment",{plot:{...s,color:a.color}},void 0,!0)])],8,De)):e.createCommentVNode("",!0)]))),256)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),m.value.dataLabels.show||p.value&&p.value===n.id?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:1},e.renderList(n.datapoints,(s,u)=>(e.openBlock(),e.createElementBlock("text",{x:s.x+12+t.value.style.chart.yAxis.labels.datapoints.offsetX,y:s.y+t.value.style.chart.yAxis.labels.datapoints.offsetY+c.value.datapointFontSize/3,fill:t.value.style.chart.yAxis.labels.datapoints.useSerieColor?a.color:t.value.style.chart.yAxis.labels.datapoints.color,"text-anchor":"start","font-weight":t.value.style.chart.yAxis.labels.datapoints.bold?"bold":"normal",class:e.normalizeClass({"vue-ui-pcp-animated":!1,"vue-ui-pcp-transition":!0}),"font-size":c.value.datapointFontSize,onMouseenter:g=>M({shape:a.shape,serieName:a.name,serie:n,relativeIndex:r,seriesIndex:n.seriesIndex}),onMouseleave:o[1]||(o[1]=g=>{p.value=null,$.value=!1}),style:e.normalizeStyle(`opacity:${p.value?p.value===n.id?1:.2:1}`)},e.toDisplayString(Z({value:s.value,index:u,datapoint:s})),45,Re))),256)):e.createCommentVNode("",!0),e.createElementVNode("path",{d:`M${t.value.style.chart.lines.smooth?n.smoothPath:n.straightPath}`,stroke:a.color,"stroke-width":t.value.style.chart.lines.strokeWidth,fill:"none",class:e.normalizeClass({"vue-ui-pcp-animated vue-data-ui-line-animated":t.value.useCssAnimation,"vue-ui-pcp-transition":!0}),onMouseenter:s=>M({shape:a.shape,serieName:a.name,serie:n,relativeIndex:r,seriesIndex:n.seriesIndex}),onMouseleave:o[2]||(o[2]=s=>{p.value=null,$.value=!1}),style:e.normalizeStyle(`opacity:${p.value?p.value===n.id?t.value.style.chart.lines.opacity:.2:t.value.style.chart.lines.opacity}; stroke-dasharray:${n.pathLength}; stroke-dashoffset: ${t.value.useCssAnimation?n.pathLength:0}`)},null,46,Ue)]))),256))]))),256)),e.renderSlot(l.$slots,"svg",{svg:d.value},void 0,!0)],14,_e)):e.createCommentVNode("",!0),l.$slots.watermark?(e.openBlock(),e.createElementBlock("div",We,[e.renderSlot(l.$slots,"watermark",e.normalizeProps(e.guardReactiveProps({isPrinting:e.unref(G)||e.unref(Y)})),void 0,!0)])):e.createCommentVNode("",!0),x.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(ze.default,{key:6,config:{type:"parallelCoordinatePlot",style:{backgroundColor:t.value.style.chart.backgroundColor}}},null,8,["config"])),e.createElementVNode("div",{ref_key:"chartLegend",ref:O},[t.value.style.chart.legend.show&&x.value?(e.openBlock(),e.createBlock(Ce.Legend,{key:`legend_${U.value}`,legendSet:me.value,config:ye.value,onClickMarker:o[3]||(o[3]=({legend:a})=>{K(a.id),le(a)})},{item:e.withCtx(({legend:a,index:n})=>[e.createElementVNode("div",{onClick:r=>{a.segregate(),le(a)},style:e.normalizeStyle(`opacity:${f.value.includes(a.id)?.5:1}`)},e.toDisplayString(a.name),13,je)]),_:1},8,["legendSet","config"])):e.renderSlot(l.$slots,"legend",{key:1,legend:k.value},void 0,!0)],512),l.$slots.source?(e.openBlock(),e.createElementBlock("div",{key:7,ref_key:"source",ref:D,dir:"auto"},[e.renderSlot(l.$slots,"source",{},void 0,!0)],512)):e.createCommentVNode("",!0),e.createVNode(we._sfc_main,{show:m.value.showTooltip&&$.value,backgroundColor:t.value.style.chart.tooltip.backgroundColor,color:t.value.style.chart.tooltip.color,fontSize:t.value.style.chart.tooltip.fontSize,borderRadius:t.value.style.chart.tooltip.borderRadius,borderColor:t.value.style.chart.tooltip.borderColor,borderWidth:t.value.style.chart.tooltip.borderWidth,backgroundOpacity:t.value.style.chart.tooltip.backgroundOpacity,position:t.value.style.chart.tooltip.position,offsetY:t.value.style.chart.tooltip.offsetY,parent:C.value,content:F.value,isCustom:e.unref(i.isFunction)(t.value.style.chart.tooltip.customFormat)},{"tooltip-before":e.withCtx(()=>[e.renderSlot(l.$slots,"tooltip-before",e.normalizeProps(e.guardReactiveProps({..._.value})),void 0,!0)]),"tooltip-after":e.withCtx(()=>[e.renderSlot(l.$slots,"tooltip-after",e.normalizeProps(e.guardReactiveProps({..._.value})),void 0,!0)]),_:3},8,["show","backgroundColor","color","fontSize","borderRadius","borderColor","borderWidth","backgroundOpacity","position","offsetY","parent","content","isCustom"]),x.value?(e.openBlock(),e.createBlock(Se.default,{key:8,hideDetails:"",config:{open:m.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($e.DataTable,{key:`table_${W.value}`,colNames:w.value.colNames,head:w.value.head,body:w.value.body,config:w.value.config,title:`${t.value.style.chart.title.text}${t.value.style.chart.title.subtitle.text?` : ${t.value.style.chart.title.subtitle.text}`:""}`,onClose:o[4]||(o[4]=a=>m.value.showTable=!1)},{th:e.withCtx(({th:a})=>[e.createElementVNode("div",{innerHTML:a},null,8,He)]),td:e.withCtx(({td:a})=>[e.createTextVNode(e.toDisplayString(a),1)]),_:1},8,["colNames","head","body","config","title"]))]),_:1},8,["config"])):e.createCommentVNode("",!0)],14,Pe))}},Ye=Te._export_sfc(Ge,[["__scopeId","data-v-35352f9a"]]);exports.default=Ye;
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const d=require("./index-YfDOzIGL.cjs"),B=require("./DataTable-DPFAxETx.cjs"),E=require("./Title-DPx1SQ60.cjs"),v=require("./Tooltip-BxmlUqdH.cjs"),z=require("./usePrinter-BfKKkLev.cjs"),V=require("./Shape-tOhcWMkG.cjs"),P=require("./BaseIcon-bxNR7IJr.cjs"),M=require("./vue-ui-table-sparkline-ycJMm1Hk.cjs"),T=require("./vue-ui-skeleton-BypGpnGR.cjs"),D=require("./Slicer-CiHJ4t5H.cjs"),R=require("./vue-ui-accordion-BDO_Zh68.cjs"),G=require("./useNestedProp-WJ8kD00a.cjs"),H=require("./PackageVersion-Bdfz6JAs.cjs"),W=require("./PenAndPaper-qO8pMTxM.cjs"),e=require("vue"),q=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),Y=d.createUid(),X={name:"vue-ui-xy",props:{config:{type:Object,default(){return{}}},dataset:{type:Array,default(){return[]}}},components:{DataTable:B.DataTable,Shape:V._sfc_main,Title:E._sfc_main,Tooltip:v._sfc_main,UserOptions:z.UserOptions,BaseIcon:P.default,TableSparkline:M.default,Skeleton:T.default,Slicer:D.Slicer,Accordion:R.default,PackageVersion:H._sfc_main,PenAndPaper:W.PenAndPaper},data(){this.dataset.forEach((u,r)=>{[null,void 0].includes(u.series)&&this.error({componentName:"VueUiXy",type:"datasetSerieAttribute",property:"series (number[])",index:r})});const l=this.config.downsample&&this.config.downsample.threshold?this.config.downsample.threshold:500,i=Math.max(...this.dataset.map(u=>this.largestTriangleThreeBucketsArray({data:u.series,threshold:l}).length)),n={start:0,end:i};return{themePalettes:d.themePalettes,themes:d.themes,slicerStep:0,selectedScale:null,CTX:null,CANVAS:null,opacity:d.opacity,useSafeValues:!0,palette:d.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"},isAnnotator:!1,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:d.createUid(),step:0,tableStep:0,titleStep:0,slicer:n,__to__:null,maxX:i,showSparklineTable:!0,segregateStep:0,sliderId:Y,fontSizes:{xAxis:18,yAxis:12,dataLabels:20,plotLabels:10},plotRadii:{plot:3,line:3},selectedMinimapIndex:null}},watch:{dataset:{handler(l,i){this.maxX=Math.max(...this.dataset.map(n=>this.largestTriangleThreeBucketsArray({data:n.series,threshold:this.FINAL_CONFIG.downsample.threshold}).length)),this.slicer={start:0,end:this.maxX},this.slicerStep+=1,this.segregateStep+=1},deep:!0},config:{handler(l,i){this.FINAL_CONFIG=this.prepareConfig(),this.prepareChart(),this.titleStep+=1,this.tableStep+=1},deep:!0}},computed:{hasOptionsNoTitle(){return this.FINAL_CONFIG.chart.userOptions.show&&(!this.FINAL_CONFIG.chart.title.show||!this.FINAL_CONFIG.chart.title.text)},minimap(){if(!this.FINAL_CONFIG.chart.zoom.minimap.show)return[];const l=this.datasetWithIds.filter(r=>!this.segregatedSeries.includes(r.id)),i=Math.max(...l.map(r=>r.series.length)),n=[];for(let r=0;r<i;r+=1)n.push(l.map(t=>t.series[r]||0).reduce((t,g)=>(t||0)+(g||0),0));const u=Math.min(...n);return n.map(r=>r+(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 l=this.lineSet.map(r=>({name:r.name,color:r.color,scale:r.individualScale,scaleYLabels:r.scaleYLabels,zero:r.zeroPosition,max:r.individualMax,scaleLabel:r.scaleLabel||"",id:r.id,yOffset:r.yOffset||0,individualHeight:r.individualHeight||this.drawingArea.height,autoScaleYLabels:r.autoScaleYLabels})),i=this.barSet.map(r=>({name:r.name,color:r.color,scale:r.individualScale,scaleYLabels:r.scaleYLabels,zero:r.zeroPosition,max:r.individualMax,scaleLabel:r.scaleLabel||"",id:r.id,yOffset:r.yOffset||0,individualHeight:r.individualHeight||this.drawingArea.height})),n=this.plotSet.map(r=>({name:r.name,color:r.color,scale:r.individualScale,scaleYLabels:r.scaleYLabels,zero:r.zeroPosition,max:r.individualMax,scaleLabel:r.scaleLabel||"",id:r.id,yOffset:r.yOffset||0,individualHeight:r.individualHeight||this.drawingArea.height})),u=[...l,...i,...n].flatMap(r=>r).length;return[...l,...i,...n].flatMap((r,t)=>({id:r.id,scaleLabel:r.scaleLabel,name:r.name,color:r.color,scale:r.scale,yOffset:r.yOffset,individualHeight:r.individualHeight,x:this.mutableConfig.isStacked?this.drawingArea.left:this.drawingArea.left/u*(t+1),yLabels:r.scaleYLabels||r.scale.ticks.map(g=>({y:g>=0?r.zero-r.individualHeight*(g/r.max):r.zero+r.individualHeight*Math.abs(g)/r.max,value:g}))}))},isDataset(){return!!this.dataset&&this.dataset.length},chartFont(){const l=document.getElementById(`vue-ui-xy_${this.uniqueId}`);return window.getComputedStyle(l,null).getPropertyValue("font-family")},FINAL_CONFIG:{get:function(){return this.prepareConfig()},set:function(l){return l}},hasHighlightArea(){return Array.isArray(this.FINAL_CONFIG.chart.highlightArea)?this.FINAL_CONFIG.chart.highlightArea.some(l=>l.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(i=>({...i,span:i.from===i.to?1:i.to<i.from?0:i.to-i.from+1}));const l=this.FINAL_CONFIG.chart.highlightArea;return[{...l,span:l.from===l.to?1:l.to<l.from?0:l.to-l.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((l,i)=>({...l,series:this.largestTriangleThreeBucketsArray({data:l.series,threshold:this.FINAL_CONFIG.downsample.threshold}),id:`uniqueId_${i}`})):this.dataset},safeDataset(){return this.useSafeValues?this.dataset.map((l,i)=>{const n=this.largestTriangleThreeBucketsArray({data:l.series,threshold:this.FINAL_CONFIG.downsample.threshold});return{...l,series:n.map(u=>this.isSafeValue(u)?u:null).slice(this.slicer.start,this.slicer.end),color:this.convertColorToHex(l.color?l.color:this.customPalette[i]?this.customPalette[i]:this.palette[i]),id:`uniqueId_${i}`}}):this.dataset},relativeDataset(){return this.safeDataset.map((l,i)=>({...l,series:l.series.map(n=>n+this.relativeZero),absoluteValues:l.series})).filter(l=>!this.segregatedSeries.includes(l.id))},tableSparklineDataset(){return this.relativeDataset.map(l=>{const i=l.absoluteValues.map(n=>[void 0,null].includes(n)?0:n);return{id:l.id,name:l.name,color:l.color,values:this.fillArray(this.maxSeries,i)}})},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((l,i)=>({absoluteIndex:i,...l,series:l.series.map(n=>n+this.relativeZero),absoluteValues:l.series,segregate:()=>this.segregate(l),isSegregated:this.segregatedSeries.includes(l.id)}))},barSet(){return this.activeSeriesWithStackRatios.filter(l=>l.type==="bar").map((l,i)=>{this.checkAutoScaleError(l);const n=Math.min(...l.absoluteValues.filter(c=>![null,void 0].includes(c))),u=Math.max(...l.absoluteValues.filter(c=>![null,void 0].includes(c))),t={ratios:l.absoluteValues.filter(c=>![null,void 0].includes(c)).map(c=>(c-n)/(u-n)),valueMin:n,valueMax:u<0?0:u},g={max:l.scaleMax||Math.max(...l.absoluteValues)||1,min:l.scaleMin||Math.min(...l.absoluteValues.filter(c=>![void 0,null].includes(c)))>0?0:Math.min(...l.absoluteValues.filter(c=>![null,void 0].includes(c)))},k=l.scaleSteps||this.FINAL_CONFIG.chart.grid.labels.yAxis.commonScaleSteps,F=1.0000001,m=this.calculateNiceScaleWithExactExtremes(g.min,g.max===g.min?g.max*F:g.max,k),N=this.calculateNiceScaleWithExactExtremes(t.valueMin,t.valueMax===t.valueMin?t.valueMax*F:t.valueMax,k),L=m.min>=0?0:Math.abs(m.min),C=0,A=m.max+L,y=N.max+Math.abs(C),I=this.mutableConfig.isStacked?this.drawingArea.height*(1-l.cumulatedStackRatio):0,b=this.mutableConfig.isStacked?this.drawingArea.height*l.stackRatio-this.FINAL_CONFIG.chart.grid.labels.yAxis.gap:this.drawingArea.height,S=this.drawingArea.bottom-I-b*L/A,a=this.drawingArea.bottom-I-b*C/y,o=this.absoluteDataset.filter(c=>c.type==="bar").filter(c=>!this.segregatedSeries.includes(c.id)).length,s=l.series.map((c,f)=>{const O=this.mutableConfig.useIndividualScale?(l.absoluteValues[f]+L)/A:this.ratioToMax(c),p=this.mutableConfig.useIndividualScale&&this.mutableConfig.isStacked?this.drawingArea.left+this.drawingArea.width/this.maxSeries*f:this.drawingArea.left+this.slot.bar*i+this.slot.bar*f*o-this.barSlot/2-i*this.barPeriodGap;return{yOffset:this.checkNaN(I),individualHeight:this.checkNaN(b),x:this.checkNaN(p),y:this.drawingArea.bottom-I-b*O,value:l.absoluteValues[f],zeroPosition:this.checkNaN(S),individualMax:this.checkNaN(A),comment:l.comments&&l.comments.slice(this.slicer.start,this.slicer.end)[f]||""}}),h=l.absoluteValues.map(c=>N.min>=0?(c-Math.abs(N.min))/(N.max-Math.abs(N.min)):(c+Math.abs(N.min))/(N.max+Math.abs(N.min))),w=l.series.map((c,f)=>{const O=this.mutableConfig.useIndividualScale&&this.mutableConfig.isStacked?this.drawingArea.left+this.drawingArea.width/this.maxSeries*f:this.drawingArea.left-this.slot.bar/2+this.slot.bar*i+this.slot.bar*f*this.absoluteDataset.filter(p=>p.type==="bar").filter(p=>!this.segregatedSeries.includes(p.id)).length;return{yOffset:this.checkNaN(I),individualHeight:this.checkNaN(b),x:this.checkNaN(O),y:this.checkNaN(this.drawingArea.bottom-this.checkNaN(I)-(this.checkNaN(b)*h[f]||0)),value:l.absoluteValues[f],zeroPosition:this.checkNaN(S),individualMax:this.checkNaN(A),comment:l.comments&&l.comments.slice(this.slicer.start,this.slicer.end)[f]||""}}),x=m.ticks.map(c=>({y:c>=0?S-b*(c/A):S+b*Math.abs(c)/A,value:c,prefix:l.prefix||this.FINAL_CONFIG.chart.labels.prefix,suffix:l.suffix||this.FINAL_CONFIG.chart.labels.suffix,datapoint:l})),_=N.ticks.map(c=>{const f=(c-N.min)/(N.max-N.min);return{y:c>=0?a-b*f:a+b*f,value:c,prefix:l.prefix||this.FINAL_CONFIG.chart.labels.prefix,suffix:l.suffix||this.FINAL_CONFIG.chart.labels.suffix,datapoint:l}});return{...l,yOffset:I,autoScaleYLabels:_,individualHeight:b,scaleYLabels:l.autoScaling?_:x,individualScale:l.autoScaling?N:m,individualMax:l.autoScaling?y:A,zeroPosition:l.autoScaling?a:S,plots:l.autoScaling?w:s}})},activeSeriesLength(){return this.absoluteDataset.length},activeSeriesWithStackRatios(){return this.assignStackRatios(this.absoluteDataset.filter(l=>!this.segregatedSeries.includes(l.id)))},lineSet(){return this.activeSeriesWithStackRatios.filter(l=>l.type==="line").map(l=>{this.checkAutoScaleError(l);const i=Math.min(...l.absoluteValues.filter(c=>![void 0,null].includes(c))),n=Math.max(...l.absoluteValues.filter(c=>![void 0,null].includes(c)))||1,r={ratios:l.absoluteValues.filter(c=>![null,void 0].includes(c)).map(c=>(c-i)/(n-i)),valueMin:i,valueMax:n},t={max:l.scaleMax||Math.max(...l.absoluteValues)||1,min:l.scaleMin||(Math.min(...l.absoluteValues)>0?0:Math.min(...l.absoluteValues))},g=l.scaleSteps||this.FINAL_CONFIG.chart.grid.labels.yAxis.commonScaleSteps,k=1.0000001,F=this.calculateNiceScaleWithExactExtremes(t.min,t.max===t.min?t.max*k:t.max,g),m=this.calculateNiceScaleWithExactExtremes(r.valueMin,r.valueMax===r.valueMin?r.valueMax*k:r.valueMax,g),N=F.min>=0?0:Math.abs(F.min),L=0,C=F.max+Math.abs(N),A=m.max+Math.abs(L),y=this.mutableConfig.isStacked?this.drawingArea.height*(1-l.cumulatedStackRatio):0,I=this.mutableConfig.isStacked?this.drawingArea.height*l.stackRatio-this.FINAL_CONFIG.chart.grid.labels.yAxis.gap:this.drawingArea.height,b=this.drawingArea.bottom-y-I*N/C,S=this.drawingArea.bottom-y-I*L/A,a=l.series.map((c,f)=>{const O=this.mutableConfig.useIndividualScale?(l.absoluteValues[f]+Math.abs(N))/C:this.ratioToMax(c);return{x:this.checkNaN(this.drawingArea.left+this.slot.line/2+this.slot.line*f),y:this.checkNaN(this.drawingArea.bottom-y-I*O),value:l.absoluteValues[f],comment:l.comments&&l.comments.slice(this.slicer.start,this.slicer.end)[f]||""}}),o=l.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))),s=l.series.map((c,f)=>[void 0,null].includes(l.absoluteValues[f])?{x:this.checkNaN(this.drawingArea.left+this.slot.line/2+this.slot.line*f),y:b,value:l.absoluteValues[f],comment:l.comments&&l.comments.slice(this.slicer.start,this.slicer.end)[f]||""}:{x:this.checkNaN(this.drawingArea.left+this.slot.line/2+this.slot.line*f),y:this.checkNaN(this.drawingArea.bottom-y-(I*o[f]||0)),value:l.absoluteValues[f],comment:l.comments&&l.comments.slice(this.slicer.start,this.slicer.end)[f]||""}),h=this.createSmoothPath(a),w=this.createSmoothPath(s),x=F.ticks.map(c=>({y:c>=0?b-I*(c/C):b+I*Math.abs(c)/C,value:c,prefix:l.prefix||this.FINAL_CONFIG.chart.labels.prefix,suffix:l.suffix||this.FINAL_CONFIG.chart.labels.suffix,datapoint:l})),_=m.ticks.map(c=>{const f=(c-m.min)/(m.max-m.min);return{y:c>=0?S-I*f:S+I*f,value:c,prefix:l.prefix||this.FINAL_CONFIG.chart.labels.prefix,suffix:l.suffix||this.FINAL_CONFIG.chart.labels.suffix,datapoint:l}});return{...l,yOffset:y,autoScaleYLabels:_,individualHeight:I,scaleYLabels:l.autoScaling?_:x,individualScale:l.autoScaling?m:F,individualMax:l.autoScaling?A:C,zeroPosition:l.autoScaling?S:b,curve:l.autoScaling?w:h,plots:l.autoScaling?s:a,area:l.useArea?this.mutableConfig.useIndividualScale?this.createIndividualArea(l.autoScaling?s:a,l.autoScaling?S:b):this.createArea(a):""}})},plotSet(){return this.activeSeriesWithStackRatios.filter(l=>l.type==="plot").map(l=>{this.checkAutoScaleError(l);const i=Math.min(...l.absoluteValues.filter(x=>![null,void 0].includes(x))),n=Math.max(...l.absoluteValues.filter(x=>![null,void 0].includes(x)))||1,r={ratios:l.absoluteValues.filter(x=>![null,void 0].includes(x)).map(x=>(x-i)/(n-i)),valueMin:i,valueMax:n},t={max:l.scaleMax||Math.max(...l.absoluteValues)||1,min:l.scaleMin||Math.min(...l.absoluteValues)>0?0:Math.min(...l.absoluteValues)},g=l.scaleSteps||this.FINAL_CONFIG.chart.grid.labels.yAxis.commonScaleSteps,k=1.0000001,F=this.calculateNiceScaleWithExactExtremes(t.min,t.max===t.min?t.max*k:t.max,g),m=this.calculateNiceScaleWithExactExtremes(r.valueMin,r.valueMax===r.valueMin?r.valueMax*k:r.valueMax,g),N=F.min>=0?0:Math.abs(F.min),L=0,C=F.max+N,A=m.max+Math.abs(L),y=this.mutableConfig.isStacked?this.drawingArea.height*(1-l.cumulatedStackRatio):0,I=this.mutableConfig.isStacked?this.drawingArea.height*l.stackRatio-this.FINAL_CONFIG.chart.grid.labels.yAxis.gap:this.drawingArea.height,b=this.drawingArea.bottom-y-I*N/C,S=this.drawingArea.bottom-y-I*L/A,a=l.series.map((x,_)=>{const c=this.mutableConfig.useIndividualScale?(l.absoluteValues[_]+Math.abs(N))/C:this.ratioToMax(x);return{x:this.checkNaN(this.drawingArea.left+this.slot.plot/2+this.slot.plot*_),y:this.checkNaN(this.drawingArea.bottom-y-I*c),value:l.absoluteValues[_],comment:l.comments&&l.comments.slice(this.slicer.start,this.slicer.end)[_]||""}}),o=l.absoluteValues.map(x=>m.min>=0?(x-Math.abs(m.min))/(m.max-Math.abs(m.min)):(x+Math.abs(m.min))/(m.max+Math.abs(m.min))),s=l.series.map((x,_)=>({x:this.checkNaN(this.drawingArea.left+this.slot.plot/2+this.slot.plot*_),y:this.checkNaN(this.drawingArea.bottom-y-(I*o[_]||0)),value:l.absoluteValues[_],comment:l.comments&&l.comments.slice(this.slicer.start,this.slicer.end)[_]||""})),h=F.ticks.map(x=>({y:x>=0?b-I*(x/C):b+I*Math.abs(x)/C,value:x,prefix:l.prefix||this.FINAL_CONFIG.chart.labels.prefix,suffix:l.suffix||this.FINAL_CONFIG.chart.labels.suffix,datapoint:l})),w=m.ticks.map(x=>{const _=(x-m.min)/(m.max-m.min);return{y:x>=0?S-I*_:S+I*_,value:x,prefix:l.prefix||this.FINAL_CONFIG.chart.labels.prefix,suffix:l.suffix||this.FINAL_CONFIG.chart.labels.suffix,datapoint:l}});return{...l,yOffset:y,autoScaleYLabels:w,individualHeight:I,scaleYLabels:l.autoScaling?w:h,individualScale:l.autoScaling?m:F,individualMax:l.autoScaling?A:C,zeroPosition:l.autoScaling?S:b,plots:l.autoScaling?s:a}})},drawingArea(){const l=this.mutableConfig.useIndividualScale&&this.FINAL_CONFIG.chart.grid.labels.show?this.absoluteDataset.filter(i=>!this.segregatedSeries.includes(i.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+l,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+l)}},max(){return this.FINAL_CONFIG.chart.grid.labels.yAxis.scaleMax?this.FINAL_CONFIG.chart.grid.labels.yAxis.scaleMax:Math.max(...this.safeDataset.filter(l=>!this.segregatedSeries.includes(l.id)).map(l=>Math.max(...l.series)))},min(){if(this.FINAL_CONFIG.chart.grid.labels.yAxis.scaleMin!==null)return this.FINAL_CONFIG.chart.grid.labels.yAxis.scaleMin;const l=Math.min(...this.safeDataset.filter(i=>!this.segregatedSeries.includes(i.id)).map(i=>Math.min(...i.series)));return l>0?0:l},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(l=>l.type==="bar").filter(l=>!this.segregatedSeries.includes(l.id)).length,plot:this.drawingArea.width/this.maxSeries,line:this.drawingArea.width/this.maxSeries}},barSlot(){const l=this.safeDataset.filter(i=>i.type==="bar").filter(i=>!this.segregatedSeries.includes(i.id)).length;return this.drawingArea.width/this.maxSeries/l-this.barPeriodGap*l},barPeriodGap(){return this.slot.line*this.FINAL_CONFIG.bar.periodGap},maxSlot(){return Math.max(...Object.values(this.slot).filter(l=>l!==1/0))},table(){if(this.safeDataset.length===0)return{head:[],body:[],config:{},columnNames:[]};const l=this.relativeDataset.map(n=>({label:n.name,color:n.color,type:n.type})),i=[];return this.timeLabels.forEach((n,u)=>{const r=[n];this.relativeDataset.forEach(t=>{r.push(this.canShowValue(t.absoluteValues[u])?Number(t.absoluteValues[u].toFixed(this.FINAL_CONFIG.table.rounding)):"")}),i.push(r)}),{head:l,body:i}},dataTable(){const l=this.FINAL_CONFIG.table.showSum;let i=[""].concat(this.relativeDataset.map(t=>t.name));l&&(i=i.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 t=0;t<this.maxSeries;t+=1){const g=this.relativeDataset.map(k=>k.absoluteValues[t]??0).reduce((k,F)=>k+F,0);n.push([this.timeLabels[t]??"-"].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[t]??0,this.dataLabel({p:k.prefix||this.FINAL_CONFIG.chart.labels.prefix,v:k.absoluteValues[t]??0,s:k.suffix||this.FINAL_CONFIG.chart.labels.suffix,r:this.FINAL_CONFIG.table.rounding})))).concat(l?(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},r=[this.FINAL_CONFIG.table.columnNames.period].concat(this.relativeDataset.map(t=>t.name)).concat(this.FINAL_CONFIG.table.columnNames.total);return{head:i,body:n,config:u,colNames:r}},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(l=>({shape:l.shape||null,name:l.name,color:l.color,type:l.type,value:l.absoluteValues.find((i,n)=>n===this.selectedSerieIndex),comments:l.comments||[],prefix:l.prefix||this.FINAL_CONFIG.chart.labels.prefix,suffix:l.suffix||this.FINAL_CONFIG.chart.labels.suffix}))},tooltipContent(){let l="",i=this.selectedSeries.map(r=>r.value).filter(r=>this.isSafeValue(r)&&r!==null).reduce((r,t)=>Math.abs(r)+Math.abs(t),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&&(l+=`<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(r=>{if(this.isSafeValue(r.value)){let t="",g="";switch(this.icons[r.type]){case"bar":t=`<svg viewBox="0 0 12 12" height="14" width="14"><rect x="0" y="0" rx="1" stroke="none" height="12" width="12" fill="${r.color}" /></svg>`;break;case"line":!r.shape||!["star","triangle","square","diamond","pentagon","hexagon"].includes(r.shape)?g=`<circle cx="10" cy="8" r="4" stroke="${this.FINAL_CONFIG.chart.tooltip.backgroundColor}" stroke-width="1" fill="${r.color}" />`:r.shape==="triangle"?g=`<path d="${d.createPolygonPath({plot:{x:10,y:8},radius:4,sides:3,rotation:.52}).path}" fill="${r.color}" stroke="${this.FINAL_CONFIG.chart.tooltip.backgroundColor}" stroke-width="1" />`:r.shape==="square"?g=`<path d="${d.createPolygonPath({plot:{x:10,y:8},radius:4,sides:4,rotation:.8}).path}" fill="${r.color}" stroke="${this.FINAL_CONFIG.chart.tooltip.backgroundColor}" stroke-width="1" />`:r.shape==="diamond"?g=`<path d="${d.createPolygonPath({plot:{x:10,y:8},radius:4,sides:4,rotation:0}).path}" fill="${r.color}" stroke="${this.FINAL_CONFIG.chart.tooltip.backgroundColor}" stroke-width="1" />`:r.shape==="pentagon"?g=`<path d="${d.createPolygonPath({plot:{x:10,y:8},radius:4,sides:5,rotation:.95}).path}" fill="${r.color}" stroke="${this.FINAL_CONFIG.chart.tooltip.backgroundColor}" stroke-width="1" />`:r.shape==="hexagon"?g=`<path d="${d.createPolygonPath({plot:{x:10,y:8},radius:4,sides:6,rotation:0}).path}" fill="${r.color}" stroke="${this.FINAL_CONFIG.chart.tooltip.backgroundColor}" stroke-width="1" />`:r.shape==="star"&&(g=`<polygon stroke="${this.FINAL_CONFIG.chart.tooltip.backgroundColor}" stroke-width="1" fill="${r.color}" points="${d.createStar({plot:{x:10,y:8},radius:4})}" />`),t=`<svg viewBox="0 0 20 12" height="14" width="20"><rect rx="3" x="0" y="6" stroke="none" height="4" width="20" fill="${r.color}" />${g}</svg>`;break;case"plot":if(!r.shape||!["star","triangle","square","diamond","pentagon","hexagon"].includes(r.shape)){t=`<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="${r.color}" /></svg>`;break}if(r.shape==="star"){t=`<svg viewBox="0 0 12 12" height="14" width="14"><polygon stroke="${this.FINAL_CONFIG.chart.tooltip.backgroundColor}" stroke-width="1" fill="${r.color}" points="${d.createStar({plot:{x:6,y:6},radius:5})}" /></svg>`;break}if(r.shape==="triangle"){t=`<svg viewBox="0 0 12 12" height="14" width="14"><path d="${d.createPolygonPath({plot:{x:6,y:6},radius:6,sides:3,rotation:.52}).path}" fill="${r.color}" stroke="${this.FINAL_CONFIG.chart.tooltip.backgroundColor}" stroke-width="1" /></svg>`;break}if(r.shape==="square"){t=`<svg viewBox="0 0 12 12" height="14" width="14"><path d="${d.createPolygonPath({plot:{x:6,y:6},radius:6,sides:4,rotation:.8}).path}" fill="${r.color}" stroke="${this.FINAL_CONFIG.chart.tooltip.backgroundColor}" stroke-width="1" /></svg>`;break}if(r.shape==="diamond"){t=`<svg viewBox="0 0 12 12" height="14" width="14"><path d="${d.createPolygonPath({plot:{x:6,y:6},radius:5,sides:4,rotation:0}).path}" fill="${r.color}" stroke="${this.FINAL_CONFIG.chart.tooltip.backgroundColor}" stroke-width="1" /></svg>`;break}if(r.shape==="pentagon"){t=`<svg viewBox="0 0 12 12" height="14" width="14"><path d="${d.createPolygonPath({plot:{x:6,y:6},radius:5,sides:5,rotation:.95}).path}" fill="${r.color}" stroke="${this.FINAL_CONFIG.chart.tooltip.backgroundColor}" stroke-width="1" /></svg>`;break}if(r.shape==="hexagon"){t=`<svg viewBox="0 0 12 12" height="14" width="14"><path d="${d.createPolygonPath({plot:{x:6,y:6},radius:5,sides:6,rotation:0}).path}" fill="${r.color}" stroke="${this.FINAL_CONFIG.chart.tooltip.backgroundColor}" stroke-width="1" /></svg>`;break}}l+=`<div style="display:flex;flex-direction:row; align-items:center;gap:3px;"><div style="width:20px">${t}</div> ${r.name}: <b>${this.FINAL_CONFIG.chart.tooltip.showValue?this.applyDataLabel(r.type==="line"?this.FINAL_CONFIG.line.labels.formatter:r.type==="bar"?this.FINAL_CONFIG.bar.labels.formatter:this.FINAL_CONFIG.plot.labels.formatter,r.value,this.dataLabel({p:r.prefix,v:r.value,s:r.suffix,r:this.FINAL_CONFIG.chart.tooltip.roundingValue}),{datapoint:r}):""}</b> ${this.FINAL_CONFIG.chart.tooltip.showPercentage?`(${d.dataLabel({v:this.checkNaN(Math.abs(r.value)/i*100),s:"%",r:this.FINAL_CONFIG.chart.tooltip.roundingPercentage})})`:""}</div>`,this.FINAL_CONFIG.chart.comments.showInTooltip&&r.comments.length&&r.comments.slice(this.slicer.start,this.slicer.end)[this.selectedSerieIndex]&&(l+=`<div class="vue-data-ui-tooltip-comment" style="background:${r.color}20; padding: 6px; margin-bottom: 6px; border-left: 1px solid ${r.color}">${r.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}">${l}</div>`)},svg(){return{height:this.height,width:this.width}},yLabels(){return this.niceScale.ticks.map(l=>({y:l>=0?this.zero-this.drawingArea.height*this.ratioToMax(l):this.zero+this.drawingArea.height*this.ratioToMax(Math.abs(l)),value:l,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",l=>{this.clientPosition={x:l.clientX,y:l.clientY}})},methods:{abbreviate:d.abbreviate,adaptColorToBackground:d.adaptColorToBackground,applyDataLabel:d.applyDataLabel,assignStackRatios:d.assignStackRatios,calcLinearProgression:d.calcLinearProgression,calculateNiceScaleWithExactExtremes:d.calculateNiceScaleWithExactExtremes,checkNaN:d.checkNaN,closestDecimal:d.closestDecimal,convertColorToHex:d.convertColorToHex,convertConfigColors:d.convertConfigColors,convertCustomPalette:d.convertCustomPalette,createCsvContent:d.createCsvContent,createSmoothPath:d.createSmoothPath,createTSpans:d.createTSpans,dataLabel:d.dataLabel,downloadCsv:d.downloadCsv,error:d.error,functionReturnsString:d.functionReturnsString,hasDeepProperty:d.hasDeepProperty,isFunction:d.isFunction,isSafeValue:d.isSafeValue,largestTriangleThreeBucketsArray:d.largestTriangleThreeBucketsArray,objectIsEmpty:d.objectIsEmpty,setOpacity:d.setOpacity,shiftHue:d.shiftHue,translateSize:d.translateSize,treeShake:d.treeShake,useMouse:v.useMouse,useNestedProp:G.useNestedProp,toggleAnnotator(){this.isAnnotator=!this.isAnnotator},getHighlightAreaPosition(l){const i=this.drawingArea.left+this.drawingArea.width/this.maxSeries*(l.from-this.slicer.start),n=this.drawingArea.width/(this.slicer.end-this.slicer.start)*l.span<0?1e-5:this.drawingArea.width/(this.slicer.end-this.slicer.start)*l.span;return{x:i<this.drawingArea.left?this.drawingArea.left:i,width:n}},prepareConfig(){const l=d.useConfig().vue_ui_xy;if(!Object.keys(this.config||{}).length)return l;const i=this.useNestedProp({userConfig:this.config,defaultConfig:l});return this.config&&this.hasDeepProperty(this.config,"chart.highlightArea")&&(Array.isArray(this.config.chart.highlightArea)?i.chart.highlightArea=this.config.chart.highlightArea:i.chart.highlightArea=[this.config.chart.highlightArea]),this.config&&this.hasDeepProperty(this.config,"chart.grid.labels.yAxis.scaleMin")?i.chart.grid.labels.yAxis.scaleMin=this.config.chart.grid.labels.yAxis.scaleMin:i.chart.grid.labels.yAxis.scaleMin=null,this.config&&this.hasDeepProperty(this.config,"chart.grid.labels.yAxis.scaleMax")?i.chart.grid.labels.yAxis.scaleMax=this.config.chart.grid.labels.yAxis.scaleMax:i.chart.grid.labels.yAxis.scaleMax=null,i.theme?{...G.useNestedProp({userConfig:this.themes.vue_ui_xy[i.theme]||this.config,defaultConfig:i}),customPalette:this.themePalettes[i.theme]||this.palette}:i},prepareChart(){if(this.objectIsEmpty(this.dataset)?this.error({componentName:"VueUiXy",type:"dataset"}):this.dataset.forEach((l,i)=>{[null,void 0].includes(l.name)&&this.error({componentName:"VueUiXy",type:"datasetSerieAttribute",property:"name (string)",index:i})}),this.FINAL_CONFIG.showWarnings&&this.dataset.forEach(l=>{l.series.forEach((i,n)=>{this.isSafeValue(i)||console.warn(`VueUiXy has detected an unsafe value in your dataset:
|
|
2
|
-
-----> The serie '${l.name}' contains the value '${i}' at index ${n}.
|
|
3
|
-
'${i}' 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 i=this.$refs.chart.parentNode,{height:n,width:u}=i.getBoundingClientRect();let r=null,t=0;this.FINAL_CONFIG.chart.title.show&&(r=this.$refs.chartTitle,t=r.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 F=null,m=0;this.FINAL_CONFIG.chart.legend.show&&(F=this.$refs.chartLegend,m=F.getBoundingClientRect().height);let N=0;this.$refs.source&&(N=this.$refs.source.getBoundingClientRect().height);let L=0;this.$refs.noTitle&&(L=this.$refs.source.getBoundingClientRect().height),this.height=n-t-m-k-N-L,this.width=u,this.viewBox=`0 0 ${this.width<0?10:this.width} ${this.height<0?10:this.height}`,this.convertSizes(),new ResizeObserver(A=>{for(const y of A)this.$refs.chartTitle&&(t=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.$refs.source&&(N=this.$refs.source.getBoundingClientRect().height),this.height=y.contentBoxSize[0].blockSize-t-m-k-N-24,this.width=y.contentBoxSize[0].inlineSize,this.viewBox=`0 0 ${this.width<0?10:this.width} ${this.height<0?10:this.height}`,this.convertSizes()}).observe(i)}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(l){this.selectedMinimapIndex=l},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(l){l.autoScaling&&(this.FINAL_CONFIG.chart.grid.labels.yAxis.useIndividualScale||console.warn(`VueUiXy (datapoint: ${l.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: ${l.name}) : autoScaling only works when config.chart.grid.labels.yAxis.stacked is set to true`))},createArea(l){if(!l[0])return[-10,-10,"",-10,-10];const i={x:l[0].x,y:this.zero},n={x:l.at(-1).x,y:this.zero},u=[];return l.forEach(r=>{u.push(`${r.x},${r.y} `)}),[i.x,i.y,...u,n.x,n.y].toString()},createIndividualArea(l,i){if(!l[0])return[-10,-10,"",-10,-10];const n={x:l[0]?l[0].x:Math.min(...l.filter(t=>!!t).map(t=>t.x)),y:i},u={x:l.at(-1)?l.at(-1).x:Math.min(...l.filter(t=>!!t).map(t=>t.x)),y:i},r=[];return l.filter(t=>!!t).forEach(t=>{r.push(`${t.x},${t.y} `)}),[n.x,n.y,...r,u.x,u.y].toString()},createStar:d.createStar,createPolygonPath:d.createPolygonPath,fillArray(l,i){let n=Array(l).fill(0);for(let u=0;u<i.length&&u<l;u+=1)n[u]=i[u];return n},refreshSlicer(){this.slicer={start:0,end:Math.max(...this.dataset.map(l=>this.largestTriangleThreeBucketsArray({data:l.series,threshold:this.FINAL_CONFIG.downsample.threshold}).length))},this.slicerStep+=1},calcRectHeight(l){return l.value>=0?this.checkNaN(this.zero-l.y<=0?1e-5:this.zero-l.y):this.checkNaN(l.y-this.zero<=0?1e-5:l.y-this.zero)},calcIndividualHeight(l){return l.value>=0?this.checkNaN(l.zeroPosition-l.y<=0?1e-5:l.zeroPosition-l.y):this.checkNaN(l.y-l.zeroPosition<=0?1e-5:l.zeroPosition-l.y)},calcRectWidth(){return this.mutableConfig.useIndividualScale&&this.mutableConfig.isStacked?this.slot.line-this.drawingArea.width/this.maxSeries*.1:this.slot.bar},calcRectX(l){return this.mutableConfig.useIndividualScale&&this.mutableConfig.isStacked?l.x+this.drawingArea.width/this.maxSeries*.05:l.x+this.slot.bar/2},calcRectY(l){return l.value>=0?l.y:this.zero},calcIndividualRectY(l){return l.value>=0?l.y:[null,void 0,NaN,1/0,-1/0].includes(l.zeroPosition)?0:l.zeroPosition},canShowValue(l){return![null,void 0,NaN,1/0,-1/0].includes(l)},findClosestValue(l,i){let n=i[0],u=Math.abs(l-i[0]);for(let r=1;r<i.length;r+=1){const t=Math.abs(l-i[r]);t<u&&i[r]<l&&(n=i[r],u=t)}return n},ratioToMax(l){return l/(this.canShowValue(this.absoluteMax)?this.absoluteMax:1)},selectX(l){this.$emit("selectX",{dataset:this.relativeDataset.map(i=>({name:i.name,value:[null,void 0,NaN].includes(i.absoluteValues[l])?null:i.absoluteValues[l],color:i.color,type:i.type})),index:l,indexLabel:this.FINAL_CONFIG.chart.grid.labels.xAxisLabels.values[l]})},getData(){return this.absoluteDataset.map(l=>({values:l.absoluteValues,color:l.color,name:l.name,type:l.type}))},segregate(l){if(this.segregatedSeries.includes(l.id))this.segregatedSeries=this.segregatedSeries.filter(i=>i!==l.id);else{if(this.segregatedSeries.length+1===this.safeDataset.length)return;this.segregatedSeries.push(l.id)}this.$emit("selectLegend",this.relativeDataset.map(i=>({name:i.name,values:i.absoluteValues,color:i.color,type:i.type}))),this.segregateStep+=1},toggleTooltipVisibility(l,i=null){this.isTooltip=l,l?this.selectedSerieIndex=i:this.selectedSerieIndex=null},toggleFullscreen(l){this.isFullscreen=l,this.step+=1},showSpinnerPdf(){this.isPrinting=!0},async generatePdf(){this.showSpinnerPdf(),clearTimeout(this.__to__),this.isPrinting=!0,this.__to__=setTimeout(async()=>{try{const{default:l}=await Promise.resolve().then(()=>require("./pdf-9cRTLjY8.cjs"));await l({domElement:document.getElementById(`vue-ui-xy_${this.uniqueId}`),fileName:this.FINAL_CONFIG.chart.title.text||"vue-ui-xy"})}catch(l){console.error("Error generating PDF:",l)}finally{this.isPrinting=!1}},100)},generateCsv(){const l=[[this.FINAL_CONFIG.chart.title.text],[this.FINAL_CONFIG.chart.title.subtitle.text],[""]],i=["",...this.table.head.map(t=>t.label)],n=this.table.body,u=l.concat([i]).concat(n),r=this.createCsvContent(u);this.downloadCsv({csvContent:r,title:this.FINAL_CONFIG.chart.title.text||"vue-ui-xy"})},showSpinnerImage(){this.isImaging=!0},async generateImage(){this.showSpinnerImage(),clearTimeout(this.__to__),this.isImaging=!0,this.__to__=setTimeout(async()=>{try{const{default:l}=await Promise.resolve().then(()=>require("./img-BFCs759q.cjs"));await l({domElement:document.getElementById(`vue-ui-xy_${this.uniqueId}`),fileName:this.FINAL_CONFIG.chart.title.text||"vue-ui-xy",format:"png"})}catch(l){console.error("Error generating image:",l)}finally{this.isImaging=!1}},100)}}},U=["id"],Z={key:1,ref:"noTitle",class:"vue-data-ui-no-title-space",style:"height:36px; width: 100%; background:transparent"},J=["viewBox"],K={key:0},Q={class:"vue-ui-xy-grid"},j=["stroke","x1","x2","y1","y2"],$=["stroke","x1","x2","y1","y2"],ee={key:1},te=["x1","x2","y1","y2","stroke"],le=["x1","x2","y1","y2","stroke"],re=["x1","x2","y1","y2","stroke"],ae={key:3},ie=["x1","x2","y1","y2","stroke"],se=["id"],oe=["stop-color"],ne=["stop-color"],ce=["stop-color"],he=["id"],de=["stop-color"],ue=["stop-color"],me=["stop-color"],ge=["id"],Ne=["stop-color"],fe=["stop-color"],Ie=["id"],ke=["stop-color"],xe=["stop-color"],be=["id"],Fe=["stop-color"],ye=["stop-color"],_e=["x","y","height","width","fill"],Ce=["x","y","width"],Ae=["x","y","height","width","fill"],Se=["x","y","height","width","rx","fill","stroke","stroke-width"],Le=["width","x","y"],we={key:0},Oe=["id"],pe=["fill"],ve=["x1","x2","y1","y2","stroke","marker-end"],Ge=["x","y","font-size","fill"],Be=["stroke","x1","x2","y1","y2"],Ee={key:2},ze=["x1","x2","y1","y2","stroke","stroke-width","stroke-dasharray"],Ve=["x","y","width","height","stroke","stroke-width","stroke-linecap","stroke-linejoin","stroke-dasharray"],Pe={key:4},Me=["x1","x2","y1","y2","stroke","stroke-width"],Te=["fill","font-size","transform"],De=["x1","x2","y1","y2","stroke"],Re=["x","y","font-size","fill"],He=["x1","x2","y1","y2","stroke"],We=["x","y","font-size","fill"],qe=["width","x","y"],Ye={style:{width:"100%"}},Xe={key:0},Ue=["id"],Ze=["fill"],Je=["x1","x2","y1","y2","stroke","marker-end"],Ke=["x","y","font-size","fill"],Qe=["d","stroke","stroke-width","stroke-dasharray"],je={key:1},$e=["x1","x2","y1","y2","stroke","stroke-width","stroke-dasharray"],et={key:0},tt=["d","fill"],lt=["d","fill"],rt=["d","stroke","stroke-width","stroke-dasharray"],at={key:2},it=["x1","x2","y1","y2","stroke","stroke-width","stroke-dasharray"],st=["width","x","y"],ot={style:{width:"100%"}},nt={key:3},ct=["id"],ht=["fill"],dt=["x1","x2","y1","y2","stroke","marker-end"],ut=["x","y","font-size","fill"],mt={key:5},gt=["x","y","font-size","fill"],Nt=["x","y","font-size","fill","font-weight"],ft={key:6},It=["x","y","font-size","fill"],kt=["x","y"],xt=["x","y"],bt={key:7},Ft=["x","y","font-size","fill"],yt=["x","y"],_t=["x","y"],Ct=["x","y","font-size","fill","innerHTML"],At=["x","y","font-size","fill","innerHTML"],St=["x","y","font-size","fill","innerHTML"],Lt=["x","y","font-size","fill","innerHTML"],wt=["x","y","width","height","fill","onMouseenter"],Ot=["font-size","fill","transform"],pt=["x","y","font-size","fill"],vt={key:9},Gt=["text-anchor","font-size","fill","transform"],Bt=["x","y","height","width","onMouseenter","onClick"],Et={key:10},zt=["x","y"],Vt=["cx","cy","r","fill"],Pt={key:5,class:"vue-data-ui-watermark"},Mt=["onClick"],Tt={key:0,viewBox:"0 0 20 12",height:"14",width:"20"},Dt=["fill"],Rt={key:1,viewBox:"0 0 12 12",height:"14",width:"14"},Ht=["fill"],Wt={key:9,ref:"chartLegend"},qt={key:10,ref:"source",dir:"auto"},Yt={style:{display:"flex","flex-direction":"row",gap:"6px","align-items":"center","padding-left":"6px"},"data-html2canvas-ignore":""},Xt=["innerHTML"];function Ut(l,i,n,u,r,t){const g=e.resolveComponent("PenAndPaper"),k=e.resolveComponent("Title"),F=e.resolveComponent("UserOptions"),m=e.resolveComponent("PackageVersion"),N=e.resolveComponent("Shape"),L=e.resolveComponent("Skeleton"),C=e.resolveComponent("Slicer"),A=e.resolveComponent("Tooltip"),y=e.resolveComponent("BaseIcon"),I=e.resolveComponent("TableSparkline"),b=e.resolveComponent("DataTable"),S=e.resolveComponent("Accordion");return e.openBlock(),e.createElementBlock("div",{id:`vue-ui-xy_${r.uniqueId}`,class:e.normalizeClass(`vue-ui-xy ${r.isFullscreen?"vue-data-ui-wrapper-fullscreen":""} ${t.FINAL_CONFIG.useCssAnimation?"":"vue-ui-dna"}`),ref:"chart",style:e.normalizeStyle(`background:${t.FINAL_CONFIG.chart.backgroundColor}; color:${t.FINAL_CONFIG.chart.color};width:100%;font-family:${t.FINAL_CONFIG.chart.fontFamily};${t.FINAL_CONFIG.responsive?"height: 100%":""}`)},[t.FINAL_CONFIG.chart.userOptions.buttons.annotator?(e.openBlock(),e.createBlock(g,{key:0,parent:l.$refs.chart,backgroundColor:t.FINAL_CONFIG.chart.backgroundColor,color:t.FINAL_CONFIG.chart.color,active:r.isAnnotator,onClose:t.toggleAnnotator},null,8,["parent","backgroundColor","color","active","onClose"])):e.createCommentVNode("",!0),t.hasOptionsNoTitle?(e.openBlock(),e.createElementBlock("div",Z,null,512)):e.createCommentVNode("",!0),t.FINAL_CONFIG.chart.title.show?(e.openBlock(),e.createElementBlock("div",{key:2,ref:"chartTitle",class:"vue-ui-xy-title",style:e.normalizeStyle(`font-family:${t.FINAL_CONFIG.chart.fontFamily}`)},[(e.openBlock(),e.createBlock(k,{key:`title_${r.titleStep}`,config:{title:{cy:"xy-div-title",...t.FINAL_CONFIG.chart.title},subtitle:{cy:"xy-div-subtitle",...t.FINAL_CONFIG.chart.title.subtitle}}},null,8,["config"]))],4)):e.createCommentVNode("",!0),t.FINAL_CONFIG.chart.userOptions.show&&t.isDataset?(e.openBlock(),e.createBlock(F,{ref:"defails",key:`user_options_${r.step}`,backgroundColor:t.FINAL_CONFIG.chart.backgroundColor,color:t.FINAL_CONFIG.chart.color,isPrinting:r.isPrinting,isImaging:r.isImaging,uid:r.uniqueId,hasTooltip:t.FINAL_CONFIG.chart.userOptions.buttons.tooltip&&t.FINAL_CONFIG.chart.tooltip.show,hasPdf:t.FINAL_CONFIG.chart.userOptions.buttons.pdf,hasXls:t.FINAL_CONFIG.chart.userOptions.buttons.csv,hasImg:t.FINAL_CONFIG.chart.userOptions.buttons.img,hasLabel:t.FINAL_CONFIG.chart.userOptions.buttons.labels,hasTable:t.FINAL_CONFIG.chart.userOptions.buttons.table,hasStack:n.dataset.length>1&&t.FINAL_CONFIG.chart.userOptions.buttons.stack,hasFullscreen:t.FINAL_CONFIG.chart.userOptions.buttons.fullscreen,isStacked:r.mutableConfig.isStacked,isFullscreen:r.isFullscreen,chartElement:l.$refs.chart,position:t.FINAL_CONFIG.chart.userOptions.position,isTooltip:r.mutableConfig.showTooltip,titles:{...t.FINAL_CONFIG.chart.userOptions.buttonTitles},hasAnnotator:t.FINAL_CONFIG.chart.userOptions.buttons.annotator,isAnnotation:r.isAnnotator,onToggleFullscreen:t.toggleFullscreen,onGeneratePdf:t.generatePdf,onGenerateCsv:t.generateCsv,onGenerateImage:t.generateImage,onToggleTable:t.toggleTable,onToggleLabels:t.toggleLabels,onToggleStack:t.toggleStack,onToggleTooltip:t.toggleTooltip,onToggleAnnotator:t.toggleAnnotator},e.createSlots({_:2},[l.$slots.optionTooltip?{name:"optionTooltip",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionTooltip",{},void 0,!0)]),key:"0"}:void 0,l.$slots.optionPdf?{name:"optionPdf",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionPdf",{},void 0,!0)]),key:"1"}:void 0,l.$slots.optionCsv?{name:"optionCsv",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionCsv",{},void 0,!0)]),key:"2"}:void 0,l.$slots.optionImg?{name:"optionImg",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionImg",{},void 0,!0)]),key:"3"}:void 0,l.$slots.optionTable?{name:"optionTable",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionTable",{},void 0,!0)]),key:"4"}:void 0,l.$slots.optionLabels?{name:"optionLabels",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionLabels",{},void 0,!0)]),key:"5"}:void 0,l.$slots.optionStack?{name:"optionStack",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionStack",{},void 0,!0)]),key:"6"}:void 0,l.$slots.optionFullscreen?{name:"optionFullscreen",fn:e.withCtx(({toggleFullscreen:a,isFullscreen:o})=>[e.renderSlot(l.$slots,"optionFullscreen",e.normalizeProps(e.guardReactiveProps({toggleFullscreen:a,isFullscreen:o})),void 0,!0)]),key:"7"}:void 0,l.$slots.optionAnnotator?{name:"optionAnnotator",fn:e.withCtx(({toggleAnnotator:a,isAnnotator:o})=>[e.renderSlot(l.$slots,"optionAnnotator",e.normalizeProps(e.guardReactiveProps({toggleAnnotator:a,isAnnotator:o})),void 0,!0)]),key:"8"}:void 0]),1032,["backgroundColor","color","isPrinting","isImaging","uid","hasTooltip","hasPdf","hasXls","hasImg","hasLabel","hasTable","hasStack","hasFullscreen","isStacked","isFullscreen","chartElement","position","isTooltip","titles","hasAnnotator","isAnnotation","onToggleFullscreen","onGeneratePdf","onGenerateCsv","onGenerateImage","onToggleTable","onToggleLabels","onToggleStack","onToggleTooltip","onToggleAnnotator"])):e.createCommentVNode("",!0),t.isDataset?(e.openBlock(),e.createElementBlock("svg",{key:4,xmlns:"http://www.w3.org/2000/svg",class:e.normalizeClass([{"vue-data-ui-fullscreen--on":r.isFullscreen,"vue-data-ui-fulscreen--off":!r.isFullscreen},"vue-ui-xy-svg"]),width:"100%",viewBox:r.viewBox,style:e.normalizeStyle(`background: transparent; color:${t.FINAL_CONFIG.chart.color}; font-family:${t.FINAL_CONFIG.chart.fontFamily}`)},[e.createVNode(m),t.maxSeries>0?(e.openBlock(),e.createElementBlock("g",K,[e.createElementVNode("g",Q,[t.FINAL_CONFIG.chart.grid.labels.xAxis.showBaseline?(e.openBlock(),e.createElementBlock("line",{key:0,stroke:t.FINAL_CONFIG.chart.grid.stroke,"stroke-width":"1",x1:t.drawingArea.left+t.xPadding,x2:t.drawingArea.right-t.xPadding,y1:t.drawingArea.bottom,y2:t.drawingArea.bottom,"stroke-linecap":"round"},null,8,j)):e.createCommentVNode("",!0),r.mutableConfig.useIndividualScale?t.FINAL_CONFIG.chart.grid.showHorizontalLines?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:2},e.renderList(t.allScales,a=>(e.openBlock(),e.createElementBlock("g",null,[a.id===r.selectedScale&&a.yLabels.length?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(a.yLabels,o=>(e.openBlock(),e.createElementBlock("line",{x1:t.drawingArea.left+t.xPadding,x2:t.drawingArea.right-t.xPadding,y1:t.checkNaN(o.y),y2:t.checkNaN(o.y),stroke:a.color,"stroke-width":.5,"stroke-linecap":"round"},null,8,le))),256)):a.yLabels.length?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:1},e.renderList(a.yLabels,o=>(e.openBlock(),e.createElementBlock("line",{x1:t.drawingArea.left+t.xPadding,x2:t.drawingArea.right-t.xPadding,y1:t.checkNaN(o.y),y2:t.checkNaN(o.y),stroke:t.FINAL_CONFIG.chart.grid.stroke,"stroke-width":.5,"stroke-linecap":"round"},null,8,re))),256)):e.createCommentVNode("",!0)]))),256)):e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[t.FINAL_CONFIG.chart.grid.labels.yAxis.showBaseline?(e.openBlock(),e.createElementBlock("line",{key:0,stroke:t.FINAL_CONFIG.chart.grid.stroke,"stroke-width":"1",x1:t.drawingArea.left+t.xPadding,x2:t.drawingArea.left+t.xPadding,y1:t.drawingArea.top,y2:t.drawingArea.bottom,"stroke-linecap":"round"},null,8,$)):e.createCommentVNode("",!0),t.FINAL_CONFIG.chart.grid.showHorizontalLines?(e.openBlock(),e.createElementBlock("g",ee,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.yLabels,a=>(e.openBlock(),e.createElementBlock("line",{x1:t.drawingArea.left+t.xPadding,x2:t.drawingArea.right-t.xPadding,y1:t.checkNaN(a.y),y2:t.checkNaN(a.y),stroke:t.FINAL_CONFIG.chart.grid.stroke,"stroke-width":.5,"stroke-linecap":"round"},null,8,te))),256))])):e.createCommentVNode("",!0)],64)),t.FINAL_CONFIG.chart.grid.showVerticalLines?(e.openBlock(),e.createElementBlock("g",ae,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.maxSeries+(t.FINAL_CONFIG.chart.grid.position==="middle"?1:0),(a,o)=>(e.openBlock(),e.createElementBlock("line",{key:`grid_vertical_line_${o}`,x1:t.drawingArea.width/t.maxSeries*o+t.drawingArea.left+t.xPadding,x2:t.drawingArea.width/t.maxSeries*o+t.drawingArea.left+t.xPadding,y1:t.drawingArea.top,y2:t.drawingArea.bottom,"stroke-width":"0.5",stroke:t.FINAL_CONFIG.chart.grid.stroke},null,8,ie))),128))])):e.createCommentVNode("",!0)]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.barSet,(a,o)=>(e.openBlock(),e.createElementBlock("defs",{key:`def_rect_${o}`},[e.createElementVNode("linearGradient",{id:`rectGradient_pos_${o}_${r.uniqueId}`,x2:"0%",y2:"100%"},[e.createElementVNode("stop",{offset:"0%","stop-color":a.color},null,8,oe),e.createElementVNode("stop",{offset:"62%","stop-color":`${t.shiftHue(a.color,.02)}`},null,8,ne),e.createElementVNode("stop",{offset:"100%","stop-color":`${t.shiftHue(a.color,.05)}`},null,8,ce)],8,se),e.createElementVNode("linearGradient",{id:`rectGradient_neg_${o}_${r.uniqueId}`,x2:"0%",y2:"100%"},[e.createElementVNode("stop",{offset:"0%","stop-color":`${t.shiftHue(a.color,.05)}`},null,8,de),e.createElementVNode("stop",{offset:"38%","stop-color":`${t.shiftHue(a.color,.02)}`},null,8,ue),e.createElementVNode("stop",{offset:"100%","stop-color":a.color},null,8,me)],8,he)]))),128)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.plotSet,(a,o)=>(e.openBlock(),e.createElementBlock("defs",{key:`def_plot_${o}`},[e.createElementVNode("radialGradient",{id:`plotGradient_${o}_${r.uniqueId}`,cx:"50%",cy:"50%",r:"50%",fx:"50%",fy:"50%"},[e.createElementVNode("stop",{offset:"0%","stop-color":`${t.shiftHue(a.color,.05)}`},null,8,Ne),e.createElementVNode("stop",{offset:"100%","stop-color":a.color},null,8,fe)],8,ge)]))),128)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.lineSet,(a,o)=>(e.openBlock(),e.createElementBlock("defs",{key:`def_line_${o}`},[e.createElementVNode("radialGradient",{id:`lineGradient_${o}_${r.uniqueId}`,cx:"50%",cy:"50%",r:"50%",fx:"50%",fy:"50%"},[e.createElementVNode("stop",{offset:"0%","stop-color":`${t.shiftHue(a.color,.05)}`},null,8,ke),e.createElementVNode("stop",{offset:"100%","stop-color":a.color},null,8,xe)],8,Ie),e.createElementVNode("linearGradient",{id:`areaGradient_${o}_${r.uniqueId}`,x1:"0%",x2:"100%",y1:"0%",y2:"0%"},[e.createElementVNode("stop",{offset:"0%","stop-color":`${t.setOpacity(t.shiftHue(a.color,.03),t.FINAL_CONFIG.line.area.opacity)}`},null,8,Fe),e.createElementVNode("stop",{offset:"100%","stop-color":`${t.setOpacity(a.color,t.FINAL_CONFIG.line.area.opacity)}`},null,8,ye)],8,be)]))),128)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.highlightAreas,a=>(e.openBlock(),e.createElementBlock("g",null,[a.show?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(a.span,(o,s)=>(e.openBlock(),e.createElementBlock("g",null,[e.createElementVNode("rect",{style:e.normalizeStyle({transition:"none",opacity:a.from+s>=r.slicer.start&&a.from+s<=r.slicer.end-1?1:0}),x:t.drawingArea.left+t.drawingArea.width/t.maxSeries*(a.from+s-r.slicer.start),y:t.drawingArea.top,height:t.drawingArea.height<0?10:t.drawingArea.height,width:t.drawingArea.width/t.maxSeries<0?1e-5:t.drawingArea.width/t.maxSeries,fill:t.setOpacity(a.color,a.opacity)},null,12,_e),a.caption.text&&s===0?(e.openBlock(),e.createElementBlock("foreignObject",{key:0,x:t.drawingArea.left+t.drawingArea.width/t.maxSeries*(a.from+s-r.slicer.start)-(a.caption.width==="auto"?0:a.caption.width/2-t.drawingArea.width/t.maxSeries*a.span/2),y:t.drawingArea.top+a.caption.offsetY,style:e.normalizeStyle({overflow:"visible",opacity:a.to>=r.slicer.start&&a.from<r.slicer.end?1:0}),height:"1",width:a.caption.width==="auto"?t.drawingArea.width/t.maxSeries*a.span:a.caption.width},[e.createElementVNode("div",{style:e.normalizeStyle(`padding:${a.caption.padding}px;text-align:${a.caption.textAlign};font-size:${a.caption.fontSize}px;color:${a.caption.color};font-weight:${a.caption.bold?"bold":"normal"}`)},e.toDisplayString(a.caption.text),5)],12,Ce)):e.createCommentVNode("",!0)]))),256)):e.createCommentVNode("",!0)]))),256)),e.createElementVNode("g",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.maxSeries,(a,o)=>(e.openBlock(),e.createElementBlock("g",{key:`tooltip_trap_${o}`},[e.createElementVNode("rect",{x:t.drawingArea.left+t.drawingArea.width/t.maxSeries*o,y:t.drawingArea.top,height:t.drawingArea.height<0?10:t.drawingArea.height,width:t.drawingArea.width/t.maxSeries<0?1e-5:t.drawingArea.width/t.maxSeries,fill:[r.selectedMinimapIndex,r.selectedSerieIndex,r.selectedRowIndex].includes(o)?t.setOpacity(t.FINAL_CONFIG.chart.highlighter.color,t.FINAL_CONFIG.chart.highlighter.opacity):"transparent"},null,8,Ae)]))),128))]),t.barSet.length?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(t.barSet,(a,o)=>(e.openBlock(),e.createElementBlock("g",{key:`serie_bar_${o}`,class:e.normalizeClass(`serie_bar_${o}`),style:e.normalizeStyle(`opacity:${r.selectedScale?r.selectedScale===a.id?1:.2:1};transition:opacity 0.2s ease-in-out`)},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.plots,(s,h)=>(e.openBlock(),e.createElementBlock("g",{key:`bar_plot_${o}_${h}`},[t.canShowValue(s.value)?(e.openBlock(),e.createElementBlock("rect",{key:0,x:t.calcRectX(s),y:r.mutableConfig.useIndividualScale?t.calcIndividualRectY(s):t.calcRectY(s),height:r.mutableConfig.useIndividualScale?Math.abs(t.calcIndividualHeight(s)):Math.abs(t.calcRectHeight(s)),width:t.calcRectWidth()-(r.mutableConfig.useIndividualScale&&r.mutableConfig.isStacked?0:t.barPeriodGap)<0?1e-5:t.calcRectWidth()-(r.mutableConfig.useIndividualScale&&r.mutableConfig.isStacked?0:t.barPeriodGap),rx:t.FINAL_CONFIG.bar.borderRadius,fill:t.FINAL_CONFIG.bar.useGradient?s.value>=0?`url(#rectGradient_pos_${o}_${r.uniqueId})`:`url(#rectGradient_neg_${o}_${r.uniqueId})`:a.color,stroke:t.FINAL_CONFIG.bar.border.useSerieColor?a.color:t.FINAL_CONFIG.bar.border.stroke,"stroke-width":t.FINAL_CONFIG.bar.border.strokeWidth},null,8,Se)):e.createCommentVNode("",!0),s.comment&&t.FINAL_CONFIG.chart.comments.show?(e.openBlock(),e.createElementBlock("foreignObject",{key:1,style:{overflow:"visible"},height:"12",width:(t.calcRectWidth()-(r.mutableConfig.useIndividualScale&&r.mutableConfig.isStacked?0:t.barPeriodGap)<0?1e-5:t.calcRectWidth()-(r.mutableConfig.useIndividualScale&&r.mutableConfig.isStacked?0:t.barPeriodGap)/2)+t.FINAL_CONFIG.chart.comments.width,x:t.calcRectX(s)-t.FINAL_CONFIG.chart.comments.width/2+t.FINAL_CONFIG.chart.comments.offsetX,y:t.checkNaN(s.y)+t.FINAL_CONFIG.chart.comments.offsetY+6},[e.renderSlot(l.$slots,"plot-comment",{plot:{...s,color:a.color,seriesIndex:o,datapointIndex:h}},void 0,!0)],8,Le)):e.createCommentVNode("",!0)]))),128)),Object.hasOwn(a,"useProgression")&&a.useProgression===!0&&!isNaN(t.calcLinearProgression(a.plots).trend)?(e.openBlock(),e.createElementBlock("g",we,[e.createElementVNode("defs",null,[e.createElementVNode("marker",{id:`bar_arrow_${o}`,markerWidth:7,markerHeight:7,refX:"0",refY:7/2,orient:"auto"},[e.createElementVNode("polygon",{points:`0 0, 7 ${7/2}, 0 7`,fill:a.color},null,8,pe)],8,Oe)]),a.plots.length>1?(e.openBlock(),e.createElementBlock("line",{key:0,x1:t.calcLinearProgression(a.plots).x1,x2:t.calcLinearProgression(a.plots).x2,y1:t.calcLinearProgression(a.plots).y1,y2:t.calcLinearProgression(a.plots).y2,"stroke-width":1,stroke:a.color,"stroke-dasharray":2,"marker-end":`url(#bar_arrow_${o})`},null,8,ve)):e.createCommentVNode("",!0),a.plots.length>1?(e.openBlock(),e.createElementBlock("text",{key:1,"text-anchor":"middle",x:t.calcLinearProgression(a.plots).x2,y:t.calcLinearProgression(a.plots).y2-6,"font-size":r.fontSizes.plotLabels,fill:a.color},e.toDisplayString(t.dataLabel({v:t.calcLinearProgression(a.plots).trend*100,s:"%",r:2})),9,Ge)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)],6))),128)):e.createCommentVNode("",!0),!r.mutableConfig.useIndividualScale&&t.FINAL_CONFIG.chart.grid.labels.zeroLine.show?(e.openBlock(),e.createElementBlock("line",{key:1,stroke:t.FINAL_CONFIG.chart.grid.stroke,"stroke-width":"1",x1:t.drawingArea.left+t.xPadding,x2:t.drawingArea.right-t.xPadding,y1:t.checkNaN(t.zero),y2:t.checkNaN(t.zero),"stroke-linecap":"round"},null,8,Be)):e.createCommentVNode("",!0),t.FINAL_CONFIG.chart.highlighter.useLine&&(![null,void 0].includes(r.selectedSerieIndex)||r.selectedMinimapIndex!==null)?(e.openBlock(),e.createElementBlock("g",Ee,[e.createElementVNode("line",{x1:t.drawingArea.left+t.drawingArea.width/t.maxSeries*(r.selectedSerieIndex||r.selectedMinimapIndex)+t.drawingArea.width/t.maxSeries/2,x2:t.drawingArea.left+t.drawingArea.width/t.maxSeries*(r.selectedSerieIndex||r.selectedMinimapIndex)+t.drawingArea.width/t.maxSeries/2,y1:t.drawingArea.top,y2:t.drawingArea.bottom,stroke:t.FINAL_CONFIG.chart.highlighter.color,"stroke-width":t.FINAL_CONFIG.chart.highlighter.lineWidth,"stroke-dasharray":t.FINAL_CONFIG.chart.highlighter.lineDasharray,"stroke-linecap":"round",style:{transition:"none !important",animation:"none !important","pointer-events":"none"}},null,8,ze)])):e.createCommentVNode("",!0),t.FINAL_CONFIG.chart.grid.frame.show?(e.openBlock(),e.createElementBlock("rect",{key:3,style:{pointerEvents:"none",transition:"none"},x:t.drawingArea.left+t.xPadding<0?0:t.drawingArea.left+t.xPadding,y:t.drawingArea.top,width:t.drawingArea.width-(t.FINAL_CONFIG.chart.grid.position==="middle"?0:t.drawingArea.width/t.maxSeries)<0?0:t.drawingArea.width-(t.FINAL_CONFIG.chart.grid.position==="middle"?0:t.drawingArea.width/t.maxSeries),height:t.drawingArea.height<0?0:t.drawingArea.height,fill:"transparent",stroke:t.FINAL_CONFIG.chart.grid.frame.stroke,"stroke-width":t.FINAL_CONFIG.chart.grid.frame.strokeWidth,"stroke-linecap":t.FINAL_CONFIG.chart.grid.frame.strokeLinecap,"stroke-linejoin":t.FINAL_CONFIG.chart.grid.frame.strokeLinejoin,"stroke-dasharray":t.FINAL_CONFIG.chart.grid.frame.strokeDasharray},null,8,Ve)):e.createCommentVNode("",!0),t.FINAL_CONFIG.chart.grid.labels.show?(e.openBlock(),e.createElementBlock("g",Pe,[r.mutableConfig.useIndividualScale?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.allScales,a=>(e.openBlock(),e.createElementBlock("g",null,[e.createElementVNode("line",{x1:a.x+t.xPadding,x2:a.x+t.xPadding,y1:r.mutableConfig.isStacked?t.checkNaN(t.drawingArea.bottom-a.yOffset-a.individualHeight):t.checkNaN(t.drawingArea.top),y2:r.mutableConfig.isStacked?t.checkNaN(t.drawingArea.bottom-a.yOffset):t.checkNaN(t.drawingArea.bottom),stroke:a.color,"stroke-width":t.FINAL_CONFIG.chart.grid.stroke,"stroke-linecap":"round",style:e.normalizeStyle(`opacity:${r.selectedScale?r.selectedScale===a.id?1:.3:1};transition:opacity 0.2s ease-in-out`)},null,12,Me)]))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.allScales,a=>(e.openBlock(),e.createElementBlock("g",{style:e.normalizeStyle(`opacity:${r.selectedScale?r.selectedScale===a.id?1:.3:1};transition:opacity 0.2s ease-in-out`)},[e.createElementVNode("text",{fill:a.color,"font-size":r.fontSizes.dataLabels,"text-anchor":"middle",transform:`translate(${a.x-t.FINAL_CONFIG.chart.grid.labels.yAxis.labelWidth+5}, ${r.mutableConfig.isStacked?t.drawingArea.bottom-a.yOffset-a.individualHeight/2:t.drawingArea.top+t.drawingArea.height/2}) rotate(-90)`},e.toDisplayString(a.name)+" "+e.toDisplayString(a.scaleLabel?`- ${a.scaleLabel}`:""),9,Te),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.yLabels,(o,s)=>(e.openBlock(),e.createElementBlock("line",{x1:a.x-3+t.xPadding,x2:a.x+t.xPadding,y1:t.checkNaN(o.y),y2:t.checkNaN(o.y),stroke:a.color,"stroke-width":1,"stroke-linecap":"round"},null,8,De))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.yLabels,(o,s)=>(e.openBlock(),e.createElementBlock("text",{x:a.x-5+t.xPadding,y:t.checkNaN(o.y)+r.fontSizes.dataLabels/3,"font-size":r.fontSizes.dataLabels,"text-anchor":"end",fill:a.color},e.toDisplayString(t.applyDataLabel(t.FINAL_CONFIG.chart.grid.labels.yAxis.formatter,o.value,t.dataLabel({p:o.prefix,v:o.value,s:o.suffix,r:1}),{datapoint:o.datapoint,seriesIndex:s})),9,Re))),256))],4))),256))],64)):(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:1},e.renderList(t.yLabels,(a,o)=>(e.openBlock(),e.createElementBlock("g",{key:`yLabel_${o}`},[t.canShowValue(a)&&a.value>=t.niceScale.min&&a.value<=t.niceScale.max?(e.openBlock(),e.createElementBlock("line",{key:0,x1:t.drawingArea.left+t.xPadding,x2:t.drawingArea.left-5+t.xPadding,y1:t.checkNaN(a.y),y2:t.checkNaN(a.y),stroke:t.FINAL_CONFIG.chart.grid.stroke,"stroke-width":"1","stroke-linecap":"round"},null,8,He)):e.createCommentVNode("",!0),a.value>=t.niceScale.min&&a.value<=t.niceScale.max?(e.openBlock(),e.createElementBlock("text",{key:1,x:t.drawingArea.left-7+t.xPadding,y:t.checkNaN(a.y+r.fontSizes.dataLabels/3),"font-size":r.fontSizes.dataLabels,"text-anchor":"end",fill:t.FINAL_CONFIG.chart.grid.labels.color},e.toDisplayString(t.canShowValue(a.value)?t.applyDataLabel(t.FINAL_CONFIG.chart.grid.labels.yAxis.formatter,a.value,t.dataLabel({p:a.prefix,v:a.value,s:a.suffix,r:1})):""),9,We)):e.createCommentVNode("",!0)]))),128))])):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.plotSet,(a,o)=>(e.openBlock(),e.createElementBlock("g",{key:`serie_plot_${o}`,class:e.normalizeClass(`serie_plot_${o}`),style:e.normalizeStyle(`opacity:${r.selectedScale?r.selectedScale===a.id?1:.2:1};transition:opacity 0.2s ease-in-out`)},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.plots,(s,h)=>(e.openBlock(),e.createElementBlock("g",{key:`circle_plot_${o}_${h}`},[s&&t.canShowValue(s.value)?(e.openBlock(),e.createBlock(N,{key:0,shape:["triangle","square","diamond","pentagon","hexagon","star"].includes(a.shape)?a.shape:"circle",color:t.FINAL_CONFIG.plot.useGradient?`url(#plotGradient_${o}_${r.uniqueId})`:t.FINAL_CONFIG.plot.dot.useSerieColor?a.color:t.FINAL_CONFIG.plot.dot.fill,plot:{x:t.checkNaN(s.x),y:t.checkNaN(s.y)},radius:r.selectedSerieIndex!==null&&r.selectedSerieIndex===h||r.selectedMinimapIndex!==null&&r.selectedMinimapIndex===h?(r.plotRadii.plot||6)*1.5:r.plotRadii.plot||6,stroke:t.FINAL_CONFIG.plot.dot.useSerieColor?t.FINAL_CONFIG.chart.backgroundColor:a.color,strokeWidth:t.FINAL_CONFIG.plot.dot.strokeWidth},null,8,["shape","color","plot","radius","stroke","strokeWidth"])):e.createCommentVNode("",!0),s.comment&&t.FINAL_CONFIG.chart.comments.show?(e.openBlock(),e.createElementBlock("foreignObject",{key:1,style:{overflow:"visible"},height:"12",width:t.FINAL_CONFIG.chart.comments.width,x:s.x-t.FINAL_CONFIG.chart.comments.width/2+t.FINAL_CONFIG.chart.comments.offsetX,y:s.y+t.FINAL_CONFIG.chart.comments.offsetY+6},[e.createElementVNode("div",Ye,[e.renderSlot(l.$slots,"plot-comment",{plot:{...s,color:a.color,seriesIndex:o,datapointIndex:h}},void 0,!0)])],8,qe)):e.createCommentVNode("",!0)]))),128)),Object.hasOwn(a,"useProgression")&&a.useProgression===!0&&!isNaN(t.calcLinearProgression(a.plots).trend)?(e.openBlock(),e.createElementBlock("g",Xe,[e.createElementVNode("defs",null,[e.createElementVNode("marker",{id:`plot_arrow_${o}`,markerWidth:7,markerHeight:7,refX:"0",refY:7/2,orient:"auto"},[e.createElementVNode("polygon",{points:`0 0, 7 ${7/2}, 0 7`,fill:a.color},null,8,Ze)],8,Ue)]),a.plots.length>1?(e.openBlock(),e.createElementBlock("line",{key:0,x1:t.calcLinearProgression(a.plots).x1,x2:t.calcLinearProgression(a.plots).x2,y1:t.calcLinearProgression(a.plots).y1,y2:t.calcLinearProgression(a.plots).y2,"stroke-width":1,stroke:a.color,"stroke-dasharray":2,"marker-end":`url(#plot_arrow_${o})`},null,8,Je)):e.createCommentVNode("",!0),a.plots.length>1?(e.openBlock(),e.createElementBlock("text",{key:1,"text-anchor":"middle",x:t.calcLinearProgression(a.plots).x2,y:t.calcLinearProgression(a.plots).y2-6,"font-size":r.fontSizes.plotLabels,fill:a.color},e.toDisplayString(t.dataLabel({v:t.calcLinearProgression(a.plots).trend*100,s:"%",r:2})),9,Ke)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)],6))),128)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.lineSet,(a,o)=>(e.openBlock(),e.createElementBlock("g",{key:`serie_line_${o}`,class:e.normalizeClass(`serie_line_${o}`),style:e.normalizeStyle(`opacity:${r.selectedScale?r.selectedScale===a.id?1:.2:1};transition:opacity 0.2s ease-in-out`)},[a.smooth&&a.plots.length>1?(e.openBlock(),e.createElementBlock("path",{key:0,d:`M${a.curve}`,stroke:t.FINAL_CONFIG.chart.backgroundColor,"stroke-width":t.FINAL_CONFIG.line.strokeWidth+1,"stroke-dasharray":a.dashed?t.FINAL_CONFIG.line.strokeWidth*2:0,fill:"none"},null,8,Qe)):a.plots.length>1?(e.openBlock(),e.createElementBlock("g",je,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.plots,(s,h)=>(e.openBlock(),e.createElementBlock("g",{key:`line_${o}_${h}`},[s&&h<a.plots.length-1&&a.plots[h+1]&&t.canShowValue(s.value)&&t.canShowValue(a.plots[h+1].value)?(e.openBlock(),e.createElementBlock("line",{key:0,x1:s.x,x2:a.plots[h+1].x,y1:s.y,y2:a.plots[h+1].y,stroke:t.FINAL_CONFIG.chart.backgroundColor,"stroke-width":t.FINAL_CONFIG.line.strokeWidth+1,"stroke-dasharray":a.dashed?t.FINAL_CONFIG.line.strokeWidth*2:0,"stroke-linejoin":"round","stroke-linecap":"round"},null,8,$e)):e.createCommentVNode("",!0)]))),128))])):e.createCommentVNode("",!0)],6))),128)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.lineSet,(a,o)=>(e.openBlock(),e.createElementBlock("g",{key:`serie_line_${o}`,class:e.normalizeClass(`serie_line_${o}`),style:e.normalizeStyle(`opacity:${r.selectedScale?r.selectedScale===a.id?1:.2:1};transition:opacity 0.2s ease-in-out`)},[a.useArea&&a.plots.length>1?(e.openBlock(),e.createElementBlock("g",et,[a.smooth?(e.openBlock(),e.createElementBlock("path",{key:0,d:`M ${a.plots[0]?a.plots[0].x:Math.min(...a.plots.filter(s=>!!s).map(s=>s.x))},${r.mutableConfig.isStacked?t.drawingArea.bottom-a.yOffset:t.drawingArea.bottom} ${a.curve} L ${a.plots.at(-1)?a.plots.at(-1).x:t.drawingArea.left+t.slot.line*o+t.slot.line/2},${r.mutableConfig.isStacked?t.drawingArea.bottom-a.yOffset:t.drawingArea.bottom} Z`,fill:t.FINAL_CONFIG.line.area.useGradient?`url(#areaGradient_${o}_${r.uniqueId})`:t.setOpacity(a.color,t.FINAL_CONFIG.line.area.opacity)},null,8,tt)):(e.openBlock(),e.createElementBlock("path",{key:1,d:`M${a.area}Z`,fill:t.FINAL_CONFIG.line.area.useGradient?`url(#areaGradient_${o}_${r.uniqueId})`:t.setOpacity(a.color,t.FINAL_CONFIG.line.area.opacity)},null,8,lt))])):e.createCommentVNode("",!0),a.smooth&&a.plots.length>1?(e.openBlock(),e.createElementBlock("path",{key:1,d:`M${a.curve}`,stroke:a.color,"stroke-width":t.FINAL_CONFIG.line.strokeWidth,"stroke-dasharray":a.dashed?t.FINAL_CONFIG.line.strokeWidth*2:0,fill:"none"},null,8,rt)):a.plots.length>1?(e.openBlock(),e.createElementBlock("g",at,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.plots,(s,h)=>(e.openBlock(),e.createElementBlock("g",{key:`line_${o}_${h}`},[s&&h<a.plots.length-1&&a.plots[h+1]&&t.canShowValue(s.value)&&t.canShowValue(a.plots[h+1].value)?(e.openBlock(),e.createElementBlock("line",{key:0,x1:s.x,x2:a.plots[h+1].x,y1:s.y,y2:a.plots[h+1].y,stroke:a.color,"stroke-width":t.FINAL_CONFIG.line.strokeWidth,"stroke-dasharray":a.dashed?t.FINAL_CONFIG.line.strokeWidth*2:0,"stroke-linejoin":"round","stroke-linecap":"round"},null,8,it)):e.createCommentVNode("",!0)]))),128))])):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.plots,(s,h)=>(e.openBlock(),e.createElementBlock("g",{key:`circle_line_${o}_${h}`},[s&&t.canShowValue(s.value)?(e.openBlock(),e.createBlock(N,{key:0,shape:["triangle","square","diamond","pentagon","hexagon","star"].includes(a.shape)?a.shape:"circle",color:t.FINAL_CONFIG.line.useGradient?`url(#lineGradient_${o}_${r.uniqueId})`:t.FINAL_CONFIG.line.dot.useSerieColor?a.color:t.FINAL_CONFIG.line.dot.fill,plot:{x:t.checkNaN(s.x),y:t.checkNaN(s.y)},radius:r.selectedSerieIndex!==null&&r.selectedSerieIndex===h||r.selectedMinimapIndex!==null&&r.selectedMinimapIndex===h?(r.plotRadii.line||6)*1.5:r.plotRadii.line||6,stroke:t.FINAL_CONFIG.line.dot.useSerieColor?t.FINAL_CONFIG.chart.backgroundColor:a.color,strokeWidth:t.FINAL_CONFIG.line.dot.strokeWidth},null,8,["shape","color","plot","radius","stroke","strokeWidth"])):e.createCommentVNode("",!0),s.comment&&t.FINAL_CONFIG.chart.comments.show?(e.openBlock(),e.createElementBlock("foreignObject",{key:1,style:{overflow:"visible"},height:"12",width:t.FINAL_CONFIG.chart.comments.width,x:s.x-t.FINAL_CONFIG.chart.comments.width/2+t.FINAL_CONFIG.chart.comments.offsetX,y:s.y+t.FINAL_CONFIG.chart.comments.offsetY+6},[e.createElementVNode("div",ot,[e.renderSlot(l.$slots,"plot-comment",{plot:{...s,color:a.color,seriesIndex:o,datapointIndex:h}},void 0,!0)])],8,st)):e.createCommentVNode("",!0)]))),128)),Object.hasOwn(a,"useProgression")&&a.useProgression===!0&&!isNaN(t.calcLinearProgression(a.plots).trend)?(e.openBlock(),e.createElementBlock("g",nt,[e.createElementVNode("defs",null,[e.createElementVNode("marker",{id:`line_arrow_${o}`,markerWidth:7,markerHeight:7,refX:"0",refY:7/2,orient:"auto"},[e.createElementVNode("polygon",{points:`0 0, 7 ${7/2}, 0 7`,fill:a.color},null,8,ht)],8,ct)]),a.plots.length>1?(e.openBlock(),e.createElementBlock("line",{key:0,x1:t.calcLinearProgression(a.plots).x1,x2:t.calcLinearProgression(a.plots).x2,y1:t.calcLinearProgression(a.plots).y1,y2:t.calcLinearProgression(a.plots).y2,"stroke-width":1,stroke:a.color,"stroke-dasharray":2,"marker-end":`url(#line_arrow_${o})`},null,8,dt)):e.createCommentVNode("",!0),a.plots.length>1?(e.openBlock(),e.createElementBlock("text",{key:1,"text-anchor":"middle",x:t.calcLinearProgression(a.plots).x2,y:t.calcLinearProgression(a.plots).y2-6,"font-size":r.fontSizes.plotLabels,fill:a.color},e.toDisplayString(t.dataLabel({v:t.calcLinearProgression(a.plots).trend*100,s:"%",r:2})),9,ut)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)],6))),128)),(t.FINAL_CONFIG.bar.labels.show||t.FINAL_CONFIG.bar.serieName.show)&&r.mutableConfig.dataLabels.show?(e.openBlock(),e.createElementBlock("g",mt,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.barSet,(a,o)=>(e.openBlock(),e.createElementBlock("g",{key:`xLabel_bar_${o}`,class:e.normalizeClass(`xLabel_bar_${o}`),style:e.normalizeStyle(`opacity:${r.selectedScale?r.selectedScale===a.id?1:.2:1};transition:opacity 0.2s ease-in-out`)},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.plots,(s,h)=>(e.openBlock(),e.createElementBlock("g",{key:`xLabel_bar_${o}_${h}`},[s&&(!Object.hasOwn(a,"dataLabels")||a.dataLabels===!0||(r.selectedSerieIndex||r.selectedMinimapIndex)===h)&&t.FINAL_CONFIG.bar.labels.show?(e.openBlock(),e.createElementBlock("text",{key:0,x:r.mutableConfig.useIndividualScale&&r.mutableConfig.isStacked?s.x+t.slot.line/2:t.calcRectX(s)+t.calcRectWidth()/2-t.barPeriodGap/2,y:t.checkNaN(s.y)+(s.value>=0?t.FINAL_CONFIG.bar.labels.offsetY:-t.FINAL_CONFIG.bar.labels.offsetY*3),"text-anchor":"middle","font-size":r.fontSizes.plotLabels,fill:t.FINAL_CONFIG.bar.labels.color},e.toDisplayString(t.canShowValue(s.value)?t.applyDataLabel(t.FINAL_CONFIG.bar.labels.formatter,s.value,t.dataLabel({p:a.prefix||t.FINAL_CONFIG.chart.labels.prefix,v:s.value,s:a.suffix||t.FINAL_CONFIG.chart.labels.suffix,r:t.FINAL_CONFIG.bar.labels.rounding}),{datapoint:s,serie:a}):""),9,gt)):e.createCommentVNode("",!0),s&&t.FINAL_CONFIG.bar.serieName.show?(e.openBlock(),e.createElementBlock("text",{key:1,x:r.mutableConfig.useIndividualScale&&r.mutableConfig.isStacked?s.x+t.slot.line/2:s.x+t.calcRectWidth()*1.1,y:s.y+(s.value>0?t.FINAL_CONFIG.bar.serieName.offsetY:-t.FINAL_CONFIG.bar.serieName.offsetY*3),"text-anchor":"middle","font-size":r.fontSizes.plotLabels,fill:t.FINAL_CONFIG.bar.serieName.useSerieColor?a.color:t.FINAL_CONFIG.bar.serieName.color,"font-weight":t.FINAL_CONFIG.bar.serieName.bold?"bold":"normal"},e.toDisplayString(t.FINAL_CONFIG.bar.serieName.useAbbreviation?t.abbreviate({source:a.name,length:t.FINAL_CONFIG.bar.serieName.abbreviationSize}):a.name),9,Nt)):e.createCommentVNode("",!0)]))),128))],6))),128))])):e.createCommentVNode("",!0),t.FINAL_CONFIG.plot.labels.show&&r.mutableConfig.dataLabels.show?(e.openBlock(),e.createElementBlock("g",ft,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.plotSet,(a,o)=>(e.openBlock(),e.createElementBlock("g",{key:`xLabel_plot_${o}`,class:e.normalizeClass(`xLabel_plot_${o}`),style:e.normalizeStyle(`opacity:${r.selectedScale?r.selectedScale===a.id?1:.2:1};transition:opacity 0.2s ease-in-out`)},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.plots,(s,h)=>(e.openBlock(),e.createElementBlock("g",{key:`xLabel_plot_${o}_${h}`},[s&&!Object.hasOwn(a,"dataLabels")||a.dataLabels===!0||(r.selectedSerieIndex||r.selectedMinimapIndex)===h?(e.openBlock(),e.createElementBlock("text",{key:0,x:s.x,y:s.y+t.FINAL_CONFIG.plot.labels.offsetY,"text-anchor":"middle","font-size":r.fontSizes.plotLabels,fill:t.FINAL_CONFIG.plot.labels.color},e.toDisplayString(t.canShowValue(s.value)?t.applyDataLabel(t.FINAL_CONFIG.plot.labels.formatter,s.value,t.dataLabel({p:a.prefix||t.FINAL_CONFIG.chart.labels.prefix,v:s.value,s:a.suffix||t.FINAL_CONFIG.chart.labels.suffix,r:t.FINAL_CONFIG.plot.labels.rounding}),{datapoint:s,serie:a}):""),9,It)):e.createCommentVNode("",!0),s&&h===0&&a.useTag&&a.useTag==="start"?(e.openBlock(),e.createElementBlock("foreignObject",{key:1,x:s.x,y:s.y-20,height:24,width:"150",style:{overflow:"visible"}},[e.createElementVNode("div",{style:e.normalizeStyle(`padding: 3px; background:${t.setOpacity(a.color,80)};color:${t.adaptColorToBackground(a.color)};width:fit-content;font-size:${r.fontSizes.plotLabels}px;border-radius: 2px;`)},e.toDisplayString(a.name),5)],8,kt)):e.createCommentVNode("",!0),s&&h===a.plots.length-1&&a.useTag&&a.useTag==="end"?(e.openBlock(),e.createElementBlock("foreignObject",{key:2,x:s.x-a.name.length*(r.fontSizes.plotLabels/2),y:s.y-20,height:24,width:"150",style:{overflow:"visible"}},[e.createElementVNode("div",{style:e.normalizeStyle(`padding: 3px; background:${t.setOpacity(a.color,80)};color:${t.adaptColorToBackground(a.color)};width:fit-content;font-size:${r.fontSizes.plotLabels}px;border-radius: 2px;`)},e.toDisplayString(a.name),5)],8,xt)):e.createCommentVNode("",!0)]))),128))],6))),128))])):e.createCommentVNode("",!0),t.FINAL_CONFIG.line.labels.show&&r.mutableConfig.dataLabels.show?(e.openBlock(),e.createElementBlock("g",bt,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.lineSet,(a,o)=>(e.openBlock(),e.createElementBlock("g",{key:`xLabel_line_${o}`,class:e.normalizeClass(`xLabel_line_${o}`),style:e.normalizeStyle(`opacity:${r.selectedScale?r.selectedScale===a.id?1:.2:1};transition:opacity 0.2s ease-in-out`)},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.plots,(s,h)=>(e.openBlock(),e.createElementBlock("g",{key:`xLabel_line_${o}_${h}`},[s&&!Object.hasOwn(a,"dataLabels")||a.dataLabels===!0||(r.selectedSerieIndex||r.selectedMinimapIndex)===h?(e.openBlock(),e.createElementBlock("text",{key:0,x:s.x,y:s.y+(s.value>=0?t.FINAL_CONFIG.line.labels.offsetY:-t.FINAL_CONFIG.line.labels.offsetY*3),"text-anchor":"middle","font-size":r.fontSizes.plotLabels,fill:t.FINAL_CONFIG.line.labels.color},e.toDisplayString(t.canShowValue(s.value)?t.applyDataLabel(t.FINAL_CONFIG.line.labels.formatter,s.value,t.dataLabel({p:a.prefix||t.FINAL_CONFIG.chart.labels.prefix,v:s.value,s:a.suffix||t.FINAL_CONFIG.chart.labels.suffix,r:t.FINAL_CONFIG.line.labels.rounding}),{datapoint:s,serie:a}):""),9,Ft)):e.createCommentVNode("",!0),s&&h===0&&a.useTag&&a.useTag==="start"?(e.openBlock(),e.createElementBlock("foreignObject",{key:1,x:s.x,y:s.y-20,height:24,width:"150",style:{overflow:"visible"}},[e.createElementVNode("div",{style:e.normalizeStyle(`padding: 3px; background:${t.setOpacity(a.color,80)};color:${t.adaptColorToBackground(a.color)};width:fit-content;font-size:${r.fontSizes.plotLabels}px;border-radius: 2px;`)},e.toDisplayString(a.name),5)],8,yt)):e.createCommentVNode("",!0),s&&h===a.plots.length-1&&a.useTag&&a.useTag==="end"?(e.openBlock(),e.createElementBlock("foreignObject",{key:2,x:s.x-a.name.length*(r.fontSizes.plotLabels/2),y:s.y-20,height:24,width:"150",style:{overflow:"visible"}},[e.createElementVNode("div",{style:e.normalizeStyle(`padding: 3px; background:${t.setOpacity(a.color,80)};color:${t.adaptColorToBackground(a.color)};width:fit-content;font-size:${r.fontSizes.plotLabels}px;border-radius: 2px;`)},e.toDisplayString(a.name),5)],8,_t)):e.createCommentVNode("",!0)]))),128))],6))),128))])):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.lineSet,(a,o)=>(e.openBlock(),e.createElementBlock("g",{key:`xLabel_line_${o}`,class:e.normalizeClass(`xLabel_line_${o}`),style:e.normalizeStyle(`opacity:${r.selectedScale?r.selectedScale===a.id?1:.2:1};transition:opacity 0.2s ease-in-out`)},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.plots,(s,h)=>(e.openBlock(),e.createElementBlock("g",{key:`xLabel_line_${o}_${h}`},[s&&h===0&&a.showSerieName&&a.showSerieName==="start"?(e.openBlock(),e.createElementBlock("text",{key:0,x:s.x-r.fontSizes.plotLabels,y:s.y,"font-size":r.fontSizes.plotLabels,"text-anchor":"end",fill:a.color,innerHTML:t.createTSpans({content:a.name,fontSize:r.fontSizes.plotLabels,fill:a.color,x:s.x-r.fontSizes.plotLabels,y:s.y,maxWords:2})},null,8,Ct)):e.createCommentVNode("",!0),s&&h===a.plots.length-1&&a.showSerieName&&a.showSerieName==="end"?(e.openBlock(),e.createElementBlock("text",{key:1,x:s.x+r.fontSizes.plotLabels,y:s.y,"font-size":r.fontSizes.plotLabels,"text-anchor":"start",fill:a.color,innerHTML:t.createTSpans({content:a.name,fontSize:r.fontSizes.plotLabels,fill:a.color,x:s.x+r.fontSizes.plotLabels,y:s.y,maxWords:2})},null,8,At)):e.createCommentVNode("",!0)]))),128))],6))),128)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.plotSet,(a,o)=>(e.openBlock(),e.createElementBlock("g",{key:`xLabel_plot_${o}`,class:e.normalizeClass(`xLabel_plot_${o}`),style:e.normalizeStyle(`opacity:${r.selectedScale?r.selectedScale===a.id?1:.2:1};transition:opacity 0.2s ease-in-out`)},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.plots,(s,h)=>(e.openBlock(),e.createElementBlock("g",{key:`xLabel_plot_${o}_${h}`},[s&&h===0&&a.showSerieName&&a.showSerieName==="start"?(e.openBlock(),e.createElementBlock("text",{key:0,x:s.x-r.fontSizes.plotLabels,y:s.y,"font-size":r.fontSizes.plotLabels,"text-anchor":"end",fill:a.color,innerHTML:t.createTSpans({content:a.name,fontSize:r.fontSizes.plotLabels,fill:a.color,x:s.x-r.fontSizes.plotLabels,y:s.y,maxWords:2})},null,8,St)):e.createCommentVNode("",!0),s&&h===a.plots.length-1&&a.showSerieName&&a.showSerieName==="end"?(e.openBlock(),e.createElementBlock("text",{key:1,x:s.x+r.fontSizes.plotLabels,y:s.y,"font-size":r.fontSizes.plotLabels,"text-anchor":"start",fill:a.color,innerHTML:t.createTSpans({content:a.name,fontSize:r.fontSizes.plotLabels,fill:a.color,x:s.x+r.fontSizes.plotLabels,y:s.y,maxWords:2})},null,8,Lt)):e.createCommentVNode("",!0)]))),128))],6))),128)),r.mutableConfig.useIndividualScale&&!r.mutableConfig.isStacked?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:8},e.renderList(t.allScales,a=>(e.openBlock(),e.createElementBlock("rect",{x:a.x-t.FINAL_CONFIG.chart.grid.labels.yAxis.labelWidth,y:t.drawingArea.top,width:t.FINAL_CONFIG.chart.grid.labels.yAxis.labelWidth,height:t.drawingArea.height<0?10:t.drawingArea.height,fill:r.selectedScale===a.id?t.setOpacity(a.color,20):"transparent",onMouseenter:o=>r.selectedScale=a.id,onMouseleave:i[0]||(i[0]=o=>r.selectedScale=null)},null,40,wt))),256)):e.createCommentVNode("",!0),e.createElementVNode("g",null,[t.FINAL_CONFIG.chart.grid.labels.axis.yLabel&&!r.mutableConfig.useIndividualScale?(e.openBlock(),e.createElementBlock("text",{key:0,"font-size":r.fontSizes.yAxis,fill:t.FINAL_CONFIG.chart.grid.labels.color,transform:`translate(${r.fontSizes.yAxis+t.FINAL_CONFIG.chart.grid.labels.axis.yLabelOffsetX}, ${t.drawingArea.top+t.drawingArea.height/2}) rotate(-90)`,"text-anchor":"middle",style:{transition:"none"}},e.toDisplayString(t.FINAL_CONFIG.chart.grid.labels.axis.yLabel),9,Ot)):e.createCommentVNode("",!0),t.FINAL_CONFIG.chart.grid.labels.axis.xLabel?(e.openBlock(),e.createElementBlock("text",{key:1,"text-anchor":"middle",x:r.width/2,y:t.drawingArea.bottom+r.fontSizes.yAxis+r.fontSizes.xAxis*1.3+t.FINAL_CONFIG.chart.grid.labels.axis.xLabelOffsetY,"font-size":r.fontSizes.yAxis,fill:t.FINAL_CONFIG.chart.grid.labels.color},e.toDisplayString(t.FINAL_CONFIG.chart.grid.labels.axis.xLabel),9,pt)):e.createCommentVNode("",!0)]),t.FINAL_CONFIG.chart.grid.labels.xAxisLabels.show?(e.openBlock(),e.createElementBlock("g",vt,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.timeLabels,(a,o)=>(e.openBlock(),e.createElementBlock("g",{key:`time_label_${o}`},[a&&!t.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast&&!t.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyAtModulo||a&&t.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast&&(o===0||o===t.timeLabels.length-1)&&!t.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyAtModulo||a&&t.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast&&r.selectedSerieIndex===o&&!t.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyAtModulo||a&&!t.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast&&t.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyAtModulo&&o%Math.floor((this.slicer.end-this.slicer.start)/t.FINAL_CONFIG.chart.grid.labels.xAxisLabels.modulo)===0?(e.openBlock(),e.createElementBlock("text",{key:0,"text-anchor":t.FINAL_CONFIG.chart.grid.labels.xAxisLabels.rotation>0?"start":t.FINAL_CONFIG.chart.grid.labels.xAxisLabels.rotation<0?"end":"middle","font-size":r.fontSizes.xAxis,fill:t.FINAL_CONFIG.chart.grid.labels.xAxisLabels.color,transform:`translate(${t.drawingArea.left+t.drawingArea.width/t.maxSeries*o+t.drawingArea.width/t.maxSeries/2}, ${t.drawingArea.bottom+r.fontSizes.xAxis*1.3+t.FINAL_CONFIG.chart.grid.labels.xAxisLabels.yOffset}), rotate(${t.FINAL_CONFIG.chart.grid.labels.xAxisLabels.rotation})`},e.toDisplayString(a||""),9,Gt)):e.createCommentVNode("",!0)]))),128))])):e.createCommentVNode("",!0),e.createElementVNode("g",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.maxSeries,(a,o)=>(e.openBlock(),e.createElementBlock("g",{key:`tooltip_trap_${o}`},[e.createElementVNode("rect",{"data-cy-trap":"",x:t.drawingArea.left+t.drawingArea.width/t.maxSeries*o,y:t.drawingArea.top,height:t.drawingArea.height<0?10:t.drawingArea.height,width:t.drawingArea.width/t.maxSeries<0?1e-5:t.drawingArea.width/t.maxSeries,fill:"transparent",onMouseenter:s=>t.toggleTooltipVisibility(!0,o),onMouseleave:i[1]||(i[1]=s=>t.toggleTooltipVisibility(!1)),onClick:s=>t.selectX(o)},null,40,Bt)]))),128))]),t.FINAL_CONFIG.chart.timeTag.show&&(![null,void 0].includes(r.selectedSerieIndex)||r.selectedMinimapIndex!==null)?(e.openBlock(),e.createElementBlock("g",Et,[(e.openBlock(),e.createElementBlock("foreignObject",{x:t.drawingArea.left+t.drawingArea.width/t.maxSeries*(r.selectedSerieIndex||r.selectedMinimapIndex)-100+t.drawingArea.width/t.maxSeries/2,y:t.drawingArea.bottom,width:"200",height:"40",style:{overflow:"visible !important"}},[e.createElementVNode("div",{class:"vue-ui-xy-time-tag",style:e.normalizeStyle(`width: fit-content;margin: 0 auto;text-align:center;padding:3px 12px;background:${t.FINAL_CONFIG.chart.timeTag.backgroundColor};color:${t.FINAL_CONFIG.chart.timeTag.color};font-size:${t.FINAL_CONFIG.chart.timeTag.fontSize}px`)},e.toDisplayString(t.timeLabels[r.selectedSerieIndex||r.selectedMinimapIndex]||r.selectedSerieIndex||r.selectedMinimapIndex),5)],8,zt)),e.createElementVNode("circle",{cx:t.drawingArea.left+t.drawingArea.width/t.maxSeries*(r.selectedSerieIndex||r.selectedMinimapIndex)+t.drawingArea.width/t.maxSeries/2,cy:t.drawingArea.bottom,r:t.FINAL_CONFIG.chart.timeTag.circleMarker.radius,fill:t.FINAL_CONFIG.chart.timeTag.circleMarker.color},null,8,Vt)])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),e.renderSlot(l.$slots,"svg",{svg:t.svg},void 0,!0)],14,J)):e.createCommentVNode("",!0),l.$slots.watermark?(e.openBlock(),e.createElementBlock("div",Pt,[e.renderSlot(l.$slots,"watermark",e.normalizeProps(e.guardReactiveProps({isPrinting:r.isPrinting||r.isImaging})),void 0,!0)])):e.createCommentVNode("",!0),t.isDataset?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(L,{key:6,config:{type:"line",style:{backgroundColor:t.FINAL_CONFIG.chart.backgroundColor,line:{axis:{color:t.FINAL_CONFIG.chart.grid.stroke},path:{color:t.FINAL_CONFIG.chart.grid.stroke,strokeWidth:.5}}}}},null,8,["config"])),t.FINAL_CONFIG.chart.zoom.show&&r.maxX>6&&t.isDataset?(e.openBlock(),e.createBlock(C,{ref:"chartSlicer",key:`slicer_${r.slicerStep}`,background:t.FINAL_CONFIG.chart.zoom.color,fontSize:t.FINAL_CONFIG.chart.zoom.fontSize,useResetSlot:t.FINAL_CONFIG.chart.zoom.useResetSlot,labelLeft:t.FINAL_CONFIG.chart.grid.labels.xAxisLabels.values[r.slicer.start],labelRight:t.FINAL_CONFIG.chart.grid.labels.xAxisLabels.values[r.slicer.end-1],textColor:t.FINAL_CONFIG.chart.color,inputColor:t.FINAL_CONFIG.chart.zoom.color,selectColor:t.FINAL_CONFIG.chart.zoom.highlightColor,borderColor:t.FINAL_CONFIG.chart.backgroundColor,minimap:t.minimap,smoothMinimap:t.FINAL_CONFIG.chart.zoom.minimap.smooth,minimapSelectedColor:t.FINAL_CONFIG.chart.zoom.minimap.selectedColor,minimapSelectionRadius:t.FINAL_CONFIG.chart.zoom.minimap.selectionRadius,minimapLineColor:t.FINAL_CONFIG.chart.zoom.minimap.lineColor,minimapSelectedColorOpacity:t.FINAL_CONFIG.chart.zoom.minimap.selectedColorOpacity,minimapSelectedIndex:r.selectedSerieIndex,minimapIndicatorColor:t.FINAL_CONFIG.chart.zoom.minimap.indicatorColor,max:r.maxX,min:0,valueStart:r.slicer.start,valueEnd:r.slicer.end,start:r.slicer.start,"onUpdate:start":i[2]||(i[2]=a=>r.slicer.start=a),end:r.slicer.end,"onUpdate:end":i[3]||(i[3]=a=>r.slicer.end=a),onReset:t.refreshSlicer,onTrapMouse:t.selectMinimapIndex},{"reset-action":e.withCtx(({reset:a})=>[e.renderSlot(l.$slots,"reset-action",e.normalizeProps(e.guardReactiveProps({reset:a})),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"])):e.createCommentVNode("",!0),t.FINAL_CONFIG.chart.legend.show?(e.openBlock(),e.createElementBlock("div",{key:8,ref:"chartLegend",class:"vue-ui-xy-legend",style:e.normalizeStyle(`font-size:${t.FINAL_CONFIG.chart.legend.fontSize}px`)},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.absoluteDataset,(a,o)=>(e.openBlock(),e.createElementBlock("div",{key:`div_legend_item_${o}`,onClick:s=>t.segregate(a),class:e.normalizeClass({"vue-ui-xy-legend-item":!0,"vue-ui-xy-legend-item-segregated":r.segregatedSeries.includes(a.id)})},[r.icons[a.type]==="line"?(e.openBlock(),e.createElementBlock("svg",Tt,[e.createElementVNode("rect",{x:"0",y:"7",rx:"3",stroke:"none",height:"4",width:"20",fill:a.color},null,8,Dt),e.createVNode(N,{plot:{x:10,y:9},radius:4,color:a.color,shape:["triangle","square","diamond","pentagon","hexagon","star"].includes(a.shape)?a.shape:"circle",stroke:t.FINAL_CONFIG.chart.backgroundColor,strokeWidth:1},null,8,["color","shape","stroke"])])):(e.openBlock(),e.createElementBlock("svg",Rt,[r.icons[a.type]==="bar"?(e.openBlock(),e.createElementBlock("rect",{key:0,x:"0",y:"0",rx:"1",height:"12",width:"12",stroke:"none",fill:a.color},null,8,Ht)):(e.openBlock(),e.createBlock(N,{key:1,plot:{x:6,y:6},radius:5,color:a.color,shape:["triangle","square","diamond","pentagon","hexagon","star"].includes(a.shape)?a.shape:"circle"},null,8,["color","shape"]))])),e.createElementVNode("span",{style:e.normalizeStyle(`color:${t.FINAL_CONFIG.chart.legend.color}`)},e.toDisplayString(a.name),5)],10,Mt))),128))],4)):(e.openBlock(),e.createElementBlock("div",Wt,[e.renderSlot(l.$slots,"legend",{legend:t.absoluteDataset},void 0,!0)],512)),l.$slots.source?(e.openBlock(),e.createElementBlock("div",qt,[e.renderSlot(l.$slots,"source",{},void 0,!0)],512)):e.createCommentVNode("",!0),e.createVNode(A,{show:r.mutableConfig.showTooltip&&r.isTooltip,backgroundColor:t.FINAL_CONFIG.chart.tooltip.backgroundColor,color:t.FINAL_CONFIG.chart.tooltip.color,fontSize:t.FINAL_CONFIG.chart.tooltip.fontSize,borderRadius:t.FINAL_CONFIG.chart.tooltip.borderRadius,borderColor:t.FINAL_CONFIG.chart.tooltip.borderColor,borderWidth:t.FINAL_CONFIG.chart.tooltip.borderWidth,backgroundOpacity:t.FINAL_CONFIG.chart.tooltip.backgroundOpacity,position:t.FINAL_CONFIG.chart.tooltip.position,offsetY:t.FINAL_CONFIG.chart.tooltip.offsetY,parent:l.$refs.chart,content:t.tooltipContent,isCustom:t.FINAL_CONFIG.chart.tooltip.customFormat&&typeof t.FINAL_CONFIG.chart.tooltip.customFormat=="function"},{"tooltip-before":e.withCtx(()=>[e.renderSlot(l.$slots,"tooltip-before",e.normalizeProps(e.guardReactiveProps({...t.dataTooltipSlot})),void 0,!0)]),"tooltip-after":e.withCtx(()=>[e.renderSlot(l.$slots,"tooltip-after",e.normalizeProps(e.guardReactiveProps({...t.dataTooltipSlot})),void 0,!0)]),_:3},8,["show","backgroundColor","color","fontSize","borderRadius","borderColor","borderWidth","backgroundOpacity","position","offsetY","parent","content","isCustom"]),t.isDataset?(e.openBlock(),e.createBlock(S,{key:11,hideDetails:"",config:{open:r.mutableConfig.showTable,maxHeight:1e4,body:{backgroundColor:t.FINAL_CONFIG.chart.backgroundColor,color:t.FINAL_CONFIG.chart.color},head:{backgroundColor:t.FINAL_CONFIG.chart.backgroundColor,color:t.FINAL_CONFIG.chart.color}}},{content:e.withCtx(()=>[e.createElementVNode("div",{style:e.normalizeStyle(`${r.isPrinting?"":"max-height:400px"};overflow:auto;width:100%;margin-top:48px`)},[e.createElementVNode("div",Yt,[e.withDirectives(e.createElementVNode("input",{type:"checkbox","onUpdate:modelValue":i[4]||(i[4]=a=>r.showSparklineTable=a)},null,512),[[e.vModelCheckbox,r.showSparklineTable]]),e.createElementVNode("div",{onClick:i[5]||(i[5]=a=>r.showSparklineTable=!r.showSparklineTable),style:{cursor:"pointer"}},[e.createVNode(y,{name:"chartLine",size:20,stroke:t.FINAL_CONFIG.chart.color},null,8,["stroke"])])]),r.showSparklineTable?(e.openBlock(),e.createBlock(I,{key:`sparkline_${r.segregateStep}`,dataset:t.tableSparklineDataset,config:t.tableSparklineConfig},null,8,["dataset","config"])):(e.openBlock(),e.createBlock(b,{key:`table_${r.tableStep}`,colNames:t.dataTable.colNames,head:t.dataTable.head,body:t.dataTable.body,config:t.dataTable.config,title:`${t.FINAL_CONFIG.chart.title.text}${t.FINAL_CONFIG.chart.title.subtitle.text?` : ${t.FINAL_CONFIG.chart.title.subtitle.text}`:""}`,onClose:i[6]||(i[6]=a=>r.mutableConfig.showTable=!1)},{th:e.withCtx(({th:a})=>[e.createElementVNode("div",{innerHTML:a},null,8,Xt)]),td:e.withCtx(({td:a})=>[e.createTextVNode(e.toDisplayString(isNaN(Number(a))?a:t.dataLabel({p:t.FINAL_CONFIG.chart.labels.prefix,v:a,s:t.FINAL_CONFIG.chart.labels.suffix,r:t.FINAL_CONFIG.table.rounding})),1)]),_:1},8,["colNames","head","body","config","title"]))],4)]),_:1},8,["config"])):e.createCommentVNode("",!0)],14,U)}const Zt=q._export_sfc(X,[["render",Ut],["__scopeId","data-v-8f7645e2"]]);exports.default=Zt;
|