vue-data-ui 2.4.77 → 2.4.78
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-f_Kuk8SY.js → Arrow-C7AmfY-d.js} +1 -1
- package/dist/{Arrow-CfSMP_pf.cjs → Arrow-DbrjRMa6.cjs} +1 -1
- package/dist/{BaseIcon-BnnMILPX.cjs → BaseIcon-CIjjPDqj.cjs} +1 -1
- package/dist/{BaseIcon-QuseiwxO.js → BaseIcon-Dzpk4O8L.js} +1 -1
- package/dist/{DataTable--ofk92Yb.js → DataTable-DtRXoetj.js} +2 -2
- package/dist/{DataTable-D0qYxBVZ.cjs → DataTable-wN-jvOfe.cjs} +1 -1
- package/dist/{Legend-DV4QFlV9.cjs → Legend-DqGE1lkA.cjs} +1 -1
- package/dist/{Legend-BhrGSZRp.js → Legend-RnRqBxiV.js} +2 -2
- package/dist/{PackageVersion-BqwuIW-T.js → PackageVersion-CgJdp_Ki.js} +1 -1
- package/dist/{PackageVersion-sBYhtscP.cjs → PackageVersion-Dn-t7tbm.cjs} +1 -1
- package/dist/{PenAndPaper-LsFeEPDj.js → PenAndPaper-BTLEk55u.js} +3 -3
- package/dist/{PenAndPaper-CHz_Iy5T.cjs → PenAndPaper-DFXJJink.cjs} +1 -1
- package/dist/{Shape-Dorp4kyF.js → Shape-B1fqUhjt.js} +1 -1
- package/dist/{Shape-BO7Gprqr.cjs → Shape-D7IbPjU8.cjs} +1 -1
- package/dist/{Slicer-BDdf60jQ.cjs → Slicer-8bCK41mN.cjs} +1 -1
- package/dist/{Slicer-CD8VkksI.js → Slicer-GQf9ZyPj.js} +2 -2
- package/dist/{Title-BzcIyo-x.cjs → Title-D-6pIV0l.cjs} +1 -1
- package/dist/{Title-2MaMBji9.js → Title-XYNHfYwN.js} +1 -1
- package/dist/{Tooltip-DWo9kakv.cjs → Tooltip-CNox4F8U.cjs} +1 -1
- package/dist/{Tooltip-C_eI7NfC.js → Tooltip-DYRo59nq.js} +1 -1
- package/dist/{index-DMvK32iW.js → index-B8Eaq54E.js} +1 -1
- package/dist/{index-CbMyzHGj.cjs → index-KJL8ra_6.cjs} +1 -1
- package/dist/style.css +1 -1
- package/dist/{useNestedProp-DqPx8kFh.cjs → useNestedProp-Bu958azG.cjs} +1 -1
- package/dist/{useNestedProp-3oLbIjGJ.js → useNestedProp-Ka0R_Yqa.js} +1 -1
- package/dist/{usePrinter-7L_B-x1F.js → usePrinter-D83W2gfG.js} +1 -1
- package/dist/{usePrinter-BzVsUZ9_.cjs → usePrinter-pDOF3CfL.cjs} +1 -1
- package/dist/{vue-data-ui-Cp4r0fLf.js → vue-data-ui-DgmXnSUU.js} +60 -60
- package/dist/{vue-data-ui-CFnKc2Ol.cjs → vue-data-ui-Ot5xYhbV.cjs} +1 -1
- package/dist/vue-data-ui.cjs +1 -1
- package/dist/vue-data-ui.js +1 -1
- package/dist/{vue-ui-3d-bar-DTrJuAnz.cjs → vue-ui-3d-bar-CB0XzatQ.cjs} +1 -1
- package/dist/{vue-ui-3d-bar-Cf1Q84nf.js → vue-ui-3d-bar-CqiW8qFZ.js} +9 -9
- package/dist/{vue-ui-accordion-D9SRsoRT.js → vue-ui-accordion--5td7b94.js} +3 -3
- package/dist/{vue-ui-accordion-Uftgxo97.cjs → vue-ui-accordion-4-dyMgJA.cjs} +1 -1
- package/dist/{vue-ui-age-pyramid-BpfajTvk.js → vue-ui-age-pyramid-Bsg0z9ei.js} +10 -10
- package/dist/{vue-ui-age-pyramid-CFWWFo_T.cjs → vue-ui-age-pyramid-DNseB8ej.cjs} +1 -1
- package/dist/{vue-ui-annotator-CI9JxLDD.cjs → vue-ui-annotator-CHjtF8NT.cjs} +1 -1
- package/dist/{vue-ui-annotator-BGErHIWg.js → vue-ui-annotator-obnYFvvq.js} +1 -1
- package/dist/{vue-ui-bullet-CCcAE1gt.cjs → vue-ui-bullet-CNWHd7dO.cjs} +1 -1
- package/dist/{vue-ui-bullet-CerH0yY6.js → vue-ui-bullet-yKEVhE17.js} +8 -8
- package/dist/{vue-ui-candlestick-DaXMRecz.js → vue-ui-candlestick-Cc-Ee4zv.js} +11 -11
- package/dist/{vue-ui-candlestick-B0AfUFwT.cjs → vue-ui-candlestick-VBq82rfW.cjs} +1 -1
- package/dist/{vue-ui-carousel-table-Ct8iLKVC.js → vue-ui-carousel-table-B6v1NycN.js} +4 -4
- package/dist/{vue-ui-carousel-table-DU1f-7PI.cjs → vue-ui-carousel-table-DLwVijSb.cjs} +1 -1
- package/dist/{vue-ui-chestnut-BimMImm7.js → vue-ui-chestnut-CekC1moT.js} +8 -8
- package/dist/{vue-ui-chestnut-Bo6vX7Xa.cjs → vue-ui-chestnut-DHZbhIf_.cjs} +1 -1
- package/dist/{vue-ui-cursor-O8Y4gIKa.cjs → vue-ui-cursor-Bz-jVx3a.cjs} +1 -1
- package/dist/{vue-ui-cursor-BqjV3i9U.js → vue-ui-cursor-CISKzkNu.js} +2 -2
- package/dist/{vue-ui-dashboard-DNJUgWJ3.cjs → vue-ui-dashboard-PAi8o4AC.cjs} +1 -1
- package/dist/{vue-ui-dashboard-BGBnagEV.js → vue-ui-dashboard-w7Ts26Xc.js} +2 -2
- package/dist/{vue-ui-digits-D3pzhtVy.cjs → vue-ui-digits-I_lj1m6d.cjs} +1 -1
- package/dist/{vue-ui-digits-DUXLRlXF.js → vue-ui-digits-kaBR5FUU.js} +2 -2
- package/dist/{vue-ui-donut-eljChQvj.js → vue-ui-donut-BVuaExCl.js} +12 -12
- package/dist/{vue-ui-donut-DKME6kEY.cjs → vue-ui-donut-dDpMdK4G.cjs} +1 -1
- package/dist/{vue-ui-donut-evolution-DGaEBhHF.cjs → vue-ui-donut-evolution-ChGao_WW.cjs} +1 -1
- package/dist/{vue-ui-donut-evolution-HbunKbYi.js → vue-ui-donut-evolution-DAmX1OX-.js} +11 -11
- package/dist/{vue-ui-dumbbell-C7Zv4NgK.js → vue-ui-dumbbell-CrQNRN_m.js} +10 -10
- package/dist/{vue-ui-dumbbell-CGw-Zwk-.cjs → vue-ui-dumbbell-DsR4RQY9.cjs} +1 -1
- package/dist/{vue-ui-flow-DcRyVL45.js → vue-ui-flow-B0lCe4G8.js} +9 -9
- package/dist/{vue-ui-flow-DbWddpZi.cjs → vue-ui-flow-Dhcvvzee.cjs} +1 -1
- package/dist/{vue-ui-funnel-ByUFSg1s.cjs → vue-ui-funnel-Bu_wMJ98.cjs} +1 -1
- package/dist/{vue-ui-funnel-D3G2G4P3.js → vue-ui-funnel-Cinv1hUx.js} +9 -9
- package/dist/{vue-ui-galaxy-CXssUv3X.js → vue-ui-galaxy-BcwunIK3.js} +11 -11
- package/dist/{vue-ui-galaxy-ad_Bh1lr.cjs → vue-ui-galaxy-zx6O9AuV.cjs} +1 -1
- package/dist/{vue-ui-gauge-DEROTsyc.js → vue-ui-gauge-C4W4OAXQ.js} +7 -7
- package/dist/{vue-ui-gauge-Bss6mlN7.cjs → vue-ui-gauge-Cb6sxoZI.cjs} +1 -1
- package/dist/{vue-ui-gizmo--6Xw6Dh6.js → vue-ui-gizmo-D4VHyFmN.js} +3 -3
- package/dist/{vue-ui-gizmo-D4CEw0HZ.cjs → vue-ui-gizmo-DBSYx24z.cjs} +1 -1
- package/dist/{vue-ui-heatmap-q8JmNnG2.js → vue-ui-heatmap-C3WHfifV.js} +10 -10
- package/dist/{vue-ui-heatmap-DwCve3RN.cjs → vue-ui-heatmap-CBNt4Huo.cjs} +1 -1
- package/dist/{vue-ui-history-plot-DaZNgu_Z.cjs → vue-ui-history-plot-Dp8Llb3A.cjs} +1 -1
- package/dist/{vue-ui-history-plot-DnT-Ao3t.js → vue-ui-history-plot-dJp-Lai2.js} +11 -11
- package/dist/{vue-ui-kpi-IXgBP9oJ.js → vue-ui-kpi-B3XhowYx.js} +3 -3
- package/dist/{vue-ui-kpi-Dn49_E2W.cjs → vue-ui-kpi-Dnp8IUyb.cjs} +1 -1
- package/dist/{vue-ui-mini-loader-CiVFd_Pp.cjs → vue-ui-mini-loader-BgwhuEda.cjs} +1 -1
- package/dist/{vue-ui-mini-loader-Cm88qObv.js → vue-ui-mini-loader-Cca7PA4v.js} +2 -2
- package/dist/{vue-ui-molecule-Cu92ujex.cjs → vue-ui-molecule-B1AocG3H.cjs} +1 -1
- package/dist/{vue-ui-molecule-C27vhrLA.js → vue-ui-molecule-BcZNqWfD.js} +11 -11
- package/dist/{vue-ui-mood-radar-DvkK8J8b.cjs → vue-ui-mood-radar-Cn65TQEs.cjs} +1 -1
- package/dist/{vue-ui-mood-radar-DIJ9q9Cc.js → vue-ui-mood-radar-HjLL0ZZ8.js} +11 -11
- package/dist/{vue-ui-nested-donuts-CcqhlN0R.js → vue-ui-nested-donuts-BIqySYG_.js} +11 -11
- package/dist/{vue-ui-nested-donuts-DMaF0m31.cjs → vue-ui-nested-donuts-CymFt4B3.cjs} +1 -1
- package/dist/{vue-ui-onion-D20_PGGT.cjs → vue-ui-onion-BLMFR0GK.cjs} +1 -1
- package/dist/{vue-ui-onion-DQOu8srN.js → vue-ui-onion-muCAMEG8.js} +11 -11
- package/dist/{vue-ui-parallel-coordinate-plot-DEtBAZkv.js → vue-ui-parallel-coordinate-plot-DYOlnKPw.js} +12 -12
- package/dist/{vue-ui-parallel-coordinate-plot-CDDv5TXW.cjs → vue-ui-parallel-coordinate-plot-i-hhfnwF.cjs} +1 -1
- package/dist/{vue-ui-quadrant-CVKT0Mil.cjs → vue-ui-quadrant-DJPOp1-A.cjs} +1 -1
- package/dist/{vue-ui-quadrant-9nixb7y0.js → vue-ui-quadrant-TU5fWoEw.js} +12 -12
- package/dist/{vue-ui-quick-chart-DOqmZQuC.cjs → vue-ui-quick-chart-CTJxOisL.cjs} +1 -1
- package/dist/{vue-ui-quick-chart-BBWe0rII.js → vue-ui-quick-chart-DzuUofFN.js} +9 -9
- package/dist/{vue-ui-radar-C_HKZN_s.js → vue-ui-radar-C0WA20R8.js} +12 -12
- package/dist/{vue-ui-radar-crw-BUWI.cjs → vue-ui-radar-D4xX7TNQ.cjs} +1 -1
- package/dist/{vue-ui-rating-D9C-jHN_.cjs → vue-ui-rating-C2JILb2g.cjs} +1 -1
- package/dist/{vue-ui-rating-Bb5D2NLX.js → vue-ui-rating-DUcyhyrN.js} +2 -2
- package/dist/{vue-ui-relation-circle-D94QdFpd.js → vue-ui-relation-circle-BYlIjbUK.js} +7 -7
- package/dist/{vue-ui-relation-circle-BeinsphZ.cjs → vue-ui-relation-circle-D-Wxskec.cjs} +1 -1
- package/dist/{vue-ui-rings-8X_K59uf.cjs → vue-ui-rings-CsXVOIn3.cjs} +1 -1
- package/dist/{vue-ui-rings-B9WghU7W.js → vue-ui-rings-w4KQSfym.js} +12 -12
- package/dist/{vue-ui-scatter-BcGcpFFg.cjs → vue-ui-scatter--5Ob2lKM.cjs} +1 -1
- package/dist/{vue-ui-scatter-DOOY2ZmO.js → vue-ui-scatter-CfgCA3Di.js} +12 -12
- package/dist/{vue-ui-screenshot--dGw9WTO.js → vue-ui-screenshot-BsD3ySuA.js} +1 -1
- package/dist/{vue-ui-screenshot-kqXcFrbS.cjs → vue-ui-screenshot-UEVUHXWY.cjs} +1 -1
- package/dist/{vue-ui-skeleton-Dm5NZ_MQ.cjs → vue-ui-skeleton-D_YCUi1y.cjs} +1 -1
- package/dist/{vue-ui-skeleton-Bzsl5gab.js → vue-ui-skeleton-DpadzgbS.js} +3 -3
- package/dist/{vue-ui-smiley-CHDBpGz6.js → vue-ui-smiley-BHqeb-Ol.js} +2 -2
- package/dist/{vue-ui-smiley-CzUbbfNC.cjs → vue-ui-smiley-C32dLhtP.cjs} +1 -1
- package/dist/{vue-ui-spark-trend-CBuzPxBw.cjs → vue-ui-spark-trend-Bt2wpc5C.cjs} +1 -1
- package/dist/{vue-ui-spark-trend-DDmtsL-M.js → vue-ui-spark-trend-NAcB2zZ1.js} +5 -5
- package/dist/{vue-ui-sparkbar-clHgL-Jf.js → vue-ui-sparkbar-BPpSxe5Z.js} +4 -4
- package/dist/{vue-ui-sparkbar-BOWdoskI.cjs → vue-ui-sparkbar-CgoGRT0_.cjs} +1 -1
- package/dist/{vue-ui-sparkgauge-ClpG_Qy_.js → vue-ui-sparkgauge-C1mW3KbZ.js} +4 -4
- package/dist/{vue-ui-sparkgauge-BCpab_To.cjs → vue-ui-sparkgauge-frN6uK_L.cjs} +1 -1
- package/dist/{vue-ui-sparkhistogram-_-2qzDRQ.cjs → vue-ui-sparkhistogram-CqQY434G.cjs} +1 -1
- package/dist/{vue-ui-sparkhistogram-DtcZvaVe.js → vue-ui-sparkhistogram-HgBi5OvP.js} +5 -5
- package/dist/{vue-ui-sparkline-Hw74DjL2.js → vue-ui-sparkline-BABBXY2c.js} +4 -4
- package/dist/{vue-ui-sparkline-BiPWJRwq.cjs → vue-ui-sparkline-XOa6LfX2.cjs} +1 -1
- package/dist/{vue-ui-sparkstackbar-C65Dz1NY.cjs → vue-ui-sparkstackbar-B4Xduiv1.cjs} +1 -1
- package/dist/{vue-ui-sparkstackbar-BvdFMu7C.js → vue-ui-sparkstackbar-Ch3JvFBq.js} +5 -5
- package/dist/{vue-ui-stackbar-CUbWqpvI.cjs → vue-ui-stackbar-CH8tLDZq.cjs} +1 -1
- package/dist/{vue-ui-stackbar-DHihhNbH.js → vue-ui-stackbar-JIEn0g7t.js} +13 -13
- package/dist/{vue-ui-strip-plot-CuoQTnRG.cjs → vue-ui-strip-plot-BkWzm1mI.cjs} +1 -1
- package/dist/{vue-ui-strip-plot-BeRtOGC8.js → vue-ui-strip-plot-RZu43QbP.js} +11 -11
- package/dist/{vue-ui-table-00JpIXEn.js → vue-ui-table-CJ2gGmYi.js} +1 -1
- package/dist/{vue-ui-table-C6jU1DC3.cjs → vue-ui-table-CgtE4HWs.cjs} +1 -1
- package/dist/{vue-ui-table-heatmap-iRdyUnBz.js → vue-ui-table-heatmap-B_TfeHsa.js} +4 -4
- package/dist/{vue-ui-table-heatmap-BKwt85XQ.cjs → vue-ui-table-heatmap-DxTs_PZF.cjs} +1 -1
- package/dist/{vue-ui-table-sparkline-B4S_DJRU.js → vue-ui-table-sparkline-DqMH7xbY.js} +5 -5
- package/dist/{vue-ui-table-sparkline-Z-VfjBcc.cjs → vue-ui-table-sparkline-PA9L6AjE.cjs} +1 -1
- package/dist/{vue-ui-thermometer-MNfpy-bk.cjs → vue-ui-thermometer-AwZdEG3j.cjs} +1 -1
- package/dist/{vue-ui-thermometer-BVETzQ_9.js → vue-ui-thermometer-D7aR0elr.js} +7 -7
- package/dist/{vue-ui-timer-DzzNUzOv.cjs → vue-ui-timer-C6fnDeD8.cjs} +1 -1
- package/dist/{vue-ui-timer-Dafx7lL2.js → vue-ui-timer-C9sO9AoQ.js} +5 -5
- package/dist/{vue-ui-tiremarks-VmJ74REn.cjs → vue-ui-tiremarks-Dje0I1vf.cjs} +1 -1
- package/dist/{vue-ui-tiremarks-DvIZxZFn.js → vue-ui-tiremarks-KvOyYNVW.js} +7 -7
- package/dist/{vue-ui-treemap-Bqurrxbn.js → vue-ui-treemap-BPxLXNZ5.js} +11 -11
- package/dist/{vue-ui-treemap-jtIS1DF3.cjs → vue-ui-treemap-C2Vrj3tg.cjs} +1 -1
- package/dist/{vue-ui-vertical-bar-CAQNpuVV.js → vue-ui-vertical-bar-BAdSzbYU.js} +12 -12
- package/dist/{vue-ui-vertical-bar-B7gHw4NU.cjs → vue-ui-vertical-bar-_MWpPkwZ.cjs} +1 -1
- package/dist/{vue-ui-waffle-BW2oPwaN.js → vue-ui-waffle-CW1UVf-q.js} +12 -12
- package/dist/{vue-ui-waffle-Bx-yIwH9.cjs → vue-ui-waffle-DfJI5Lez.cjs} +1 -1
- package/dist/{vue-ui-wheel-DdBcwGLj.cjs → vue-ui-wheel-CzZEsjmd.cjs} +1 -1
- package/dist/{vue-ui-wheel-LE-u6_KV.js → vue-ui-wheel-DAwYc7XY.js} +7 -7
- package/dist/{vue-ui-word-cloud-C1X5oYBt.cjs → vue-ui-word-cloud-BEyV6jMo.cjs} +1 -1
- package/dist/{vue-ui-word-cloud-CjCNiXGN.js → vue-ui-word-cloud-BzfYkI08.js} +10 -10
- package/dist/vue-ui-xy-BolkwiXB.cjs +3 -0
- package/dist/{vue-ui-xy-jjjT4XDo.js → vue-ui-xy-CJYGMbMt.js} +610 -609
- package/dist/{vue-ui-xy-canvas-CBx1LM4e.cjs → vue-ui-xy-canvas-DkltjVWN.cjs} +1 -1
- package/dist/{vue-ui-xy-canvas-BgWkLI4n.js → vue-ui-xy-canvas-sB1dmJQc.js} +11 -11
- package/package.json +1 -1
- package/dist/vue-ui-xy-Dr_MT-o-.cjs +0 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),u=require("./index-CbMyzHGj.cjs"),xe=require("./Title-BzcIyo-x.cjs"),se=require("./usePrinter-BzVsUZ9_.cjs"),L=require("./useResponsive-BJ7DTGpm.cjs"),$e=require("./vue-ui-accordion-Uftgxo97.cjs"),Te=require("./DataTable-D0qYxBVZ.cjs"),Ne=require("./BaseIcon-BnnMILPX.cjs"),ie=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),ue=require("./useNestedProp-DqPx8kFh.cjs"),Pe=require("./PackageVersion-sBYhtscP.cjs"),Be=require("./Tooltip-DWo9kakv.cjs"),Fe=require("./PenAndPaper-CHz_Iy5T.cjs"),ze=require("./useUserOptionState-BgepsfED.cjs"),Oe=c=>(e.pushScopeId("data-v-b4e6aee9"),c=c(),e.popScopeId(),c),Ve={"data-html2canvas-ignore":""},Ae={key:0,class:"reset-wrapper"},Ee={key:1,class:"reset-wrapper"},_e={class:"mono-slicer"},Ie=Oe(()=>e.createElementVNode("div",{class:"slider-track"},null,-1)),Me=["min","max","value"],Re={__name:"MonoSlicer",props:{min:{type:Number,default:0},max:{type:Number,default:0},inputColor:{type:String,default:"#1A1A1A"},background:{type:String,default:"#FFFFFF"},borderColor:{type:String,default:"#FFFFFF"},selectColor:{type:String,default:"#4A4A4A"},textColor:{type:String,default:"#1A1A1A"},useResetSlot:{type:Boolean,default:!1},value:{type:Number,default:0},source:{type:Number,default:0}},emits:["update:value","reset"],setup(c,{emit:P}){const s=c;e.useCssVars(g=>({"782b8172":E.value,"102109e6":x.value,"642212d7":f.value,"1f5369d4":c.selectColor,"22b98ab8":y.value}));const E=e.computed(()=>s.inputColor),y=e.computed(()=>s.background),f=e.computed(()=>`${s.selectColor}33`),x=e.computed(()=>s.borderColor);function $(){P("reset")}const h=e.computed(()=>{const g=s.max-s.min,p=0,b=(s.value-s.min)/g*100;return{left:`${p}%`,width:`${b-p}%`,background:s.selectColor}});return(g,p)=>(e.openBlock(),e.createElementBlock("div",Ve,[c.value!==c.source?(e.openBlock(),e.createElementBlock("div",Ae,[c.useResetSlot?e.renderSlot(g.$slots,"reset-action",{key:1,reset:$},void 0,!0):(e.openBlock(),e.createElementBlock("button",{key:0,"data-cy-reset":"",tabindex:"0",role:"button",class:"vue-data-ui-refresh-button",onClick:$},[e.createVNode(Ne.default,{name:"refresh",stroke:c.textColor},null,8,["stroke"])]))])):(e.openBlock(),e.createElementBlock("div",Ee)),e.createElementVNode("div",_e,[Ie,e.createElementVNode("div",{class:"range-highlight",style:e.normalizeStyle(h.value)},null,4),e.createElementVNode("input",{type:"range",min:c.min,max:c.max,value:Number(c.value),onInput:p[0]||(p[0]=b=>P("update:value",Number(b.target.value)))},null,40,Me)])]))}},qe=ie._export_sfc(Re,[["__scopeId","data-v-b4e6aee9"]]),Ue=["id"],We=["xmlns","viewBox"],De=["width","height"],Ge=["transform"],Le=["fill","font-weight","x","y","font-size","transform","onMouseover"],je={key:4,class:"vue-data-ui-watermark"},He=["innerHTML"],Xe={__name:"vue-ui-word-cloud",props:{config:{type:Object,default(){return{}}},dataset:{type:[Array,String],default(){return[]}}},setup(c,{expose:P}){const s=c,{vue_ui_word_cloud:E}=u.useConfig(),y=e.computed({get(){return!!s.dataset&&s.dataset.length},set(o){return o}}),f=e.ref(typeof s.dataset=="string"?u.createWordCloudDatasetFromPlainText(s.dataset):s.dataset.map(o=>({...o,value:u.checkNaN(o.value)}))),x=e.ref(u.createUid()),$=e.ref(0),h=e.ref(null),g=e.ref(null),p=e.ref(null),b=e.ref(0),j=e.ref(0),_=e.ref(!1),t=e.computed({get:()=>Y(),set:o=>o}),{userOptionsVisible:I,setUserOptionsVisibility:H,keepUserOptionState:X}=ze.useUserOptionState({config:t.value});function Y(){const o=ue.useNestedProp({userConfig:s.config,defaultConfig:E});return o.theme?{...ue.useNestedProp({userConfig:u.themes.vue_ui_word_cloud[o.theme]||s.config,defaultConfig:o}),customPalette:u.themePalettes[o.theme]||u.palette}:o}e.watch(()=>s.config,o=>{t.value=Y(),I.value=!t.value.showOnChartHover,K(),b.value+=1,j.value+=1,M()},{deep:!0});const J=e.ref(null),k=e.ref(0),r=e.ref({width:t.value.style.chart.width,height:t.value.style.chart.height,maxFontSize:t.value.style.chart.words.maxFontSize,minFontSize:t.value.style.chart.words.minFontSize}),ce=L.throttle(()=>{const{width:o,height:a}=L.useResponsive({chart:h.value,title:t.value.style.chart.title.text?g.value:null,slicer:t.value.style.chart.zoom.show&&J.value,source:p.value});r.value.width=o,r.value.height=a,e.nextTick(R)});e.watch(()=>k.value,()=>{de()});const de=L.debounce(()=>{R()},10);function M(){k.value=oe.value}const B=e.ref(null);e.onMounted(()=>{K(),M()});function K(){u.objectIsEmpty(s.dataset)?u.error({componentName:"VueUiWordCloud",type:"dataset"}):f.value.forEach((o,a)=>{u.getMissingDatasetAttributes({datasetObject:o,requiredAttributes:["name","value"]}).forEach(l=>{y.value=!1,u.error({componentName:"VueUiWordCloud",type:"datasetSerieAttribute",property:l,index:a})})}),t.value.responsive&&(B.value=new ResizeObserver(ce),B.value.observe(h.value.parentNode))}e.onBeforeUnmount(()=>{B.value&&B.value.disconnect()});const{isPrinting:Q,isImaging:Z,generatePdf:ee,generateImage:te}=se.usePrinter({elementId:`wordCloud_${x.value}`,fileName:t.value.style.chart.title.text||"vue-ui-word-cloud"}),d=e.ref({showTable:t.value.table.show,showTooltip:t.value.style.chart.tooltip.show});function ve(o,a,l="Arial"){const n=document.createElement("canvas").getContext("2d");return n.font=`${a}px ${t.value.style.chart.words.bold?"bold":"normal"} ${l}`,{width:n.measureText(o).width+t.value.style.chart.words.proximity,height:a}}function he(o,a){return o.x<a.x+a.width&&o.x+o.width>a.x&&o.y<a.y+a.height&&o.y+o.height>a.y}function pe(o,a,l){const i=[],n={x:-a/2,y:-l/2,width:a,height:l},v=0,w=0;return o.forEach(S=>{let D=!1;for(let A=0;A<Math.max(a,l)/2&&!D;A+=t.value.style.chart.words.packingWeight)for(let G=0;G<360&&!D;G+=t.value.style.chart.words.packingWeight){const re=G*Math.PI/180,be=v+A*Math.cos(re)-S.width/2,ke=w+A*Math.sin(re)-S.height/2,m={...S,x:be,y:ke},Ce=m.x>=n.x&&m.y>=n.y&&m.x+m.width<=n.x+n.width&&m.y+m.height<=n.y+n.height,we=i.some(Se=>he(m,Se));Ce&&!we&&(i.push(m),D=!0)}}),i}const T=e.ref([]);e.watch(()=>s.dataset,R,{immediate:!0});const oe=e.computed(()=>Math.min(...f.value.map(o=>o.value))),me=e.computed(()=>Math.max(...f.value.map(o=>o.value)));function R(){const o=[...f.value].filter(n=>n.value>=k.value).map(n=>n.value),a=Math.max(...o),l=Math.min(...o),i=[...f.value].filter(n=>n.value>=k.value).map((n,v)=>{const w=(n.value-l)/(a-l)*(r.value.maxFontSize-r.value.minFontSize)+r.value.minFontSize,S=ve(n.name,w);return{...n,id:u.createUid(),fontSize:w,width:S.width,height:S.height,color:t.value.style.chart.words.usePalette?t.value.customPalette[v]||t.value.customPalette[v%t.value.customPalette.length]||u.palette[v]||u.palette[v%u.palette.length]:t.value.style.chart.words.color}});T.value=pe(i,r.value.width,r.value.height).sort((n,v)=>v.fontSize-n.fontSize)}const F=e.computed(()=>{const o=T.value.map(l=>({name:l.name,color:l.color})),a=T.value.map(l=>l.value);return{head:o,body:a}});function le(){e.nextTick(()=>{const o=F.value.head.map((i,n)=>[[i.name],[F.value.body[n]]]),a=[[t.value.style.chart.title.text],[t.value.style.chart.title.subtitle.text],[[""],[t.value.table.columnNames.value]]].concat(o),l=u.createCsvContent(a);u.downloadCsv({csvContent:l,title:t.value.style.chart.title.text||"vue-ui-word-cloud"})})}const z=e.computed(()=>{const o=[t.value.table.columnNames.series,t.value.table.columnNames.value],a=F.value.head.map((n,v)=>{const w=u.dataLabel({p:t.value.table.td.prefix,v:F.value.body[v],s:t.value.table.td.suffix,r:t.value.table.td.roundingValue});return[{color:n.color,name:n.name},w]}),l={th:{backgroundColor:t.value.table.th.backgroundColor,color:t.value.table.th.color,outline:t.value.table.th.outline},td:{backgroundColor:t.value.table.td.backgroundColor,color:t.value.table.td.color,outline:t.value.table.td.outline},breakpoint:t.value.table.responsiveBreakpoint};return{colNames:[t.value.table.columnNames.series,t.value.table.columnNames.value],head:o,body:a,config:l}}),O=e.ref(!1);function fe(o){O.value=o,$.value+=1}function ge(){return T.value}function ae(){d.value.showTable=!d.value.showTable}function ne(){d.value.showTooltip=!d.value.showTooltip}const V=e.ref(!1);function q(){V.value=!V.value}P({getData:ge,generateCsv:le,generatePdf:ee,generateImage:te,toggleTable:ae,toggleTooltip:ne,toggleAnnotator:q});const C=e.ref(null),N=e.ref(!1),U=e.ref(""),W=e.ref(null);function ye(o){if(!d.value.showTooltip)return;C.value=o.id,W.value={datapoint:o,config:t.value};const a=t.value.style.chart.tooltip.customFormat;if(N.value=!1,u.isFunction(a))try{const l=a({datapoint:o,config:t.value});typeof l=="string"&&(U.value=l,N.value=!0)}catch{console.warn("Custom format cannot be applied."),N.value=!1}if(!N.value){let l=`<svg viewBox="0 0 10 10" height="${t.value.style.chart.tooltip.fontSize}"><circle cx="5" cy="5" r="5" fill="${o.color}"/></svg><span>${o.name}:</span><b>${(o.value||0).toFixed(t.value.style.chart.tooltip.roundingValue)}</b>`;U.value=`<div dir="auto" style="display:flex; gap:4px; align-items:center; jsutify-content:center;">${l}</div>`}_.value=!0}return(o,a)=>(e.openBlock(),e.createElementBlock("div",{class:"vue-ui-word-cloud",ref_key:"wordCloudChart",ref:h,id:`wordCloud_${x.value}`,style:e.normalizeStyle(`width: 100%; font-family:${t.value.style.fontFamily};background:${t.value.style.chart.backgroundColor};${t.value.responsive?"height:100%":""}`),onMouseenter:a[3]||(a[3]=()=>e.unref(H)(!0)),onMouseleave:a[4]||(a[4]=()=>e.unref(H)(!1))},[t.value.userOptions.buttons.annotator?(e.openBlock(),e.createBlock(Fe.PenAndPaper,{key:0,parent:h.value,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,active:V.value,onClose:q},null,8,["parent","backgroundColor","color","active"])):e.createCommentVNode("",!0),t.value.style.chart.title.text?(e.openBlock(),e.createElementBlock("div",{key:1,ref_key:"chartTitle",ref:g,style:"width:100%;background:transparent;padding-bottom:24px"},[(e.openBlock(),e.createBlock(xe._sfc_main,{key:`title_${b.value}`,config:{title:{...t.value.style.chart.title},subtitle:{...t.value.style.chart.title.subtitle}}},null,8,["config"]))],512)):e.createCommentVNode("",!0),t.value.userOptions.show&&y.value&&(e.unref(X)||e.unref(I))?(e.openBlock(),e.createBlock(se.UserOptions,{ref:"details",key:`user_option_${$.value}`,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,isPrinting:e.unref(Q),isImaging:e.unref(Z),uid:x.value,hasPdf:t.value.userOptions.buttons.pdf,hasXls:t.value.userOptions.buttons.csv,hasImg:t.value.userOptions.buttons.img,hasTable:t.value.userOptions.buttons.table,hasFullscreen:t.value.userOptions.buttons.fullscreen,isFullscreen:O.value,titles:{...t.value.userOptions.buttonTitles},chartElement:h.value,position:t.value.userOptions.position,hasTooltip:t.value.style.chart.tooltip.show&&t.value.userOptions.buttons.tooltip,isTooltip:d.value.showTooltip,hasAnnotator:t.value.userOptions.buttons.annotator,isAnnotation:V.value,onToggleFullscreen:fe,onGeneratePdf:e.unref(ee),onGenerateCsv:le,onGenerateImage:e.unref(te),onToggleTable:ae,onToggleTooltip:ne,onToggleAnnotator:q,style:e.normalizeStyle({visibility:e.unref(X)?e.unref(I)?"visible":"hidden":"visible"})},e.createSlots({_:2},[o.$slots.optionPdf?{name:"optionPdf",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"optionPdf",{},void 0,!0)]),key:"0"}:void 0,o.$slots.optionCsv?{name:"optionCsv",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"optionCsv",{},void 0,!0)]),key:"1"}:void 0,o.$slots.optionImg?{name:"optionImg",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"optionImg",{},void 0,!0)]),key:"2"}:void 0,o.$slots.optionTable?{name:"optionTable",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"optionTable",{},void 0,!0)]),key:"3"}:void 0,o.$slots.optionFullscreen?{name:"optionFullscreen",fn:e.withCtx(({toggleFullscreen:l,isFullscreen:i})=>[e.renderSlot(o.$slots,"optionFullscreen",e.normalizeProps(e.guardReactiveProps({toggleFullscreen:l,isFullscreen:i})),void 0,!0)]),key:"4"}:void 0,o.$slots.optionAnnotator?{name:"optionAnnotator",fn:e.withCtx(({toggleAnnotator:l,isAnnotator:i})=>[e.renderSlot(o.$slots,"optionAnnotator",e.normalizeProps(e.guardReactiveProps({toggleAnnotator:l,isAnnotator:i})),void 0,!0)]),key:"5"}:void 0]),1032,["backgroundColor","color","isPrinting","isImaging","uid","hasPdf","hasXls","hasImg","hasTable","hasFullscreen","isFullscreen","titles","chartElement","position","hasTooltip","isTooltip","hasAnnotator","isAnnotation","onGeneratePdf","onGenerateImage","style"])):e.createCommentVNode("",!0),y.value?(e.openBlock(),e.createElementBlock("svg",{key:3,class:e.normalizeClass({"vue-data-ui-fullscreen--on":O.value,"vue-data-ui-fulscreen--off":!O.value}),xmlns:e.unref(u.XMLNS),viewBox:`0 0 ${r.value.width<=0?10:r.value.width} ${r.value.height<=0?10:r.value.height}`,style:"overflow:visible;background:transparent;"},[e.createVNode(Pe._sfc_main),o.$slots["chart-background"]?(e.openBlock(),e.createElementBlock("foreignObject",{key:0,x:0,y:0,width:r.value.width<=0?10:r.value.width,height:r.value.height<=0?10:r.value.height,style:{pointerEvents:"none"}},[e.renderSlot(o.$slots,"chart-background",{},void 0,!0)],8,De)):e.createCommentVNode("",!0),e.createElementVNode("g",{transform:`translate(${(r.value.width<=0?10:r.value.width)/2}, ${(r.value.height<=0?10:r.value.height)/2})`},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(T.value,(l,i)=>(e.openBlock(),e.createElementBlock("g",null,[(e.openBlock(),e.createElementBlock("text",{fill:l.color,"font-weight":t.value.style.chart.words.bold?"bold":"normal",key:i,x:l.x,y:l.y,"font-size":l.fontSize,transform:`translate(${l.width/2}, ${l.height/2})`,class:e.normalizeClass({animated:t.value.useCssAnimation,"word-selected":C.value&&C.value===l.id&&d.value.showTooltip,"word-not-selected":C.value&&C.value!==l.id&&d.value.showTooltip}),"text-anchor":"middle","dominant-baseline":"central",onMouseover:n=>ye(l),onMouseleave:a[0]||(a[0]=n=>{C.value=null,_.value=!1}),style:e.normalizeStyle(`animation-delay:${i*t.value.animationDelayMs}ms !important;`)},e.toDisplayString(l.name),47,Le))]))),256))],8,Ge),e.renderSlot(o.$slots,"svg",{svg:{height:r.value.height,width:r.value.width}},void 0,!0)],10,We)):e.createCommentVNode("",!0),o.$slots.watermark?(e.openBlock(),e.createElementBlock("div",je,[e.renderSlot(o.$slots,"watermark",e.normalizeProps(e.guardReactiveProps({isPrinting:e.unref(Q)||e.unref(Z)})),void 0,!0)])):e.createCommentVNode("",!0),e.createVNode(Be._sfc_main,{show:d.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:h.value,content:U.value,isCustom:N.value},{"tooltip-before":e.withCtx(()=>[e.renderSlot(o.$slots,"tooltip-before",e.normalizeProps(e.guardReactiveProps({...W.value})),void 0,!0)]),"tooltip-after":e.withCtx(()=>[e.renderSlot(o.$slots,"tooltip-after",e.normalizeProps(e.guardReactiveProps({...W.value})),void 0,!0)]),_:3},8,["show","backgroundColor","color","fontSize","borderRadius","borderColor","borderWidth","backgroundOpacity","position","offsetY","parent","content","isCustom"]),e.createElementVNode("div",{ref_key:"chartSlicer",ref:J,style:"width:100%;background:transparent","data-html2canvas-ignore":""},[t.value.style.chart.zoom.show?(e.openBlock(),e.createBlock(qe,{key:0,value:k.value,"onUpdate:value":a[1]||(a[1]=l=>k.value=l),min:oe.value,max:me.value,textColor:t.value.style.chart.color,inputColor:t.value.style.chart.zoom.color,selectColor:t.value.style.chart.zoom.highlightColor,useResetSlot:t.value.style.chart.zoom.useResetSlot,background:t.value.style.chart.zoom.color,borderColor:t.value.style.chart.backgroundColor,source:t.value.style.chart.width,onReset:M},{"reset-action":e.withCtx(({reset:l})=>[e.renderSlot(o.$slots,"reset-action",e.normalizeProps(e.guardReactiveProps({reset:l})),void 0,!0)]),_:3},8,["value","min","max","textColor","inputColor","selectColor","useResetSlot","background","borderColor","source"])):e.createCommentVNode("",!0)],512),o.$slots.source?(e.openBlock(),e.createElementBlock("div",{key:5,ref_key:"source",ref:p,dir:"auto"},[e.renderSlot(o.$slots,"source",{},void 0,!0)],512)):e.createCommentVNode("",!0),y.value?(e.openBlock(),e.createBlock($e.default,{key:6,hideDetails:"",config:{open:d.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(Te.DataTable,{key:`table_${j.value}`,colNames:z.value.colNames,head:z.value.head,body:z.value.body,config:z.value.config,title:`${t.value.style.chart.title.text}${t.value.style.chart.title.subtitle.text?` : ${t.value.style.chart.title.subtitle.text}`:""}`,onClose:a[2]||(a[2]=l=>d.value.showTable=!1)},{th:e.withCtx(({th:l})=>[e.createElementVNode("div",{innerHTML:l,style:{display:"flex","align-items":"center"}},null,8,He)]),td:e.withCtx(({td:l})=>[e.createTextVNode(e.toDisplayString(l.name||l),1)]),_:1},8,["colNames","head","body","config","title"]))]),_:1},8,["config"])):e.createCommentVNode("",!0)],44,Ue))}},Ye=ie._export_sfc(Xe,[["__scopeId","data-v-cd6ced56"]]);exports.default=Ye;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),u=require("./index-KJL8ra_6.cjs"),xe=require("./Title-D-6pIV0l.cjs"),se=require("./usePrinter-pDOF3CfL.cjs"),L=require("./useResponsive-BJ7DTGpm.cjs"),$e=require("./vue-ui-accordion-4-dyMgJA.cjs"),Te=require("./DataTable-wN-jvOfe.cjs"),Ne=require("./BaseIcon-CIjjPDqj.cjs"),ie=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),ue=require("./useNestedProp-Bu958azG.cjs"),Pe=require("./PackageVersion-Dn-t7tbm.cjs"),Be=require("./Tooltip-CNox4F8U.cjs"),Fe=require("./PenAndPaper-DFXJJink.cjs"),ze=require("./useUserOptionState-BgepsfED.cjs"),Oe=c=>(e.pushScopeId("data-v-b4e6aee9"),c=c(),e.popScopeId(),c),Ve={"data-html2canvas-ignore":""},Ae={key:0,class:"reset-wrapper"},Ee={key:1,class:"reset-wrapper"},_e={class:"mono-slicer"},Ie=Oe(()=>e.createElementVNode("div",{class:"slider-track"},null,-1)),Me=["min","max","value"],Re={__name:"MonoSlicer",props:{min:{type:Number,default:0},max:{type:Number,default:0},inputColor:{type:String,default:"#1A1A1A"},background:{type:String,default:"#FFFFFF"},borderColor:{type:String,default:"#FFFFFF"},selectColor:{type:String,default:"#4A4A4A"},textColor:{type:String,default:"#1A1A1A"},useResetSlot:{type:Boolean,default:!1},value:{type:Number,default:0},source:{type:Number,default:0}},emits:["update:value","reset"],setup(c,{emit:P}){const s=c;e.useCssVars(g=>({"782b8172":E.value,"102109e6":x.value,"642212d7":f.value,"1f5369d4":c.selectColor,"22b98ab8":y.value}));const E=e.computed(()=>s.inputColor),y=e.computed(()=>s.background),f=e.computed(()=>`${s.selectColor}33`),x=e.computed(()=>s.borderColor);function $(){P("reset")}const h=e.computed(()=>{const g=s.max-s.min,p=0,b=(s.value-s.min)/g*100;return{left:`${p}%`,width:`${b-p}%`,background:s.selectColor}});return(g,p)=>(e.openBlock(),e.createElementBlock("div",Ve,[c.value!==c.source?(e.openBlock(),e.createElementBlock("div",Ae,[c.useResetSlot?e.renderSlot(g.$slots,"reset-action",{key:1,reset:$},void 0,!0):(e.openBlock(),e.createElementBlock("button",{key:0,"data-cy-reset":"",tabindex:"0",role:"button",class:"vue-data-ui-refresh-button",onClick:$},[e.createVNode(Ne.default,{name:"refresh",stroke:c.textColor},null,8,["stroke"])]))])):(e.openBlock(),e.createElementBlock("div",Ee)),e.createElementVNode("div",_e,[Ie,e.createElementVNode("div",{class:"range-highlight",style:e.normalizeStyle(h.value)},null,4),e.createElementVNode("input",{type:"range",min:c.min,max:c.max,value:Number(c.value),onInput:p[0]||(p[0]=b=>P("update:value",Number(b.target.value)))},null,40,Me)])]))}},qe=ie._export_sfc(Re,[["__scopeId","data-v-b4e6aee9"]]),Ue=["id"],We=["xmlns","viewBox"],De=["width","height"],Ge=["transform"],Le=["fill","font-weight","x","y","font-size","transform","onMouseover"],je={key:4,class:"vue-data-ui-watermark"},He=["innerHTML"],Xe={__name:"vue-ui-word-cloud",props:{config:{type:Object,default(){return{}}},dataset:{type:[Array,String],default(){return[]}}},setup(c,{expose:P}){const s=c,{vue_ui_word_cloud:E}=u.useConfig(),y=e.computed({get(){return!!s.dataset&&s.dataset.length},set(o){return o}}),f=e.ref(typeof s.dataset=="string"?u.createWordCloudDatasetFromPlainText(s.dataset):s.dataset.map(o=>({...o,value:u.checkNaN(o.value)}))),x=e.ref(u.createUid()),$=e.ref(0),h=e.ref(null),g=e.ref(null),p=e.ref(null),b=e.ref(0),j=e.ref(0),_=e.ref(!1),t=e.computed({get:()=>Y(),set:o=>o}),{userOptionsVisible:I,setUserOptionsVisibility:H,keepUserOptionState:X}=ze.useUserOptionState({config:t.value});function Y(){const o=ue.useNestedProp({userConfig:s.config,defaultConfig:E});return o.theme?{...ue.useNestedProp({userConfig:u.themes.vue_ui_word_cloud[o.theme]||s.config,defaultConfig:o}),customPalette:u.themePalettes[o.theme]||u.palette}:o}e.watch(()=>s.config,o=>{t.value=Y(),I.value=!t.value.showOnChartHover,K(),b.value+=1,j.value+=1,M()},{deep:!0});const J=e.ref(null),k=e.ref(0),r=e.ref({width:t.value.style.chart.width,height:t.value.style.chart.height,maxFontSize:t.value.style.chart.words.maxFontSize,minFontSize:t.value.style.chart.words.minFontSize}),ce=L.throttle(()=>{const{width:o,height:a}=L.useResponsive({chart:h.value,title:t.value.style.chart.title.text?g.value:null,slicer:t.value.style.chart.zoom.show&&J.value,source:p.value});r.value.width=o,r.value.height=a,e.nextTick(R)});e.watch(()=>k.value,()=>{de()});const de=L.debounce(()=>{R()},10);function M(){k.value=oe.value}const B=e.ref(null);e.onMounted(()=>{K(),M()});function K(){u.objectIsEmpty(s.dataset)?u.error({componentName:"VueUiWordCloud",type:"dataset"}):f.value.forEach((o,a)=>{u.getMissingDatasetAttributes({datasetObject:o,requiredAttributes:["name","value"]}).forEach(l=>{y.value=!1,u.error({componentName:"VueUiWordCloud",type:"datasetSerieAttribute",property:l,index:a})})}),t.value.responsive&&(B.value=new ResizeObserver(ce),B.value.observe(h.value.parentNode))}e.onBeforeUnmount(()=>{B.value&&B.value.disconnect()});const{isPrinting:Q,isImaging:Z,generatePdf:ee,generateImage:te}=se.usePrinter({elementId:`wordCloud_${x.value}`,fileName:t.value.style.chart.title.text||"vue-ui-word-cloud"}),d=e.ref({showTable:t.value.table.show,showTooltip:t.value.style.chart.tooltip.show});function ve(o,a,l="Arial"){const n=document.createElement("canvas").getContext("2d");return n.font=`${a}px ${t.value.style.chart.words.bold?"bold":"normal"} ${l}`,{width:n.measureText(o).width+t.value.style.chart.words.proximity,height:a}}function he(o,a){return o.x<a.x+a.width&&o.x+o.width>a.x&&o.y<a.y+a.height&&o.y+o.height>a.y}function pe(o,a,l){const i=[],n={x:-a/2,y:-l/2,width:a,height:l},v=0,w=0;return o.forEach(S=>{let D=!1;for(let A=0;A<Math.max(a,l)/2&&!D;A+=t.value.style.chart.words.packingWeight)for(let G=0;G<360&&!D;G+=t.value.style.chart.words.packingWeight){const re=G*Math.PI/180,be=v+A*Math.cos(re)-S.width/2,ke=w+A*Math.sin(re)-S.height/2,m={...S,x:be,y:ke},Ce=m.x>=n.x&&m.y>=n.y&&m.x+m.width<=n.x+n.width&&m.y+m.height<=n.y+n.height,we=i.some(Se=>he(m,Se));Ce&&!we&&(i.push(m),D=!0)}}),i}const T=e.ref([]);e.watch(()=>s.dataset,R,{immediate:!0});const oe=e.computed(()=>Math.min(...f.value.map(o=>o.value))),me=e.computed(()=>Math.max(...f.value.map(o=>o.value)));function R(){const o=[...f.value].filter(n=>n.value>=k.value).map(n=>n.value),a=Math.max(...o),l=Math.min(...o),i=[...f.value].filter(n=>n.value>=k.value).map((n,v)=>{const w=(n.value-l)/(a-l)*(r.value.maxFontSize-r.value.minFontSize)+r.value.minFontSize,S=ve(n.name,w);return{...n,id:u.createUid(),fontSize:w,width:S.width,height:S.height,color:t.value.style.chart.words.usePalette?t.value.customPalette[v]||t.value.customPalette[v%t.value.customPalette.length]||u.palette[v]||u.palette[v%u.palette.length]:t.value.style.chart.words.color}});T.value=pe(i,r.value.width,r.value.height).sort((n,v)=>v.fontSize-n.fontSize)}const F=e.computed(()=>{const o=T.value.map(l=>({name:l.name,color:l.color})),a=T.value.map(l=>l.value);return{head:o,body:a}});function le(){e.nextTick(()=>{const o=F.value.head.map((i,n)=>[[i.name],[F.value.body[n]]]),a=[[t.value.style.chart.title.text],[t.value.style.chart.title.subtitle.text],[[""],[t.value.table.columnNames.value]]].concat(o),l=u.createCsvContent(a);u.downloadCsv({csvContent:l,title:t.value.style.chart.title.text||"vue-ui-word-cloud"})})}const z=e.computed(()=>{const o=[t.value.table.columnNames.series,t.value.table.columnNames.value],a=F.value.head.map((n,v)=>{const w=u.dataLabel({p:t.value.table.td.prefix,v:F.value.body[v],s:t.value.table.td.suffix,r:t.value.table.td.roundingValue});return[{color:n.color,name:n.name},w]}),l={th:{backgroundColor:t.value.table.th.backgroundColor,color:t.value.table.th.color,outline:t.value.table.th.outline},td:{backgroundColor:t.value.table.td.backgroundColor,color:t.value.table.td.color,outline:t.value.table.td.outline},breakpoint:t.value.table.responsiveBreakpoint};return{colNames:[t.value.table.columnNames.series,t.value.table.columnNames.value],head:o,body:a,config:l}}),O=e.ref(!1);function fe(o){O.value=o,$.value+=1}function ge(){return T.value}function ae(){d.value.showTable=!d.value.showTable}function ne(){d.value.showTooltip=!d.value.showTooltip}const V=e.ref(!1);function q(){V.value=!V.value}P({getData:ge,generateCsv:le,generatePdf:ee,generateImage:te,toggleTable:ae,toggleTooltip:ne,toggleAnnotator:q});const C=e.ref(null),N=e.ref(!1),U=e.ref(""),W=e.ref(null);function ye(o){if(!d.value.showTooltip)return;C.value=o.id,W.value={datapoint:o,config:t.value};const a=t.value.style.chart.tooltip.customFormat;if(N.value=!1,u.isFunction(a))try{const l=a({datapoint:o,config:t.value});typeof l=="string"&&(U.value=l,N.value=!0)}catch{console.warn("Custom format cannot be applied."),N.value=!1}if(!N.value){let l=`<svg viewBox="0 0 10 10" height="${t.value.style.chart.tooltip.fontSize}"><circle cx="5" cy="5" r="5" fill="${o.color}"/></svg><span>${o.name}:</span><b>${(o.value||0).toFixed(t.value.style.chart.tooltip.roundingValue)}</b>`;U.value=`<div dir="auto" style="display:flex; gap:4px; align-items:center; jsutify-content:center;">${l}</div>`}_.value=!0}return(o,a)=>(e.openBlock(),e.createElementBlock("div",{class:"vue-ui-word-cloud",ref_key:"wordCloudChart",ref:h,id:`wordCloud_${x.value}`,style:e.normalizeStyle(`width: 100%; font-family:${t.value.style.fontFamily};background:${t.value.style.chart.backgroundColor};${t.value.responsive?"height:100%":""}`),onMouseenter:a[3]||(a[3]=()=>e.unref(H)(!0)),onMouseleave:a[4]||(a[4]=()=>e.unref(H)(!1))},[t.value.userOptions.buttons.annotator?(e.openBlock(),e.createBlock(Fe.PenAndPaper,{key:0,parent:h.value,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,active:V.value,onClose:q},null,8,["parent","backgroundColor","color","active"])):e.createCommentVNode("",!0),t.value.style.chart.title.text?(e.openBlock(),e.createElementBlock("div",{key:1,ref_key:"chartTitle",ref:g,style:"width:100%;background:transparent;padding-bottom:24px"},[(e.openBlock(),e.createBlock(xe._sfc_main,{key:`title_${b.value}`,config:{title:{...t.value.style.chart.title},subtitle:{...t.value.style.chart.title.subtitle}}},null,8,["config"]))],512)):e.createCommentVNode("",!0),t.value.userOptions.show&&y.value&&(e.unref(X)||e.unref(I))?(e.openBlock(),e.createBlock(se.UserOptions,{ref:"details",key:`user_option_${$.value}`,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,isPrinting:e.unref(Q),isImaging:e.unref(Z),uid:x.value,hasPdf:t.value.userOptions.buttons.pdf,hasXls:t.value.userOptions.buttons.csv,hasImg:t.value.userOptions.buttons.img,hasTable:t.value.userOptions.buttons.table,hasFullscreen:t.value.userOptions.buttons.fullscreen,isFullscreen:O.value,titles:{...t.value.userOptions.buttonTitles},chartElement:h.value,position:t.value.userOptions.position,hasTooltip:t.value.style.chart.tooltip.show&&t.value.userOptions.buttons.tooltip,isTooltip:d.value.showTooltip,hasAnnotator:t.value.userOptions.buttons.annotator,isAnnotation:V.value,onToggleFullscreen:fe,onGeneratePdf:e.unref(ee),onGenerateCsv:le,onGenerateImage:e.unref(te),onToggleTable:ae,onToggleTooltip:ne,onToggleAnnotator:q,style:e.normalizeStyle({visibility:e.unref(X)?e.unref(I)?"visible":"hidden":"visible"})},e.createSlots({_:2},[o.$slots.optionPdf?{name:"optionPdf",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"optionPdf",{},void 0,!0)]),key:"0"}:void 0,o.$slots.optionCsv?{name:"optionCsv",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"optionCsv",{},void 0,!0)]),key:"1"}:void 0,o.$slots.optionImg?{name:"optionImg",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"optionImg",{},void 0,!0)]),key:"2"}:void 0,o.$slots.optionTable?{name:"optionTable",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"optionTable",{},void 0,!0)]),key:"3"}:void 0,o.$slots.optionFullscreen?{name:"optionFullscreen",fn:e.withCtx(({toggleFullscreen:l,isFullscreen:i})=>[e.renderSlot(o.$slots,"optionFullscreen",e.normalizeProps(e.guardReactiveProps({toggleFullscreen:l,isFullscreen:i})),void 0,!0)]),key:"4"}:void 0,o.$slots.optionAnnotator?{name:"optionAnnotator",fn:e.withCtx(({toggleAnnotator:l,isAnnotator:i})=>[e.renderSlot(o.$slots,"optionAnnotator",e.normalizeProps(e.guardReactiveProps({toggleAnnotator:l,isAnnotator:i})),void 0,!0)]),key:"5"}:void 0]),1032,["backgroundColor","color","isPrinting","isImaging","uid","hasPdf","hasXls","hasImg","hasTable","hasFullscreen","isFullscreen","titles","chartElement","position","hasTooltip","isTooltip","hasAnnotator","isAnnotation","onGeneratePdf","onGenerateImage","style"])):e.createCommentVNode("",!0),y.value?(e.openBlock(),e.createElementBlock("svg",{key:3,class:e.normalizeClass({"vue-data-ui-fullscreen--on":O.value,"vue-data-ui-fulscreen--off":!O.value}),xmlns:e.unref(u.XMLNS),viewBox:`0 0 ${r.value.width<=0?10:r.value.width} ${r.value.height<=0?10:r.value.height}`,style:"overflow:visible;background:transparent;"},[e.createVNode(Pe._sfc_main),o.$slots["chart-background"]?(e.openBlock(),e.createElementBlock("foreignObject",{key:0,x:0,y:0,width:r.value.width<=0?10:r.value.width,height:r.value.height<=0?10:r.value.height,style:{pointerEvents:"none"}},[e.renderSlot(o.$slots,"chart-background",{},void 0,!0)],8,De)):e.createCommentVNode("",!0),e.createElementVNode("g",{transform:`translate(${(r.value.width<=0?10:r.value.width)/2}, ${(r.value.height<=0?10:r.value.height)/2})`},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(T.value,(l,i)=>(e.openBlock(),e.createElementBlock("g",null,[(e.openBlock(),e.createElementBlock("text",{fill:l.color,"font-weight":t.value.style.chart.words.bold?"bold":"normal",key:i,x:l.x,y:l.y,"font-size":l.fontSize,transform:`translate(${l.width/2}, ${l.height/2})`,class:e.normalizeClass({animated:t.value.useCssAnimation,"word-selected":C.value&&C.value===l.id&&d.value.showTooltip,"word-not-selected":C.value&&C.value!==l.id&&d.value.showTooltip}),"text-anchor":"middle","dominant-baseline":"central",onMouseover:n=>ye(l),onMouseleave:a[0]||(a[0]=n=>{C.value=null,_.value=!1}),style:e.normalizeStyle(`animation-delay:${i*t.value.animationDelayMs}ms !important;`)},e.toDisplayString(l.name),47,Le))]))),256))],8,Ge),e.renderSlot(o.$slots,"svg",{svg:{height:r.value.height,width:r.value.width}},void 0,!0)],10,We)):e.createCommentVNode("",!0),o.$slots.watermark?(e.openBlock(),e.createElementBlock("div",je,[e.renderSlot(o.$slots,"watermark",e.normalizeProps(e.guardReactiveProps({isPrinting:e.unref(Q)||e.unref(Z)})),void 0,!0)])):e.createCommentVNode("",!0),e.createVNode(Be._sfc_main,{show:d.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:h.value,content:U.value,isCustom:N.value},{"tooltip-before":e.withCtx(()=>[e.renderSlot(o.$slots,"tooltip-before",e.normalizeProps(e.guardReactiveProps({...W.value})),void 0,!0)]),"tooltip-after":e.withCtx(()=>[e.renderSlot(o.$slots,"tooltip-after",e.normalizeProps(e.guardReactiveProps({...W.value})),void 0,!0)]),_:3},8,["show","backgroundColor","color","fontSize","borderRadius","borderColor","borderWidth","backgroundOpacity","position","offsetY","parent","content","isCustom"]),e.createElementVNode("div",{ref_key:"chartSlicer",ref:J,style:"width:100%;background:transparent","data-html2canvas-ignore":""},[t.value.style.chart.zoom.show?(e.openBlock(),e.createBlock(qe,{key:0,value:k.value,"onUpdate:value":a[1]||(a[1]=l=>k.value=l),min:oe.value,max:me.value,textColor:t.value.style.chart.color,inputColor:t.value.style.chart.zoom.color,selectColor:t.value.style.chart.zoom.highlightColor,useResetSlot:t.value.style.chart.zoom.useResetSlot,background:t.value.style.chart.zoom.color,borderColor:t.value.style.chart.backgroundColor,source:t.value.style.chart.width,onReset:M},{"reset-action":e.withCtx(({reset:l})=>[e.renderSlot(o.$slots,"reset-action",e.normalizeProps(e.guardReactiveProps({reset:l})),void 0,!0)]),_:3},8,["value","min","max","textColor","inputColor","selectColor","useResetSlot","background","borderColor","source"])):e.createCommentVNode("",!0)],512),o.$slots.source?(e.openBlock(),e.createElementBlock("div",{key:5,ref_key:"source",ref:p,dir:"auto"},[e.renderSlot(o.$slots,"source",{},void 0,!0)],512)):e.createCommentVNode("",!0),y.value?(e.openBlock(),e.createBlock($e.default,{key:6,hideDetails:"",config:{open:d.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(Te.DataTable,{key:`table_${j.value}`,colNames:z.value.colNames,head:z.value.head,body:z.value.body,config:z.value.config,title:`${t.value.style.chart.title.text}${t.value.style.chart.title.subtitle.text?` : ${t.value.style.chart.title.subtitle.text}`:""}`,onClose:a[2]||(a[2]=l=>d.value.showTable=!1)},{th:e.withCtx(({th:l})=>[e.createElementVNode("div",{innerHTML:l,style:{display:"flex","align-items":"center"}},null,8,He)]),td:e.withCtx(({td:l})=>[e.createTextVNode(e.toDisplayString(l.name||l),1)]),_:1},8,["colNames","head","body","config","title"]))]),_:1},8,["config"])):e.createCommentVNode("",!0)],44,Ue))}},Ye=ie._export_sfc(Xe,[["__scopeId","data-v-cd6ced56"]]);exports.default=Ye;
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { useCssVars as De, computed as g, openBlock as u, createElementBlock as h, createVNode as le, renderSlot as d, createElementVNode as x, normalizeStyle as j, pushScopeId as Ee, popScopeId as Ge, ref as n, watch as ae, onMounted as Le, onBeforeUnmount as Xe, unref as v, createBlock as O, createCommentVNode as y, createSlots as je, withCtx as m, normalizeProps as A, guardReactiveProps as _, normalizeClass as Ce, Fragment as He, renderList as Ye, toDisplayString as ke, createTextVNode as qe, nextTick as we } from "vue";
|
|
2
|
-
import { u as Je, a3 as Ke, v as Qe, c as $e, t as Ze, a as et, p as X, o as tt, e as xe, g as ot, f as at, X as lt, q as st, r as nt, x as rt } from "./index-
|
|
3
|
-
import { _ as ut } from "./Title-
|
|
4
|
-
import { u as it, U as ct } from "./usePrinter-
|
|
2
|
+
import { u as Je, a3 as Ke, v as Qe, c as $e, t as Ze, a as et, p as X, o as tt, e as xe, g as ot, f as at, X as lt, q as st, r as nt, x as rt } from "./index-B8Eaq54E.js";
|
|
3
|
+
import { _ as ut } from "./Title-XYNHfYwN.js";
|
|
4
|
+
import { u as it, U as ct } from "./usePrinter-D83W2gfG.js";
|
|
5
5
|
import { d as dt, t as vt, u as ht } from "./useResponsive-CoxXLe23.js";
|
|
6
|
-
import mt from "./vue-ui-accordion
|
|
7
|
-
import { D as pt } from "./DataTable
|
|
8
|
-
import ft from "./BaseIcon-
|
|
6
|
+
import mt from "./vue-ui-accordion--5td7b94.js";
|
|
7
|
+
import { D as pt } from "./DataTable-DtRXoetj.js";
|
|
8
|
+
import ft from "./BaseIcon-Dzpk4O8L.js";
|
|
9
9
|
import { _ as Te } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
10
|
-
import { u as Se } from "./useNestedProp-
|
|
11
|
-
import { _ as gt } from "./PackageVersion-
|
|
12
|
-
import { _ as yt } from "./Tooltip-
|
|
13
|
-
import { P as bt } from "./PenAndPaper-
|
|
10
|
+
import { u as Se } from "./useNestedProp-Ka0R_Yqa.js";
|
|
11
|
+
import { _ as gt } from "./PackageVersion-CgJdp_Ki.js";
|
|
12
|
+
import { _ as yt } from "./Tooltip-DYRo59nq.js";
|
|
13
|
+
import { P as bt } from "./PenAndPaper-BTLEk55u.js";
|
|
14
14
|
import { u as Ct } from "./useUserOptionState-BIvW1Kz7.js";
|
|
15
15
|
const kt = (c) => (Ee("data-v-b4e6aee9"), c = c(), Ge(), c), wt = { "data-html2canvas-ignore": "" }, $t = {
|
|
16
16
|
key: 0,
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("./index-KJL8ra_6.cjs"),B=require("./DataTable-wN-jvOfe.cjs"),V=require("./Title-D-6pIV0l.cjs"),v=require("./Tooltip-CNox4F8U.cjs"),E=require("./usePrinter-pDOF3CfL.cjs"),z=require("./Shape-D7IbPjU8.cjs"),M=require("./BaseIcon-CIjjPDqj.cjs"),P=require("./vue-ui-table-sparkline-PA9L6AjE.cjs"),T=require("./vue-ui-skeleton-D_YCUi1y.cjs"),D=require("./Slicer-8bCK41mN.cjs"),R=require("./vue-ui-accordion-4-dyMgJA.cjs"),p=require("./useNestedProp-Bu958azG.cjs"),H=require("./PackageVersion-Dn-t7tbm.cjs"),W=require("./PenAndPaper-DFXJJink.cjs"),t=require("vue"),q=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),Y=u.createUid(),X={name:"vue-ui-xy",props:{config:{type:Object,default(){return{}}},dataset:{type:Array,default(){return[]}}},components:{DataTable:B.DataTable,Shape:z._sfc_main,Title:V._sfc_main,Tooltip:v._sfc_main,UserOptions:E.UserOptions,BaseIcon:M.default,TableSparkline:P.default,Skeleton:T.default,Slicer:D.Slicer,Accordion:R.default,PackageVersion:H._sfc_main,PenAndPaper:W.PenAndPaper},data(){this.dataset.forEach((h,l)=>{[null,void 0].includes(h.series)&&this.error({componentName:"VueUiXy",type:"datasetSerieAttribute",property:"series (number[])",index:l})});const r=this.config.downsample&&this.config.downsample.threshold?this.config.downsample.threshold:500,i=Math.max(...this.dataset.map(h=>this.largestTriangleThreeBucketsArray({data:h.series,threshold:r}).length)),o={start:0,end:i};return{themePalettes:u.themePalettes,themes:u.themes,slicerStep:0,selectedScale:null,CTX:null,CANVAS:null,opacity:u.opacity,useSafeValues:!0,palette:u.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:u.createUid(),step:0,tableStep:0,titleStep:0,slicer:o,__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,showUserOptionsOnChartHover:!1,keepUserOptionState:!0,userOptionsVisible:!0}},watch:{dataset:{handler(r,i){this.maxX=Math.max(...this.dataset.map(o=>this.largestTriangleThreeBucketsArray({data:o.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(r,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 r=this.datasetWithIds.filter(l=>!this.segregatedSeries.includes(l.id)),i=Math.max(...r.map(l=>l.series.length)),o=[];for(let l=0;l<i;l+=1)o.push(r.map(e=>e.series[l]||0).reduce((e,g)=>(e||0)+(g||0),0));const h=Math.min(...o);return o.map(l=>l+(h<0?Math.abs(h):0))},customPalette(){return this.convertCustomPalette(this.FINAL_CONFIG.customPalette)},backgroundColor(){return this.FINAL_CONFIG.chart.backgroundColor},slicerColor(){return this.FINAL_CONFIG.chart.zoom.color},allScales(){const r=this.lineSet.map(l=>({name:l.name,color:l.color,scale:l.individualScale,scaleYLabels:l.scaleYLabels,zero:l.zeroPosition,max:l.individualMax,scaleLabel:l.scaleLabel||"",id:l.id,yOffset:l.yOffset||0,individualHeight:l.individualHeight||this.drawingArea.height,autoScaleYLabels:l.autoScaleYLabels})),i=this.barSet.map(l=>({name:l.name,color:l.color,scale:l.individualScale,scaleYLabels:l.scaleYLabels,zero:l.zeroPosition,max:l.individualMax,scaleLabel:l.scaleLabel||"",id:l.id,yOffset:l.yOffset||0,individualHeight:l.individualHeight||this.drawingArea.height})),o=this.plotSet.map(l=>({name:l.name,color:l.color,scale:l.individualScale,scaleYLabels:l.scaleYLabels,zero:l.zeroPosition,max:l.individualMax,scaleLabel:l.scaleLabel||"",id:l.id,yOffset:l.yOffset||0,individualHeight:l.individualHeight||this.drawingArea.height})),h=[...r,...i,...o].flatMap(l=>l).length;return[...r,...i,...o].flatMap((l,e)=>({id:l.id,scaleLabel:l.scaleLabel,name:l.name,color:l.color,scale:l.scale,yOffset:l.yOffset,individualHeight:l.individualHeight,x:this.mutableConfig.isStacked?this.drawingArea.left:this.drawingArea.left/h*(e+1),yLabels:l.scaleYLabels||l.scale.ticks.map(g=>({y:g>=0?l.zero-l.individualHeight*(g/l.max):l.zero+l.individualHeight*Math.abs(g)/l.max,value:g}))}))},isDataset(){return!!this.dataset&&this.dataset.length},chartFont(){const r=document.getElementById(`vue-ui-xy_${this.uniqueId}`);return window.getComputedStyle(r,null).getPropertyValue("font-family")},FINAL_CONFIG:{get:function(){return this.prepareConfig()},set:function(r){return r}},hasHighlightArea(){return Array.isArray(this.FINAL_CONFIG.chart.highlightArea)?this.FINAL_CONFIG.chart.highlightArea.some(r=>r.show):this.FINAL_CONFIG.chart.highlightArea&&this.FINAL_CONFIG.chart.highlightArea.show},highlightAreas(){if(Array.isArray(this.FINAL_CONFIG.chart.highlightArea))return this.FINAL_CONFIG.chart.highlightArea.map(i=>({...i,span:i.from===i.to?1:i.to<i.from?0:i.to-i.from+1}));const r=this.FINAL_CONFIG.chart.highlightArea;return[{...r,span:r.from===r.to?1:r.to<r.from?0:r.to-r.from+1}]},xPadding(){return this.FINAL_CONFIG.chart.grid.position==="middle"?0:this.drawingArea.width/this.maxSeries/2},relativeZero(){return[null,void 0].includes(this.FINAL_CONFIG.chart.grid.labels.yAxis.scaleMin)?this.niceScale.min>=0?0:Math.abs(this.niceScale.min):-this.niceScale.min},absoluteMax(){return this.niceScale.max+this.relativeZero},datasetWithIds(){return this.useSafeValues?this.dataset.map((r,i)=>({...r,series:this.largestTriangleThreeBucketsArray({data:r.series,threshold:this.FINAL_CONFIG.downsample.threshold}),id:`uniqueId_${i}`})):this.dataset},safeDataset(){return this.useSafeValues?this.dataset.map((r,i)=>{const o=this.largestTriangleThreeBucketsArray({data:r.series,threshold:this.FINAL_CONFIG.downsample.threshold});return{...r,slotAbsoluteIndex:i,series:o.map(h=>this.isSafeValue(h)?h:null).slice(this.slicer.start,this.slicer.end),color:this.convertColorToHex(r.color?r.color:this.customPalette[i]?this.customPalette[i]:this.palette[i]),id:`uniqueId_${i}`}}):this.dataset},relativeDataset(){return this.safeDataset.map((r,i)=>({...r,series:r.series.map(o=>o+this.relativeZero),absoluteValues:r.series})).filter(r=>!this.segregatedSeries.includes(r.id))},tableSparklineDataset(){return this.relativeDataset.map(r=>{const i=r.absoluteValues.map(o=>[void 0,null].includes(o)?0:o);return{id:r.id,name:r.name,color:r.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((r,i)=>({absoluteIndex:i,...r,series:r.series.map(o=>o+this.relativeZero),absoluteValues:r.series,segregate:()=>this.segregate(r),isSegregated:this.segregatedSeries.includes(r.id)}))},barSet(){return this.activeSeriesWithStackRatios.filter(r=>r.type==="bar").map((r,i)=>{this.checkAutoScaleError(r);const o=Math.min(...r.absoluteValues.filter(d=>![null,void 0].includes(d))),h=Math.max(...r.absoluteValues.filter(d=>![null,void 0].includes(d))),e={ratios:r.absoluteValues.filter(d=>![null,void 0].includes(d)).map(d=>(d-o)/(h-o)),valueMin:o,valueMax:h<0?0:h},g={max:r.scaleMax||Math.max(...r.absoluteValues)||1,min:r.scaleMin||Math.min(...r.absoluteValues.filter(d=>![void 0,null].includes(d)))>0?0:Math.min(...r.absoluteValues.filter(d=>![null,void 0].includes(d)))},x=r.scaleSteps||this.FINAL_CONFIG.chart.grid.labels.yAxis.commonScaleSteps,b=1.0000001,m=this.calculateNiceScaleWithExactExtremes(g.min,g.max===g.min?g.max*b:g.max,x),f=this.calculateNiceScaleWithExactExtremes(e.valueMin,e.valueMax===e.valueMin?e.valueMax*b:e.valueMax,x),S=m.min>=0?0:Math.abs(m.min),C=0,A=m.max+S,_=f.max+Math.abs(C),I=this.mutableConfig.isStacked?this.drawingArea.height*(1-r.cumulatedStackRatio):0,k=this.mutableConfig.isStacked?this.drawingArea.height*r.stackRatio-this.FINAL_CONFIG.chart.grid.labels.yAxis.gap:this.drawingArea.height,L=this.drawingArea.bottom-I-k*S/A,a=this.drawingArea.bottom-I-k*C/_,n=this.absoluteDataset.filter(d=>d.type==="bar").filter(d=>!this.segregatedSeries.includes(d.id)).length,s=r.series.map((d,N)=>{const O=this.mutableConfig.useIndividualScale?(r.absoluteValues[N]+S)/A:this.ratioToMax(d),G=this.mutableConfig.useIndividualScale&&this.mutableConfig.isStacked?this.drawingArea.left+this.drawingArea.width/this.maxSeries*N:this.drawingArea.left+this.slot.bar*i+this.slot.bar*N*n-this.barSlot/2-i*this.barPeriodGap;return{yOffset:this.checkNaN(I),individualHeight:this.checkNaN(k),x:this.checkNaN(G),y:this.drawingArea.bottom-I-k*O,value:r.absoluteValues[N],zeroPosition:this.checkNaN(L),individualMax:this.checkNaN(A),comment:r.comments&&r.comments.slice(this.slicer.start,this.slicer.end)[N]||""}}),c=r.absoluteValues.map(d=>f.min>=0?(d-Math.abs(f.min))/(f.max-Math.abs(f.min)):(d+Math.abs(f.min))/(f.max+Math.abs(f.min))),w=r.series.map((d,N)=>{const O=this.mutableConfig.useIndividualScale&&this.mutableConfig.isStacked?this.drawingArea.left+this.drawingArea.width/this.maxSeries*N:this.drawingArea.left-this.slot.bar/2+this.slot.bar*i+this.slot.bar*N*this.absoluteDataset.filter(G=>G.type==="bar").filter(G=>!this.segregatedSeries.includes(G.id)).length;return{yOffset:this.checkNaN(I),individualHeight:this.checkNaN(k),x:this.checkNaN(O),y:this.checkNaN(this.drawingArea.bottom-this.checkNaN(I)-(this.checkNaN(k)*c[N]||0)),value:r.absoluteValues[N],zeroPosition:this.checkNaN(L),individualMax:this.checkNaN(A),comment:r.comments&&r.comments.slice(this.slicer.start,this.slicer.end)[N]||""}}),F=m.ticks.map(d=>({y:d>=0?L-k*(d/A):L+k*Math.abs(d)/A,value:d,prefix:r.prefix||this.FINAL_CONFIG.chart.labels.prefix,suffix:r.suffix||this.FINAL_CONFIG.chart.labels.suffix,datapoint:r})),y=f.ticks.map(d=>{const N=(d-f.min)/(f.max-f.min);return{y:d>=0?a-k*N:a+k*N,value:d,prefix:r.prefix||this.FINAL_CONFIG.chart.labels.prefix,suffix:r.suffix||this.FINAL_CONFIG.chart.labels.suffix,datapoint:r}});return{...r,yOffset:I,autoScaleYLabels:y,individualHeight:k,scaleYLabels:r.autoScaling?y:F,individualScale:r.autoScaling?f:m,individualMax:r.autoScaling?_:A,zeroPosition:r.autoScaling?a:L,plots:r.autoScaling?w:s}})},activeSeriesLength(){return this.absoluteDataset.length},activeSeriesWithStackRatios(){return this.assignStackRatios(this.absoluteDataset.filter(r=>!this.segregatedSeries.includes(r.id)))},lineSet(){return this.activeSeriesWithStackRatios.filter(r=>r.type==="line").map(r=>{this.checkAutoScaleError(r);const i=Math.min(...r.absoluteValues.filter(d=>![void 0,null].includes(d))),o=Math.max(...r.absoluteValues.filter(d=>![void 0,null].includes(d)))||1,l={ratios:r.absoluteValues.filter(d=>![null,void 0].includes(d)).map(d=>(d-i)/(o-i)),valueMin:i,valueMax:o},e={max:r.scaleMax||Math.max(...r.absoluteValues)||1,min:r.scaleMin||(Math.min(...r.absoluteValues)>0?0:Math.min(...r.absoluteValues))},g=r.scaleSteps||this.FINAL_CONFIG.chart.grid.labels.yAxis.commonScaleSteps,x=1.0000001,b=this.calculateNiceScaleWithExactExtremes(e.min,e.max===e.min?e.max*x:e.max,g),m=this.calculateNiceScaleWithExactExtremes(l.valueMin,l.valueMax===l.valueMin?l.valueMax*x:l.valueMax,g),f=b.min>=0?0:Math.abs(b.min),S=0,C=b.max+Math.abs(f),A=m.max+Math.abs(S),_=this.mutableConfig.isStacked?this.drawingArea.height*(1-r.cumulatedStackRatio):0,I=this.mutableConfig.isStacked?this.drawingArea.height*r.stackRatio-this.FINAL_CONFIG.chart.grid.labels.yAxis.gap:this.drawingArea.height,k=this.drawingArea.bottom-_-I*f/C,L=this.drawingArea.bottom-_-I*S/A,a=r.series.map((d,N)=>{const O=this.mutableConfig.useIndividualScale?(r.absoluteValues[N]+Math.abs(f))/C:this.ratioToMax(d);return{x:this.checkNaN(this.drawingArea.left+this.slot.line/2+this.slot.line*N),y:this.checkNaN(this.drawingArea.bottom-_-I*O),value:r.absoluteValues[N],comment:r.comments&&r.comments.slice(this.slicer.start,this.slicer.end)[N]||""}}),n=r.absoluteValues.map(d=>m.min>=0?(d-Math.abs(m.min))/(m.max-Math.abs(m.min)):(d+Math.abs(m.min))/(m.max+Math.abs(m.min))),s=r.series.map((d,N)=>[void 0,null].includes(r.absoluteValues[N])?{x:this.checkNaN(this.drawingArea.left+this.slot.line/2+this.slot.line*N),y:k,value:r.absoluteValues[N],comment:r.comments&&r.comments.slice(this.slicer.start,this.slicer.end)[N]||""}:{x:this.checkNaN(this.drawingArea.left+this.slot.line/2+this.slot.line*N),y:this.checkNaN(this.drawingArea.bottom-_-(I*n[N]||0)),value:r.absoluteValues[N],comment:r.comments&&r.comments.slice(this.slicer.start,this.slicer.end)[N]||""}),c=this.createSmoothPath(a),w=this.createSmoothPath(s),F=b.ticks.map(d=>({y:d>=0?k-I*(d/C):k+I*Math.abs(d)/C,value:d,prefix:r.prefix||this.FINAL_CONFIG.chart.labels.prefix,suffix:r.suffix||this.FINAL_CONFIG.chart.labels.suffix,datapoint:r})),y=m.ticks.map(d=>{const N=(d-m.min)/(m.max-m.min);return{y:d>=0?L-I*N:L+I*N,value:d,prefix:r.prefix||this.FINAL_CONFIG.chart.labels.prefix,suffix:r.suffix||this.FINAL_CONFIG.chart.labels.suffix,datapoint:r}});return{...r,yOffset:_,autoScaleYLabels:y,individualHeight:I,scaleYLabels:r.autoScaling?y:F,individualScale:r.autoScaling?m:b,individualMax:r.autoScaling?A:C,zeroPosition:r.autoScaling?L:k,curve:r.autoScaling?w:c,plots:r.autoScaling?s:a,area:r.useArea?this.mutableConfig.useIndividualScale?this.createIndividualArea(r.autoScaling?s:a,r.autoScaling?L:k):this.createArea(a):""}})},plotSet(){return this.activeSeriesWithStackRatios.filter(r=>r.type==="plot").map(r=>{this.checkAutoScaleError(r);const i=Math.min(...r.absoluteValues.filter(F=>![null,void 0].includes(F))),o=Math.max(...r.absoluteValues.filter(F=>![null,void 0].includes(F)))||1,l={ratios:r.absoluteValues.filter(F=>![null,void 0].includes(F)).map(F=>(F-i)/(o-i)),valueMin:i,valueMax:o},e={max:r.scaleMax||Math.max(...r.absoluteValues)||1,min:r.scaleMin||Math.min(...r.absoluteValues)>0?0:Math.min(...r.absoluteValues)},g=r.scaleSteps||this.FINAL_CONFIG.chart.grid.labels.yAxis.commonScaleSteps,x=1.0000001,b=this.calculateNiceScaleWithExactExtremes(e.min,e.max===e.min?e.max*x:e.max,g),m=this.calculateNiceScaleWithExactExtremes(l.valueMin,l.valueMax===l.valueMin?l.valueMax*x:l.valueMax,g),f=b.min>=0?0:Math.abs(b.min),S=0,C=b.max+f,A=m.max+Math.abs(S),_=this.mutableConfig.isStacked?this.drawingArea.height*(1-r.cumulatedStackRatio):0,I=this.mutableConfig.isStacked?this.drawingArea.height*r.stackRatio-this.FINAL_CONFIG.chart.grid.labels.yAxis.gap:this.drawingArea.height,k=this.drawingArea.bottom-_-I*f/C,L=this.drawingArea.bottom-_-I*S/A,a=r.series.map((F,y)=>{const d=this.mutableConfig.useIndividualScale?(r.absoluteValues[y]+Math.abs(f))/C:this.ratioToMax(F);return{x:this.checkNaN(this.drawingArea.left+this.slot.plot/2+this.slot.plot*y),y:this.checkNaN(this.drawingArea.bottom-_-I*d),value:r.absoluteValues[y],comment:r.comments&&r.comments.slice(this.slicer.start,this.slicer.end)[y]||""}}),n=r.absoluteValues.map(F=>m.min>=0?(F-Math.abs(m.min))/(m.max-Math.abs(m.min)):(F+Math.abs(m.min))/(m.max+Math.abs(m.min))),s=r.series.map((F,y)=>({x:this.checkNaN(this.drawingArea.left+this.slot.plot/2+this.slot.plot*y),y:this.checkNaN(this.drawingArea.bottom-_-(I*n[y]||0)),value:r.absoluteValues[y],comment:r.comments&&r.comments.slice(this.slicer.start,this.slicer.end)[y]||""})),c=b.ticks.map(F=>({y:F>=0?k-I*(F/C):k+I*Math.abs(F)/C,value:F,prefix:r.prefix||this.FINAL_CONFIG.chart.labels.prefix,suffix:r.suffix||this.FINAL_CONFIG.chart.labels.suffix,datapoint:r})),w=m.ticks.map(F=>{const y=(F-m.min)/(m.max-m.min);return{y:F>=0?L-I*y:L+I*y,value:F,prefix:r.prefix||this.FINAL_CONFIG.chart.labels.prefix,suffix:r.suffix||this.FINAL_CONFIG.chart.labels.suffix,datapoint:r}});return{...r,yOffset:_,autoScaleYLabels:w,individualHeight:I,scaleYLabels:r.autoScaling?w:c,individualScale:r.autoScaling?m:b,individualMax:r.autoScaling?A:C,zeroPosition:r.autoScaling?L:k,plots:r.autoScaling?s:a}})},drawingArea(){const r=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+r,height:this.height-(this.FINAL_CONFIG.chart.padding.top+this.FINAL_CONFIG.chart.padding.bottom),width:this.width-(this.FINAL_CONFIG.chart.padding.right+this.FINAL_CONFIG.chart.padding.left+r)}},max(){return this.FINAL_CONFIG.chart.grid.labels.yAxis.scaleMax?this.FINAL_CONFIG.chart.grid.labels.yAxis.scaleMax:Math.max(...this.safeDataset.filter(r=>!this.segregatedSeries.includes(r.id)).map(r=>Math.max(...r.series)))},min(){if(this.FINAL_CONFIG.chart.grid.labels.yAxis.scaleMin!==null)return this.FINAL_CONFIG.chart.grid.labels.yAxis.scaleMin;const r=Math.min(...this.safeDataset.filter(i=>!this.segregatedSeries.includes(i.id)).map(i=>Math.min(...i.series)));return r>0?0:r},niceScale(){return this.calculateNiceScaleWithExactExtremes(this.min,this.max<0?0:this.max,this.FINAL_CONFIG.chart.grid.labels.yAxis.commonScaleSteps)},maxSeries(){return this.slicer.end-this.slicer.start},timeLabels(){const r=Math.max(...this.dataset.map(o=>this.largestTriangleThreeBucketsArray({data:o.series,threshold:this.FINAL_CONFIG.downsample.threshold}).length)),i=[];for(let o=0;o<r;o+=1)i.push({text:this.FINAL_CONFIG.chart.grid.labels.xAxisLabels.values[o]||String(o),absoluteIndex:o});return i.slice(this.slicer.start,this.slicer.end)},slot(){return{bar:this.drawingArea.width/this.maxSeries/this.safeDataset.filter(r=>r.type==="bar").filter(r=>!this.segregatedSeries.includes(r.id)).length,plot:this.drawingArea.width/this.maxSeries,line:this.drawingArea.width/this.maxSeries}},barSlot(){const r=this.safeDataset.filter(i=>i.type==="bar").filter(i=>!this.segregatedSeries.includes(i.id)).length;return this.drawingArea.width/this.maxSeries/r-this.barPeriodGap*r},barPeriodGap(){return this.slot.line*this.FINAL_CONFIG.bar.periodGap},maxSlot(){return Math.max(...Object.values(this.slot).filter(r=>r!==1/0))},table(){if(this.safeDataset.length===0)return{head:[],body:[],config:{},columnNames:[]};const r=this.relativeDataset.map(o=>({label:o.name,color:o.color,type:o.type})),i=[];return this.timeLabels.forEach((o,h)=>{const l=[o.text];this.relativeDataset.forEach(e=>{l.push(this.canShowValue(e.absoluteValues[h])?Number(e.absoluteValues[h].toFixed(this.FINAL_CONFIG.table.rounding)):"")}),i.push(l)}),{head:r,body:i}},dataTable(){const r=this.FINAL_CONFIG.table.showSum;let i=[""].concat(this.relativeDataset.map(e=>e.name));r&&(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 o=[];for(let e=0;e<this.maxSeries;e+=1){const g=this.relativeDataset.map(x=>x.absoluteValues[e]??0).reduce((x,b)=>x+b,0);o.push([this.timeLabels[e].text??"-"].concat(this.relativeDataset.map(x=>this.applyDataLabel(x.type==="line"?this.FINAL_CONFIG.line.labels.formatter:x.type==="bar"?this.FINAL_CONFIG.bar.labels.formatter:this.FINAL_CONFIG.plot.labels.formatter,x.absoluteValues[e]??0,this.dataLabel({p:x.prefix||this.FINAL_CONFIG.chart.labels.prefix,v:x.absoluteValues[e]??0,s:x.suffix||this.FINAL_CONFIG.chart.labels.suffix,r:this.FINAL_CONFIG.table.rounding})))).concat(r?(g??0).toFixed(this.FINAL_CONFIG.table.rounding):[]))}const h={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},l=[this.FINAL_CONFIG.table.columnNames.period].concat(this.relativeDataset.map(e=>e.name)).concat(this.FINAL_CONFIG.table.columnNames.total);return{head:i,body:o,config:h,colNames:l}},dataTooltipSlot(){return{datapoint:this.selectedSeries,seriesIndex:this.selectedSerieIndex,series:this.absoluteDataset,bars:this.barSet,lines:this.lineSet,plots:this.plotSet,config:this.FINAL_CONFIG}},selectedSeries(){return this.relativeDataset.map(r=>({slotAbsoluteIndex:r.slotAbsoluteIndex,shape:r.shape||null,name:r.name,color:r.color,type:r.type,value:r.absoluteValues.find((i,o)=>o===this.selectedSerieIndex),comments:r.comments||[],prefix:r.prefix||this.FINAL_CONFIG.chart.labels.prefix,suffix:r.suffix||this.FINAL_CONFIG.chart.labels.suffix}))},tooltipContent(){let r="",i=this.selectedSeries.map(l=>l.value).filter(l=>this.isSafeValue(l)&&l!==null).reduce((l,e)=>Math.abs(l)+Math.abs(e),0);const o=this.timeLabels[this.selectedSerieIndex],h=this.FINAL_CONFIG.chart.tooltip.customFormat;return this.isFunction(h)&&this.functionReturnsString(()=>h({seriesIndex:this.selectedSerieIndex,datapoint:this.selectedSeries,series:this.absoluteDataset,bars:this.barSet,lines:this.lineSet,plots:this.plotSet,config:this.FINAL_CONFIG}))?h({seriesIndex:this.selectedSerieIndex,datapoint:this.selectedSeries,series:this.absoluteDataset,bars:this.barSet,lines:this.lineSet,plots:this.plotSet,config:this.FINAL_CONFIG}):(o&&o.text&&this.FINAL_CONFIG.chart.tooltip.showTimeLabel&&(r+=`<div style="padding-bottom: 6px; margin-bottom: 4px; border-bottom: 1px solid ${this.FINAL_CONFIG.chart.tooltip.borderColor}; width:100%">${o.text}</div>`),this.selectedSeries.forEach(l=>{if(this.isSafeValue(l.value)){let e="",g="";switch(this.icons[l.type]){case"bar":e=`<svg viewBox="0 0 40 40" height="14" width="14">${this.$slots.pattern?`<rect x="0" y="0" rx="1" stroke="none" height="40" width="40" fill="${l.color}" />`:""}<rect x="0" y="0" rx="1" stroke="none" height="40" width="40" fill="${this.$slots.pattern?`url(#pattern_${this.uniqueId}_${l.slotAbsoluteIndex}`:l.color}" /></svg>`;break;case"line":!l.shape||!["star","triangle","square","diamond","pentagon","hexagon"].includes(l.shape)?g=`<circle cx="10" cy="8" r="4" stroke="${this.FINAL_CONFIG.chart.tooltip.backgroundColor}" stroke-width="0.5" fill="${l.color}" />`:l.shape==="triangle"?g=`<path d="${u.createPolygonPath({plot:{x:10,y:8},radius:4,sides:3,rotation:.52}).path}" fill="${l.color}" stroke="${this.FINAL_CONFIG.chart.tooltip.backgroundColor}" stroke-width="0.5" />`:l.shape==="square"?g=`<path d="${u.createPolygonPath({plot:{x:10,y:8},radius:4,sides:4,rotation:.8}).path}" fill="${l.color}" stroke="${this.FINAL_CONFIG.chart.tooltip.backgroundColor}" stroke-width="0.5" />`:l.shape==="diamond"?g=`<path d="${u.createPolygonPath({plot:{x:10,y:8},radius:4,sides:4,rotation:0}).path}" fill="${l.color}" stroke="${this.FINAL_CONFIG.chart.tooltip.backgroundColor}" stroke-width="0.5" />`:l.shape==="pentagon"?g=`<path d="${u.createPolygonPath({plot:{x:10,y:8},radius:4,sides:5,rotation:.95}).path}" fill="${l.color}" stroke="${this.FINAL_CONFIG.chart.tooltip.backgroundColor}" stroke-width="0.5" />`:l.shape==="hexagon"?g=`<path d="${u.createPolygonPath({plot:{x:10,y:8},radius:4,sides:6,rotation:0}).path}" fill="${l.color}" stroke="${this.FINAL_CONFIG.chart.tooltip.backgroundColor}" stroke-width="0.5" />`:l.shape==="star"&&(g=`<polygon stroke="${this.FINAL_CONFIG.chart.tooltip.backgroundColor}" stroke-width="0.5" fill="${l.color}" points="${u.createStar({plot:{x:10,y:8},radius:4})}" />`),e=`<svg viewBox="0 0 20 12" height="14" width="20"><rect rx="1.5" x="0" y="6.5" stroke="${this.FINAL_CONFIG.chart.tooltip.backgroundColor}" stroke-width="0.5" height="3" width="20" fill="${l.color}" />${g}</svg>`;break;case"plot":if(!l.shape||!["star","triangle","square","diamond","pentagon","hexagon"].includes(l.shape)){e=`<svg viewBox="0 0 12 12" height="14" width="14"><circle cx="6" cy="6" r="6" stroke="${this.FINAL_CONFIG.chart.tooltip.backgroundColor}" stroke-width="1" fill="${l.color}" /></svg>`;break}if(l.shape==="star"){e=`<svg viewBox="0 0 12 12" height="14" width="14"><polygon stroke="${this.FINAL_CONFIG.chart.tooltip.backgroundColor}" stroke-width="1" fill="${l.color}" points="${u.createStar({plot:{x:6,y:6},radius:5})}" /></svg>`;break}if(l.shape==="triangle"){e=`<svg viewBox="0 0 12 12" height="14" width="14"><path d="${u.createPolygonPath({plot:{x:6,y:6},radius:6,sides:3,rotation:.52}).path}" fill="${l.color}" stroke="${this.FINAL_CONFIG.chart.tooltip.backgroundColor}" stroke-width="1" /></svg>`;break}if(l.shape==="square"){e=`<svg viewBox="0 0 12 12" height="14" width="14"><path d="${u.createPolygonPath({plot:{x:6,y:6},radius:6,sides:4,rotation:.8}).path}" fill="${l.color}" stroke="${this.FINAL_CONFIG.chart.tooltip.backgroundColor}" stroke-width="1" /></svg>`;break}if(l.shape==="diamond"){e=`<svg viewBox="0 0 12 12" height="14" width="14"><path d="${u.createPolygonPath({plot:{x:6,y:6},radius:5,sides:4,rotation:0}).path}" fill="${l.color}" stroke="${this.FINAL_CONFIG.chart.tooltip.backgroundColor}" stroke-width="1" /></svg>`;break}if(l.shape==="pentagon"){e=`<svg viewBox="0 0 12 12" height="14" width="14"><path d="${u.createPolygonPath({plot:{x:6,y:6},radius:5,sides:5,rotation:.95}).path}" fill="${l.color}" stroke="${this.FINAL_CONFIG.chart.tooltip.backgroundColor}" stroke-width="1" /></svg>`;break}if(l.shape==="hexagon"){e=`<svg viewBox="0 0 12 12" height="14" width="14"><path d="${u.createPolygonPath({plot:{x:6,y:6},radius:5,sides:6,rotation:0}).path}" fill="${l.color}" stroke="${this.FINAL_CONFIG.chart.tooltip.backgroundColor}" stroke-width="1" /></svg>`;break}}r+=`<div style="display:flex;flex-direction:row; align-items:center;gap:3px;"><div style="width:20px">${e}</div> ${l.name}: <b>${this.FINAL_CONFIG.chart.tooltip.showValue?this.applyDataLabel(l.type==="line"?this.FINAL_CONFIG.line.labels.formatter:l.type==="bar"?this.FINAL_CONFIG.bar.labels.formatter:this.FINAL_CONFIG.plot.labels.formatter,l.value,this.dataLabel({p:l.prefix,v:l.value,s:l.suffix,r:this.FINAL_CONFIG.chart.tooltip.roundingValue}),{datapoint:l}):""}</b> ${this.FINAL_CONFIG.chart.tooltip.showPercentage?`(${u.dataLabel({v:this.checkNaN(Math.abs(l.value)/i*100),s:"%",r:this.FINAL_CONFIG.chart.tooltip.roundingPercentage})})`:""}</div>`,this.FINAL_CONFIG.chart.comments.showInTooltip&&l.comments.length&&l.comments.slice(this.slicer.start,this.slicer.end)[this.selectedSerieIndex]&&(r+=`<div class="vue-data-ui-tooltip-comment" style="background:${l.color}20; padding: 6px; margin-bottom: 6px; border-left: 1px solid ${l.color}">${l.comments.slice(this.slicer.start,this.slicer.end)[this.selectedSerieIndex]}</div>`)}}),`<div style="border-radius:4px;padding:12px;font-variant-numeric: tabular-nums;color:${this.FINAL_CONFIG.chart.tooltip.color}">${r}</div>`)},svg(){return{height:this.height,width:this.width}},yLabels(){return this.niceScale.ticks.map(r=>({y:r>=0?this.zero-this.drawingArea.height*this.ratioToMax(r):this.zero+this.drawingArea.height*this.ratioToMax(Math.abs(r)),value:r,prefix:this.FINAL_CONFIG.chart.labels.prefix,suffix:this.FINAL_CONFIG.chart.labels.suffix}))},zero(){return this.drawingArea.bottom-this.drawingArea.height*this.ratioToMax(this.relativeZero)}},mounted(){this.prepareChart(),this.setupSlicer(),document.addEventListener("mousemove",r=>{this.clientPosition={x:r.clientX,y:r.clientY}})},methods:{abbreviate:u.abbreviate,adaptColorToBackground:u.adaptColorToBackground,applyDataLabel:u.applyDataLabel,assignStackRatios:u.assignStackRatios,calcLinearProgression:u.calcLinearProgression,calculateNiceScaleWithExactExtremes:u.calculateNiceScaleWithExactExtremes,checkNaN:u.checkNaN,closestDecimal:u.closestDecimal,convertColorToHex:u.convertColorToHex,convertConfigColors:u.convertConfigColors,convertCustomPalette:u.convertCustomPalette,createCsvContent:u.createCsvContent,createSmoothPath:u.createSmoothPath,createTSpans:u.createTSpans,dataLabel:u.dataLabel,downloadCsv:u.downloadCsv,error:u.error,forceValidValue:u.forceValidValue,functionReturnsString:u.functionReturnsString,hasDeepProperty:u.hasDeepProperty,isFunction:u.isFunction,isSafeValue:u.isSafeValue,largestTriangleThreeBucketsArray:u.largestTriangleThreeBucketsArray,objectIsEmpty:u.objectIsEmpty,setOpacity:u.setOpacity,shiftHue:u.shiftHue,translateSize:u.translateSize,treeShake:u.treeShake,useMouse:v.useMouse,useNestedProp:p.useNestedProp,setUserOptionsVisibility(r=!1){this.showUserOptionsOnChartHover&&(this.userOptionsVisible=r)},toggleAnnotator(){this.isAnnotator=!this.isAnnotator},selectTimeLabel(r,i){const o=this.relativeDataset.map(h=>({shape:h.shape||null,name:h.name,color:h.color,type:h.type,value:h.absoluteValues.find((l,e)=>e===i),comments:h.comments||[],prefix:h.prefix||this.FINAL_CONFIG.chart.labels.prefix,suffix:h.suffix||this.FINAL_CONFIG.chart.labels.suffix}));this.$emit("selectTimeLabel",{datapoint:o,absoluteIndex:r.absoluteIndex,label:r.text})},getHighlightAreaPosition(r){const i=this.drawingArea.left+this.drawingArea.width/this.maxSeries*(r.from-this.slicer.start),o=this.drawingArea.width/(this.slicer.end-this.slicer.start)*r.span<0?1e-5:this.drawingArea.width/(this.slicer.end-this.slicer.start)*r.span;return{x:i<this.drawingArea.left?this.drawingArea.left:i,width:o}},prepareConfig(){const r=u.useConfig().vue_ui_xy;if(!Object.keys(this.config||{}).length)return r;const i=this.useNestedProp({userConfig:this.config,defaultConfig:r});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,this.config&&this.hasDeepProperty(this.config,"chart.zoom.startIndex")?i.chart.zoom.startIndex=this.config.chart.zoom.startIndex:i.chart.zoom.startIndex=null,this.config&&this.hasDeepProperty(this.config,"chart.zoom.endIndex")?i.chart.zoom.endIndex=this.config.chart.zoom.endIndex:i.chart.zoom.endIndex=null,i.theme?{...p.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((r,i)=>{[null,void 0].includes(r.name)&&this.error({componentName:"VueUiXy",type:"datasetSerieAttribute",property:"name (string)",index:i})}),this.FINAL_CONFIG.showWarnings&&this.dataset.forEach(r=>{r.series.forEach((i,o)=>{this.isSafeValue(i)||console.warn(`VueUiXy has detected an unsafe value in your dataset:
|
|
2
|
+
-----> The serie '${r.name}' contains the value '${i}' at index ${o}.
|
|
3
|
+
'${i}' was converted to null to allow the chart to display.`)})}),this.showUserOptionsOnChartHover=this.FINAL_CONFIG.chart.userOptions.showOnChartHover,this.keepUserOptionState=this.FINAL_CONFIG.chart.userOptions.keepStateOnChartLeave,this.userOptionsVisible=!this.FINAL_CONFIG.chart.userOptions.showOnChartHover,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:o,width:h}=i.getBoundingClientRect();let l=null,e=0;this.FINAL_CONFIG.chart.title.show&&(l=this.$refs.chartTitle,e=l.getBoundingClientRect().height);let g=null,x=0;this.FINAL_CONFIG.chart.zoom.show&&this.maxX>6&&this.isDataset&&(g=this.$refs.chartSlicer.$el,x=g.getBoundingClientRect().height);let b=null,m=0;this.FINAL_CONFIG.chart.legend.show&&(b=this.$refs.chartLegend,m=b.getBoundingClientRect().height);let f=0;this.$refs.source&&(f=this.$refs.source.getBoundingClientRect().height);let S=0;this.$refs.noTitle&&(S=this.$refs.noTitle.getBoundingClientRect().height),this.height=o-e-m-x-f-S,this.width=h,this.viewBox=`0 0 ${this.width<0?10:this.width} ${this.height<0?10:this.height}`,this.convertSizes(),new ResizeObserver(A=>{for(const _ of A)this.$refs.chartTitle&&(e=this.$refs.chartTitle.getBoundingClientRect().height),this.$refs.chartSlicer&&this.$refs.chartSlicer.$el&&(x=this.$refs.chartSlicer.$el.getBoundingClientRect().height),this.$refs.chartLegend&&(m=this.$refs.chartLegend.getBoundingClientRect().height),this.$refs.source&&(f=this.$refs.source.getBoundingClientRect().height),this.height=_.contentBoxSize[0].blockSize-e-m-x-f-24,this.width=_.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(r){this.selectedMinimapIndex=r},convertSizes(){this.fontSizes.dataLabels=this.translateSize({relator:this.height,adjuster:400,source:this.FINAL_CONFIG.chart.grid.labels.fontSize,threshold:10,fallback:10}),this.fontSizes.yAxis=this.translateSize({relator:this.width,adjuster:1e3,source:this.FINAL_CONFIG.chart.grid.labels.axis.fontSize,threshold:10,fallback:10}),this.fontSizes.xAxis=this.translateSize({relator:this.width,adjuster:1e3,source:this.FINAL_CONFIG.chart.grid.labels.xAxisLabels.fontSize,threshold:10,fallback:10}),this.fontSizes.plotLabels=this.translateSize({relator:this.width,adjuster:800,source:this.FINAL_CONFIG.chart.labels.fontSize,threshold:10,fallback:10}),this.plotRadii.plot=this.translateSize({relator:this.width,adjuster:800,source:this.FINAL_CONFIG.plot.radius,threshold:1,fallback:1}),this.plotRadii.line=this.translateSize({relator:this.width,adjuster:800,source:this.FINAL_CONFIG.line.radius,threshold:1,fallback:1})},toggleStack(){this.mutableConfig.isStacked=!this.mutableConfig.isStacked,this.mutableConfig.isStacked?this.mutableConfig.useIndividualScale=!0:this.mutableConfig.useIndividualScale=this.FINAL_CONFIG.chart.grid.labels.yAxis.useIndividualScale},toggleTable(){this.mutableConfig.showTable=!this.mutableConfig.showTable},toggleLabels(){this.mutableConfig.dataLabels.show=!this.mutableConfig.dataLabels.show},toggleTooltip(){this.mutableConfig.showTooltip=!this.mutableConfig.showTooltip},checkAutoScaleError(r){r.autoScaling&&(this.FINAL_CONFIG.chart.grid.labels.yAxis.useIndividualScale||console.warn(`VueUiXy (datapoint: ${r.name}) : autoScaling only works when config.chart.grid.labels.yAxis.useIndividualScale is set to true`),this.FINAL_CONFIG.chart.grid.labels.yAxis.stacked||console.warn(`VueUiXy (datapoint: ${r.name}) : autoScaling only works when config.chart.grid.labels.yAxis.stacked is set to true`))},createArea(r){if(!r[0])return[-10,-10,"",-10,-10];const i={x:r[0].x,y:this.zero},o={x:r.at(-1).x,y:this.zero},h=[];return r.forEach(l=>{h.push(`${l.x},${l.y} `)}),[i.x,i.y,...h,o.x,o.y].toString()},createIndividualArea(r,i){if(!r[0])return[-10,-10,"",-10,-10];const o={x:r[0]?r[0].x:Math.min(...r.filter(e=>!!e).map(e=>e.x)),y:i},h={x:r.at(-1)?r.at(-1).x:Math.min(...r.filter(e=>!!e).map(e=>e.x)),y:i},l=[];return r.filter(e=>!!e).forEach(e=>{l.push(`${e.x},${e.y} `)}),[o.x,o.y,...l,h.x,h.y].toString()},createStar:u.createStar,createPolygonPath:u.createPolygonPath,fillArray(r,i){let o=Array(r).fill(0);for(let h=0;h<i.length&&h<r;h+=1)o[h]=i[h];return o},async setupSlicer(){(this.FINAL_CONFIG.chart.zoom.startIndex!==null||this.FINAL_CONFIG.chart.zoom.endIndex!==null)&&this.$refs.chartSlicer?(this.FINAL_CONFIG.chart.zoom.startIndex!==null&&(await this.$nextTick(),await this.$nextTick(),this.$refs.chartSlicer.setStartValue(this.FINAL_CONFIG.chart.zoom.startIndex)),this.FINAL_CONFIG.chart.zoom.endIndex!==null&&(await this.$nextTick(),await this.$nextTick(),this.$refs.chartSlicer.setEndValue(this.validSlicerEnd(this.FINAL_CONFIG.chart.zoom.endIndex+1)))):(this.slicer={start:0,end:Math.max(...this.dataset.map(r=>this.largestTriangleThreeBucketsArray({data:r.series,threshold:this.FINAL_CONFIG.downsample.threshold}).length))},this.slicerStep+=1)},refreshSlicer(){this.setupSlicer()},validSlicerEnd(r){const i=Math.max(...this.dataset.map(o=>this.largestTriangleThreeBucketsArray({data:o.series,threshold:this.FINAL_CONFIG.downsample.threshold}).length));return r>i?i:r<0||this.FINAL_CONFIG.chart.zoom.startIndex!==null&&r<this.FINAL_CONFIG.chart.zoom.startIndex?this.FINAL_CONFIG.chart.zoom.startIndex!==null?this.FINAL_CONFIG.chart.zoom.startIndex+1:1:r},calcRectHeight(r){const i=![null,void 0].includes(this.FINAL_CONFIG.chart.grid.labels.yAxis.scaleMin)&&this.FINAL_CONFIG.chart.grid.labels.yAxis.scaleMin>0&&this.min>=0?this.drawingArea.bottom:this.zero;return r.value>=0?this.checkNaN(i-r.y<=0?1e-5:i-r.y):this.checkNaN(r.y-this.zero<=0?1e-5:r.y-this.zero)},calcIndividualHeight(r){return r.value>=0?this.checkNaN(r.zeroPosition-r.y<=0?1e-5:r.zeroPosition-r.y):this.checkNaN(r.y-r.zeroPosition<=0?1e-5:r.zeroPosition-r.y)},calcRectWidth(){return this.mutableConfig.useIndividualScale&&this.mutableConfig.isStacked?this.slot.line-this.drawingArea.width/this.maxSeries*.1:this.slot.bar},calcRectX(r){return this.mutableConfig.useIndividualScale&&this.mutableConfig.isStacked?r.x+this.drawingArea.width/this.maxSeries*.05:r.x+this.slot.bar/2},calcRectY(r){return r.value>=0?r.y:this.zero},calcIndividualRectY(r){return r.value>=0?r.y:[null,void 0,NaN,1/0,-1/0].includes(r.zeroPosition)?0:r.zeroPosition},canShowValue(r){return![null,void 0,NaN,1/0,-1/0].includes(r)},findClosestValue(r,i){let o=i[0],h=Math.abs(r-i[0]);for(let l=1;l<i.length;l+=1){const e=Math.abs(r-i[l]);e<h&&i[l]<r&&(o=i[l],h=e)}return o},ratioToMax(r){return r/(this.canShowValue(this.absoluteMax)?this.absoluteMax:1)},selectX(r){this.$emit("selectX",{dataset:this.relativeDataset.map(i=>({name:i.name,value:[null,void 0,NaN].includes(i.absoluteValues[r])?null:i.absoluteValues[r],color:i.color,type:i.type})),index:r,indexLabel:this.FINAL_CONFIG.chart.grid.labels.xAxisLabels.values[r]})},getData(){return this.absoluteDataset.map(r=>({values:r.absoluteValues,color:r.color,name:r.name,type:r.type}))},segregate(r){if(this.segregatedSeries.includes(r.id))this.segregatedSeries=this.segregatedSeries.filter(i=>i!==r.id);else{if(this.segregatedSeries.length+1===this.safeDataset.length)return;this.segregatedSeries.push(r.id)}this.$emit("selectLegend",this.relativeDataset.map(i=>({name:i.name,values:i.absoluteValues,color:i.color,type:i.type}))),this.segregateStep+=1},toggleTooltipVisibility(r,i=null){this.isTooltip=r,r?this.selectedSerieIndex=i:this.selectedSerieIndex=null},toggleFullscreen(r){this.isFullscreen=r,this.step+=1},showSpinnerPdf(){this.isPrinting=!0},async generatePdf(){this.showSpinnerPdf(),clearTimeout(this.__to__),this.isPrinting=!0,this.__to__=setTimeout(async()=>{try{const{default:r}=await Promise.resolve().then(()=>require("./pdf-9cRTLjY8.cjs"));await r({domElement:document.getElementById(`vue-ui-xy_${this.uniqueId}`),fileName:this.FINAL_CONFIG.chart.title.text||"vue-ui-xy"})}catch(r){console.error("Error generating PDF:",r)}finally{this.isPrinting=!1}},100)},generateCsv(){const r=[[this.FINAL_CONFIG.chart.title.text],[this.FINAL_CONFIG.chart.title.subtitle.text],[""]],i=["",...this.table.head.map(e=>e.label)],o=this.table.body,h=r.concat([i]).concat(o),l=this.createCsvContent(h);this.downloadCsv({csvContent:l,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:r}=await Promise.resolve().then(()=>require("./img-BFCs759q.cjs"));await r({domElement:document.getElementById(`vue-ui-xy_${this.uniqueId}`),fileName:this.FINAL_CONFIG.chart.title.text||"vue-ui-xy",format:"png"})}catch(r){console.error("Error generating image:",r)}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=["x","y","width","height"],Q={key:1},j={class:"vue-ui-xy-grid"},$=["stroke","x1","x2","y1","y2"],ee=["stroke","x1","x2","y1","y2"],te={key:1},le=["x1","x2","y1","y2","stroke"],re=["x1","x2","y1","y2","stroke"],ae=["x1","x2","y1","y2","stroke"],ie={key:3},se=["x1","x2","y1","y2","stroke"],ne=["id"],oe=["stop-color"],ce=["stop-color"],he=["stop-color"],de=["id"],ue=["stop-color"],me=["stop-color"],ge=["stop-color"],fe=["id"],Ne=["stop-color"],Ie=["stop-color"],xe=["id"],Fe=["stop-color"],ke=["stop-color"],be=["id"],_e=["stop-color"],ye=["stop-color"],Ce=["x","y","height","width","fill"],Ae=["x","y","width"],Le=["x","y","height","width","fill"],Se=["x","y","height","width","rx","fill","stroke","stroke-width"],we=["x","y","height","width","rx","fill","stroke","stroke-width"],Oe=["width","x","y"],Ge={key:0},ve=["id"],pe=["fill"],Be=["x1","x2","y1","y2","stroke","marker-end"],Ve=["x","y","font-size","fill"],Ee=["stroke","x1","x2","y1","y2"],ze={key:2},Me=["x1","x2","y1","y2","stroke","stroke-width","stroke-dasharray"],Pe=["x","y","width","height","stroke","stroke-width","stroke-linecap","stroke-linejoin","stroke-dasharray"],Te={key:4},De=["x1","x2","y1","y2","stroke","stroke-width"],Re=["fill","font-size","transform"],He=["x1","x2","y1","y2","stroke"],We=["x","y","font-size","fill"],qe=["x1","x2","y1","y2","stroke"],Ye=["x","y","font-size","fill"],Xe=["width","x","y"],Ue={style:{width:"100%"}},Ze={key:0},Je=["id"],Ke=["fill"],Qe=["x1","x2","y1","y2","stroke","marker-end"],je=["x","y","font-size","fill"],$e=["d","stroke","stroke-width","stroke-dasharray"],et={key:1},tt=["x1","x2","y1","y2","stroke","stroke-width","stroke-dasharray"],lt={key:5},rt={key:0},at=["d","fill"],it=["d","fill"],st=["d","fill"],nt=["d","fill"],ot=["d","stroke","stroke-width","stroke-dasharray"],ct={key:2},ht=["x1","x2","y1","y2","stroke","stroke-width","stroke-dasharray"],dt=["width","x","y"],ut={style:{width:"100%"}},mt={key:3},gt=["id"],ft=["fill"],Nt=["x1","x2","y1","y2","stroke","marker-end"],It=["x","y","font-size","fill"],xt={key:6},Ft=["x","y","font-size","fill"],kt=["x","y","font-size","fill","font-weight"],bt={key:7},_t=["x","y","font-size","fill"],yt=["x","y"],Ct=["x","y"],At={key:8},Lt=["x","y","font-size","fill"],St=["x","y"],wt=["x","y"],Ot=["x","y","font-size","fill","innerHTML"],Gt=["x","y","font-size","fill","innerHTML"],vt=["x","y","font-size","fill","innerHTML"],pt=["x","y","font-size","fill","innerHTML"],Bt=["x","y","width","height","fill","onMouseenter"],Vt=["font-size","fill","transform"],Et=["x","y","font-size","fill"],zt={key:10},Mt=["text-anchor","font-size","fill","transform","onClick"],Pt=["x","y","height","width","onMouseenter","onClick"],Tt={key:11},Dt=["x","y"],Rt=["cx","cy","r","fill"],Ht={key:5,class:"vue-data-ui-watermark"},Wt=["onClick"],qt={key:0,viewBox:"0 0 20 12",height:"14",width:"20"},Yt=["stroke","fill"],Xt={key:1,viewBox:"0 0 40 40",height:"14",width:"14"},Ut=["fill"],Zt=["fill"],Jt={key:2,viewBox:"0 0 12 12",height:"14",width:"14"},Kt={key:9,ref:"chartLegend"},Qt={key:10,ref:"source",dir:"auto"},jt={style:{display:"flex","flex-direction":"row",gap:"6px","align-items":"center","padding-left":"6px"},"data-html2canvas-ignore":""},$t=["innerHTML"];function el(r,i,o,h,l,e){const g=t.resolveComponent("PenAndPaper"),x=t.resolveComponent("Title"),b=t.resolveComponent("UserOptions"),m=t.resolveComponent("PackageVersion"),f=t.resolveComponent("Shape"),S=t.resolveComponent("Skeleton"),C=t.resolveComponent("Slicer"),A=t.resolveComponent("Tooltip"),_=t.resolveComponent("BaseIcon"),I=t.resolveComponent("TableSparkline"),k=t.resolveComponent("DataTable"),L=t.resolveComponent("Accordion");return t.openBlock(),t.createElementBlock("div",{id:`vue-ui-xy_${l.uniqueId}`,class:t.normalizeClass(`vue-ui-xy ${l.isFullscreen?"vue-data-ui-wrapper-fullscreen":""} ${e.FINAL_CONFIG.useCssAnimation?"":"vue-ui-dna"}`),ref:"chart",style:t.normalizeStyle(`background:${e.FINAL_CONFIG.chart.backgroundColor}; color:${e.FINAL_CONFIG.chart.color};width:100%;font-family:${e.FINAL_CONFIG.chart.fontFamily};${e.FINAL_CONFIG.responsive?"height: 100%":""}`),onMouseenter:i[7]||(i[7]=()=>e.setUserOptionsVisibility(!0)),onMouseleave:i[8]||(i[8]=()=>e.setUserOptionsVisibility(!1))},[e.FINAL_CONFIG.chart.userOptions.buttons.annotator?(t.openBlock(),t.createBlock(g,{key:0,parent:r.$refs.chart,backgroundColor:e.FINAL_CONFIG.chart.backgroundColor,color:e.FINAL_CONFIG.chart.color,active:l.isAnnotator,onClose:e.toggleAnnotator},null,8,["parent","backgroundColor","color","active","onClose"])):t.createCommentVNode("",!0),e.hasOptionsNoTitle?(t.openBlock(),t.createElementBlock("div",Z,null,512)):t.createCommentVNode("",!0),e.FINAL_CONFIG.chart.title.show?(t.openBlock(),t.createElementBlock("div",{key:2,ref:"chartTitle",class:"vue-ui-xy-title",style:t.normalizeStyle(`font-family:${e.FINAL_CONFIG.chart.fontFamily}`)},[(t.openBlock(),t.createBlock(x,{key:`title_${l.titleStep}`,config:{title:{cy:"xy-div-title",...e.FINAL_CONFIG.chart.title},subtitle:{cy:"xy-div-subtitle",...e.FINAL_CONFIG.chart.title.subtitle}}},null,8,["config"]))],4)):t.createCommentVNode("",!0),e.FINAL_CONFIG.chart.userOptions.show&&e.isDataset&&(l.keepUserOptionState||l.userOptionsVisible)?(t.openBlock(),t.createBlock(b,{ref:"defails",key:`user_options_${l.step}`,backgroundColor:e.FINAL_CONFIG.chart.backgroundColor,color:e.FINAL_CONFIG.chart.color,isPrinting:l.isPrinting,isImaging:l.isImaging,uid:l.uniqueId,hasTooltip:e.FINAL_CONFIG.chart.userOptions.buttons.tooltip&&e.FINAL_CONFIG.chart.tooltip.show,hasPdf:e.FINAL_CONFIG.chart.userOptions.buttons.pdf,hasXls:e.FINAL_CONFIG.chart.userOptions.buttons.csv,hasImg:e.FINAL_CONFIG.chart.userOptions.buttons.img,hasLabel:e.FINAL_CONFIG.chart.userOptions.buttons.labels,hasTable:e.FINAL_CONFIG.chart.userOptions.buttons.table,hasStack:o.dataset.length>1&&e.FINAL_CONFIG.chart.userOptions.buttons.stack,hasFullscreen:e.FINAL_CONFIG.chart.userOptions.buttons.fullscreen,isStacked:l.mutableConfig.isStacked,isFullscreen:l.isFullscreen,chartElement:r.$refs.chart,position:e.FINAL_CONFIG.chart.userOptions.position,isTooltip:l.mutableConfig.showTooltip,titles:{...e.FINAL_CONFIG.chart.userOptions.buttonTitles},hasAnnotator:e.FINAL_CONFIG.chart.userOptions.buttons.annotator,isAnnotation:l.isAnnotator,onToggleFullscreen:e.toggleFullscreen,onGeneratePdf:e.generatePdf,onGenerateCsv:e.generateCsv,onGenerateImage:e.generateImage,onToggleTable:e.toggleTable,onToggleLabels:e.toggleLabels,onToggleStack:e.toggleStack,onToggleTooltip:e.toggleTooltip,onToggleAnnotator:e.toggleAnnotator,style:t.normalizeStyle({visibility:l.keepUserOptionState?l.userOptionsVisible?"visible":"hidden":"visible"})},t.createSlots({_:2},[r.$slots.optionTooltip?{name:"optionTooltip",fn:t.withCtx(()=>[t.renderSlot(r.$slots,"optionTooltip",{},void 0,!0)]),key:"0"}:void 0,r.$slots.optionPdf?{name:"optionPdf",fn:t.withCtx(()=>[t.renderSlot(r.$slots,"optionPdf",{},void 0,!0)]),key:"1"}:void 0,r.$slots.optionCsv?{name:"optionCsv",fn:t.withCtx(()=>[t.renderSlot(r.$slots,"optionCsv",{},void 0,!0)]),key:"2"}:void 0,r.$slots.optionImg?{name:"optionImg",fn:t.withCtx(()=>[t.renderSlot(r.$slots,"optionImg",{},void 0,!0)]),key:"3"}:void 0,r.$slots.optionTable?{name:"optionTable",fn:t.withCtx(()=>[t.renderSlot(r.$slots,"optionTable",{},void 0,!0)]),key:"4"}:void 0,r.$slots.optionLabels?{name:"optionLabels",fn:t.withCtx(()=>[t.renderSlot(r.$slots,"optionLabels",{},void 0,!0)]),key:"5"}:void 0,r.$slots.optionStack?{name:"optionStack",fn:t.withCtx(()=>[t.renderSlot(r.$slots,"optionStack",{},void 0,!0)]),key:"6"}:void 0,r.$slots.optionFullscreen?{name:"optionFullscreen",fn:t.withCtx(({toggleFullscreen:a,isFullscreen:n})=>[t.renderSlot(r.$slots,"optionFullscreen",t.normalizeProps(t.guardReactiveProps({toggleFullscreen:a,isFullscreen:n})),void 0,!0)]),key:"7"}:void 0,r.$slots.optionAnnotator?{name:"optionAnnotator",fn:t.withCtx(({toggleAnnotator:a,isAnnotator:n})=>[t.renderSlot(r.$slots,"optionAnnotator",t.normalizeProps(t.guardReactiveProps({toggleAnnotator:a,isAnnotator:n})),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","style"])):t.createCommentVNode("",!0),e.isDataset?(t.openBlock(),t.createElementBlock("svg",{key:4,xmlns:"http://www.w3.org/2000/svg",class:t.normalizeClass([{"vue-data-ui-fullscreen--on":l.isFullscreen,"vue-data-ui-fulscreen--off":!l.isFullscreen},"vue-ui-xy-svg"]),width:"100%",viewBox:l.viewBox,style:t.normalizeStyle(`background: transparent; color:${e.FINAL_CONFIG.chart.color}; font-family:${e.FINAL_CONFIG.chart.fontFamily}`)},[t.createVNode(m),r.$slots["chart-background"]?(t.openBlock(),t.createElementBlock("foreignObject",{key:0,x:e.drawingArea.left+e.xPadding<0?0:e.drawingArea.left+e.xPadding,y:e.drawingArea.top,width:e.drawingArea.width-(e.FINAL_CONFIG.chart.grid.position==="middle"?0:e.drawingArea.width/e.maxSeries)<0?0:e.drawingArea.width-(e.FINAL_CONFIG.chart.grid.position==="middle"?0:e.drawingArea.width/e.maxSeries),height:e.drawingArea.height<0?0:e.drawingArea.height,style:{pointerEvents:"none"}},[t.renderSlot(r.$slots,"chart-background",{},void 0,!0)],8,K)):t.createCommentVNode("",!0),e.maxSeries>0?(t.openBlock(),t.createElementBlock("g",Q,[t.createElementVNode("g",j,[e.FINAL_CONFIG.chart.grid.labels.xAxis.showBaseline?(t.openBlock(),t.createElementBlock("line",{key:0,stroke:e.FINAL_CONFIG.chart.grid.stroke,"stroke-width":"1",x1:e.drawingArea.left+e.xPadding,x2:e.drawingArea.right-e.xPadding,y1:e.forceValidValue(e.drawingArea.bottom),y2:e.forceValidValue(e.drawingArea.bottom),"stroke-linecap":"round"},null,8,$)):t.createCommentVNode("",!0),l.mutableConfig.useIndividualScale?e.FINAL_CONFIG.chart.grid.showHorizontalLines?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:2},t.renderList(e.allScales,a=>(t.openBlock(),t.createElementBlock("g",null,[a.id===l.selectedScale&&a.yLabels.length?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:0},t.renderList(a.yLabels,n=>(t.openBlock(),t.createElementBlock("line",{x1:e.drawingArea.left+e.xPadding,x2:e.drawingArea.right-e.xPadding,y1:e.forceValidValue(n.y),y2:e.forceValidValue(n.y),stroke:a.color,"stroke-width":.5,"stroke-linecap":"round"},null,8,re))),256)):a.yLabels.length?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:1},t.renderList(a.yLabels,n=>(t.openBlock(),t.createElementBlock("line",{x1:e.drawingArea.left+e.xPadding,x2:e.drawingArea.right-e.xPadding,y1:e.forceValidValue(n.y),y2:e.forceValidValue(n.y),stroke:e.FINAL_CONFIG.chart.grid.stroke,"stroke-width":.5,"stroke-linecap":"round"},null,8,ae))),256)):t.createCommentVNode("",!0)]))),256)):t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[e.FINAL_CONFIG.chart.grid.labels.yAxis.showBaseline?(t.openBlock(),t.createElementBlock("line",{key:0,stroke:e.FINAL_CONFIG.chart.grid.stroke,"stroke-width":"1",x1:e.drawingArea.left+e.xPadding,x2:e.drawingArea.left+e.xPadding,y1:e.forceValidValue(e.drawingArea.top),y2:e.forceValidValue(e.drawingArea.bottom),"stroke-linecap":"round"},null,8,ee)):t.createCommentVNode("",!0),e.FINAL_CONFIG.chart.grid.showHorizontalLines?(t.openBlock(),t.createElementBlock("g",te,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.yLabels,a=>(t.openBlock(),t.createElementBlock("line",{x1:e.drawingArea.left+e.xPadding,x2:e.drawingArea.right-e.xPadding,y1:e.forceValidValue(a.y),y2:e.forceValidValue(a.y),stroke:e.FINAL_CONFIG.chart.grid.stroke,"stroke-width":.5,"stroke-linecap":"round"},null,8,le))),256))])):t.createCommentVNode("",!0)],64)),e.FINAL_CONFIG.chart.grid.showVerticalLines?(t.openBlock(),t.createElementBlock("g",ie,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.maxSeries+(e.FINAL_CONFIG.chart.grid.position==="middle"?1:0),(a,n)=>(t.openBlock(),t.createElementBlock("line",{key:`grid_vertical_line_${n}`,x1:e.drawingArea.width/e.maxSeries*n+e.drawingArea.left+e.xPadding,x2:e.drawingArea.width/e.maxSeries*n+e.drawingArea.left+e.xPadding,y1:e.forceValidValue(e.drawingArea.top),y2:e.forceValidValue(e.drawingArea.bottom),"stroke-width":"0.5",stroke:e.FINAL_CONFIG.chart.grid.stroke},null,8,se))),128))])):t.createCommentVNode("",!0)]),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.barSet,(a,n)=>(t.openBlock(),t.createElementBlock("defs",{key:`def_rect_${n}`},[t.createElementVNode("linearGradient",{id:`rectGradient_pos_${n}_${l.uniqueId}`,x2:"0%",y2:"100%"},[t.createElementVNode("stop",{offset:"0%","stop-color":a.color},null,8,oe),t.createElementVNode("stop",{offset:"62%","stop-color":`${e.shiftHue(a.color,.02)}`},null,8,ce),t.createElementVNode("stop",{offset:"100%","stop-color":`${e.shiftHue(a.color,.05)}`},null,8,he)],8,ne),t.createElementVNode("linearGradient",{id:`rectGradient_neg_${n}_${l.uniqueId}`,x2:"0%",y2:"100%"},[t.createElementVNode("stop",{offset:"0%","stop-color":`${e.shiftHue(a.color,.05)}`},null,8,ue),t.createElementVNode("stop",{offset:"38%","stop-color":`${e.shiftHue(a.color,.02)}`},null,8,me),t.createElementVNode("stop",{offset:"100%","stop-color":a.color},null,8,ge)],8,de)]))),128)),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.plotSet,(a,n)=>(t.openBlock(),t.createElementBlock("defs",{key:`def_plot_${n}`},[t.createElementVNode("radialGradient",{id:`plotGradient_${n}_${l.uniqueId}`,cx:"50%",cy:"50%",r:"50%",fx:"50%",fy:"50%"},[t.createElementVNode("stop",{offset:"0%","stop-color":`${e.shiftHue(a.color,.05)}`},null,8,Ne),t.createElementVNode("stop",{offset:"100%","stop-color":a.color},null,8,Ie)],8,fe)]))),128)),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.lineSet,(a,n)=>(t.openBlock(),t.createElementBlock("defs",{key:`def_line_${n}`},[t.createElementVNode("radialGradient",{id:`lineGradient_${n}_${l.uniqueId}`,cx:"50%",cy:"50%",r:"50%",fx:"50%",fy:"50%"},[t.createElementVNode("stop",{offset:"0%","stop-color":`${e.shiftHue(a.color,.05)}`},null,8,Fe),t.createElementVNode("stop",{offset:"100%","stop-color":a.color},null,8,ke)],8,xe),t.createElementVNode("linearGradient",{id:`areaGradient_${n}_${l.uniqueId}`,x1:"0%",x2:"100%",y1:"0%",y2:"0%"},[t.createElementVNode("stop",{offset:"0%","stop-color":`${e.setOpacity(e.shiftHue(a.color,.03),e.FINAL_CONFIG.line.area.opacity)}`},null,8,_e),t.createElementVNode("stop",{offset:"100%","stop-color":`${e.setOpacity(a.color,e.FINAL_CONFIG.line.area.opacity)}`},null,8,ye)],8,be)]))),128)),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.highlightAreas,a=>(t.openBlock(),t.createElementBlock("g",null,[a.show?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:0},t.renderList(a.span,(n,s)=>(t.openBlock(),t.createElementBlock("g",null,[t.createElementVNode("rect",{style:t.normalizeStyle({transition:"none",opacity:a.from+s>=l.slicer.start&&a.from+s<=l.slicer.end-1?1:0}),x:e.drawingArea.left+e.drawingArea.width/e.maxSeries*(a.from+s-l.slicer.start),y:e.drawingArea.top,height:e.drawingArea.height<0?10:e.drawingArea.height,width:e.drawingArea.width/e.maxSeries<0?1e-5:e.drawingArea.width/e.maxSeries,fill:e.setOpacity(a.color,a.opacity)},null,12,Ce),a.caption.text&&s===0?(t.openBlock(),t.createElementBlock("foreignObject",{key:0,x:e.drawingArea.left+e.drawingArea.width/e.maxSeries*(a.from+s-l.slicer.start)-(a.caption.width==="auto"?0:a.caption.width/2-e.drawingArea.width/e.maxSeries*a.span/2),y:e.drawingArea.top+a.caption.offsetY,style:t.normalizeStyle({overflow:"visible",opacity:a.to>=l.slicer.start&&a.from<l.slicer.end?1:0}),height:"1",width:a.caption.width==="auto"?e.drawingArea.width/e.maxSeries*a.span:a.caption.width},[t.createElementVNode("div",{style:t.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"}`)},t.toDisplayString(a.caption.text),5)],12,Ae)):t.createCommentVNode("",!0)]))),256)):t.createCommentVNode("",!0)]))),256)),t.createElementVNode("g",null,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.maxSeries,(a,n)=>(t.openBlock(),t.createElementBlock("g",{key:`tooltip_trap_highlighter_${n}`},[t.createElementVNode("rect",{x:e.drawingArea.left+e.drawingArea.width/e.maxSeries*n,y:e.drawingArea.top,height:e.drawingArea.height<0?10:e.drawingArea.height,width:e.drawingArea.width/e.maxSeries<0?1e-5:e.drawingArea.width/e.maxSeries,fill:[l.selectedMinimapIndex,l.selectedSerieIndex,l.selectedRowIndex].includes(n)?e.setOpacity(e.FINAL_CONFIG.chart.highlighter.color,e.FINAL_CONFIG.chart.highlighter.opacity):"transparent"},null,8,Le)]))),128))]),e.barSet.length?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:0},t.renderList(e.barSet,(a,n)=>(t.openBlock(),t.createElementBlock("g",{key:`serie_bar_${n}`,class:t.normalizeClass(`serie_bar_${n}`),style:t.normalizeStyle(`opacity:${l.selectedScale?l.selectedScale===a.id?1:.2:1};transition:opacity 0.2s ease-in-out`)},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(a.plots,(s,c)=>(t.openBlock(),t.createElementBlock("g",{key:`bar_plot_${n}_${c}`},[e.canShowValue(s.value)?(t.openBlock(),t.createElementBlock("rect",{key:0,x:e.calcRectX(s),y:l.mutableConfig.useIndividualScale?e.calcIndividualRectY(s):e.calcRectY(s),height:l.mutableConfig.useIndividualScale?Math.abs(e.calcIndividualHeight(s)):Math.abs(e.calcRectHeight(s)),width:e.calcRectWidth()-(l.mutableConfig.useIndividualScale&&l.mutableConfig.isStacked?0:e.barPeriodGap)<0?1e-5:e.calcRectWidth()-(l.mutableConfig.useIndividualScale&&l.mutableConfig.isStacked?0:e.barPeriodGap),rx:e.FINAL_CONFIG.bar.borderRadius,fill:e.FINAL_CONFIG.bar.useGradient?s.value>=0?`url(#rectGradient_pos_${n}_${l.uniqueId})`:`url(#rectGradient_neg_${n}_${l.uniqueId})`:a.color,stroke:e.FINAL_CONFIG.bar.border.useSerieColor?a.color:e.FINAL_CONFIG.bar.border.stroke,"stroke-width":e.FINAL_CONFIG.bar.border.strokeWidth},null,8,Se)):t.createCommentVNode("",!0),e.canShowValue(s.value)&&r.$slots.pattern?(t.openBlock(),t.createElementBlock("rect",{key:1,x:e.calcRectX(s),y:l.mutableConfig.useIndividualScale?e.calcIndividualRectY(s):e.calcRectY(s),height:l.mutableConfig.useIndividualScale?Math.abs(e.calcIndividualHeight(s)):Math.abs(e.calcRectHeight(s)),width:e.calcRectWidth()-(l.mutableConfig.useIndividualScale&&l.mutableConfig.isStacked?0:e.barPeriodGap)<0?1e-5:e.calcRectWidth()-(l.mutableConfig.useIndividualScale&&l.mutableConfig.isStacked?0:e.barPeriodGap),rx:e.FINAL_CONFIG.bar.borderRadius,fill:`url(#pattern_${l.uniqueId}_${a.slotAbsoluteIndex})`,stroke:e.FINAL_CONFIG.bar.border.useSerieColor?a.color:e.FINAL_CONFIG.bar.border.stroke,"stroke-width":e.FINAL_CONFIG.bar.border.strokeWidth},null,8,we)):t.createCommentVNode("",!0),s.comment&&e.FINAL_CONFIG.chart.comments.show?(t.openBlock(),t.createElementBlock("foreignObject",{key:2,style:{overflow:"visible"},height:"12",width:(e.calcRectWidth()-(l.mutableConfig.useIndividualScale&&l.mutableConfig.isStacked?0:e.barPeriodGap)<0?1e-5:e.calcRectWidth()-(l.mutableConfig.useIndividualScale&&l.mutableConfig.isStacked?0:e.barPeriodGap)/2)+e.FINAL_CONFIG.chart.comments.width,x:e.calcRectX(s)-e.FINAL_CONFIG.chart.comments.width/2+e.FINAL_CONFIG.chart.comments.offsetX,y:e.checkNaN(s.y)+e.FINAL_CONFIG.chart.comments.offsetY+6},[t.renderSlot(r.$slots,"plot-comment",{plot:{...s,color:a.color,seriesIndex:n,datapointIndex:c}},void 0,!0)],8,Oe)):t.createCommentVNode("",!0)]))),128)),Object.hasOwn(a,"useProgression")&&a.useProgression===!0&&!isNaN(e.calcLinearProgression(a.plots).trend)?(t.openBlock(),t.createElementBlock("g",Ge,[t.createElementVNode("defs",null,[t.createElementVNode("marker",{id:`bar_arrow_${n}`,markerWidth:7,markerHeight:7,refX:"0",refY:7/2,orient:"auto"},[t.createElementVNode("polygon",{points:`0 0, 7 ${7/2}, 0 7`,fill:a.color},null,8,pe)],8,ve)]),a.plots.length>1?(t.openBlock(),t.createElementBlock("line",{key:0,x1:e.calcLinearProgression(a.plots).x1,x2:e.calcLinearProgression(a.plots).x2,y1:e.forceValidValue(e.calcLinearProgression(a.plots).y1),y2:e.forceValidValue(e.calcLinearProgression(a.plots).y2),"stroke-width":1,stroke:a.color,"stroke-dasharray":2,"marker-end":`url(#bar_arrow_${n})`},null,8,Be)):t.createCommentVNode("",!0),a.plots.length>1?(t.openBlock(),t.createElementBlock("text",{key:1,"text-anchor":"middle",x:e.calcLinearProgression(a.plots).x2,y:e.calcLinearProgression(a.plots).y2-6,"font-size":l.fontSizes.plotLabels,fill:a.color},t.toDisplayString(e.dataLabel({v:e.calcLinearProgression(a.plots).trend*100,s:"%",r:2})),9,Ve)):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0)],6))),128)):t.createCommentVNode("",!0),!l.mutableConfig.useIndividualScale&&e.FINAL_CONFIG.chart.grid.labels.zeroLine.show?(t.openBlock(),t.createElementBlock("line",{key:1,stroke:e.FINAL_CONFIG.chart.grid.stroke,"stroke-width":"1",x1:e.drawingArea.left+e.xPadding,x2:e.drawingArea.right-e.xPadding,y1:e.forceValidValue(e.zero),y2:e.forceValidValue(e.zero),"stroke-linecap":"round"},null,8,Ee)):t.createCommentVNode("",!0),e.FINAL_CONFIG.chart.highlighter.useLine&&(![null,void 0].includes(l.selectedSerieIndex)||![null,void 0].includes(l.selectedMinimapIndex))?(t.openBlock(),t.createElementBlock("g",ze,[t.createElementVNode("line",{x1:e.drawingArea.left+e.drawingArea.width/e.maxSeries*((l.selectedSerieIndex!==null?l.selectedSerieIndex:0)||(l.selectedMinimapIndex!==null?l.selectedMinimapIndex:0))+e.drawingArea.width/e.maxSeries/2,x2:e.drawingArea.left+e.drawingArea.width/e.maxSeries*((l.selectedSerieIndex!==null?l.selectedSerieIndex:0)||(l.selectedMinimapIndex!==null?l.selectedMinimapIndex:0))+e.drawingArea.width/e.maxSeries/2,y1:e.forceValidValue(e.drawingArea.top),y2:e.forceValidValue(e.drawingArea.bottom),stroke:e.FINAL_CONFIG.chart.highlighter.color,"stroke-width":e.FINAL_CONFIG.chart.highlighter.lineWidth,"stroke-dasharray":e.FINAL_CONFIG.chart.highlighter.lineDasharray,"stroke-linecap":"round",style:{transition:"none !important",animation:"none !important","pointer-events":"none"}},null,8,Me)])):t.createCommentVNode("",!0),e.FINAL_CONFIG.chart.grid.frame.show?(t.openBlock(),t.createElementBlock("rect",{key:3,style:{pointerEvents:"none",transition:"none"},x:e.drawingArea.left+e.xPadding<0?0:e.drawingArea.left+e.xPadding,y:e.drawingArea.top,width:e.drawingArea.width-(e.FINAL_CONFIG.chart.grid.position==="middle"?0:e.drawingArea.width/e.maxSeries)<0?0:e.drawingArea.width-(e.FINAL_CONFIG.chart.grid.position==="middle"?0:e.drawingArea.width/e.maxSeries),height:e.drawingArea.height<0?0:e.drawingArea.height,fill:"transparent",stroke:e.FINAL_CONFIG.chart.grid.frame.stroke,"stroke-width":e.FINAL_CONFIG.chart.grid.frame.strokeWidth,"stroke-linecap":e.FINAL_CONFIG.chart.grid.frame.strokeLinecap,"stroke-linejoin":e.FINAL_CONFIG.chart.grid.frame.strokeLinejoin,"stroke-dasharray":e.FINAL_CONFIG.chart.grid.frame.strokeDasharray},null,8,Pe)):t.createCommentVNode("",!0),e.FINAL_CONFIG.chart.grid.labels.show?(t.openBlock(),t.createElementBlock("g",Te,[l.mutableConfig.useIndividualScale?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.allScales,a=>(t.openBlock(),t.createElementBlock("g",null,[t.createElementVNode("line",{x1:a.x+e.xPadding,x2:a.x+e.xPadding,y1:l.mutableConfig.isStacked?e.forceValidValue(e.drawingArea.bottom-a.yOffset-a.individualHeight):e.forceValidValue(e.drawingArea.top),y2:l.mutableConfig.isStacked?e.forceValidValue(e.drawingArea.bottom-a.yOffset):e.forceValidValue(e.drawingArea.bottom),stroke:a.color,"stroke-width":e.FINAL_CONFIG.chart.grid.stroke,"stroke-linecap":"round",style:t.normalizeStyle(`opacity:${l.selectedScale?l.selectedScale===a.id?1:.3:1};transition:opacity 0.2s ease-in-out`)},null,12,De)]))),256)),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.allScales,a=>(t.openBlock(),t.createElementBlock("g",{style:t.normalizeStyle(`opacity:${l.selectedScale?l.selectedScale===a.id?1:.3:1};transition:opacity 0.2s ease-in-out`)},[t.createElementVNode("text",{fill:a.color,"font-size":l.fontSizes.dataLabels,"text-anchor":"middle",transform:`translate(${a.x-e.FINAL_CONFIG.chart.grid.labels.yAxis.labelWidth+5+e.xPadding}, ${l.mutableConfig.isStacked?e.drawingArea.bottom-a.yOffset-a.individualHeight/2:e.drawingArea.top+e.drawingArea.height/2}) rotate(-90)`},t.toDisplayString(a.name)+" "+t.toDisplayString(a.scaleLabel?`- ${a.scaleLabel}`:""),9,Re),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(a.yLabels,(n,s)=>(t.openBlock(),t.createElementBlock("line",{x1:a.x-3+e.xPadding,x2:a.x+e.xPadding,y1:e.forceValidValue(n.y),y2:e.forceValidValue(n.y),stroke:a.color,"stroke-width":1,"stroke-linecap":"round"},null,8,He))),256)),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(a.yLabels,(n,s)=>(t.openBlock(),t.createElementBlock("text",{x:a.x-5+e.xPadding,y:e.forceValidValue(n.y)+l.fontSizes.dataLabels/3,"font-size":l.fontSizes.dataLabels,"text-anchor":"end",fill:a.color},t.toDisplayString(e.applyDataLabel(e.FINAL_CONFIG.chart.grid.labels.yAxis.formatter,n.value,e.dataLabel({p:n.prefix,v:n.value,s:n.suffix,r:1}),{datapoint:n.datapoint,seriesIndex:s})),9,We))),256))],4))),256))],64)):(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:1},t.renderList(e.yLabels,(a,n)=>(t.openBlock(),t.createElementBlock("g",{key:`yLabel_${n}`},[e.canShowValue(a)&&a.value>=e.niceScale.min&&a.value<=e.niceScale.max?(t.openBlock(),t.createElementBlock("line",{key:0,x1:e.drawingArea.left+e.xPadding,x2:e.drawingArea.left-5+e.xPadding,y1:e.forceValidValue(a.y),y2:e.forceValidValue(a.y),stroke:e.FINAL_CONFIG.chart.grid.stroke,"stroke-width":"1","stroke-linecap":"round"},null,8,qe)):t.createCommentVNode("",!0),a.value>=e.niceScale.min&&a.value<=e.niceScale.max?(t.openBlock(),t.createElementBlock("text",{key:1,x:e.drawingArea.left-7+e.xPadding,y:e.checkNaN(a.y+l.fontSizes.dataLabels/3),"font-size":l.fontSizes.dataLabels,"text-anchor":"end",fill:e.FINAL_CONFIG.chart.grid.labels.color},t.toDisplayString(e.canShowValue(a.value)?e.applyDataLabel(e.FINAL_CONFIG.chart.grid.labels.yAxis.formatter,a.value,e.dataLabel({p:a.prefix,v:a.value,s:a.suffix,r:1})):""),9,Ye)):t.createCommentVNode("",!0)]))),128))])):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.plotSet,(a,n)=>(t.openBlock(),t.createElementBlock("g",{key:`serie_plot_${n}`,class:t.normalizeClass(`serie_plot_${n}`),style:t.normalizeStyle(`opacity:${l.selectedScale?l.selectedScale===a.id?1:.2:1};transition:opacity 0.2s ease-in-out`)},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(a.plots,(s,c)=>(t.openBlock(),t.createElementBlock("g",{key:`circle_plot_${n}_${c}`},[s&&e.canShowValue(s.value)?(t.openBlock(),t.createBlock(f,{key:0,shape:["triangle","square","diamond","pentagon","hexagon","star"].includes(a.shape)?a.shape:"circle",color:e.FINAL_CONFIG.plot.useGradient?`url(#plotGradient_${n}_${l.uniqueId})`:e.FINAL_CONFIG.plot.dot.useSerieColor?a.color:e.FINAL_CONFIG.plot.dot.fill,plot:{x:e.checkNaN(s.x),y:e.checkNaN(s.y)},radius:l.selectedSerieIndex!==null&&l.selectedSerieIndex===c||l.selectedMinimapIndex!==null&&l.selectedMinimapIndex===c?(l.plotRadii.plot||6)*1.5:l.plotRadii.plot||6,stroke:e.FINAL_CONFIG.plot.dot.useSerieColor?e.FINAL_CONFIG.chart.backgroundColor:a.color,strokeWidth:e.FINAL_CONFIG.plot.dot.strokeWidth},null,8,["shape","color","plot","radius","stroke","strokeWidth"])):t.createCommentVNode("",!0),s.comment&&e.FINAL_CONFIG.chart.comments.show?(t.openBlock(),t.createElementBlock("foreignObject",{key:1,style:{overflow:"visible"},height:"12",width:e.FINAL_CONFIG.chart.comments.width,x:s.x-e.FINAL_CONFIG.chart.comments.width/2+e.FINAL_CONFIG.chart.comments.offsetX,y:s.y+e.FINAL_CONFIG.chart.comments.offsetY+6},[t.createElementVNode("div",Ue,[t.renderSlot(r.$slots,"plot-comment",{plot:{...s,color:a.color,seriesIndex:n,datapointIndex:c}},void 0,!0)])],8,Xe)):t.createCommentVNode("",!0)]))),128)),Object.hasOwn(a,"useProgression")&&a.useProgression===!0&&!isNaN(e.calcLinearProgression(a.plots).trend)?(t.openBlock(),t.createElementBlock("g",Ze,[t.createElementVNode("defs",null,[t.createElementVNode("marker",{id:`plot_arrow_${n}`,markerWidth:7,markerHeight:7,refX:"0",refY:7/2,orient:"auto"},[t.createElementVNode("polygon",{points:`0 0, 7 ${7/2}, 0 7`,fill:a.color},null,8,Ke)],8,Je)]),a.plots.length>1?(t.openBlock(),t.createElementBlock("line",{key:0,x1:e.calcLinearProgression(a.plots).x1,x2:e.calcLinearProgression(a.plots).x2,y1:e.forceValidValue(e.calcLinearProgression(a.plots).y1),y2:e.forceValidValue(e.calcLinearProgression(a.plots).y2),"stroke-width":1,stroke:a.color,"stroke-dasharray":2,"marker-end":`url(#plot_arrow_${n})`},null,8,Qe)):t.createCommentVNode("",!0),a.plots.length>1?(t.openBlock(),t.createElementBlock("text",{key:1,"text-anchor":"middle",x:e.calcLinearProgression(a.plots).x2,y:e.calcLinearProgression(a.plots).y2-6,"font-size":l.fontSizes.plotLabels,fill:a.color},t.toDisplayString(e.dataLabel({v:e.calcLinearProgression(a.plots).trend*100,s:"%",r:2})),9,je)):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0)],6))),128)),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.lineSet,(a,n)=>(t.openBlock(),t.createElementBlock("g",{key:`serie_line_${n}`,class:t.normalizeClass(`serie_line_${n}`),style:t.normalizeStyle(`opacity:${l.selectedScale?l.selectedScale===a.id?1:.2:1};transition:opacity 0.2s ease-in-out`)},[a.smooth&&a.plots.length>1?(t.openBlock(),t.createElementBlock("path",{key:0,d:`M${a.curve}`,stroke:e.FINAL_CONFIG.chart.backgroundColor,"stroke-width":e.FINAL_CONFIG.line.strokeWidth+1,"stroke-dasharray":a.dashed?e.FINAL_CONFIG.line.strokeWidth*2:0,fill:"none"},null,8,$e)):a.plots.length>1?(t.openBlock(),t.createElementBlock("g",et,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(a.plots,(s,c)=>(t.openBlock(),t.createElementBlock("g",{key:`line_${n}_${c}`},[s&&c<a.plots.length-1&&a.plots[c+1]&&e.canShowValue(s.value)&&e.canShowValue(a.plots[c+1].value)?(t.openBlock(),t.createElementBlock("line",{key:0,x1:s.x,x2:a.plots[c+1].x,y1:e.forceValidValue(s.y),y2:e.forceValidValue(a.plots[c+1].y),stroke:e.FINAL_CONFIG.chart.backgroundColor,"stroke-width":e.FINAL_CONFIG.line.strokeWidth+1,"stroke-dasharray":a.dashed?e.FINAL_CONFIG.line.strokeWidth*2:0,"stroke-linejoin":"round","stroke-linecap":"round"},null,8,tt)):t.createCommentVNode("",!0)]))),128))])):t.createCommentVNode("",!0)],6))),128)),r.$slots.pattern?(t.openBlock(),t.createElementBlock("defs",lt,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.safeDataset,(a,n)=>t.renderSlot(r.$slots,"pattern",t.mergeProps({key:`serie_pattern_slot_${n}`},{...a,seriesIndex:a.slotAbsoluteIndex,patternId:`pattern_${l.uniqueId}_${n}`}),void 0,!0)),128))])):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.lineSet,(a,n)=>(t.openBlock(),t.createElementBlock("g",{key:`serie_line_${n}`,class:t.normalizeClass(`serie_line_${n}`),style:t.normalizeStyle(`opacity:${l.selectedScale?l.selectedScale===a.id?1:.2:1};transition:opacity 0.2s ease-in-out`)},[a.useArea&&a.plots.length>1?(t.openBlock(),t.createElementBlock("g",rt,[a.smooth?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createElementVNode("path",{d:`M ${a.plots[0]?a.plots[0].x:Math.min(...a.plots.filter(s=>!!s).map(s=>s.x))},${l.mutableConfig.isStacked?e.drawingArea.bottom-a.yOffset:e.drawingArea.bottom} ${a.curve} L ${a.plots.at(-1)?a.plots.at(-1).x:e.drawingArea.left+e.slot.line*n+e.slot.line/2},${l.mutableConfig.isStacked?e.drawingArea.bottom-a.yOffset:e.drawingArea.bottom} Z`,fill:e.FINAL_CONFIG.line.area.useGradient?`url(#areaGradient_${n}_${l.uniqueId})`:e.setOpacity(a.color,e.FINAL_CONFIG.line.area.opacity)},null,8,at),r.$slots.pattern?(t.openBlock(),t.createElementBlock("path",{key:0,d:`M ${a.plots[0]?a.plots[0].x:Math.min(...a.plots.filter(s=>!!s).map(s=>s.x))},${l.mutableConfig.isStacked?e.drawingArea.bottom-a.yOffset:e.drawingArea.bottom} ${a.curve} L ${a.plots.at(-1)?a.plots.at(-1).x:e.drawingArea.left+e.slot.line*n+e.slot.line/2},${l.mutableConfig.isStacked?e.drawingArea.bottom-a.yOffset:e.drawingArea.bottom} Z`,fill:`url(#pattern_${l.uniqueId}_${a.slotAbsoluteIndex})`},null,8,it)):t.createCommentVNode("",!0)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createElementVNode("path",{d:`M${a.area}Z`,fill:e.FINAL_CONFIG.line.area.useGradient?`url(#areaGradient_${n}_${l.uniqueId})`:e.setOpacity(a.color,e.FINAL_CONFIG.line.area.opacity)},null,8,st),r.$slots.pattern?(t.openBlock(),t.createElementBlock("path",{key:0,d:`M${a.area}Z`,fill:`url(#pattern_${l.uniqueId}_${a.slotAbsoluteIndex})`},null,8,nt)):t.createCommentVNode("",!0)],64))])):t.createCommentVNode("",!0),a.smooth&&a.plots.length>1?(t.openBlock(),t.createElementBlock("path",{key:1,d:`M${a.curve}`,stroke:a.color,"stroke-width":e.FINAL_CONFIG.line.strokeWidth,"stroke-dasharray":a.dashed?e.FINAL_CONFIG.line.strokeWidth*2:0,fill:"none"},null,8,ot)):a.plots.length>1?(t.openBlock(),t.createElementBlock("g",ct,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(a.plots,(s,c)=>(t.openBlock(),t.createElementBlock("g",{key:`line_${n}_${c}`},[s&&c<a.plots.length-1&&a.plots[c+1]&&e.canShowValue(s.value)&&e.canShowValue(a.plots[c+1].value)?(t.openBlock(),t.createElementBlock("line",{key:0,x1:s.x,x2:a.plots[c+1].x,y1:e.forceValidValue(s.y),y2:e.forceValidValue(a.plots[c+1].y),stroke:a.color,"stroke-width":e.FINAL_CONFIG.line.strokeWidth,"stroke-dasharray":a.dashed?e.FINAL_CONFIG.line.strokeWidth*2:0,"stroke-linejoin":"round","stroke-linecap":"round"},null,8,ht)):t.createCommentVNode("",!0)]))),128))])):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(a.plots,(s,c)=>(t.openBlock(),t.createElementBlock("g",{key:`circle_line_${n}_${c}`},[s&&e.canShowValue(s.value)?(t.openBlock(),t.createBlock(f,{key:0,shape:["triangle","square","diamond","pentagon","hexagon","star"].includes(a.shape)?a.shape:"circle",color:e.FINAL_CONFIG.line.useGradient?`url(#lineGradient_${n}_${l.uniqueId})`:e.FINAL_CONFIG.line.dot.useSerieColor?a.color:e.FINAL_CONFIG.line.dot.fill,plot:{x:e.checkNaN(s.x),y:e.checkNaN(s.y)},radius:l.selectedSerieIndex!==null&&l.selectedSerieIndex===c||l.selectedMinimapIndex!==null&&l.selectedMinimapIndex===c?(l.plotRadii.line||6)*1.5:l.plotRadii.line||6,stroke:e.FINAL_CONFIG.line.dot.useSerieColor?e.FINAL_CONFIG.chart.backgroundColor:a.color,strokeWidth:e.FINAL_CONFIG.line.dot.strokeWidth},null,8,["shape","color","plot","radius","stroke","strokeWidth"])):t.createCommentVNode("",!0),s.comment&&e.FINAL_CONFIG.chart.comments.show?(t.openBlock(),t.createElementBlock("foreignObject",{key:1,style:{overflow:"visible"},height:"12",width:e.FINAL_CONFIG.chart.comments.width,x:s.x-e.FINAL_CONFIG.chart.comments.width/2+e.FINAL_CONFIG.chart.comments.offsetX,y:s.y+e.FINAL_CONFIG.chart.comments.offsetY+6},[t.createElementVNode("div",ut,[t.renderSlot(r.$slots,"plot-comment",{plot:{...s,color:a.color,seriesIndex:n,datapointIndex:c}},void 0,!0)])],8,dt)):t.createCommentVNode("",!0)]))),128)),Object.hasOwn(a,"useProgression")&&a.useProgression===!0&&!isNaN(e.calcLinearProgression(a.plots).trend)?(t.openBlock(),t.createElementBlock("g",mt,[t.createElementVNode("defs",null,[t.createElementVNode("marker",{id:`line_arrow_${n}`,markerWidth:7,markerHeight:7,refX:"0",refY:7/2,orient:"auto"},[t.createElementVNode("polygon",{points:`0 0, 7 ${7/2}, 0 7`,fill:a.color},null,8,ft)],8,gt)]),a.plots.length>1?(t.openBlock(),t.createElementBlock("line",{key:0,x1:e.calcLinearProgression(a.plots).x1,x2:e.calcLinearProgression(a.plots).x2,y1:e.forceValidValue(e.calcLinearProgression(a.plots).y1),y2:e.forceValidValue(e.calcLinearProgression(a.plots).y2),"stroke-width":1,stroke:a.color,"stroke-dasharray":2,"marker-end":`url(#line_arrow_${n})`},null,8,Nt)):t.createCommentVNode("",!0),a.plots.length>1?(t.openBlock(),t.createElementBlock("text",{key:1,"text-anchor":"middle",x:e.calcLinearProgression(a.plots).x2,y:e.calcLinearProgression(a.plots).y2-6,"font-size":l.fontSizes.plotLabels,fill:a.color},t.toDisplayString(e.dataLabel({v:e.calcLinearProgression(a.plots).trend*100,s:"%",r:2})),9,It)):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0)],6))),128)),(e.FINAL_CONFIG.bar.labels.show||e.FINAL_CONFIG.bar.serieName.show)&&l.mutableConfig.dataLabels.show?(t.openBlock(),t.createElementBlock("g",xt,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.barSet,(a,n)=>(t.openBlock(),t.createElementBlock("g",{key:`xLabel_bar_${n}`,class:t.normalizeClass(`xLabel_bar_${n}`),style:t.normalizeStyle(`opacity:${l.selectedScale?l.selectedScale===a.id?1:.2:1};transition:opacity 0.2s ease-in-out`)},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(a.plots,(s,c)=>(t.openBlock(),t.createElementBlock("g",{key:`xLabel_bar_${n}_${c}`},[s&&(!Object.hasOwn(a,"dataLabels")||a.dataLabels===!0||l.selectedSerieIndex!==null&&l.selectedSerieIndex===c||l.selectedMinimapIndex!==null&&l.selectedMinimapIndex===c)&&e.FINAL_CONFIG.bar.labels.show?(t.openBlock(),t.createElementBlock("text",{key:0,x:l.mutableConfig.useIndividualScale&&l.mutableConfig.isStacked?s.x+e.slot.line/2:e.calcRectX(s)+e.calcRectWidth()/2-e.barPeriodGap/2,y:e.checkNaN(s.y)+(s.value>=0?e.FINAL_CONFIG.bar.labels.offsetY:-e.FINAL_CONFIG.bar.labels.offsetY*3),"text-anchor":"middle","font-size":l.fontSizes.plotLabels,fill:e.FINAL_CONFIG.bar.labels.color},t.toDisplayString(e.canShowValue(s.value)?e.applyDataLabel(e.FINAL_CONFIG.bar.labels.formatter,s.value,e.dataLabel({p:a.prefix||e.FINAL_CONFIG.chart.labels.prefix,v:s.value,s:a.suffix||e.FINAL_CONFIG.chart.labels.suffix,r:e.FINAL_CONFIG.bar.labels.rounding}),{datapoint:s,serie:a}):""),9,Ft)):t.createCommentVNode("",!0),s&&e.FINAL_CONFIG.bar.serieName.show?(t.openBlock(),t.createElementBlock("text",{key:1,x:l.mutableConfig.useIndividualScale&&l.mutableConfig.isStacked?s.x+e.slot.line/2:s.x+e.calcRectWidth()*1.1,y:s.y+(s.value>0?e.FINAL_CONFIG.bar.serieName.offsetY:-e.FINAL_CONFIG.bar.serieName.offsetY*3),"text-anchor":"middle","font-size":l.fontSizes.plotLabels,fill:e.FINAL_CONFIG.bar.serieName.useSerieColor?a.color:e.FINAL_CONFIG.bar.serieName.color,"font-weight":e.FINAL_CONFIG.bar.serieName.bold?"bold":"normal"},t.toDisplayString(e.FINAL_CONFIG.bar.serieName.useAbbreviation?e.abbreviate({source:a.name,length:e.FINAL_CONFIG.bar.serieName.abbreviationSize}):a.name),9,kt)):t.createCommentVNode("",!0)]))),128))],6))),128))])):t.createCommentVNode("",!0),e.FINAL_CONFIG.plot.labels.show&&l.mutableConfig.dataLabels.show?(t.openBlock(),t.createElementBlock("g",bt,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.plotSet,(a,n)=>(t.openBlock(),t.createElementBlock("g",{key:`xLabel_plot_${n}`,class:t.normalizeClass(`xLabel_plot_${n}`),style:t.normalizeStyle(`opacity:${l.selectedScale?l.selectedScale===a.id?1:.2:1};transition:opacity 0.2s ease-in-out`)},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(a.plots,(s,c)=>(t.openBlock(),t.createElementBlock("g",{key:`xLabel_plot_${n}_${c}`},[s&&!Object.hasOwn(a,"dataLabels")||a.dataLabels===!0||l.selectedSerieIndex!==null&&l.selectedSerieIndex===c||l.selectedMinimapIndex!==null&&l.selectedMinimapIndex===c?(t.openBlock(),t.createElementBlock("text",{key:0,x:s.x,y:s.y+e.FINAL_CONFIG.plot.labels.offsetY,"text-anchor":"middle","font-size":l.fontSizes.plotLabels,fill:e.FINAL_CONFIG.plot.labels.color},t.toDisplayString(e.canShowValue(s.value)?e.applyDataLabel(e.FINAL_CONFIG.plot.labels.formatter,s.value,e.dataLabel({p:a.prefix||e.FINAL_CONFIG.chart.labels.prefix,v:s.value,s:a.suffix||e.FINAL_CONFIG.chart.labels.suffix,r:e.FINAL_CONFIG.plot.labels.rounding}),{datapoint:s,serie:a}):""),9,_t)):t.createCommentVNode("",!0),s&&c===0&&a.useTag&&a.useTag==="start"?(t.openBlock(),t.createElementBlock("foreignObject",{key:1,x:s.x,y:s.y-20,height:24,width:"150",style:{overflow:"visible"}},[t.createElementVNode("div",{style:t.normalizeStyle(`padding: 3px; background:${e.setOpacity(a.color,80)};color:${e.adaptColorToBackground(a.color)};width:fit-content;font-size:${l.fontSizes.plotLabels}px;border-radius: 2px;`)},t.toDisplayString(a.name),5)],8,yt)):t.createCommentVNode("",!0),s&&c===a.plots.length-1&&a.useTag&&a.useTag==="end"?(t.openBlock(),t.createElementBlock("foreignObject",{key:2,x:s.x-a.name.length*(l.fontSizes.plotLabels/2),y:s.y-20,height:24,width:"150",style:{overflow:"visible"}},[t.createElementVNode("div",{style:t.normalizeStyle(`padding: 3px; background:${e.setOpacity(a.color,80)};color:${e.adaptColorToBackground(a.color)};width:fit-content;font-size:${l.fontSizes.plotLabels}px;border-radius: 2px;`)},t.toDisplayString(a.name),5)],8,Ct)):t.createCommentVNode("",!0)]))),128))],6))),128))])):t.createCommentVNode("",!0),e.FINAL_CONFIG.line.labels.show&&l.mutableConfig.dataLabels.show?(t.openBlock(),t.createElementBlock("g",At,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.lineSet,(a,n)=>(t.openBlock(),t.createElementBlock("g",{key:`xLabel_line_${n}`,class:t.normalizeClass(`xLabel_line_${n}`),style:t.normalizeStyle(`opacity:${l.selectedScale?l.selectedScale===a.id?1:.2:1};transition:opacity 0.2s ease-in-out`)},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(a.plots,(s,c)=>(t.openBlock(),t.createElementBlock("g",{key:`xLabel_line_${n}_${c}`},[s&&!Object.hasOwn(a,"dataLabels")||a.dataLabels===!0||l.selectedSerieIndex!==null&&l.selectedSerieIndex===c||l.selectedMinimapIndex!==null&&l.selectedMinimapIndex===c?(t.openBlock(),t.createElementBlock("text",{key:0,x:s.x,y:s.y+(s.value>=0?e.FINAL_CONFIG.line.labels.offsetY:-e.FINAL_CONFIG.line.labels.offsetY*3),"text-anchor":"middle","font-size":l.fontSizes.plotLabels,fill:e.FINAL_CONFIG.line.labels.color},t.toDisplayString(e.canShowValue(s.value)?e.applyDataLabel(e.FINAL_CONFIG.line.labels.formatter,s.value,e.dataLabel({p:a.prefix||e.FINAL_CONFIG.chart.labels.prefix,v:s.value,s:a.suffix||e.FINAL_CONFIG.chart.labels.suffix,r:e.FINAL_CONFIG.line.labels.rounding}),{datapoint:s,serie:a}):""),9,Lt)):t.createCommentVNode("",!0),s&&c===0&&a.useTag&&a.useTag==="start"?(t.openBlock(),t.createElementBlock("foreignObject",{key:1,x:s.x,y:s.y-20,height:24,width:"150",style:{overflow:"visible"}},[t.createElementVNode("div",{style:t.normalizeStyle(`padding: 3px; background:${e.setOpacity(a.color,80)};color:${e.adaptColorToBackground(a.color)};width:fit-content;font-size:${l.fontSizes.plotLabels}px;border-radius: 2px;`)},t.toDisplayString(a.name),5)],8,St)):t.createCommentVNode("",!0),s&&c===a.plots.length-1&&a.useTag&&a.useTag==="end"?(t.openBlock(),t.createElementBlock("foreignObject",{key:2,x:s.x-a.name.length*(l.fontSizes.plotLabels/2),y:s.y-20,height:24,width:"150",style:{overflow:"visible"}},[t.createElementVNode("div",{style:t.normalizeStyle(`padding: 3px; background:${e.setOpacity(a.color,80)};color:${e.adaptColorToBackground(a.color)};width:fit-content;font-size:${l.fontSizes.plotLabels}px;border-radius: 2px;`)},t.toDisplayString(a.name),5)],8,wt)):t.createCommentVNode("",!0)]))),128))],6))),128))])):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.lineSet,(a,n)=>(t.openBlock(),t.createElementBlock("g",{key:`xLabel_line_${n}`,class:t.normalizeClass(`xLabel_line_${n}`),style:t.normalizeStyle(`opacity:${l.selectedScale?l.selectedScale===a.id?1:.2:1};transition:opacity 0.2s ease-in-out`)},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(a.plots,(s,c)=>(t.openBlock(),t.createElementBlock("g",{key:`xLabel_line_${n}_${c}`},[s&&c===0&&a.showSerieName&&a.showSerieName==="start"?(t.openBlock(),t.createElementBlock("text",{key:0,x:s.x-l.fontSizes.plotLabels,y:s.y,"font-size":l.fontSizes.plotLabels,"text-anchor":"end",fill:a.color,innerHTML:e.createTSpans({content:a.name,fontSize:l.fontSizes.plotLabels,fill:a.color,x:s.x-l.fontSizes.plotLabels,y:s.y,maxWords:2})},null,8,Ot)):t.createCommentVNode("",!0),s&&c===a.plots.length-1&&a.showSerieName&&a.showSerieName==="end"?(t.openBlock(),t.createElementBlock("text",{key:1,x:s.x+l.fontSizes.plotLabels,y:s.y,"font-size":l.fontSizes.plotLabels,"text-anchor":"start",fill:a.color,innerHTML:e.createTSpans({content:a.name,fontSize:l.fontSizes.plotLabels,fill:a.color,x:s.x+l.fontSizes.plotLabels,y:s.y,maxWords:2})},null,8,Gt)):t.createCommentVNode("",!0)]))),128))],6))),128)),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.plotSet,(a,n)=>(t.openBlock(),t.createElementBlock("g",{key:`xLabel_plot_${n}`,class:t.normalizeClass(`xLabel_plot_${n}`),style:t.normalizeStyle(`opacity:${l.selectedScale?l.selectedScale===a.id?1:.2:1};transition:opacity 0.2s ease-in-out`)},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(a.plots,(s,c)=>(t.openBlock(),t.createElementBlock("g",{key:`xLabel_plot_${n}_${c}`},[s&&c===0&&a.showSerieName&&a.showSerieName==="start"?(t.openBlock(),t.createElementBlock("text",{key:0,x:s.x-l.fontSizes.plotLabels,y:s.y,"font-size":l.fontSizes.plotLabels,"text-anchor":"end",fill:a.color,innerHTML:e.createTSpans({content:a.name,fontSize:l.fontSizes.plotLabels,fill:a.color,x:s.x-l.fontSizes.plotLabels,y:s.y,maxWords:2})},null,8,vt)):t.createCommentVNode("",!0),s&&c===a.plots.length-1&&a.showSerieName&&a.showSerieName==="end"?(t.openBlock(),t.createElementBlock("text",{key:1,x:s.x+l.fontSizes.plotLabels,y:s.y,"font-size":l.fontSizes.plotLabels,"text-anchor":"start",fill:a.color,innerHTML:e.createTSpans({content:a.name,fontSize:l.fontSizes.plotLabels,fill:a.color,x:s.x+l.fontSizes.plotLabels,y:s.y,maxWords:2})},null,8,pt)):t.createCommentVNode("",!0)]))),128))],6))),128)),l.mutableConfig.useIndividualScale&&!l.mutableConfig.isStacked?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:9},t.renderList(e.allScales,a=>(t.openBlock(),t.createElementBlock("rect",{x:a.x-e.FINAL_CONFIG.chart.grid.labels.yAxis.labelWidth+e.xPadding,y:e.drawingArea.top,width:e.FINAL_CONFIG.chart.grid.labels.yAxis.labelWidth,height:e.drawingArea.height<0?10:e.drawingArea.height,fill:l.selectedScale===a.id?e.setOpacity(a.color,20):"transparent",onMouseenter:n=>l.selectedScale=a.id,onMouseleave:i[0]||(i[0]=n=>l.selectedScale=null)},null,40,Bt))),256)):t.createCommentVNode("",!0),t.createElementVNode("g",null,[e.FINAL_CONFIG.chart.grid.labels.axis.yLabel&&!l.mutableConfig.useIndividualScale?(t.openBlock(),t.createElementBlock("text",{key:0,"font-size":l.fontSizes.yAxis,fill:e.FINAL_CONFIG.chart.grid.labels.color,transform:`translate(${l.fontSizes.yAxis+e.FINAL_CONFIG.chart.grid.labels.axis.yLabelOffsetX}, ${e.drawingArea.top+e.drawingArea.height/2}) rotate(-90)`,"text-anchor":"middle",style:{transition:"none"}},t.toDisplayString(e.FINAL_CONFIG.chart.grid.labels.axis.yLabel),9,Vt)):t.createCommentVNode("",!0),e.FINAL_CONFIG.chart.grid.labels.axis.xLabel?(t.openBlock(),t.createElementBlock("text",{key:1,"text-anchor":"middle",x:l.width/2,y:e.drawingArea.bottom+l.fontSizes.yAxis+l.fontSizes.xAxis*1.3+e.FINAL_CONFIG.chart.grid.labels.axis.xLabelOffsetY,"font-size":l.fontSizes.yAxis,fill:e.FINAL_CONFIG.chart.grid.labels.color},t.toDisplayString(e.FINAL_CONFIG.chart.grid.labels.axis.xLabel),9,Et)):t.createCommentVNode("",!0)]),e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.show?(t.openBlock(),t.createElementBlock("g",zt,[r.$slots["time-label"]?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:0},t.renderList(e.timeLabels,(a,n)=>(t.openBlock(),t.createElementBlock("g",{key:`time_label_${n}`},[t.renderSlot(r.$slots,"time-label",t.normalizeProps(t.guardReactiveProps({x:e.drawingArea.left+e.drawingArea.width/e.maxSeries*n+e.drawingArea.width/e.maxSeries/2,y:e.drawingArea.bottom+l.fontSizes.xAxis*1.3+e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.yOffset,fontSize:l.fontSizes.xAxis,fill:e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.color,transform:`translate(${e.drawingArea.left+e.drawingArea.width/e.maxSeries*n+e.drawingArea.width/e.maxSeries/2}, ${e.drawingArea.bottom+l.fontSizes.xAxis*1.3+e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.yOffset}), rotate(${e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.rotation})`,absoluteIndex:a.absoluteIndex,content:a.text,textAnchor:e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.rotation>0?"start":e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.rotation<0?"end":"middle",show:a&&!e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast&&!e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyAtModulo||a&&e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast&&(n===0||n===e.timeLabels.length-1)&&!e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyAtModulo||a&&e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast&&l.selectedSerieIndex===n&&!e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyAtModulo||a&&!e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast&&e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyAtModulo&&n%Math.floor((this.slicer.end-this.slicer.start)/e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.modulo)===0})),void 0,!0)]))),128)):(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:1},t.renderList(e.timeLabels,(a,n)=>(t.openBlock(),t.createElementBlock("g",{key:`time_label_${n}`},[a&&!e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast&&!e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyAtModulo||a&&e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast&&(n===0||n===e.timeLabels.length-1)&&!e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyAtModulo||a&&e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast&&l.selectedSerieIndex===n&&!e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyAtModulo||a&&!e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast&&e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyAtModulo&&n%Math.floor((this.slicer.end-this.slicer.start)/e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.modulo)===0?(t.openBlock(),t.createElementBlock("text",{key:0,"text-anchor":e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.rotation>0?"start":e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.rotation<0?"end":"middle","font-size":l.fontSizes.xAxis,fill:e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.color,transform:`translate(${e.drawingArea.left+e.drawingArea.width/e.maxSeries*n+e.drawingArea.width/e.maxSeries/2}, ${e.drawingArea.bottom+l.fontSizes.xAxis*1.3+e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.yOffset}), rotate(${e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.rotation})`,style:{cursor:"pointer"},onClick:()=>e.selectTimeLabel(a,n)},t.toDisplayString(a.text||""),9,Mt)):t.createCommentVNode("",!0)]))),128))])):t.createCommentVNode("",!0),t.createElementVNode("g",null,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.maxSeries,(a,n)=>(t.openBlock(),t.createElementBlock("g",{key:`tooltip_trap_${n}`},[t.createElementVNode("rect",{"data-cy-trap":"",x:e.drawingArea.left+e.drawingArea.width/e.maxSeries*n,y:e.drawingArea.top,height:e.drawingArea.height<0?10:e.drawingArea.height,width:e.drawingArea.width/e.maxSeries<0?1e-5:e.drawingArea.width/e.maxSeries,fill:"transparent",onMouseenter:s=>e.toggleTooltipVisibility(!0,n),onMouseleave:i[1]||(i[1]=s=>e.toggleTooltipVisibility(!1)),onClick:s=>e.selectX(n)},null,40,Pt)]))),128))]),e.FINAL_CONFIG.chart.timeTag.show&&(![null,void 0].includes(l.selectedSerieIndex)||![null,void 0].includes(l.selectedMinimapIndex))?(t.openBlock(),t.createElementBlock("g",Tt,[(t.openBlock(),t.createElementBlock("foreignObject",{x:e.drawingArea.left+e.drawingArea.width/e.maxSeries*((l.selectedSerieIndex!==null?l.selectedSerieIndex:0)||(l.selectedMinimapIndex!==null?l.selectedMinimapIndex:0))-100+e.drawingArea.width/e.maxSeries/2,y:e.drawingArea.bottom,width:"200",height:"40",style:{overflow:"visible !important"}},[t.createElementVNode("div",{class:"vue-ui-xy-time-tag",style:t.normalizeStyle(`width: fit-content;margin: 0 auto;text-align:center;padding:3px 12px;background:${e.FINAL_CONFIG.chart.timeTag.backgroundColor};color:${e.FINAL_CONFIG.chart.timeTag.color};font-size:${e.FINAL_CONFIG.chart.timeTag.fontSize}px`)},t.toDisplayString(e.timeLabels[(l.selectedSerieIndex!==null?l.selectedSerieIndex:0)||(l.selectedMinimapIndex!==null?l.selectedMinimapIndex:0)].text||(l.selectedSerieIndex!==null?l.selectedSerieIndex:0)||(l.selectedMinimapIndex!==null?l.selectedMinimapIndex:0)),5)],8,Dt)),t.createElementVNode("circle",{cx:e.drawingArea.left+e.drawingArea.width/e.maxSeries*((l.selectedSerieIndex!==null?l.selectedSerieIndex:0)||(l.selectedMinimapIndex!==null?l.selectedMinimapIndex:0))+e.drawingArea.width/e.maxSeries/2,cy:e.drawingArea.bottom,r:e.FINAL_CONFIG.chart.timeTag.circleMarker.radius,fill:e.FINAL_CONFIG.chart.timeTag.circleMarker.color},null,8,Rt)])):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0),t.renderSlot(r.$slots,"svg",{svg:e.svg},void 0,!0)],14,J)):t.createCommentVNode("",!0),r.$slots.watermark?(t.openBlock(),t.createElementBlock("div",Ht,[t.renderSlot(r.$slots,"watermark",t.normalizeProps(t.guardReactiveProps({isPrinting:l.isPrinting||l.isImaging})),void 0,!0)])):t.createCommentVNode("",!0),e.isDataset?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(S,{key:6,config:{type:"line",style:{backgroundColor:e.FINAL_CONFIG.chart.backgroundColor,line:{axis:{color:e.FINAL_CONFIG.chart.grid.stroke},path:{color:e.FINAL_CONFIG.chart.grid.stroke,strokeWidth:.5}}}}},null,8,["config"])),e.FINAL_CONFIG.chart.zoom.show&&l.maxX>6&&e.isDataset?(t.openBlock(),t.createBlock(C,{ref:"chartSlicer",key:`slicer_${l.slicerStep}`,background:e.FINAL_CONFIG.chart.zoom.color,fontSize:e.FINAL_CONFIG.chart.zoom.fontSize,useResetSlot:e.FINAL_CONFIG.chart.zoom.useResetSlot,labelLeft:e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.values[l.slicer.start],labelRight:e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.values[l.slicer.end-1],textColor:e.FINAL_CONFIG.chart.color,inputColor:e.FINAL_CONFIG.chart.zoom.color,selectColor:e.FINAL_CONFIG.chart.zoom.highlightColor,borderColor:e.FINAL_CONFIG.chart.backgroundColor,minimap:e.minimap,smoothMinimap:e.FINAL_CONFIG.chart.zoom.minimap.smooth,minimapSelectedColor:e.FINAL_CONFIG.chart.zoom.minimap.selectedColor,minimapSelectionRadius:e.FINAL_CONFIG.chart.zoom.minimap.selectionRadius,minimapLineColor:e.FINAL_CONFIG.chart.zoom.minimap.lineColor,minimapSelectedColorOpacity:e.FINAL_CONFIG.chart.zoom.minimap.selectedColorOpacity,minimapSelectedIndex:l.selectedSerieIndex,minimapIndicatorColor:e.FINAL_CONFIG.chart.zoom.minimap.indicatorColor,verticalHandles:e.FINAL_CONFIG.chart.zoom.minimap.verticalHandles,max:l.maxX,min:0,valueStart:l.slicer.start,valueEnd:l.slicer.end,start:l.slicer.start,"onUpdate:start":i[2]||(i[2]=a=>l.slicer.start=a),end:l.slicer.end,"onUpdate:end":i[3]||(i[3]=a=>l.slicer.end=a),refreshStartPoint:e.FINAL_CONFIG.chart.zoom.startIndex!==null?e.FINAL_CONFIG.chart.zoom.startIndex:0,refreshEndPoint:e.FINAL_CONFIG.chart.zoom.endIndex!==null?e.FINAL_CONFIG.chart.zoom.endIndex+1:Math.max(...o.dataset.map(a=>e.largestTriangleThreeBucketsArray({data:a.series,threshold:e.FINAL_CONFIG.downsample.threshold}).length)),enableRangeHandles:e.FINAL_CONFIG.chart.zoom.enableRangeHandles,enableSelectionDrag:e.FINAL_CONFIG.chart.zoom.enableSelectionDrag,onReset:e.refreshSlicer,onTrapMouse:e.selectMinimapIndex},{"reset-action":t.withCtx(({reset:a})=>[t.renderSlot(r.$slots,"reset-action",t.normalizeProps(t.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","verticalHandles","max","valueStart","valueEnd","start","end","refreshStartPoint","refreshEndPoint","enableRangeHandles","enableSelectionDrag","onReset","onTrapMouse"])):t.createCommentVNode("",!0),e.FINAL_CONFIG.chart.legend.show?(t.openBlock(),t.createElementBlock("div",{key:8,ref:"chartLegend",class:"vue-ui-xy-legend",style:t.normalizeStyle(`font-size:${e.FINAL_CONFIG.chart.legend.fontSize}px`)},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.absoluteDataset,(a,n)=>(t.openBlock(),t.createElementBlock("div",{key:`div_legend_item_${n}`,onClick:s=>e.segregate(a),class:t.normalizeClass({"vue-ui-xy-legend-item":!0,"vue-ui-xy-legend-item-segregated":l.segregatedSeries.includes(a.id)})},[l.icons[a.type]==="line"?(t.openBlock(),t.createElementBlock("svg",qt,[t.createElementVNode("rect",{x:"0",y:"7.5",rx:"1.5",stroke:e.FINAL_CONFIG.chart.backgroundColor,"stroke-width":.5,height:"3",width:"20",fill:a.color},null,8,Yt),t.createVNode(f,{plot:{x:10,y:9},radius:4,color:a.color,shape:["triangle","square","diamond","pentagon","hexagon","star"].includes(a.shape)?a.shape:"circle",stroke:e.FINAL_CONFIG.chart.backgroundColor,strokeWidth:.5},null,8,["color","shape","stroke"])])):l.icons[a.type]==="bar"?(t.openBlock(),t.createElementBlock("svg",Xt,[l.icons[a.type]==="bar"&&r.$slots.pattern?(t.openBlock(),t.createElementBlock("rect",{key:0,x:"0",y:"0",rx:"1",height:"40",width:"40",stroke:"none",fill:a.color},null,8,Ut)):t.createCommentVNode("",!0),l.icons[a.type]==="bar"?(t.openBlock(),t.createElementBlock("rect",{key:1,x:"0",y:"0",rx:"1",height:"40",width:"40",stroke:"none",fill:r.$slots.pattern?`url(#pattern_${l.uniqueId}_${a.slotAbsoluteIndex})`:a.color},null,8,Zt)):t.createCommentVNode("",!0)])):(t.openBlock(),t.createElementBlock("svg",Jt,[t.createVNode(f,{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"])])),t.createElementVNode("span",{style:t.normalizeStyle(`color:${e.FINAL_CONFIG.chart.legend.color}`)},t.toDisplayString(a.name),5)],10,Wt))),128))],4)):(t.openBlock(),t.createElementBlock("div",Kt,[t.renderSlot(r.$slots,"legend",{legend:e.absoluteDataset},void 0,!0)],512)),r.$slots.source?(t.openBlock(),t.createElementBlock("div",Qt,[t.renderSlot(r.$slots,"source",{},void 0,!0)],512)):t.createCommentVNode("",!0),t.createVNode(A,{show:l.mutableConfig.showTooltip&&l.isTooltip,backgroundColor:e.FINAL_CONFIG.chart.tooltip.backgroundColor,color:e.FINAL_CONFIG.chart.tooltip.color,fontSize:e.FINAL_CONFIG.chart.tooltip.fontSize,borderRadius:e.FINAL_CONFIG.chart.tooltip.borderRadius,borderColor:e.FINAL_CONFIG.chart.tooltip.borderColor,borderWidth:e.FINAL_CONFIG.chart.tooltip.borderWidth,backgroundOpacity:e.FINAL_CONFIG.chart.tooltip.backgroundOpacity,position:e.FINAL_CONFIG.chart.tooltip.position,offsetY:e.FINAL_CONFIG.chart.tooltip.offsetY,parent:r.$refs.chart,content:e.tooltipContent,isFullscreen:l.isFullscreen,isCustom:e.FINAL_CONFIG.chart.tooltip.customFormat&&typeof e.FINAL_CONFIG.chart.tooltip.customFormat=="function"},{"tooltip-before":t.withCtx(()=>[t.renderSlot(r.$slots,"tooltip-before",t.normalizeProps(t.guardReactiveProps({...e.dataTooltipSlot})),void 0,!0)]),"tooltip-after":t.withCtx(()=>[t.renderSlot(r.$slots,"tooltip-after",t.normalizeProps(t.guardReactiveProps({...e.dataTooltipSlot})),void 0,!0)]),_:3},8,["show","backgroundColor","color","fontSize","borderRadius","borderColor","borderWidth","backgroundOpacity","position","offsetY","parent","content","isFullscreen","isCustom"]),e.isDataset?(t.openBlock(),t.createBlock(L,{key:11,hideDetails:"",config:{open:l.mutableConfig.showTable,maxHeight:1e4,body:{backgroundColor:e.FINAL_CONFIG.chart.backgroundColor,color:e.FINAL_CONFIG.chart.color},head:{backgroundColor:e.FINAL_CONFIG.chart.backgroundColor,color:e.FINAL_CONFIG.chart.color}}},{content:t.withCtx(()=>[t.createElementVNode("div",{style:t.normalizeStyle(`${l.isPrinting?"":"max-height:400px"};overflow:auto;width:100%;margin-top:48px`)},[t.createElementVNode("div",jt,[t.withDirectives(t.createElementVNode("input",{type:"checkbox","onUpdate:modelValue":i[4]||(i[4]=a=>l.showSparklineTable=a)},null,512),[[t.vModelCheckbox,l.showSparklineTable]]),t.createElementVNode("div",{onClick:i[5]||(i[5]=a=>l.showSparklineTable=!l.showSparklineTable),style:{cursor:"pointer"}},[t.createVNode(_,{name:"chartLine",size:20,stroke:e.FINAL_CONFIG.chart.color},null,8,["stroke"])])]),l.showSparklineTable?(t.openBlock(),t.createBlock(I,{key:`sparkline_${l.segregateStep}`,dataset:e.tableSparklineDataset,config:e.tableSparklineConfig},null,8,["dataset","config"])):(t.openBlock(),t.createBlock(k,{key:`table_${l.tableStep}`,colNames:e.dataTable.colNames,head:e.dataTable.head,body:e.dataTable.body,config:e.dataTable.config,title:`${e.FINAL_CONFIG.chart.title.text}${e.FINAL_CONFIG.chart.title.subtitle.text?` : ${e.FINAL_CONFIG.chart.title.subtitle.text}`:""}`,onClose:i[6]||(i[6]=a=>l.mutableConfig.showTable=!1)},{th:t.withCtx(({th:a})=>[t.createElementVNode("div",{innerHTML:a},null,8,$t)]),td:t.withCtx(({td:a})=>[t.createTextVNode(t.toDisplayString(isNaN(Number(a))?a:e.dataLabel({p:e.FINAL_CONFIG.chart.labels.prefix,v:a,s:e.FINAL_CONFIG.chart.labels.suffix,r:e.FINAL_CONFIG.table.rounding})),1)]),_:1},8,["colNames","head","body","config","title"]))],4)]),_:1},8,["config"])):t.createCommentVNode("",!0)],46,U)}const tl=q._export_sfc(X,[["render",el],["__scopeId","data-v-7d74eded"]]);exports.default=tl;
|