vue-data-ui 2.3.33 → 2.3.34
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-U-GXPs_S.cjs → Arrow-ByWmXiY-.cjs} +1 -1
- package/dist/{Arrow-CUxfM_Pi.js → Arrow-De8PM01T.js} +1 -1
- package/dist/{BaseIcon-Cq04T7KZ.js → BaseIcon-BGb_p9W-.js} +1 -1
- package/dist/{BaseIcon-DsmnhCxw.cjs → BaseIcon-aqUO3wo9.cjs} +1 -1
- package/dist/{DataTable-COtc9-N3.js → DataTable-D0s-F16a.js} +2 -2
- package/dist/{DataTable-i6_WDL4K.cjs → DataTable-Df6uZv-T.cjs} +1 -1
- package/dist/{Legend-B_gotRVB.cjs → Legend-Bw_SrfZv.cjs} +1 -1
- package/dist/{Legend-Bj_2LeEE.js → Legend-xB4cmG5F.js} +1 -1
- package/dist/{Shape-e7Tqal5k.cjs → Shape-BaAPMBdB.cjs} +1 -1
- package/dist/{Shape-J2c5E_YE.js → Shape-DJ-kAg5I.js} +1 -1
- package/dist/{Slicer-CDFjbPHy.cjs → Slicer-DmhzGeZJ.cjs} +1 -1
- package/dist/{Slicer-CL9wj6Ug.js → Slicer-Sp5HprCO.js} +1 -1
- package/dist/{Title-D5JSyW9g.cjs → Title-BSJEkzs1.cjs} +1 -1
- package/dist/{Title-n2bQMWGU.js → Title-BWhB-LZD.js} +1 -1
- package/dist/{Tooltip-Bd80EmMe.cjs → Tooltip-BuFiGszl.cjs} +1 -1
- package/dist/{Tooltip-B2-UhSCE.js → Tooltip-DG4rhTsB.js} +1 -1
- package/dist/{index-C9r5MSxp.cjs → index-CXlW59V9.cjs} +1 -1
- package/dist/{index-D4ZfmZSg.js → index-_qS8WYUi.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/{useNestedProp-DWL7GF6p.js → useNestedProp-Cqc-Ol8-.js} +1 -1
- package/dist/{useNestedProp-DlpyayQg.cjs → useNestedProp-cZtyh-Ib.cjs} +1 -1
- package/dist/{usePrinter-CgeascwN.cjs → usePrinter-BuaBVD2x.cjs} +1 -1
- package/dist/{usePrinter-2BdamNLl.js → usePrinter-SBoyJa9C.js} +1 -1
- package/dist/{vue-data-ui-C60pgqBZ.cjs → vue-data-ui-1R0YRWjj.cjs} +1 -1
- package/dist/{vue-data-ui-D98veSqI.js → vue-data-ui-D0vqg-FD.js} +57 -57
- package/dist/vue-data-ui.cjs +1 -1
- package/dist/vue-data-ui.js +1 -1
- package/dist/{vue-ui-3d-bar-CPC6HEVe.cjs → vue-ui-3d-bar-B_LoyogH.cjs} +1 -1
- package/dist/{vue-ui-3d-bar-ChlIQYo8.js → vue-ui-3d-bar-C0FfMmXm.js} +7 -7
- package/dist/{vue-ui-accordion-B_pg4OcN.cjs → vue-ui-accordion-BYuReZs8.cjs} +1 -1
- package/dist/{vue-ui-accordion-W99d82RY.js → vue-ui-accordion-sb2V8ews.js} +3 -3
- package/dist/{vue-ui-age-pyramid-jU-pS_FX.cjs → vue-ui-age-pyramid-BlhSiSas.cjs} +1 -1
- package/dist/{vue-ui-age-pyramid-CApF0nDH.js → vue-ui-age-pyramid-DKkYy5tD.js} +8 -8
- package/dist/{vue-ui-annotator-DBlQGFBE.js → vue-ui-annotator-Bibvw8Mk.js} +1 -1
- package/dist/{vue-ui-annotator-4-SHlO9R.cjs → vue-ui-annotator-uzIXnpgV.cjs} +1 -1
- package/dist/{vue-ui-candlestick-rPD-ZQra.cjs → vue-ui-candlestick-C31Jc4Dc.cjs} +1 -1
- package/dist/{vue-ui-candlestick-BJfFRmNj.js → vue-ui-candlestick-CDd5rWIv.js} +9 -9
- package/dist/{vue-ui-carousel-table-CulRP90Z.cjs → vue-ui-carousel-table-D7iJo3HQ.cjs} +1 -1
- package/dist/{vue-ui-carousel-table-DO-9-fol.js → vue-ui-carousel-table-Dou6Qfo8.js} +4 -4
- package/dist/{vue-ui-chestnut-CRdOMFxs.js → vue-ui-chestnut-BaQqkOdz.js} +6 -6
- package/dist/{vue-ui-chestnut-CPL4jyF7.cjs → vue-ui-chestnut-BnX1NDnM.cjs} +1 -1
- package/dist/{vue-ui-cursor-D12DG4Kf.js → vue-ui-cursor-As8Jm4Hv.js} +2 -2
- package/dist/{vue-ui-cursor-Bj3h6sDD.cjs → vue-ui-cursor-Deq15E36.cjs} +1 -1
- package/dist/{vue-ui-dashboard-IOYL5mEF.cjs → vue-ui-dashboard-BVG4WGwu.cjs} +1 -1
- package/dist/{vue-ui-dashboard-DUK0wNgQ.js → vue-ui-dashboard-CqJ8ZxYq.js} +2 -2
- package/dist/{vue-ui-digits-BzhcctF7.cjs → vue-ui-digits-CaGuKUkf.cjs} +1 -1
- package/dist/{vue-ui-digits-BC_4rx73.js → vue-ui-digits-CyTah6pc.js} +2 -2
- package/dist/{vue-ui-donut-D74abrbu.js → vue-ui-donut-CHbJOleP.js} +9 -9
- package/dist/{vue-ui-donut-BomizJUs.cjs → vue-ui-donut-CXer4Zmf.cjs} +1 -1
- package/dist/{vue-ui-donut-evolution-BUa4csgt.js → vue-ui-donut-evolution-C2kmOHk7.js} +9 -9
- package/dist/{vue-ui-donut-evolution-BJ4Ok-Yp.cjs → vue-ui-donut-evolution-Yj4dbvEo.cjs} +1 -1
- package/dist/{vue-ui-dumbbell-DwWTHgZG.cjs → vue-ui-dumbbell-BTKBNLZM.cjs} +1 -1
- package/dist/{vue-ui-dumbbell-CUYETxFP.js → vue-ui-dumbbell-CY1ia2J9.js} +8 -8
- package/dist/{vue-ui-flow-CCLdNeJ-.cjs → vue-ui-flow-D8vOxQVa.cjs} +1 -1
- package/dist/{vue-ui-flow-D27Aqy5V.js → vue-ui-flow-DsWuUCDN.js} +7 -7
- package/dist/{vue-ui-galaxy-BTiLZwc-.js → vue-ui-galaxy-C5yKY9Mt.js} +9 -9
- package/dist/{vue-ui-galaxy-D5J1WxYR.cjs → vue-ui-galaxy-DvKE6ewZ.cjs} +1 -1
- package/dist/{vue-ui-gauge-Bhpq7HDO.js → vue-ui-gauge-DpCIu9AY.js} +5 -5
- package/dist/{vue-ui-gauge-TX5Mp_Mp.cjs → vue-ui-gauge-peeW-c0h.cjs} +1 -1
- package/dist/{vue-ui-gizmo-AigQjkN4.cjs → vue-ui-gizmo-BvTydERz.cjs} +1 -1
- package/dist/{vue-ui-gizmo-Dw4ItxKs.js → vue-ui-gizmo-CkVcMLqB.js} +2 -2
- package/dist/{vue-ui-heatmap-TBi8dmtO.js → vue-ui-heatmap-Cpu6A1uY.js} +8 -8
- package/dist/{vue-ui-heatmap-DdSBSZCN.cjs → vue-ui-heatmap-CsnEOb5m.cjs} +1 -1
- package/dist/{vue-ui-kpi-DsKGWQHr.cjs → vue-ui-kpi-BZDLLvnb.cjs} +1 -1
- package/dist/{vue-ui-kpi-IYD-xkcq.js → vue-ui-kpi-C7W2y9ao.js} +2 -2
- package/dist/{vue-ui-mini-loader-_gmuDh2Q.js → vue-ui-mini-loader-DeDpiJvH.js} +2 -2
- package/dist/{vue-ui-mini-loader-M-frsLpu.cjs → vue-ui-mini-loader-DlFOxvOz.cjs} +1 -1
- package/dist/{vue-ui-molecule-CAi5aoBp.cjs → vue-ui-molecule-Bs2cNVbj.cjs} +1 -1
- package/dist/{vue-ui-molecule-PDKF_CLU.js → vue-ui-molecule-DG1NYo1h.js} +9 -9
- package/dist/{vue-ui-mood-radar-D4QwpYsd.cjs → vue-ui-mood-radar-BUMhp7WM.cjs} +1 -1
- package/dist/{vue-ui-mood-radar-CbR_Qbbh.js → vue-ui-mood-radar-C22woDt3.js} +9 -9
- package/dist/{vue-ui-nested-donuts-DGTR7aLK.cjs → vue-ui-nested-donuts-C9cHwf_t.cjs} +1 -1
- package/dist/{vue-ui-nested-donuts-Doe9ng0y.js → vue-ui-nested-donuts-CvAFzKTf.js} +9 -9
- package/dist/{vue-ui-onion-BuigCMf3.js → vue-ui-onion-BrJWGIKq.js} +9 -9
- package/dist/{vue-ui-onion-DHknupJ5.cjs → vue-ui-onion-D3IGVcju.cjs} +1 -1
- package/dist/{vue-ui-parallel-coordinate-plot-Re0LZuAY.js → vue-ui-parallel-coordinate-plot-BbGueCL_.js} +10 -10
- package/dist/{vue-ui-parallel-coordinate-plot-CWkSo4cL.cjs → vue-ui-parallel-coordinate-plot-DETkLRFW.cjs} +1 -1
- package/dist/{vue-ui-quadrant-DpPJj0z7.js → vue-ui-quadrant-C8xmFfKn.js} +10 -10
- package/dist/{vue-ui-quadrant-EI_IElYh.cjs → vue-ui-quadrant-CQf1V-5a.cjs} +1 -1
- package/dist/{vue-ui-quick-chart-BsjrnDad.cjs → vue-ui-quick-chart-B3Wt0iSi.cjs} +1 -1
- package/dist/{vue-ui-quick-chart-BDhl2kNP.js → vue-ui-quick-chart-C-BxV4Ze.js} +6 -6
- package/dist/{vue-ui-radar-CBSzPrBN.cjs → vue-ui-radar-6s8dwkrk.cjs} +1 -1
- package/dist/{vue-ui-radar-dnfC3Ts9.js → vue-ui-radar-rlsADtZL.js} +10 -10
- package/dist/{vue-ui-rating-v0CG2kgK.js → vue-ui-rating-Br5J5X24.js} +2 -2
- package/dist/{vue-ui-rating-Du9DDruY.cjs → vue-ui-rating-DboWXWg_.cjs} +1 -1
- package/dist/{vue-ui-relation-circle-QrWQ4Qai.js → vue-ui-relation-circle-D8w_cnpD.js} +5 -5
- package/dist/{vue-ui-relation-circle-BWOVSaOS.cjs → vue-ui-relation-circle-DI7wnSfh.cjs} +1 -1
- package/dist/{vue-ui-rings-CU1fcuiz.js → vue-ui-rings-CEAhdamK.js} +9 -9
- package/dist/{vue-ui-rings-VIofJZ94.cjs → vue-ui-rings-DG0GrO1P.cjs} +1 -1
- package/dist/{vue-ui-scatter-B9YxRg1S.js → vue-ui-scatter-D7DXo6MF.js} +10 -10
- package/dist/{vue-ui-scatter-B76IQkXa.cjs → vue-ui-scatter-bF0fn6qy.cjs} +1 -1
- package/dist/{vue-ui-screenshot-idw5giko.cjs → vue-ui-screenshot-CUjF8AWA.cjs} +1 -1
- package/dist/{vue-ui-screenshot-BYVANzt7.js → vue-ui-screenshot-DkRboPBO.js} +1 -1
- package/dist/{vue-ui-skeleton-Dil3xmv9.js → vue-ui-skeleton-BdsJjwOS.js} +2 -2
- package/dist/{vue-ui-skeleton-ldYPv9PF.cjs → vue-ui-skeleton-DRUBehRT.cjs} +1 -1
- package/dist/{vue-ui-smiley-CEz1wWuk.cjs → vue-ui-smiley-CKF90RQs.cjs} +1 -1
- package/dist/{vue-ui-smiley-DwxiNgdv.js → vue-ui-smiley-CUFtgit7.js} +2 -2
- package/dist/{vue-ui-spark-trend-BG9DZeZe.js → vue-ui-spark-trend-D5dg9E4d.js} +4 -4
- package/dist/{vue-ui-spark-trend-DN25w-rB.cjs → vue-ui-spark-trend-j_VSniak.cjs} +1 -1
- package/dist/{vue-ui-sparkbar-Cs4n_GY1.js → vue-ui-sparkbar-C7W2G0b1.js} +3 -3
- package/dist/{vue-ui-sparkbar-DaVxC8Nf.cjs → vue-ui-sparkbar-D3BQwo6V.cjs} +1 -1
- package/dist/{vue-ui-sparkgauge-D_I53hj4.js → vue-ui-sparkgauge-Bl7ltmlK.js} +3 -3
- package/dist/{vue-ui-sparkgauge-W8c5LNBs.cjs → vue-ui-sparkgauge-UIx49_Qw.cjs} +1 -1
- package/dist/{vue-ui-sparkhistogram-j1RxtN2d.cjs → vue-ui-sparkhistogram-BDJuLxx7.cjs} +1 -1
- package/dist/{vue-ui-sparkhistogram-CGRVea-3.js → vue-ui-sparkhistogram-BPstzDL_.js} +4 -4
- package/dist/{vue-ui-sparkline-C77GWtzb.cjs → vue-ui-sparkline-DvXoI7Ho.cjs} +1 -1
- package/dist/{vue-ui-sparkline-ChuyFXnO.js → vue-ui-sparkline-knojmGGz.js} +3 -3
- package/dist/{vue-ui-sparkstackbar-DOThH5PJ.js → vue-ui-sparkstackbar-Bos87fiK.js} +3 -3
- package/dist/{vue-ui-sparkstackbar-DeGSbEIo.cjs → vue-ui-sparkstackbar-D219BdkF.cjs} +1 -1
- package/dist/{vue-ui-stackbar-BYEBWNws.js → vue-ui-stackbar-DbXn6OqM.js} +10 -10
- package/dist/{vue-ui-stackbar-BakzF6CM.cjs → vue-ui-stackbar-DofTIN__.cjs} +1 -1
- package/dist/{vue-ui-strip-plot-CK0dO53m.js → vue-ui-strip-plot-BayysZJp.js} +9 -9
- package/dist/{vue-ui-strip-plot-Dx6P2lA2.cjs → vue-ui-strip-plot-DOd46R6g.cjs} +1 -1
- package/dist/{vue-ui-table-DkMrvnDz.js → vue-ui-table-B2e_Edtl.js} +1 -1
- package/dist/{vue-ui-table-DIPNLMvf.cjs → vue-ui-table-ByZt03OM.cjs} +1 -1
- package/dist/{vue-ui-table-heatmap-BVEhEE0q.cjs → vue-ui-table-heatmap-C2DYn2J7.cjs} +1 -1
- package/dist/{vue-ui-table-heatmap-B4q7WfSh.js → vue-ui-table-heatmap-CZipm8kF.js} +4 -4
- package/dist/{vue-ui-table-sparkline-Cl4a56D9.js → vue-ui-table-sparkline-Bnc7_7-9.js} +5 -5
- package/dist/{vue-ui-table-sparkline-CU0SCv36.cjs → vue-ui-table-sparkline-CnGGcJEH.cjs} +1 -1
- package/dist/{vue-ui-thermometer-DiOXG9FE.cjs → vue-ui-thermometer-BhRNMgI2.cjs} +1 -1
- package/dist/{vue-ui-thermometer-pcKB72qU.js → vue-ui-thermometer-whi9mZRg.js} +5 -5
- package/dist/{vue-ui-timer-BFcCXVhI.js → vue-ui-timer-BJKrcaCb.js} +4 -4
- package/dist/{vue-ui-timer-DnEhYkYY.cjs → vue-ui-timer-CfZVIUoe.cjs} +1 -1
- package/dist/{vue-ui-tiremarks-ChIQAk_l.cjs → vue-ui-tiremarks-BK3cRVKm.cjs} +1 -1
- package/dist/{vue-ui-tiremarks-Cx5AJacV.js → vue-ui-tiremarks-KS0lCmhn.js} +5 -5
- package/dist/{vue-ui-treemap-CUkSlJWq.cjs → vue-ui-treemap-BtzJqV47.cjs} +1 -1
- package/dist/{vue-ui-treemap-BeAjlsgd.js → vue-ui-treemap-C9-Kx113.js} +9 -9
- package/dist/vue-ui-vertical-bar-C4n96-H7.cjs +4 -0
- package/dist/{vue-ui-vertical-bar-C6CBhGbv.js → vue-ui-vertical-bar-CuHv8MjK.js} +13 -13
- package/dist/{vue-ui-waffle-C29vX0FU.cjs → vue-ui-waffle-D6mX6aPy.cjs} +1 -1
- package/dist/{vue-ui-waffle-DM2bqLaZ.js → vue-ui-waffle-DDUb8Ufe.js} +9 -9
- package/dist/{vue-ui-wheel-Br23_h13.js → vue-ui-wheel-BbgV7rRY.js} +5 -5
- package/dist/{vue-ui-wheel-D-KizYjp.cjs → vue-ui-wheel-Ce935eYZ.cjs} +1 -1
- package/dist/{vue-ui-word-cloud-CNrw2pGa.cjs → vue-ui-word-cloud-BPaqt7Rz.cjs} +1 -1
- package/dist/{vue-ui-word-cloud-DkqrXhGq.js → vue-ui-word-cloud-CeWdEIXe.js} +7 -7
- package/dist/{vue-ui-xy-CJkw_ARZ.cjs → vue-ui-xy-CptbO1gr.cjs} +1 -1
- package/dist/{vue-ui-xy-Bl-Jb6uH.js → vue-ui-xy-Dtr2cfv4.js} +12 -12
- package/dist/{vue-ui-xy-canvas-CXK6EGbI.cjs → vue-ui-xy-canvas-BrHRoIPQ.cjs} +1 -1
- package/dist/{vue-ui-xy-canvas-BIYJhOix.js → vue-ui-xy-canvas-C8ni7sEK.js} +10 -10
- package/package.json +1 -1
- package/dist/vue-ui-vertical-bar-lJGZ-IJS.cjs +0 -4
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { useCssVars as we, computed as f, openBlock as i, createElementBlock as v, createVNode as q, renderSlot as m, createElementVNode as C, normalizeStyle as N, pushScopeId as xe, popScopeId as $e, ref as c, watch as te, onMounted as Se, onBeforeUnmount as Fe, createCommentVNode as F, createBlock as L, unref as p, createSlots as Ne, withCtx as h, normalizeProps as X, guardReactiveProps as j, normalizeClass as ae, Fragment as _e, renderList as Pe, toDisplayString as oe, createTextVNode as Te, nextTick as le } from "vue";
|
|
2
|
-
import { u as ze, T as Ie, c as se, t as Ae, a as Oe, p as E, o as Me, e as ne, g as De, f as We, X as Be, q as Ee, r as Re } from "./index-
|
|
3
|
-
import { _ as Ue } from "./Title-
|
|
4
|
-
import { u as Ve, U as Ge } from "./usePrinter-
|
|
2
|
+
import { u as ze, T as Ie, c as se, t as Ae, a as Oe, p as E, o as Me, e as ne, g as De, f as We, X as Be, q as Ee, r as Re } from "./index-_qS8WYUi.js";
|
|
3
|
+
import { _ as Ue } from "./Title-BWhB-LZD.js";
|
|
4
|
+
import { u as Ve, U as Ge } from "./usePrinter-SBoyJa9C.js";
|
|
5
5
|
import { d as Le, t as Xe, u as je } from "./useResponsive-NZB-WLRF.js";
|
|
6
|
-
import qe from "./vue-ui-accordion-
|
|
7
|
-
import { D as He } from "./DataTable-
|
|
8
|
-
import Ye from "./BaseIcon-
|
|
6
|
+
import qe from "./vue-ui-accordion-sb2V8ews.js";
|
|
7
|
+
import { D as He } from "./DataTable-D0s-F16a.js";
|
|
8
|
+
import Ye from "./BaseIcon-BGb_p9W-.js";
|
|
9
9
|
import { _ as ue } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
10
|
-
import { u as re } from "./useNestedProp-
|
|
10
|
+
import { u as re } from "./useNestedProp-Cqc-Ol8-.js";
|
|
11
11
|
const Je = (r) => (xe("data-v-3fd7d274"), r = r(), $e(), r), Ke = { "data-html2canvas-ignore": "" }, Qe = {
|
|
12
12
|
key: 0,
|
|
13
13
|
class: "reset-wrapper"
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const B=require("./pdf-Cz3729tZ.cjs"),v=require("./usePrinter-CgeascwN.cjs"),d=require("./index-C9r5MSxp.cjs"),E=require("./DataTable-i6_WDL4K.cjs"),z=require("./Title-D5JSyW9g.cjs"),G=require("./Tooltip-Bd80EmMe.cjs"),V=require("./Shape-e7Tqal5k.cjs"),P=require("./BaseIcon-DsmnhCxw.cjs"),T=require("./vue-ui-table-sparkline-CU0SCv36.cjs"),M=require("./vue-ui-skeleton-ldYPv9PF.cjs"),D=require("./Slicer-CDFjbPHy.cjs"),R=require("./vue-ui-accordion-B_pg4OcN.cjs"),p=require("./useNestedProp-DlpyayQg.cjs"),e=require("vue"),H=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),Y=d.createUid(),q={name:"vue-ui-xy",props:{config:{type:Object,default(){return{}}},dataset:{type:Array,default(){return[]}}},components:{DataTable:E.DataTable,Shape:V._sfc_main,Title:z._sfc_main,Tooltip:G._sfc_main,UserOptions:v.UserOptions,BaseIcon:P.default,TableSparkline:T.default,Skeleton:M.default,Slicer:D.Slicer,Accordion:R.default},data(){this.dataset.forEach((n,m)=>{[null,void 0].includes(n.series)&&this.error({componentName:"VueUiXy",type:"datasetSerieAttribute",property:"series (number[])",index:m})});const r=Math.max(...this.dataset.map(n=>n.series.length)),o={start:0,end:r};return{themePalettes:d.themePalettes,themes:d.themes,slicerStep:0,selectedScale:null,CTX:null,CANVAS:null,opacity:d.opacity,useSafeValues:!0,palette:d.palette,height:600,width:1e3,viewBox:"0 0 1000 600",clientPosition:{x:0,y:0},canvasClientPosition:{x:0,y:0},icons:{line:"line",bar:"bar",plot:"plot"},isFullscreen:!1,isPrinting:!1,isImaging:!1,isTooltip:!1,mutableConfig:{dataLabels:{show:!0},showTooltip:!0,showTable:!1,isStacked:!1,useIndividualScale:!1},selectedSerieIndex:null,selectedRowIndex:null,segregatedSeries:[],uniqueId:d.createUid(),step:0,slicer:o,__to__:null,maxX:r,showSparklineTable:!0,segregateStep:0,sliderId:Y,fontSizes:{xAxis:18,yAxis:12,dataLabels:20,plotLabels:10},plotRadii:{plot:3,line:3}}},computed:{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})),o=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})),n=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})),m=[...r,...o,...n].flatMap(l=>l).length;return[...r,...o,...n].flatMap((l,t)=>({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/m*(t+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(){const r=d.useConfig().vue_ui_xy;if(!Object.keys(this.config||{}).length)return r;const o=this.useNestedProp({userConfig:this.config,defaultConfig:r});return o.theme?{...p.useNestedProp({userConfig:this.themes.vue_ui_xy[o.theme]||this.config,defaultConfig:o}),customPalette:this.themePalettes[o.theme]||this.palette}:o},set:function(r){return r}},hasHighlightArea(){return this.FINAL_CONFIG.chart.highlightArea&&this.FINAL_CONFIG.chart.highlightArea.show},highlightAreaSpan(){const{from:r,to:o}=this.FINAL_CONFIG.chart.highlightArea;return r===o?1:o<r?0:o-r+1},relativeZero(){return this.niceScale.min>=0?0:Math.abs(this.niceScale.min)},absoluteMax(){return this.niceScale.max+this.relativeZero},safeDataset(){return this.useSafeValues?this.dataset.map((r,o)=>({...r,series:r.series.map(n=>this.isSafeValue(n)?n:null).slice(this.slicer.start,this.slicer.end),color:this.convertColorToHex(r.color?r.color:this.customPalette[o]?this.customPalette[o]:this.palette[o]),id:`uniqueId_${o}`})):this.dataset},relativeDataset(){return this.safeDataset.map((r,o)=>({...r,series:r.series.map(n=>n+this.relativeZero),absoluteValues:r.series})).filter(r=>!this.segregatedSeries.includes(r.id))},tableSparklineDataset(){return this.relativeDataset.map(r=>{const o=r.absoluteValues.map(n=>[void 0,null].includes(n)?0:n);return{id:r.id,name:r.name,color:r.color,values:this.fillArray(this.maxSeries,o)}})},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,o)=>({absoluteIndex:o,...r,series:r.series.map(n=>n+this.relativeZero),absoluteValues:r.series,segregate:()=>this.segregate(r),isSegregated:this.segregatedSeries.includes(r.id)}))},barSet(){return this.activeSeriesWithStackRatios.filter(r=>r.type==="bar").map((r,o)=>{this.checkAutoScaleError(r);const n=Math.min(...r.absoluteValues.filter(c=>![null,void 0].includes(c))),m=Math.max(...r.absoluteValues.filter(c=>![null,void 0].includes(c))),t={ratios:r.absoluteValues.filter(c=>![null,void 0].includes(c)).map(c=>(c-n)/(m-n)),valueMin:n,valueMax:m<0?0:m},g={max:r.scaleMax||Math.max(...r.absoluteValues)||1,min:r.scaleMin||Math.min(...r.absoluteValues.filter(c=>![void 0,null].includes(c)))>0?0:Math.min(...r.absoluteValues.filter(c=>![null,void 0].includes(c)))},I=r.scaleSteps||this.FINAL_CONFIG.chart.grid.labels.yAxis.commonScaleSteps,u=this.calculateNiceScale(g.min,g.max,I),f=this.calculateNiceScale(t.valueMin,t.valueMax,I),S=u.min>=0?0:Math.abs(u.min),_=0,y=u.max+S,C=f.max+Math.abs(_),N=this.mutableConfig.isStacked?this.drawingArea.height*(1-r.cumulatedStackRatio):0,F=this.mutableConfig.isStacked?this.drawingArea.height*r.stackRatio-this.FINAL_CONFIG.chart.grid.labels.yAxis.gap:this.drawingArea.height,a=this.drawingArea.bottom-N-F*S/y,s=this.drawingArea.bottom-N-F*_/C,i=this.absoluteDataset.filter(c=>c.type==="bar").filter(c=>!this.segregatedSeries.includes(c.id)).length,h=r.series.map((c,b)=>{const w=this.mutableConfig.useIndividualScale?(r.absoluteValues[b]+S)/y:this.ratioToMax(c),O=this.mutableConfig.useIndividualScale&&this.mutableConfig.isStacked?this.drawingArea.left+this.drawingArea.width/this.maxSeries*b:this.drawingArea.left+this.slot.bar*o+this.slot.bar*b*i-this.barSlot/2-o*this.barPeriodGap;return{yOffset:N,individualHeight:F,x:O,y:this.drawingArea.bottom-N-F*w,value:r.absoluteValues[b],zeroPosition:a,individualMax:y,comment:r.comments&&r.comments.slice(this.slicer.start,this.slicer.end)[b]||""}}),L=r.absoluteValues.map(c=>f.min>=0?(c-Math.abs(f.min))/(f.max-Math.abs(f.min)):(c+Math.abs(f.min))/(f.max+Math.abs(f.min))),A=r.series.map((c,b)=>{const w=this.mutableConfig.useIndividualScale&&this.mutableConfig.isStacked?this.drawingArea.left+this.drawingArea.width/this.maxSeries*b:this.drawingArea.left-this.slot.bar/2+this.slot.bar*o+this.slot.bar*b*this.absoluteDataset.filter(O=>O.type==="bar").filter(O=>!this.segregatedSeries.includes(O.id)).length;return{yOffset:N,individualHeight:F,x:w,y:this.drawingArea.bottom-N-(F*L[b]||0),value:r.absoluteValues[b],zeroPosition:a,individualMax:y,comment:r.comments&&r.comments.slice(this.slicer.start,this.slicer.end)[b]||""}}),k=u.ticks.map(c=>({y:c>=0?a-F*(c/y):a+F*Math.abs(c)/y,value:c})),x=f.ticks.map(c=>{const b=(c-f.min)/(f.max-f.min);return{y:c>=0?s-F*b:s+F*b,value:c}});return{...r,yOffset:N,autoScaleYLabels:x,individualHeight:F,scaleYLabels:r.autoScaling?x:k,individualScale:r.autoScaling?f:u,individualMax:r.autoScaling?C:y,zeroPosition:r.autoScaling?s:a,plots:r.autoScaling?A:h}})},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 o=Math.min(...r.absoluteValues.filter(c=>![void 0,null].includes(c))),n=Math.max(...r.absoluteValues.filter(c=>![void 0,null].includes(c)))||1,l={ratios:r.absoluteValues.filter(c=>![null,void 0].includes(c)).map(c=>(c-o)/(n-o)),valueMin:o,valueMax:n},t={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,I=this.calculateNiceScale(t.min,t.max,g),u=this.calculateNiceScale(l.valueMin,l.valueMax,g),f=I.min>=0?0:Math.abs(I.min),S=0,_=I.max+Math.abs(f),y=u.max+Math.abs(S),C=this.mutableConfig.isStacked?this.drawingArea.height*(1-r.cumulatedStackRatio):0,N=this.mutableConfig.isStacked?this.drawingArea.height*r.stackRatio-this.FINAL_CONFIG.chart.grid.labels.yAxis.gap:this.drawingArea.height,F=this.drawingArea.bottom-C-N*f/_,a=this.drawingArea.bottom-C-N*S/y,s=r.series.map((c,b)=>{const w=this.mutableConfig.useIndividualScale?(r.absoluteValues[b]+Math.abs(f))/_:this.ratioToMax(c);return{x:this.drawingArea.left+this.slot.line/2+this.slot.line*b,y:this.drawingArea.bottom-C-N*w,value:r.absoluteValues[b],comment:r.comments&&r.comments.slice(this.slicer.start,this.slicer.end)[b]||""}}),i=r.absoluteValues.map(c=>u.min>=0?(c-Math.abs(u.min))/(u.max-Math.abs(u.min)):(c+Math.abs(u.min))/(u.max+Math.abs(u.min))),h=r.series.map((c,b)=>{if(![void 0,null].includes(r.absoluteValues[b]))return{x:this.drawingArea.left+this.slot.line/2+this.slot.line*b,y:this.drawingArea.bottom-C-(N*i[b]||0),value:r.absoluteValues[b],comment:r.comments&&r.comments.slice(this.slicer.start,this.slicer.end)[b]||""}}),L=this.createSmoothPath(s),A=this.createSmoothPath(h),k=I.ticks.map(c=>({y:c>=0?F-N*(c/_):F+N*Math.abs(c)/_,value:c})),x=u.ticks.map(c=>{const b=(c-u.min)/(u.max-u.min);return{y:c>=0?a-N*b:a+N*b,value:c}});return{...r,yOffset:C,autoScaleYLabels:x,individualHeight:N,scaleYLabels:r.autoScaling?x:k,individualScale:r.autoScaling?u:I,individualMax:r.autoScaling?y:_,zeroPosition:r.autoScaling?a:F,curve:r.autoScaling?A:L,plots:r.autoScaling?h:s,area:r.useArea?this.mutableConfig.useIndividualScale?this.createIndividualArea(r.autoScaling?h:s,r.autoScaling?a:F):this.createArea(s):""}})},plotSet(){return this.activeSeriesWithStackRatios.filter(r=>r.type==="plot").map(r=>{this.checkAutoScaleError(r);const o=Math.min(...r.absoluteValues.filter(k=>![null,void 0].includes(k))),n=Math.max(...r.absoluteValues.filter(k=>![null,void 0].includes(k)))||1,l={ratios:r.absoluteValues.filter(k=>![null,void 0].includes(k)).map(k=>(k-o)/(n-o)),valueMin:o,valueMax:n},t={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,I=this.calculateNiceScale(t.min,t.max,g),u=this.calculateNiceScale(l.valueMin,l.valueMax,g),f=I.min>=0?0:Math.abs(I.min),S=0,_=I.max+f,y=u.max+Math.abs(S),C=this.mutableConfig.isStacked?this.drawingArea.height*(1-r.cumulatedStackRatio):0,N=this.mutableConfig.isStacked?this.drawingArea.height*r.stackRatio-this.FINAL_CONFIG.chart.grid.labels.yAxis.gap:this.drawingArea.height,F=this.drawingArea.bottom-C-N*f/_,a=this.drawingArea.bottom-C-N*S/y,s=r.series.map((k,x)=>{const c=this.mutableConfig.useIndividualScale?(r.absoluteValues[x]+Math.abs(f))/_:this.ratioToMax(k);return{x:this.drawingArea.left+this.slot.plot/2+this.slot.plot*x,y:this.drawingArea.bottom-C-N*c,value:r.absoluteValues[x],comment:r.comments&&r.comments.slice(this.slicer.start,this.slicer.end)[x]||""}}),i=r.absoluteValues.map(k=>u.min>=0?(k-Math.abs(u.min))/(u.max-Math.abs(u.min)):(k+Math.abs(u.min))/(u.max+Math.abs(u.min))),h=r.series.map((k,x)=>({x:this.drawingArea.left+this.slot.plot/2+this.slot.plot*x,y:this.drawingArea.bottom-C-(N*i[x]||0),value:r.absoluteValues[x],comment:r.comments&&r.comments.slice(this.slicer.start,this.slicer.end)[x]||""})),L=I.ticks.map(k=>({y:k>=0?F-N*(k/_):F+N*Math.abs(k)/_,value:k})),A=u.ticks.map(k=>{const x=(k-u.min)/(u.max-u.min);return{y:k>=0?a-N*x:a+N*x,value:k}});return{...r,yOffset:C,autoScaleYLabels:A,individualHeight:N,scaleYLabels:r.autoScaling?A:L,individualScale:r.autoScaling?u:I,individualMax:r.autoScaling?y:_,zeroPosition:r.autoScaling?a:F,plots:r.autoScaling?h:s}})},drawingArea(){const r=this.mutableConfig.useIndividualScale&&this.FINAL_CONFIG.chart.grid.labels.show?this.absoluteDataset.filter(o=>!this.segregatedSeries.includes(o.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 Math.max(...this.safeDataset.filter(r=>!this.segregatedSeries.includes(r.id)).map(r=>Math.max(...r.series)))},min(){const r=Math.min(...this.safeDataset.filter(o=>!this.segregatedSeries.includes(o.id)).map(o=>Math.min(...o.series)));return r>0?0:r},niceScale(){return this.calculateNiceScale(this.min,this.max<0?0:this.max,this.FINAL_CONFIG.chart.grid.labels.yAxis.commonScaleSteps)},maxSeries(){return this.slicer.end-this.slicer.start},timeLabels(){return this.FINAL_CONFIG.chart.grid.labels.xAxisLabels.values.slice(this.slicer.start,this.slicer.end)},slot(){return{bar:this.drawingArea.width/this.maxSeries/this.safeDataset.filter(r=>r.type==="bar").filter(r=>!this.segregatedSeries.includes(r.id)).length,plot:this.drawingArea.width/this.maxSeries,line:this.drawingArea.width/this.maxSeries}},barSlot(){const r=this.safeDataset.filter(o=>o.type==="bar").filter(o=>!this.segregatedSeries.includes(o.id)).length;return this.drawingArea.width/this.maxSeries/r-this.barPeriodGap*r},barPeriodGap(){return this.slot.line*this.FINAL_CONFIG.bar.periodGap},maxSlot(){return Math.max(...Object.values(this.slot).filter(r=>r!==1/0))},table(){if(this.safeDataset.length===0)return{head:[],body:[],config:{},columnNames:[]};const r=this.relativeDataset.map(n=>({label:n.name,color:n.color,type:n.type})),o=[];return this.timeLabels.forEach((n,m)=>{const l=[n];this.relativeDataset.forEach(t=>{l.push(this.canShowValue(t.absoluteValues[m])?Number(t.absoluteValues[m].toFixed(this.FINAL_CONFIG.table.rounding)):"")}),o.push(l)}),{head:r,body:o}},dataTable(){const r=[""].concat(this.relativeDataset.map(l=>l.name)).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 l=0;l<this.maxSeries;l+=1){const t=this.relativeDataset.map(g=>g.absoluteValues[l]??0).reduce((g,I)=>g+I,0);o.push([this.timeLabels[l]??"-"].concat(this.relativeDataset.map(g=>(g.absoluteValues[l]??0).toFixed(this.FINAL_CONFIG.table.rounding))).concat((t??0).toFixed(this.FINAL_CONFIG.table.rounding)))}const n={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},m=[this.FINAL_CONFIG.table.columnNames.period].concat(this.relativeDataset.map(l=>l.name)).concat(this.FINAL_CONFIG.table.columnNames.total);return{head:r,body:o,config:n,colNames:m}},dataTooltipSlot(){return{datapoint:this.selectedSeries,seriesIndex:this.selectedSerieIndex,series:this.absoluteDataset,bars:this.barSet,lines:this.lineSet,plots:this.plotSet,config:this.FINAL_CONFIG}},selectedSeries(){return this.relativeDataset.map(r=>({shape:r.shape||null,name:r.name,color:r.color,type:r.type,value:r.absoluteValues.find((o,n)=>n===this.selectedSerieIndex),comments:r.comments||[]}))},tooltipContent(){let r="",o=this.selectedSeries.map(l=>l.value).filter(l=>this.isSafeValue(l)&&l!==null).reduce((l,t)=>Math.abs(l)+Math.abs(t),0);const n=this.timeLabels[this.selectedSerieIndex],m=this.FINAL_CONFIG.chart.tooltip.customFormat;return this.isFunction(m)&&this.functionReturnsString(()=>m({seriesIndex:this.selectedSerieIndex,datapoint:this.selectedSeries,series:this.absoluteDataset,bars:this.barSet,lines:this.lineSet,plots:this.plotSet,config:this.FINAL_CONFIG}))?m({seriesIndex:this.selectedSerieIndex,datapoint:this.selectedSeries,series:this.absoluteDataset,bars:this.barSet,lines:this.lineSet,plots:this.plotSet,config:this.FINAL_CONFIG}):(n&&(r+=`<div style="padding-bottom: 6px; margin-bottom: 4px; border-bottom: 1px solid ${this.FINAL_CONFIG.chart.tooltip.borderColor}; width:100%">${n}</div>`),this.selectedSeries.forEach(l=>{if(this.isSafeValue(l.value)){let t="",g="";switch(this.icons[l.type]){case"bar":t=`<svg viewBox="0 0 12 12" height="14" width="14"><rect x="0" y="0" rx="1" stroke="none" height="12" width="12" fill="${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="1" fill="${l.color}" />`:l.shape==="triangle"?g=`<path d="${d.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="1" />`:l.shape==="square"?g=`<path d="${d.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="1" />`:l.shape==="diamond"?g=`<path d="${d.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="1" />`:l.shape==="pentagon"?g=`<path d="${d.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="1" />`:l.shape==="hexagon"?g=`<path d="${d.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="1" />`:l.shape==="star"&&(g=`<polygon stroke="${this.FINAL_CONFIG.chart.tooltip.backgroundColor}" stroke-width="1" fill="${l.color}" points="${d.createStar({plot:{x:10,y:8},radius:4})}" />`),t=`<svg viewBox="0 0 20 12" height="14" width="20"><rect rx="3" x="0" y="6" stroke="none" height="4" width="20" fill="${l.color}" />${g}</svg>`;break;case"plot":if(!l.shape||!["star","triangle","square","diamond","pentagon","hexagon"].includes(l.shape)){t=`<svg viewBox="0 0 12 12" height="14" width="14"><circle cx="6" cy="6" r="6" stroke="${this.FINAL_CONFIG.chart.tooltip.backgroundColor}" stroke-width="1" fill="${l.color}" /></svg>`;break}if(l.shape==="star"){t=`<svg viewBox="0 0 12 12" height="14" width="14"><polygon stroke="${this.FINAL_CONFIG.chart.tooltip.backgroundColor}" stroke-width="1" fill="${l.color}" points="${d.createStar({plot:{x:6,y:6},radius:5})}" /></svg>`;break}if(l.shape==="triangle"){t=`<svg viewBox="0 0 12 12" height="14" width="14"><path d="${d.createPolygonPath({plot:{x:6,y:6},radius:6,sides:3,rotation:.52}).path}" fill="${l.color}" stroke="${this.FINAL_CONFIG.chart.tooltip.backgroundColor}" stroke-width="1" /></svg>`;break}if(l.shape==="square"){t=`<svg viewBox="0 0 12 12" height="14" width="14"><path d="${d.createPolygonPath({plot:{x:6,y:6},radius:6,sides:4,rotation:.8}).path}" fill="${l.color}" stroke="${this.FINAL_CONFIG.chart.tooltip.backgroundColor}" stroke-width="1" /></svg>`;break}if(l.shape==="diamond"){t=`<svg viewBox="0 0 12 12" height="14" width="14"><path d="${d.createPolygonPath({plot:{x:6,y:6},radius:5,sides:4,rotation:0}).path}" fill="${l.color}" stroke="${this.FINAL_CONFIG.chart.tooltip.backgroundColor}" stroke-width="1" /></svg>`;break}if(l.shape==="pentagon"){t=`<svg viewBox="0 0 12 12" height="14" width="14"><path d="${d.createPolygonPath({plot:{x:6,y:6},radius:5,sides:5,rotation:.95}).path}" fill="${l.color}" stroke="${this.FINAL_CONFIG.chart.tooltip.backgroundColor}" stroke-width="1" /></svg>`;break}if(l.shape==="hexagon"){t=`<svg viewBox="0 0 12 12" height="14" width="14"><path d="${d.createPolygonPath({plot:{x:6,y:6},radius:5,sides:6,rotation:0}).path}" fill="${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">${t}</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:this.FINAL_CONFIG.chart.labels.prefix,v:l.value,s:this.FINAL_CONFIG.chart.labels.suffix,r:this.FINAL_CONFIG.chart.tooltip.roundingValue}),{datapoint:l}):""}</b> ${this.FINAL_CONFIG.chart.tooltip.showPercentage?`(${d.dataLabel({v:this.checkNaN(Math.abs(l.value)/o*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}))},zero(){return this.drawingArea.bottom-this.drawingArea.height*this.ratioToMax(this.relativeZero)}},mounted(){if(this.objectIsEmpty(this.dataset)?this.error({componentName:"VueUiXy",type:"dataset"}):this.dataset.forEach((r,o)=>{[null,void 0].includes(r.name)&&this.error({componentName:"VueUiXy",type:"datasetSerieAttribute",property:"name (string)",index:o})}),this.FINAL_CONFIG.showWarnings&&this.dataset.forEach(r=>{r.series.forEach((o,n)=>{this.isSafeValue(o)||console.warn(`SmartXY has detected an unsafe value in your dataset:
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const B=require("./pdf-Cz3729tZ.cjs"),v=require("./usePrinter-BuaBVD2x.cjs"),d=require("./index-CXlW59V9.cjs"),E=require("./DataTable-Df6uZv-T.cjs"),z=require("./Title-BSJEkzs1.cjs"),G=require("./Tooltip-BuFiGszl.cjs"),V=require("./Shape-BaAPMBdB.cjs"),P=require("./BaseIcon-aqUO3wo9.cjs"),T=require("./vue-ui-table-sparkline-CnGGcJEH.cjs"),M=require("./vue-ui-skeleton-DRUBehRT.cjs"),D=require("./Slicer-DmhzGeZJ.cjs"),R=require("./vue-ui-accordion-BYuReZs8.cjs"),p=require("./useNestedProp-cZtyh-Ib.cjs"),e=require("vue"),H=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),Y=d.createUid(),q={name:"vue-ui-xy",props:{config:{type:Object,default(){return{}}},dataset:{type:Array,default(){return[]}}},components:{DataTable:E.DataTable,Shape:V._sfc_main,Title:z._sfc_main,Tooltip:G._sfc_main,UserOptions:v.UserOptions,BaseIcon:P.default,TableSparkline:T.default,Skeleton:M.default,Slicer:D.Slicer,Accordion:R.default},data(){this.dataset.forEach((n,m)=>{[null,void 0].includes(n.series)&&this.error({componentName:"VueUiXy",type:"datasetSerieAttribute",property:"series (number[])",index:m})});const r=Math.max(...this.dataset.map(n=>n.series.length)),o={start:0,end:r};return{themePalettes:d.themePalettes,themes:d.themes,slicerStep:0,selectedScale:null,CTX:null,CANVAS:null,opacity:d.opacity,useSafeValues:!0,palette:d.palette,height:600,width:1e3,viewBox:"0 0 1000 600",clientPosition:{x:0,y:0},canvasClientPosition:{x:0,y:0},icons:{line:"line",bar:"bar",plot:"plot"},isFullscreen:!1,isPrinting:!1,isImaging:!1,isTooltip:!1,mutableConfig:{dataLabels:{show:!0},showTooltip:!0,showTable:!1,isStacked:!1,useIndividualScale:!1},selectedSerieIndex:null,selectedRowIndex:null,segregatedSeries:[],uniqueId:d.createUid(),step:0,slicer:o,__to__:null,maxX:r,showSparklineTable:!0,segregateStep:0,sliderId:Y,fontSizes:{xAxis:18,yAxis:12,dataLabels:20,plotLabels:10},plotRadii:{plot:3,line:3}}},computed:{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})),o=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})),n=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})),m=[...r,...o,...n].flatMap(l=>l).length;return[...r,...o,...n].flatMap((l,t)=>({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/m*(t+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(){const r=d.useConfig().vue_ui_xy;if(!Object.keys(this.config||{}).length)return r;const o=this.useNestedProp({userConfig:this.config,defaultConfig:r});return o.theme?{...p.useNestedProp({userConfig:this.themes.vue_ui_xy[o.theme]||this.config,defaultConfig:o}),customPalette:this.themePalettes[o.theme]||this.palette}:o},set:function(r){return r}},hasHighlightArea(){return this.FINAL_CONFIG.chart.highlightArea&&this.FINAL_CONFIG.chart.highlightArea.show},highlightAreaSpan(){const{from:r,to:o}=this.FINAL_CONFIG.chart.highlightArea;return r===o?1:o<r?0:o-r+1},relativeZero(){return this.niceScale.min>=0?0:Math.abs(this.niceScale.min)},absoluteMax(){return this.niceScale.max+this.relativeZero},safeDataset(){return this.useSafeValues?this.dataset.map((r,o)=>({...r,series:r.series.map(n=>this.isSafeValue(n)?n:null).slice(this.slicer.start,this.slicer.end),color:this.convertColorToHex(r.color?r.color:this.customPalette[o]?this.customPalette[o]:this.palette[o]),id:`uniqueId_${o}`})):this.dataset},relativeDataset(){return this.safeDataset.map((r,o)=>({...r,series:r.series.map(n=>n+this.relativeZero),absoluteValues:r.series})).filter(r=>!this.segregatedSeries.includes(r.id))},tableSparklineDataset(){return this.relativeDataset.map(r=>{const o=r.absoluteValues.map(n=>[void 0,null].includes(n)?0:n);return{id:r.id,name:r.name,color:r.color,values:this.fillArray(this.maxSeries,o)}})},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,o)=>({absoluteIndex:o,...r,series:r.series.map(n=>n+this.relativeZero),absoluteValues:r.series,segregate:()=>this.segregate(r),isSegregated:this.segregatedSeries.includes(r.id)}))},barSet(){return this.activeSeriesWithStackRatios.filter(r=>r.type==="bar").map((r,o)=>{this.checkAutoScaleError(r);const n=Math.min(...r.absoluteValues.filter(c=>![null,void 0].includes(c))),m=Math.max(...r.absoluteValues.filter(c=>![null,void 0].includes(c))),t={ratios:r.absoluteValues.filter(c=>![null,void 0].includes(c)).map(c=>(c-n)/(m-n)),valueMin:n,valueMax:m<0?0:m},g={max:r.scaleMax||Math.max(...r.absoluteValues)||1,min:r.scaleMin||Math.min(...r.absoluteValues.filter(c=>![void 0,null].includes(c)))>0?0:Math.min(...r.absoluteValues.filter(c=>![null,void 0].includes(c)))},I=r.scaleSteps||this.FINAL_CONFIG.chart.grid.labels.yAxis.commonScaleSteps,u=this.calculateNiceScale(g.min,g.max,I),f=this.calculateNiceScale(t.valueMin,t.valueMax,I),S=u.min>=0?0:Math.abs(u.min),_=0,y=u.max+S,C=f.max+Math.abs(_),N=this.mutableConfig.isStacked?this.drawingArea.height*(1-r.cumulatedStackRatio):0,F=this.mutableConfig.isStacked?this.drawingArea.height*r.stackRatio-this.FINAL_CONFIG.chart.grid.labels.yAxis.gap:this.drawingArea.height,a=this.drawingArea.bottom-N-F*S/y,s=this.drawingArea.bottom-N-F*_/C,i=this.absoluteDataset.filter(c=>c.type==="bar").filter(c=>!this.segregatedSeries.includes(c.id)).length,h=r.series.map((c,b)=>{const w=this.mutableConfig.useIndividualScale?(r.absoluteValues[b]+S)/y:this.ratioToMax(c),O=this.mutableConfig.useIndividualScale&&this.mutableConfig.isStacked?this.drawingArea.left+this.drawingArea.width/this.maxSeries*b:this.drawingArea.left+this.slot.bar*o+this.slot.bar*b*i-this.barSlot/2-o*this.barPeriodGap;return{yOffset:N,individualHeight:F,x:O,y:this.drawingArea.bottom-N-F*w,value:r.absoluteValues[b],zeroPosition:a,individualMax:y,comment:r.comments&&r.comments.slice(this.slicer.start,this.slicer.end)[b]||""}}),L=r.absoluteValues.map(c=>f.min>=0?(c-Math.abs(f.min))/(f.max-Math.abs(f.min)):(c+Math.abs(f.min))/(f.max+Math.abs(f.min))),A=r.series.map((c,b)=>{const w=this.mutableConfig.useIndividualScale&&this.mutableConfig.isStacked?this.drawingArea.left+this.drawingArea.width/this.maxSeries*b:this.drawingArea.left-this.slot.bar/2+this.slot.bar*o+this.slot.bar*b*this.absoluteDataset.filter(O=>O.type==="bar").filter(O=>!this.segregatedSeries.includes(O.id)).length;return{yOffset:N,individualHeight:F,x:w,y:this.drawingArea.bottom-N-(F*L[b]||0),value:r.absoluteValues[b],zeroPosition:a,individualMax:y,comment:r.comments&&r.comments.slice(this.slicer.start,this.slicer.end)[b]||""}}),k=u.ticks.map(c=>({y:c>=0?a-F*(c/y):a+F*Math.abs(c)/y,value:c})),x=f.ticks.map(c=>{const b=(c-f.min)/(f.max-f.min);return{y:c>=0?s-F*b:s+F*b,value:c}});return{...r,yOffset:N,autoScaleYLabels:x,individualHeight:F,scaleYLabels:r.autoScaling?x:k,individualScale:r.autoScaling?f:u,individualMax:r.autoScaling?C:y,zeroPosition:r.autoScaling?s:a,plots:r.autoScaling?A:h}})},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 o=Math.min(...r.absoluteValues.filter(c=>![void 0,null].includes(c))),n=Math.max(...r.absoluteValues.filter(c=>![void 0,null].includes(c)))||1,l={ratios:r.absoluteValues.filter(c=>![null,void 0].includes(c)).map(c=>(c-o)/(n-o)),valueMin:o,valueMax:n},t={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,I=this.calculateNiceScale(t.min,t.max,g),u=this.calculateNiceScale(l.valueMin,l.valueMax,g),f=I.min>=0?0:Math.abs(I.min),S=0,_=I.max+Math.abs(f),y=u.max+Math.abs(S),C=this.mutableConfig.isStacked?this.drawingArea.height*(1-r.cumulatedStackRatio):0,N=this.mutableConfig.isStacked?this.drawingArea.height*r.stackRatio-this.FINAL_CONFIG.chart.grid.labels.yAxis.gap:this.drawingArea.height,F=this.drawingArea.bottom-C-N*f/_,a=this.drawingArea.bottom-C-N*S/y,s=r.series.map((c,b)=>{const w=this.mutableConfig.useIndividualScale?(r.absoluteValues[b]+Math.abs(f))/_:this.ratioToMax(c);return{x:this.drawingArea.left+this.slot.line/2+this.slot.line*b,y:this.drawingArea.bottom-C-N*w,value:r.absoluteValues[b],comment:r.comments&&r.comments.slice(this.slicer.start,this.slicer.end)[b]||""}}),i=r.absoluteValues.map(c=>u.min>=0?(c-Math.abs(u.min))/(u.max-Math.abs(u.min)):(c+Math.abs(u.min))/(u.max+Math.abs(u.min))),h=r.series.map((c,b)=>{if(![void 0,null].includes(r.absoluteValues[b]))return{x:this.drawingArea.left+this.slot.line/2+this.slot.line*b,y:this.drawingArea.bottom-C-(N*i[b]||0),value:r.absoluteValues[b],comment:r.comments&&r.comments.slice(this.slicer.start,this.slicer.end)[b]||""}}),L=this.createSmoothPath(s),A=this.createSmoothPath(h),k=I.ticks.map(c=>({y:c>=0?F-N*(c/_):F+N*Math.abs(c)/_,value:c})),x=u.ticks.map(c=>{const b=(c-u.min)/(u.max-u.min);return{y:c>=0?a-N*b:a+N*b,value:c}});return{...r,yOffset:C,autoScaleYLabels:x,individualHeight:N,scaleYLabels:r.autoScaling?x:k,individualScale:r.autoScaling?u:I,individualMax:r.autoScaling?y:_,zeroPosition:r.autoScaling?a:F,curve:r.autoScaling?A:L,plots:r.autoScaling?h:s,area:r.useArea?this.mutableConfig.useIndividualScale?this.createIndividualArea(r.autoScaling?h:s,r.autoScaling?a:F):this.createArea(s):""}})},plotSet(){return this.activeSeriesWithStackRatios.filter(r=>r.type==="plot").map(r=>{this.checkAutoScaleError(r);const o=Math.min(...r.absoluteValues.filter(k=>![null,void 0].includes(k))),n=Math.max(...r.absoluteValues.filter(k=>![null,void 0].includes(k)))||1,l={ratios:r.absoluteValues.filter(k=>![null,void 0].includes(k)).map(k=>(k-o)/(n-o)),valueMin:o,valueMax:n},t={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,I=this.calculateNiceScale(t.min,t.max,g),u=this.calculateNiceScale(l.valueMin,l.valueMax,g),f=I.min>=0?0:Math.abs(I.min),S=0,_=I.max+f,y=u.max+Math.abs(S),C=this.mutableConfig.isStacked?this.drawingArea.height*(1-r.cumulatedStackRatio):0,N=this.mutableConfig.isStacked?this.drawingArea.height*r.stackRatio-this.FINAL_CONFIG.chart.grid.labels.yAxis.gap:this.drawingArea.height,F=this.drawingArea.bottom-C-N*f/_,a=this.drawingArea.bottom-C-N*S/y,s=r.series.map((k,x)=>{const c=this.mutableConfig.useIndividualScale?(r.absoluteValues[x]+Math.abs(f))/_:this.ratioToMax(k);return{x:this.drawingArea.left+this.slot.plot/2+this.slot.plot*x,y:this.drawingArea.bottom-C-N*c,value:r.absoluteValues[x],comment:r.comments&&r.comments.slice(this.slicer.start,this.slicer.end)[x]||""}}),i=r.absoluteValues.map(k=>u.min>=0?(k-Math.abs(u.min))/(u.max-Math.abs(u.min)):(k+Math.abs(u.min))/(u.max+Math.abs(u.min))),h=r.series.map((k,x)=>({x:this.drawingArea.left+this.slot.plot/2+this.slot.plot*x,y:this.drawingArea.bottom-C-(N*i[x]||0),value:r.absoluteValues[x],comment:r.comments&&r.comments.slice(this.slicer.start,this.slicer.end)[x]||""})),L=I.ticks.map(k=>({y:k>=0?F-N*(k/_):F+N*Math.abs(k)/_,value:k})),A=u.ticks.map(k=>{const x=(k-u.min)/(u.max-u.min);return{y:k>=0?a-N*x:a+N*x,value:k}});return{...r,yOffset:C,autoScaleYLabels:A,individualHeight:N,scaleYLabels:r.autoScaling?A:L,individualScale:r.autoScaling?u:I,individualMax:r.autoScaling?y:_,zeroPosition:r.autoScaling?a:F,plots:r.autoScaling?h:s}})},drawingArea(){const r=this.mutableConfig.useIndividualScale&&this.FINAL_CONFIG.chart.grid.labels.show?this.absoluteDataset.filter(o=>!this.segregatedSeries.includes(o.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 Math.max(...this.safeDataset.filter(r=>!this.segregatedSeries.includes(r.id)).map(r=>Math.max(...r.series)))},min(){const r=Math.min(...this.safeDataset.filter(o=>!this.segregatedSeries.includes(o.id)).map(o=>Math.min(...o.series)));return r>0?0:r},niceScale(){return this.calculateNiceScale(this.min,this.max<0?0:this.max,this.FINAL_CONFIG.chart.grid.labels.yAxis.commonScaleSteps)},maxSeries(){return this.slicer.end-this.slicer.start},timeLabels(){return this.FINAL_CONFIG.chart.grid.labels.xAxisLabels.values.slice(this.slicer.start,this.slicer.end)},slot(){return{bar:this.drawingArea.width/this.maxSeries/this.safeDataset.filter(r=>r.type==="bar").filter(r=>!this.segregatedSeries.includes(r.id)).length,plot:this.drawingArea.width/this.maxSeries,line:this.drawingArea.width/this.maxSeries}},barSlot(){const r=this.safeDataset.filter(o=>o.type==="bar").filter(o=>!this.segregatedSeries.includes(o.id)).length;return this.drawingArea.width/this.maxSeries/r-this.barPeriodGap*r},barPeriodGap(){return this.slot.line*this.FINAL_CONFIG.bar.periodGap},maxSlot(){return Math.max(...Object.values(this.slot).filter(r=>r!==1/0))},table(){if(this.safeDataset.length===0)return{head:[],body:[],config:{},columnNames:[]};const r=this.relativeDataset.map(n=>({label:n.name,color:n.color,type:n.type})),o=[];return this.timeLabels.forEach((n,m)=>{const l=[n];this.relativeDataset.forEach(t=>{l.push(this.canShowValue(t.absoluteValues[m])?Number(t.absoluteValues[m].toFixed(this.FINAL_CONFIG.table.rounding)):"")}),o.push(l)}),{head:r,body:o}},dataTable(){const r=[""].concat(this.relativeDataset.map(l=>l.name)).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 l=0;l<this.maxSeries;l+=1){const t=this.relativeDataset.map(g=>g.absoluteValues[l]??0).reduce((g,I)=>g+I,0);o.push([this.timeLabels[l]??"-"].concat(this.relativeDataset.map(g=>(g.absoluteValues[l]??0).toFixed(this.FINAL_CONFIG.table.rounding))).concat((t??0).toFixed(this.FINAL_CONFIG.table.rounding)))}const n={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},m=[this.FINAL_CONFIG.table.columnNames.period].concat(this.relativeDataset.map(l=>l.name)).concat(this.FINAL_CONFIG.table.columnNames.total);return{head:r,body:o,config:n,colNames:m}},dataTooltipSlot(){return{datapoint:this.selectedSeries,seriesIndex:this.selectedSerieIndex,series:this.absoluteDataset,bars:this.barSet,lines:this.lineSet,plots:this.plotSet,config:this.FINAL_CONFIG}},selectedSeries(){return this.relativeDataset.map(r=>({shape:r.shape||null,name:r.name,color:r.color,type:r.type,value:r.absoluteValues.find((o,n)=>n===this.selectedSerieIndex),comments:r.comments||[]}))},tooltipContent(){let r="",o=this.selectedSeries.map(l=>l.value).filter(l=>this.isSafeValue(l)&&l!==null).reduce((l,t)=>Math.abs(l)+Math.abs(t),0);const n=this.timeLabels[this.selectedSerieIndex],m=this.FINAL_CONFIG.chart.tooltip.customFormat;return this.isFunction(m)&&this.functionReturnsString(()=>m({seriesIndex:this.selectedSerieIndex,datapoint:this.selectedSeries,series:this.absoluteDataset,bars:this.barSet,lines:this.lineSet,plots:this.plotSet,config:this.FINAL_CONFIG}))?m({seriesIndex:this.selectedSerieIndex,datapoint:this.selectedSeries,series:this.absoluteDataset,bars:this.barSet,lines:this.lineSet,plots:this.plotSet,config:this.FINAL_CONFIG}):(n&&(r+=`<div style="padding-bottom: 6px; margin-bottom: 4px; border-bottom: 1px solid ${this.FINAL_CONFIG.chart.tooltip.borderColor}; width:100%">${n}</div>`),this.selectedSeries.forEach(l=>{if(this.isSafeValue(l.value)){let t="",g="";switch(this.icons[l.type]){case"bar":t=`<svg viewBox="0 0 12 12" height="14" width="14"><rect x="0" y="0" rx="1" stroke="none" height="12" width="12" fill="${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="1" fill="${l.color}" />`:l.shape==="triangle"?g=`<path d="${d.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="1" />`:l.shape==="square"?g=`<path d="${d.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="1" />`:l.shape==="diamond"?g=`<path d="${d.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="1" />`:l.shape==="pentagon"?g=`<path d="${d.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="1" />`:l.shape==="hexagon"?g=`<path d="${d.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="1" />`:l.shape==="star"&&(g=`<polygon stroke="${this.FINAL_CONFIG.chart.tooltip.backgroundColor}" stroke-width="1" fill="${l.color}" points="${d.createStar({plot:{x:10,y:8},radius:4})}" />`),t=`<svg viewBox="0 0 20 12" height="14" width="20"><rect rx="3" x="0" y="6" stroke="none" height="4" width="20" fill="${l.color}" />${g}</svg>`;break;case"plot":if(!l.shape||!["star","triangle","square","diamond","pentagon","hexagon"].includes(l.shape)){t=`<svg viewBox="0 0 12 12" height="14" width="14"><circle cx="6" cy="6" r="6" stroke="${this.FINAL_CONFIG.chart.tooltip.backgroundColor}" stroke-width="1" fill="${l.color}" /></svg>`;break}if(l.shape==="star"){t=`<svg viewBox="0 0 12 12" height="14" width="14"><polygon stroke="${this.FINAL_CONFIG.chart.tooltip.backgroundColor}" stroke-width="1" fill="${l.color}" points="${d.createStar({plot:{x:6,y:6},radius:5})}" /></svg>`;break}if(l.shape==="triangle"){t=`<svg viewBox="0 0 12 12" height="14" width="14"><path d="${d.createPolygonPath({plot:{x:6,y:6},radius:6,sides:3,rotation:.52}).path}" fill="${l.color}" stroke="${this.FINAL_CONFIG.chart.tooltip.backgroundColor}" stroke-width="1" /></svg>`;break}if(l.shape==="square"){t=`<svg viewBox="0 0 12 12" height="14" width="14"><path d="${d.createPolygonPath({plot:{x:6,y:6},radius:6,sides:4,rotation:.8}).path}" fill="${l.color}" stroke="${this.FINAL_CONFIG.chart.tooltip.backgroundColor}" stroke-width="1" /></svg>`;break}if(l.shape==="diamond"){t=`<svg viewBox="0 0 12 12" height="14" width="14"><path d="${d.createPolygonPath({plot:{x:6,y:6},radius:5,sides:4,rotation:0}).path}" fill="${l.color}" stroke="${this.FINAL_CONFIG.chart.tooltip.backgroundColor}" stroke-width="1" /></svg>`;break}if(l.shape==="pentagon"){t=`<svg viewBox="0 0 12 12" height="14" width="14"><path d="${d.createPolygonPath({plot:{x:6,y:6},radius:5,sides:5,rotation:.95}).path}" fill="${l.color}" stroke="${this.FINAL_CONFIG.chart.tooltip.backgroundColor}" stroke-width="1" /></svg>`;break}if(l.shape==="hexagon"){t=`<svg viewBox="0 0 12 12" height="14" width="14"><path d="${d.createPolygonPath({plot:{x:6,y:6},radius:5,sides:6,rotation:0}).path}" fill="${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">${t}</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:this.FINAL_CONFIG.chart.labels.prefix,v:l.value,s:this.FINAL_CONFIG.chart.labels.suffix,r:this.FINAL_CONFIG.chart.tooltip.roundingValue}),{datapoint:l}):""}</b> ${this.FINAL_CONFIG.chart.tooltip.showPercentage?`(${d.dataLabel({v:this.checkNaN(Math.abs(l.value)/o*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}))},zero(){return this.drawingArea.bottom-this.drawingArea.height*this.ratioToMax(this.relativeZero)}},mounted(){if(this.objectIsEmpty(this.dataset)?this.error({componentName:"VueUiXy",type:"dataset"}):this.dataset.forEach((r,o)=>{[null,void 0].includes(r.name)&&this.error({componentName:"VueUiXy",type:"datasetSerieAttribute",property:"name (string)",index:o})}),this.FINAL_CONFIG.showWarnings&&this.dataset.forEach(r=>{r.series.forEach((o,n)=>{this.isSafeValue(o)||console.warn(`SmartXY has detected an unsafe value in your dataset:
|
|
2
2
|
-----> The serie '${r.name}' contains the value '${o}' at index ${n}.
|
|
3
3
|
'${o}' was converted to null to allow the chart to display.`)})}),document.addEventListener("mousemove",r=>{this.clientPosition={x:r.clientX,y:r.clientY}}),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 o=this.$refs.chart.parentNode,{height:n,width:m}=o.getBoundingClientRect();let l=null,t=0;this.FINAL_CONFIG.chart.title.show&&(l=this.$refs.chartTitle,t=l.getBoundingClientRect().height);let g=null,I=0;this.FINAL_CONFIG.chart.zoom.show&&this.maxX>6&&this.isDataset&&(g=this.$refs.chartSlicer.$el,I=g.getBoundingClientRect().height);let u=null,f=0;this.FINAL_CONFIG.chart.legend.show&&(u=this.$refs.chartLegend,f=u.getBoundingClientRect().height),this.height=n-t-f-I,this.width=m,this.viewBox=`0 0 ${this.width<0?10:this.width} ${this.height<0?10:this.height}`,this.convertSizes(),new ResizeObserver(_=>{for(const y of _)l&&(t=l.getBoundingClientRect().height),g&&(I=g.getBoundingClientRect().height),u&&(f=u.getBoundingClientRect().height),this.height=y.contentBoxSize[0].blockSize-t-f-I-24,this.width=y.contentBoxSize[0].inlineSize,this.viewBox=`0 0 ${this.width<0?10:this.width} ${this.height<0?10:this.height}`,this.convertSizes()}).observe(o)}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},methods:{abbreviate:d.abbreviate,assignStackRatios:d.assignStackRatios,applyDataLabel:d.applyDataLabel,calculateNiceScale:d.calculateNiceScale,checkNaN:d.checkNaN,createSmoothPath:d.createSmoothPath,isSafeValue:d.isSafeValue,treeShake:d.treeShake,shiftHue:d.shiftHue,pdf:B.pdf,img:v.saveAsImage,convertColorToHex:d.convertColorToHex,convertConfigColors:d.convertConfigColors,convertCustomPalette:d.convertCustomPalette,downloadCsv:d.downloadCsv,createCsvContent:d.createCsvContent,adaptColorToBackground:d.adaptColorToBackground,calcLinearProgression:d.calcLinearProgression,useMouse:G.useMouse,closestDecimal:d.closestDecimal,dataLabel:d.dataLabel,isFunction:d.isFunction,functionReturnsString:d.functionReturnsString,error:d.error,objectIsEmpty:d.objectIsEmpty,createTSpans:d.createTSpans,useNestedProp:p.useNestedProp,translateSize:d.translateSize,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 o={x:r[0].x,y:this.zero},n={x:r.at(-1).x,y:this.zero},m=[];return r.forEach(l=>{m.push(`${l.x},${l.y} `)}),[o.x,o.y,...m,n.x,n.y].toString()},createIndividualArea(r,o){if(!r[0])return[-10,-10,"",-10,-10];const n={x:r[0]?r[0].x:Math.min(...r.filter(t=>!!t).map(t=>t.x)),y:o},m={x:r.at(-1)?r.at(-1).x:Math.min(...r.filter(t=>!!t).map(t=>t.x)),y:o},l=[];return r.filter(t=>!!t).forEach(t=>{l.push(`${t.x},${t.y} `)}),[n.x,n.y,...l,m.x,m.y].toString()},createStar:d.createStar,createPolygonPath:d.createPolygonPath,fillArray(r,o){let n=Array(r).fill(0);for(let m=0;m<o.length&&m<r;m+=1)n[m]=o[m];return n},refreshSlicer(){this.slicer={start:0,end:Math.max(...this.dataset.map(r=>r.series.length))},this.slicerStep+=1},calcRectHeight(r){return r.value>=0?this.zero-r.y<=0?1e-5:this.zero-r.y:r.y-this.zero<=0?1e-5:r.y-this.zero},calcIndividualHeight(r){return r.value>=0?r.zeroPosition-r.y<=0?1e-5:r.zeroPosition-r.y: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:r.zeroPosition},canShowValue(r){return![null,void 0,NaN].includes(r)},findClosestValue(r,o){let n=o[0],m=Math.abs(r-o[0]);for(let l=1;l<o.length;l+=1){const t=Math.abs(r-o[l]);t<m&&o[l]<r&&(n=o[l],m=t)}return n},ratioToMax(r){return r/this.absoluteMax},selectX(r){this.$emit("selectX",{dataset:this.relativeDataset.map(o=>({name:o.name,value:[null,void 0,NaN].includes(o.absoluteValues[r])?null:o.absoluteValues[r],color:o.color,type:o.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(o=>o!==r.id);else{if(this.segregatedSeries.length+1===this.safeDataset.length)return;this.segregatedSeries.push(r.id)}this.$emit("selectLegend",this.relativeDataset.map(o=>({name:o.name,values:o.absoluteValues,color:o.color,type:o.type}))),this.segregateStep+=1},toggleTooltipVisibility(r,o=null){this.isTooltip=r,r?this.selectedSerieIndex=o:this.selectedSerieIndex=null},toggleFullscreen(r){this.isFullscreen=r,this.step+=1},showSpinnerPdf(){this.isPrinting=!0},generatePdf(){this.showSpinnerPdf(),clearTimeout(this.__to__),this.__to__=setTimeout(()=>{this.pdf({domElement:document.getElementById(`vue-ui-xy_${this.uniqueId}`),fileName:this.FINAL_CONFIG.chart.title.text||"vue-ui-xy"}).finally(()=>{this.isPrinting=!1})},100)},generateCsv(){const r=[[this.FINAL_CONFIG.chart.title.text],[this.FINAL_CONFIG.chart.title.subtitle.text],[""]],o=["",...this.table.head.map(t=>t.label)],n=this.table.body,m=r.concat([o]).concat(n),l=this.createCsvContent(m);this.downloadCsv({csvContent:l,title:this.FINAL_CONFIG.chart.title.text||"vue-ui-xy"})},showSpinnerImage(){this.isImaging=!0},generateImage(){this.showSpinnerImage(),clearTimeout(this.__to__),this.__to__=setTimeout(()=>{this.img({domElement:document.getElementById(`vue-ui-xy_${this.uniqueId}`),fileName:this.FINAL_CONFIG.chart.title.text||"vue-ui-xy",format:"png"}).finally(()=>{this.isImaging=!1})},100)}}},W=["id"],X=["viewBox"],U={key:0},Z={class:"vue-ui-xy-grid"},J=["stroke","x1","x2","y1","y2"],K=["stroke","x1","x2","y1","y2"],Q={key:1},j=["x1","x2","y1","y2","stroke"],$=["x1","x2","y1","y2","stroke"],ee=["x1","x2","y1","y2","stroke"],te={key:3},le=["x1","x2","y1","y2","stroke"],ae=["id"],re=["stop-color"],ie=["stop-color"],oe=["stop-color"],se=["id"],ne=["stop-color"],ce=["stop-color"],he=["stop-color"],de=["id"],ue=["stop-color"],me=["stop-color"],ge=["id"],Ne=["stop-color"],fe=["stop-color"],be=["id"],ke=["stop-color"],Ie=["stop-color"],Fe=["x","y","height","width","rx","fill","stroke","stroke-width"],_e=["width","x","y"],ye={key:0},xe=["id"],Ce=["fill"],Se=["x1","x2","y1","y2","stroke","marker-end"],Ae=["x","y","font-size","fill"],Le=["stroke","x1","x2","y1","y2"],we=["width","x","y"],Oe={style:{width:"100%"}},ve={key:0},Ge=["id"],pe=["fill"],Be=["x1","x2","y1","y2","stroke","marker-end"],Ee=["x","y","font-size","fill"],ze=["d","stroke","stroke-width","stroke-dasharray"],Ve={key:1},Pe=["x1","x2","y1","y2","stroke","stroke-width","stroke-dasharray"],Te={key:0},Me=["d","fill"],De=["d","fill"],Re=["d","stroke","stroke-width","stroke-dasharray"],He={key:2},Ye=["x1","x2","y1","y2","stroke","stroke-width","stroke-dasharray"],qe=["width","x","y"],We={style:{width:"100%"}},Xe={key:3},Ue=["id"],Ze=["fill"],Je=["x1","x2","y1","y2","stroke","marker-end"],Ke=["x","y","font-size","fill"],Qe={key:2},je=["x","y","font-size","fill"],$e=["x","y","font-size","fill","font-weight"],et={key:3},tt=["x","y","font-size","fill"],lt=["x","y"],at=["x","y"],rt={key:4},it=["x","y","font-size","fill"],ot=["x","y"],st=["x","y"],nt={key:5},ct=["x","y","height","width","fill"],ht=["x","y","width"],dt=["y","width","height","fill"],ut=["x","y","width","height","fill"],mt=["x","y","font-size","fill","innerHTML"],gt=["x","y","font-size","fill","innerHTML"],Nt=["x","y","font-size","fill","innerHTML"],ft=["x","y","font-size","fill","innerHTML"],bt={key:6},kt=["x1","x2","y1","y2","stroke","stroke-width"],It=["fill","font-size","transform"],Ft=["x1","x2","y1","y2","stroke"],_t=["x","y","font-size","fill"],yt=["x1","x2","y1","y2","stroke"],xt=["x","y","font-size","fill"],Ct=["x","y","width","height","fill","onMouseenter"],St=["font-size","fill","transform"],At=["x","y","font-size","fill"],Lt={key:8},wt=["text-anchor","font-size","fill","transform"],Ot=["x","y","height","width","fill","onMouseenter","onClick"],vt={key:9},Gt=["x1","x2","y1","y2","stroke","stroke-width","stroke-dasharray"],pt={key:10},Bt=["x","y"],Et=["cx","cy","r","fill"],zt={key:3,class:"vue-data-ui-watermark"},Vt=["onClick"],Pt={key:0,viewBox:"0 0 20 12",height:"14",width:"20"},Tt=["fill"],Mt={key:1,viewBox:"0 0 12 12",height:"14",width:"14"},Dt=["fill"],Rt={key:7,ref:"chartLegend"},Ht={style:{display:"flex","flex-direction":"row",gap:"6px","align-items":"center","padding-left":"6px"},"data-html2canvas-ignore":""},Yt=["innerHTML"];function qt(r,o,n,m,l,t){const g=e.resolveComponent("Title"),I=e.resolveComponent("UserOptions"),u=e.resolveComponent("Shape"),f=e.resolveComponent("Skeleton"),S=e.resolveComponent("Slicer"),_=e.resolveComponent("Tooltip"),y=e.resolveComponent("BaseIcon"),C=e.resolveComponent("TableSparkline"),N=e.resolveComponent("DataTable"),F=e.resolveComponent("Accordion");return e.openBlock(),e.createElementBlock("div",{id:`vue-ui-xy_${l.uniqueId}`,class:e.normalizeClass(`vue-ui-xy ${l.isFullscreen?"vue-data-ui-wrapper-fullscreen":""} ${t.FINAL_CONFIG.useCssAnimation?"":"vue-ui-dna"}`),ref:"chart",style:e.normalizeStyle(`background:${t.FINAL_CONFIG.chart.backgroundColor}; color:${t.FINAL_CONFIG.chart.color};width:100%;${t.FINAL_CONFIG.chart.title.text?"":"padding-top:36px"};font-family:${t.FINAL_CONFIG.chart.fontFamily};${t.FINAL_CONFIG.responsive?"height: 100%":""}`)},[t.FINAL_CONFIG.chart.title.show?(e.openBlock(),e.createElementBlock("div",{key:0,ref:"chartTitle",class:"vue-ui-xy-title",style:e.normalizeStyle(`font-family:${t.FINAL_CONFIG.chart.fontFamily}`)},[e.createVNode(g,{config:{title:{cy:"xy-div-title",...t.FINAL_CONFIG.chart.title},subtitle:{cy:"xy-div-subtitle",...t.FINAL_CONFIG.chart.title.subtitle}}},null,8,["config"])],4)):e.createCommentVNode("",!0),t.FINAL_CONFIG.chart.userOptions.show&&t.isDataset?(e.openBlock(),e.createBlock(I,{ref:"defails",key:`user_options_${l.step}`,backgroundColor:t.FINAL_CONFIG.chart.backgroundColor,color:t.FINAL_CONFIG.chart.color,isPrinting:l.isPrinting,isImaging:l.isImaging,uid:l.uniqueId,hasTooltip:t.FINAL_CONFIG.chart.userOptions.buttons.tooltip&&t.FINAL_CONFIG.chart.tooltip.show,hasPdf:t.FINAL_CONFIG.chart.userOptions.buttons.pdf,hasXls:t.FINAL_CONFIG.chart.userOptions.buttons.csv,hasImg:t.FINAL_CONFIG.chart.userOptions.buttons.img,hasLabel:t.FINAL_CONFIG.chart.userOptions.buttons.labels,hasTable:t.FINAL_CONFIG.chart.userOptions.buttons.table,hasStack:n.dataset.length>1&&t.FINAL_CONFIG.chart.userOptions.buttons.stack,hasFullscreen:t.FINAL_CONFIG.chart.userOptions.buttons.fullscreen,isStacked:l.mutableConfig.isStacked,isFullscreen:l.isFullscreen,chartElement:r.$refs.chart,isTooltip:l.mutableConfig.showTooltip,titles:{...t.FINAL_CONFIG.chart.userOptions.buttonTitles},onToggleFullscreen:t.toggleFullscreen,onGeneratePdf:t.generatePdf,onGenerateCsv:t.generateCsv,onGenerateImage:t.generateImage,onToggleTable:t.toggleTable,onToggleLabels:t.toggleLabels,onToggleStack:t.toggleStack,onToggleTooltip:t.toggleTooltip},e.createSlots({_:2},[r.$slots.optionTooltip?{name:"optionTooltip",fn:e.withCtx(()=>[e.renderSlot(r.$slots,"optionTooltip",{},void 0,!0)]),key:"0"}:void 0,r.$slots.optionPdf?{name:"optionPdf",fn:e.withCtx(()=>[e.renderSlot(r.$slots,"optionPdf",{},void 0,!0)]),key:"1"}:void 0,r.$slots.optionCsv?{name:"optionCsv",fn:e.withCtx(()=>[e.renderSlot(r.$slots,"optionCsv",{},void 0,!0)]),key:"2"}:void 0,r.$slots.optionImg?{name:"optionImg",fn:e.withCtx(()=>[e.renderSlot(r.$slots,"optionImg",{},void 0,!0)]),key:"3"}:void 0,r.$slots.optionTable?{name:"optionTable",fn:e.withCtx(()=>[e.renderSlot(r.$slots,"optionTable",{},void 0,!0)]),key:"4"}:void 0,r.$slots.optionLabels?{name:"optionLabels",fn:e.withCtx(()=>[e.renderSlot(r.$slots,"optionLabels",{},void 0,!0)]),key:"5"}:void 0,r.$slots.optionStack?{name:"optionStack",fn:e.withCtx(()=>[e.renderSlot(r.$slots,"optionStack",{},void 0,!0)]),key:"6"}:void 0,r.$slots.optionFullscreen?{name:"optionFullscreen",fn:e.withCtx(({toggleFullscreen:a,isFullscreen:s})=>[e.renderSlot(r.$slots,"optionFullscreen",e.normalizeProps(e.guardReactiveProps({toggleFullscreen:a,isFullscreen:s})),void 0,!0)]),key:"7"}:void 0]),1032,["backgroundColor","color","isPrinting","isImaging","uid","hasTooltip","hasPdf","hasXls","hasImg","hasLabel","hasTable","hasStack","hasFullscreen","isStacked","isFullscreen","chartElement","isTooltip","titles","onToggleFullscreen","onGeneratePdf","onGenerateCsv","onGenerateImage","onToggleTable","onToggleLabels","onToggleStack","onToggleTooltip"])):e.createCommentVNode("",!0),t.isDataset?(e.openBlock(),e.createElementBlock("svg",{key:2,xmlns:"http://www.w3.org/2000/svg",class:e.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:e.normalizeStyle(`background:${t.FINAL_CONFIG.chart.backgroundColor}; color:${t.FINAL_CONFIG.chart.color}; font-family:${t.FINAL_CONFIG.chart.fontFamily}`)},[t.maxSeries>0?(e.openBlock(),e.createElementBlock("g",U,[e.createElementVNode("g",Z,[t.FINAL_CONFIG.chart.grid.labels.xAxis.showBaseline?(e.openBlock(),e.createElementBlock("line",{key:0,stroke:t.FINAL_CONFIG.chart.grid.stroke,"stroke-width":"1",x1:t.drawingArea.left,x2:t.drawingArea.right,y1:t.drawingArea.bottom,y2:t.drawingArea.bottom,"stroke-linecap":"round"},null,8,J)):e.createCommentVNode("",!0),l.mutableConfig.useIndividualScale?t.FINAL_CONFIG.chart.grid.showHorizontalLines?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:2},e.renderList(t.allScales,a=>(e.openBlock(),e.createElementBlock("g",null,[a.id===l.selectedScale&&a.yLabels.length?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(a.yLabels,s=>(e.openBlock(),e.createElementBlock("line",{x1:t.drawingArea.left,x2:t.drawingArea.right,y1:s.y,y2:s.y,stroke:a.color,"stroke-width":.5,"stroke-linecap":"round"},null,8,$))),256)):a.yLabels.length?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:1},e.renderList(a.yLabels,s=>(e.openBlock(),e.createElementBlock("line",{x1:t.drawingArea.left,x2:t.drawingArea.right,y1:s.y,y2:s.y,stroke:t.FINAL_CONFIG.chart.grid.stroke,"stroke-width":.5,"stroke-linecap":"round"},null,8,ee))),256)):e.createCommentVNode("",!0)]))),256)):e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[t.FINAL_CONFIG.chart.grid.labels.yAxis.showBaseline?(e.openBlock(),e.createElementBlock("line",{key:0,stroke:t.FINAL_CONFIG.chart.grid.stroke,"stroke-width":"1",x1:t.drawingArea.left,x2:t.drawingArea.left,y1:t.drawingArea.top,y2:t.drawingArea.bottom,"stroke-linecap":"round"},null,8,K)):e.createCommentVNode("",!0),t.FINAL_CONFIG.chart.grid.showHorizontalLines?(e.openBlock(),e.createElementBlock("g",Q,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.yLabels,a=>(e.openBlock(),e.createElementBlock("line",{x1:t.drawingArea.left,x2:t.drawingArea.right,y1:a.y,y2:a.y,stroke:t.FINAL_CONFIG.chart.grid.stroke,"stroke-width":.5,"stroke-linecap":"round"},null,8,j))),256))])):e.createCommentVNode("",!0)],64)),t.FINAL_CONFIG.chart.grid.showVerticalLines?(e.openBlock(),e.createElementBlock("g",te,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.maxSeries+1,(a,s)=>(e.openBlock(),e.createElementBlock("line",{key:`grid_vertical_line_${s}`,x1:t.drawingArea.width/t.maxSeries*s+t.drawingArea.left,x2:t.drawingArea.width/t.maxSeries*s+t.drawingArea.left,y1:t.drawingArea.top,y2:t.drawingArea.bottom,"stroke-width":"0.5",stroke:t.FINAL_CONFIG.chart.grid.stroke},null,8,le))),128))])):e.createCommentVNode("",!0)]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.barSet,(a,s)=>(e.openBlock(),e.createElementBlock("defs",{key:`def_rect_${s}`},[e.createElementVNode("linearGradient",{id:`rectGradient_pos_${s}_${l.uniqueId}`,x2:"0%",y2:"100%"},[e.createElementVNode("stop",{offset:"0%","stop-color":a.color},null,8,re),e.createElementVNode("stop",{offset:"62%","stop-color":`${t.shiftHue(a.color,.02)}DE`},null,8,ie),e.createElementVNode("stop",{offset:"100%","stop-color":`${t.shiftHue(a.color,.05)}66`},null,8,oe)],8,ae),e.createElementVNode("linearGradient",{id:`rectGradient_neg_${s}_${l.uniqueId}`,x2:"0%",y2:"100%"},[e.createElementVNode("stop",{offset:"0%","stop-color":`${t.shiftHue(a.color,.05)}66`},null,8,ne),e.createElementVNode("stop",{offset:"38%","stop-color":`${t.shiftHue(a.color,.02)}DE`},null,8,ce),e.createElementVNode("stop",{offset:"100%","stop-color":a.color},null,8,he)],8,se)]))),128)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.plotSet,(a,s)=>(e.openBlock(),e.createElementBlock("defs",{key:`def_plot_${s}`},[e.createElementVNode("radialGradient",{id:`plotGradient_${s}_${l.uniqueId}`,cx:"50%",cy:"50%",r:"50%",fx:"50%",fy:"50%"},[e.createElementVNode("stop",{offset:"0%","stop-color":`${t.shiftHue(a.color,.05)}`},null,8,ue),e.createElementVNode("stop",{offset:"100%","stop-color":a.color},null,8,me)],8,de)]))),128)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.lineSet,(a,s)=>(e.openBlock(),e.createElementBlock("defs",{key:`def_line_${s}`},[e.createElementVNode("radialGradient",{id:`lineGradient_${s}_${l.uniqueId}`,cx:"50%",cy:"50%",r:"50%",fx:"50%",fy:"50%"},[e.createElementVNode("stop",{offset:"0%","stop-color":`${t.shiftHue(a.color,.05)}`},null,8,Ne),e.createElementVNode("stop",{offset:"100%","stop-color":a.color},null,8,fe)],8,ge),e.createElementVNode("linearGradient",{id:`areaGradient_${s}_${l.uniqueId}`,x1:"0%",x2:"100%",y1:"0%",y2:"0%"},[e.createElementVNode("stop",{offset:"0%","stop-color":`${t.shiftHue(a.color,.03)}${l.opacity[t.FINAL_CONFIG.line.area.opacity]}`},null,8,ke),e.createElementVNode("stop",{offset:"100%","stop-color":`${a.color}${l.opacity[t.FINAL_CONFIG.line.area.opacity]}`},null,8,Ie)],8,be)]))),128)),t.barSet.length?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(t.barSet,(a,s)=>(e.openBlock(),e.createElementBlock("g",{key:`serie_bar_${s}`,class:e.normalizeClass(`serie_bar_${s}`),style:e.normalizeStyle(`opacity:${l.selectedScale?l.selectedScale===a.id?1:.2:1};transition:opacity 0.2s ease-in-out`)},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.plots,(i,h)=>(e.openBlock(),e.createElementBlock("g",{key:`bar_plot_${s}_${h}`},[t.canShowValue(i.value)?(e.openBlock(),e.createElementBlock("rect",{key:0,x:t.calcRectX(i),y:l.mutableConfig.useIndividualScale?t.calcIndividualRectY(i):t.calcRectY(i),height:l.mutableConfig.useIndividualScale?Math.abs(t.calcIndividualHeight(i)):Math.abs(t.calcRectHeight(i)),width:t.calcRectWidth()-(l.mutableConfig.useIndividualScale&&l.mutableConfig.isStacked?0:t.barPeriodGap)<0?1e-5:t.calcRectWidth()-(l.mutableConfig.useIndividualScale&&l.mutableConfig.isStacked?0:t.barPeriodGap),rx:t.FINAL_CONFIG.bar.borderRadius,fill:t.FINAL_CONFIG.bar.useGradient?i.value>=0?`url(#rectGradient_pos_${s}_${l.uniqueId})`:`url(#rectGradient_neg_${s}_${l.uniqueId})`:a.color,stroke:t.FINAL_CONFIG.bar.border.useSerieColor?a.color:t.FINAL_CONFIG.bar.border.stroke,"stroke-width":t.FINAL_CONFIG.bar.border.strokeWidth},null,8,Fe)):e.createCommentVNode("",!0),i.comment&&t.FINAL_CONFIG.chart.comments.show?(e.openBlock(),e.createElementBlock("foreignObject",{key:1,style:{overflow:"visible"},height:"12",width:(t.calcRectWidth()-(l.mutableConfig.useIndividualScale&&l.mutableConfig.isStacked?0:t.barPeriodGap)<0?1e-5:t.calcRectWidth()-(l.mutableConfig.useIndividualScale&&l.mutableConfig.isStacked?0:t.barPeriodGap)/2)+t.FINAL_CONFIG.chart.comments.width,x:t.calcRectX(i)-t.FINAL_CONFIG.chart.comments.width/2+t.FINAL_CONFIG.chart.comments.offsetX,y:i.y+t.FINAL_CONFIG.chart.comments.offsetY+6},[e.renderSlot(r.$slots,"plot-comment",{plot:{...i,color:a.color}},void 0,!0)],8,_e)):e.createCommentVNode("",!0)]))),128)),Object.hasOwn(a,"useProgression")&&a.useProgression===!0&&!isNaN(t.calcLinearProgression(a.plots).trend)?(e.openBlock(),e.createElementBlock("g",ye,[e.createElementVNode("defs",null,[e.createElementVNode("marker",{id:`bar_arrow_${s}`,markerWidth:7,markerHeight:7,refX:"0",refY:7/2,orient:"auto"},[e.createElementVNode("polygon",{points:`0 0, 7 ${7/2}, 0 7`,fill:a.color},null,8,Ce)],8,xe)]),a.plots.length>1?(e.openBlock(),e.createElementBlock("line",{key:0,x1:t.calcLinearProgression(a.plots).x1,x2:t.calcLinearProgression(a.plots).x2,y1:t.calcLinearProgression(a.plots).y1,y2:t.calcLinearProgression(a.plots).y2,"stroke-width":1,stroke:a.color,"stroke-dasharray":2,"marker-end":`url(#bar_arrow_${s})`},null,8,Se)):e.createCommentVNode("",!0),a.plots.length>1?(e.openBlock(),e.createElementBlock("text",{key:1,"text-anchor":"middle",x:t.calcLinearProgression(a.plots).x2,y:t.calcLinearProgression(a.plots).y2-6,"font-size":l.fontSizes.plotLabels,fill:a.color},e.toDisplayString(t.dataLabel({v:t.calcLinearProgression(a.plots).trend*100,s:"%",r:2})),9,Ae)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)],6))),128)):e.createCommentVNode("",!0),!l.mutableConfig.useIndividualScale&&t.FINAL_CONFIG.chart.grid.labels.zeroLine.show?(e.openBlock(),e.createElementBlock("line",{key:1,stroke:t.FINAL_CONFIG.chart.grid.stroke,"stroke-width":"1",x1:t.drawingArea.left,x2:t.drawingArea.right,y1:t.zero,y2:t.zero,"stroke-linecap":"round"},null,8,Le)):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.plotSet,(a,s)=>(e.openBlock(),e.createElementBlock("g",{key:`serie_plot_${s}`,class:e.normalizeClass(`serie_plot_${s}`),style:e.normalizeStyle(`opacity:${l.selectedScale?l.selectedScale===a.id?1:.2:1};transition:opacity 0.2s ease-in-out`)},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.plots,(i,h)=>(e.openBlock(),e.createElementBlock("g",{key:`circle_plot_${s}_${h}`},[t.canShowValue(i.value)?(e.openBlock(),e.createBlock(u,{key:0,shape:["triangle","square","diamond","pentagon","hexagon","star"].includes(a.shape)?a.shape:"circle",color:t.FINAL_CONFIG.plot.useGradient?`url(#plotGradient_${s}_${l.uniqueId})`:a.color,plot:{x:i.x,y:i.y},radius:l.selectedSerieIndex!==null&&l.selectedSerieIndex===h?(l.plotRadii.plot||6)*1.5:l.plotRadii.plot||6,stroke:t.FINAL_CONFIG.chart.backgroundColor,strokeWidth:.5},null,8,["shape","color","plot","radius","stroke"])):e.createCommentVNode("",!0),i.comment&&t.FINAL_CONFIG.chart.comments.show?(e.openBlock(),e.createElementBlock("foreignObject",{key:1,style:{overflow:"visible"},height:"12",width:t.FINAL_CONFIG.chart.comments.width,x:i.x-t.FINAL_CONFIG.chart.comments.width/2+t.FINAL_CONFIG.chart.comments.offsetX,y:i.y+t.FINAL_CONFIG.chart.comments.offsetY+6},[e.createElementVNode("div",Oe,[e.renderSlot(r.$slots,"plot-comment",{plot:{...i,color:a.color}},void 0,!0)])],8,we)):e.createCommentVNode("",!0)]))),128)),Object.hasOwn(a,"useProgression")&&a.useProgression===!0&&!isNaN(t.calcLinearProgression(a.plots).trend)?(e.openBlock(),e.createElementBlock("g",ve,[e.createElementVNode("defs",null,[e.createElementVNode("marker",{id:`plot_arrow_${s}`,markerWidth:7,markerHeight:7,refX:"0",refY:7/2,orient:"auto"},[e.createElementVNode("polygon",{points:`0 0, 7 ${7/2}, 0 7`,fill:a.color},null,8,pe)],8,Ge)]),a.plots.length>1?(e.openBlock(),e.createElementBlock("line",{key:0,x1:t.calcLinearProgression(a.plots).x1,x2:t.calcLinearProgression(a.plots).x2,y1:t.calcLinearProgression(a.plots).y1,y2:t.calcLinearProgression(a.plots).y2,"stroke-width":1,stroke:a.color,"stroke-dasharray":2,"marker-end":`url(#plot_arrow_${s})`},null,8,Be)):e.createCommentVNode("",!0),a.plots.length>1?(e.openBlock(),e.createElementBlock("text",{key:1,"text-anchor":"middle",x:t.calcLinearProgression(a.plots).x2,y:t.calcLinearProgression(a.plots).y2-6,"font-size":l.fontSizes.plotLabels,fill:a.color},e.toDisplayString(t.dataLabel({v:t.calcLinearProgression(a.plots).trend*100,s:"%",r:2})),9,Ee)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)],6))),128)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.lineSet,(a,s)=>(e.openBlock(),e.createElementBlock("g",{key:`serie_line_${s}`,class:e.normalizeClass(`serie_line_${s}`),style:e.normalizeStyle(`opacity:${l.selectedScale?l.selectedScale===a.id?1:.2:1};transition:opacity 0.2s ease-in-out`)},[a.smooth&&a.plots.length>1?(e.openBlock(),e.createElementBlock("path",{key:0,d:`M${a.curve}`,stroke:t.FINAL_CONFIG.chart.backgroundColor,"stroke-width":t.FINAL_CONFIG.line.strokeWidth+1,"stroke-dasharray":a.dashed?t.FINAL_CONFIG.line.strokeWidth*2:0,fill:"none"},null,8,ze)):a.plots.length>1?(e.openBlock(),e.createElementBlock("g",Ve,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.plots,(i,h)=>(e.openBlock(),e.createElementBlock("g",{key:`line_${s}_${h}`},[i&&h<a.plots.length-1&&a.plots[h+1]&&t.canShowValue(i.value)&&t.canShowValue(a.plots[h+1].value)?(e.openBlock(),e.createElementBlock("line",{key:0,x1:i.x,x2:a.plots[h+1].x,y1:i.y,y2:a.plots[h+1].y,stroke:t.FINAL_CONFIG.chart.backgroundColor,"stroke-width":t.FINAL_CONFIG.line.strokeWidth+1,"stroke-dasharray":a.dashed?t.FINAL_CONFIG.line.strokeWidth*2:0,"stroke-linejoin":"round","stroke-linecap":"round"},null,8,Pe)):e.createCommentVNode("",!0)]))),128))])):e.createCommentVNode("",!0)],6))),128)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.lineSet,(a,s)=>(e.openBlock(),e.createElementBlock("g",{key:`serie_line_${s}`,class:e.normalizeClass(`serie_line_${s}`),style:e.normalizeStyle(`opacity:${l.selectedScale?l.selectedScale===a.id?1:.2:1};transition:opacity 0.2s ease-in-out`)},[a.useArea&&a.plots.length>1?(e.openBlock(),e.createElementBlock("g",Te,[a.smooth?(e.openBlock(),e.createElementBlock("path",{key:0,d:`M ${a.plots[0]?a.plots[0].x:Math.min(...a.plots.filter(i=>!!i).map(i=>i.x))},${l.mutableConfig.isStacked?t.drawingArea.bottom-a.yOffset:t.drawingArea.bottom} ${a.curve} L ${a.plots.at(-1)?a.plots.at(-1).x:t.drawingArea.left+t.slot.line*s+t.slot.line/2},${l.mutableConfig.isStacked?t.drawingArea.bottom-a.yOffset:t.drawingArea.bottom} Z`,fill:t.FINAL_CONFIG.line.area.useGradient?`url(#areaGradient_${s}_${l.uniqueId})`:`${a.color}${l.opacity[t.FINAL_CONFIG.line.area.opacity]}`},null,8,Me)):(e.openBlock(),e.createElementBlock("path",{key:1,d:`M${a.area}Z`,fill:t.FINAL_CONFIG.line.area.useGradient?`url(#areaGradient_${s}_${l.uniqueId})`:`${a.color}${l.opacity[t.FINAL_CONFIG.line.area.opacity]}`},null,8,De))])):e.createCommentVNode("",!0),a.smooth&&a.plots.length>1?(e.openBlock(),e.createElementBlock("path",{key:1,d:`M${a.curve}`,stroke:a.color,"stroke-width":t.FINAL_CONFIG.line.strokeWidth,"stroke-dasharray":a.dashed?t.FINAL_CONFIG.line.strokeWidth*2:0,fill:"none"},null,8,Re)):a.plots.length>1?(e.openBlock(),e.createElementBlock("g",He,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.plots,(i,h)=>(e.openBlock(),e.createElementBlock("g",{key:`line_${s}_${h}`},[i&&h<a.plots.length-1&&a.plots[h+1]&&t.canShowValue(i.value)&&t.canShowValue(a.plots[h+1].value)?(e.openBlock(),e.createElementBlock("line",{key:0,x1:i.x,x2:a.plots[h+1].x,y1:i.y,y2:a.plots[h+1].y,stroke:a.color,"stroke-width":t.FINAL_CONFIG.line.strokeWidth,"stroke-dasharray":a.dashed?t.FINAL_CONFIG.line.strokeWidth*2:0,"stroke-linejoin":"round","stroke-linecap":"round"},null,8,Ye)):e.createCommentVNode("",!0)]))),128))])):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.plots,(i,h)=>(e.openBlock(),e.createElementBlock("g",{key:`circle_line_${s}_${h}`},[i&&t.canShowValue(i.value)?(e.openBlock(),e.createBlock(u,{key:0,shape:["triangle","square","diamond","pentagon","hexagon","star"].includes(a.shape)?a.shape:"circle",color:t.FINAL_CONFIG.line.useGradient?`url(#lineGradient_${s}_${l.uniqueId})`:a.color,plot:{x:i.x,y:i.y},radius:l.selectedSerieIndex!==null&&l.selectedSerieIndex===h?(l.plotRadii.line||6)*1.5:l.plotRadii.line,stroke:t.FINAL_CONFIG.chart.backgroundColor,strokeWidth:.5},null,8,["shape","color","plot","radius","stroke"])):e.createCommentVNode("",!0),i.comment&&t.FINAL_CONFIG.chart.comments.show?(e.openBlock(),e.createElementBlock("foreignObject",{key:1,style:{overflow:"visible"},height:"12",width:t.FINAL_CONFIG.chart.comments.width,x:i.x-t.FINAL_CONFIG.chart.comments.width/2+t.FINAL_CONFIG.chart.comments.offsetX,y:i.y+t.FINAL_CONFIG.chart.comments.offsetY+6},[e.createElementVNode("div",We,[e.renderSlot(r.$slots,"plot-comment",{plot:{...i,color:a.color}},void 0,!0)])],8,qe)):e.createCommentVNode("",!0)]))),128)),Object.hasOwn(a,"useProgression")&&a.useProgression===!0&&!isNaN(t.calcLinearProgression(a.plots).trend)?(e.openBlock(),e.createElementBlock("g",Xe,[e.createElementVNode("defs",null,[e.createElementVNode("marker",{id:`line_arrow_${s}`,markerWidth:7,markerHeight:7,refX:"0",refY:7/2,orient:"auto"},[e.createElementVNode("polygon",{points:`0 0, 7 ${7/2}, 0 7`,fill:a.color},null,8,Ze)],8,Ue)]),a.plots.length>1?(e.openBlock(),e.createElementBlock("line",{key:0,x1:t.calcLinearProgression(a.plots).x1,x2:t.calcLinearProgression(a.plots).x2,y1:t.calcLinearProgression(a.plots).y1,y2:t.calcLinearProgression(a.plots).y2,"stroke-width":1,stroke:a.color,"stroke-dasharray":2,"marker-end":`url(#line_arrow_${s})`},null,8,Je)):e.createCommentVNode("",!0),a.plots.length>1?(e.openBlock(),e.createElementBlock("text",{key:1,"text-anchor":"middle",x:t.calcLinearProgression(a.plots).x2,y:t.calcLinearProgression(a.plots).y2-6,"font-size":l.fontSizes.plotLabels,fill:a.color},e.toDisplayString(t.dataLabel({v:t.calcLinearProgression(a.plots).trend*100,s:"%",r:2})),9,Ke)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)],6))),128)),(t.FINAL_CONFIG.bar.labels.show||t.FINAL_CONFIG.bar.serieName.show)&&l.mutableConfig.dataLabels.show?(e.openBlock(),e.createElementBlock("g",Qe,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.barSet,(a,s)=>(e.openBlock(),e.createElementBlock("g",{key:`xLabel_bar_${s}`,class:e.normalizeClass(`xLabel_bar_${s}`),style:e.normalizeStyle(`opacity:${l.selectedScale?l.selectedScale===a.id?1:.2:1};transition:opacity 0.2s ease-in-out`)},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.plots,(i,h)=>(e.openBlock(),e.createElementBlock("g",{key:`xLabel_bar_${s}_${h}`},[i&&(!Object.hasOwn(a,"dataLabels")||a.dataLabels===!0)&&t.FINAL_CONFIG.bar.labels.show?(e.openBlock(),e.createElementBlock("text",{key:0,x:l.mutableConfig.useIndividualScale&&l.mutableConfig.isStacked?i.x+t.slot.line/2:t.calcRectX(i)+t.calcRectWidth()/2-t.barPeriodGap/2,y:i.y+(i.value>0?t.FINAL_CONFIG.bar.labels.offsetY:-t.FINAL_CONFIG.bar.labels.offsetY*3),"text-anchor":"middle","font-size":l.fontSizes.plotLabels,fill:t.FINAL_CONFIG.bar.labels.color},e.toDisplayString(t.canShowValue(i.value)?t.applyDataLabel(t.FINAL_CONFIG.bar.labels.formatter,i.value,t.dataLabel({p:t.FINAL_CONFIG.chart.labels.prefix,v:i.value,s:t.FINAL_CONFIG.chart.labels.suffix,r:t.FINAL_CONFIG.bar.labels.rounding}),{datapoint:i,serie:a}):""),9,je)):e.createCommentVNode("",!0),i&&t.FINAL_CONFIG.bar.serieName.show?(e.openBlock(),e.createElementBlock("text",{key:1,x:l.mutableConfig.useIndividualScale&&l.mutableConfig.isStacked?i.x+t.slot.line/2:i.x+t.calcRectWidth()*1.1,y:i.y+(i.value>0?t.FINAL_CONFIG.bar.serieName.offsetY:-t.FINAL_CONFIG.bar.serieName.offsetY*3),"text-anchor":"middle","font-size":l.fontSizes.plotLabels,fill:t.FINAL_CONFIG.bar.serieName.useSerieColor?a.color:t.FINAL_CONFIG.bar.serieName.color,"font-weight":t.FINAL_CONFIG.bar.serieName.bold?"bold":"normal"},e.toDisplayString(t.FINAL_CONFIG.bar.serieName.useAbbreviation?t.abbreviate({source:a.name,length:t.FINAL_CONFIG.bar.serieName.abbreviationSize}):a.name),9,$e)):e.createCommentVNode("",!0)]))),128))],6))),128))])):e.createCommentVNode("",!0),t.FINAL_CONFIG.plot.labels.show&&l.mutableConfig.dataLabels.show?(e.openBlock(),e.createElementBlock("g",et,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.plotSet,(a,s)=>(e.openBlock(),e.createElementBlock("g",{key:`xLabel_plot_${s}`,class:e.normalizeClass(`xLabel_plot_${s}`),style:e.normalizeStyle(`opacity:${l.selectedScale?l.selectedScale===a.id?1:.2:1};transition:opacity 0.2s ease-in-out`)},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.plots,(i,h)=>(e.openBlock(),e.createElementBlock("g",{key:`xLabel_plot_${s}_${h}`},[i&&!Object.hasOwn(a,"dataLabels")||a.dataLabels===!0?(e.openBlock(),e.createElementBlock("text",{key:0,x:i.x,y:i.y+t.FINAL_CONFIG.plot.labels.offsetY,"text-anchor":"middle","font-size":l.fontSizes.plotLabels,fill:t.FINAL_CONFIG.plot.labels.color},e.toDisplayString(t.canShowValue(i.value)?t.applyDataLabel(t.FINAL_CONFIG.plot.labels.formatter,i.value,t.dataLabel({p:t.FINAL_CONFIG.chart.labels.prefix,v:i.value,s:t.FINAL_CONFIG.chart.labels.suffix,r:t.FINAL_CONFIG.plot.labels.rounding}),{datapoint:i,serie:a}):""),9,tt)):e.createCommentVNode("",!0),i&&h===0&&a.useTag&&a.useTag==="start"?(e.openBlock(),e.createElementBlock("foreignObject",{key:1,x:i.x,y:i.y-20,height:24,width:"150",style:{overflow:"visible"}},[e.createElementVNode("div",{style:e.normalizeStyle(`padding: 3px; background:${a.color}${l.opacity[80]};color:${t.adaptColorToBackground(a.color)};width:fit-content;font-size:${l.fontSizes.plotLabels}px;border-radius: 2px;`)},e.toDisplayString(a.name),5)],8,lt)):e.createCommentVNode("",!0),i&&h===a.plots.length-1&&a.useTag&&a.useTag==="end"?(e.openBlock(),e.createElementBlock("foreignObject",{key:2,x:i.x-a.name.length*(l.fontSizes.plotLabels/2),y:i.y-20,height:24,width:"150",style:{overflow:"visible"}},[e.createElementVNode("div",{style:e.normalizeStyle(`padding: 3px; background:${a.color}${l.opacity[80]};color:${t.adaptColorToBackground(a.color)};width:fit-content;font-size:${l.fontSizes.plotLabels}px;border-radius: 2px;`)},e.toDisplayString(a.name),5)],8,at)):e.createCommentVNode("",!0)]))),128))],6))),128))])):e.createCommentVNode("",!0),t.FINAL_CONFIG.line.labels.show&&l.mutableConfig.dataLabels.show?(e.openBlock(),e.createElementBlock("g",rt,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.lineSet,(a,s)=>(e.openBlock(),e.createElementBlock("g",{key:`xLabel_line_${s}`,class:e.normalizeClass(`xLabel_line_${s}`),style:e.normalizeStyle(`opacity:${l.selectedScale?l.selectedScale===a.id?1:.2:1};transition:opacity 0.2s ease-in-out`)},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.plots,(i,h)=>(e.openBlock(),e.createElementBlock("g",{key:`xLabel_line_${s}_${h}`},[i&&!Object.hasOwn(a,"dataLabels")||a.dataLabels===!0?(e.openBlock(),e.createElementBlock("text",{key:0,x:i.x,y:i.y+(i.value>0?t.FINAL_CONFIG.line.labels.offsetY:-t.FINAL_CONFIG.line.labels.offsetY*3),"text-anchor":"middle","font-size":l.fontSizes.plotLabels,fill:t.FINAL_CONFIG.line.labels.color},e.toDisplayString(t.canShowValue(i.value)?t.applyDataLabel(t.FINAL_CONFIG.line.labels.formatter,i.value,t.dataLabel({p:t.FINAL_CONFIG.chart.labels.prefix,v:i.value,s:t.FINAL_CONFIG.chart.labels.suffix,r:t.FINAL_CONFIG.line.labels.rounding}),{datapoint:i,serie:a}):""),9,it)):e.createCommentVNode("",!0),i&&h===0&&a.useTag&&a.useTag==="start"?(e.openBlock(),e.createElementBlock("foreignObject",{key:1,x:i.x,y:i.y-20,height:24,width:"150",style:{overflow:"visible"}},[e.createElementVNode("div",{style:e.normalizeStyle(`padding: 3px; background:${a.color}${l.opacity[80]};color:${t.adaptColorToBackground(a.color)};width:fit-content;font-size:${l.fontSizes.plotLabels}px;border-radius: 2px;`)},e.toDisplayString(a.name),5)],8,ot)):e.createCommentVNode("",!0),i&&h===a.plots.length-1&&a.useTag&&a.useTag==="end"?(e.openBlock(),e.createElementBlock("foreignObject",{key:2,x:i.x-a.name.length*(l.fontSizes.plotLabels/2),y:i.y-20,height:24,width:"150",style:{overflow:"visible"}},[e.createElementVNode("div",{style:e.normalizeStyle(`padding: 3px; background:${a.color}${l.opacity[80]};color:${t.adaptColorToBackground(a.color)};width:fit-content;font-size:${l.fontSizes.plotLabels}px;border-radius: 2px;`)},e.toDisplayString(a.name),5)],8,st)):e.createCommentVNode("",!0)]))),128))],6))),128))])):e.createCommentVNode("",!0),t.hasHighlightArea?(e.openBlock(),e.createElementBlock("g",nt,[e.createElementVNode("rect",{x:t.drawingArea.left+t.drawingArea.width/t.maxSeries*(t.FINAL_CONFIG.chart.highlightArea.from-l.slicer.start),y:t.drawingArea.top,height:t.drawingArea.height<0?10:t.drawingArea.height,width:t.drawingArea.width/t.maxSeries*t.highlightAreaSpan<0?1e-5:t.drawingArea.width/t.maxSeries*t.highlightAreaSpan,fill:`${t.FINAL_CONFIG.chart.highlightArea.color}${l.opacity[t.FINAL_CONFIG.chart.highlightArea.opacity]}`},null,8,ct),t.FINAL_CONFIG.chart.highlightArea.caption.text?(e.openBlock(),e.createElementBlock("foreignObject",{key:0,x:t.drawingArea.left+t.drawingArea.width/t.maxSeries*(t.FINAL_CONFIG.chart.highlightArea.from-l.slicer.start)-(t.FINAL_CONFIG.chart.highlightArea.caption.width==="auto"?0:t.FINAL_CONFIG.chart.highlightArea.caption.width/2-t.drawingArea.width/t.maxSeries*t.highlightAreaSpan/2),y:t.drawingArea.top+t.FINAL_CONFIG.chart.highlightArea.caption.offsetY,style:{overflow:"visible"},height:"1",width:t.FINAL_CONFIG.chart.highlightArea.caption.width==="auto"?t.drawingArea.width/t.maxSeries*t.highlightAreaSpan:t.FINAL_CONFIG.chart.highlightArea.caption.width},[e.createElementVNode("div",{style:e.normalizeStyle(`padding:${t.FINAL_CONFIG.chart.highlightArea.caption.padding}px;text-align:${t.FINAL_CONFIG.chart.highlightArea.caption.textAlign};font-size:${t.FINAL_CONFIG.chart.highlightArea.caption.fontSize}px;color:${t.FINAL_CONFIG.chart.highlightArea.caption.color};font-weight:${t.FINAL_CONFIG.chart.highlightArea.caption.bold?"bold":"normal"}`)},e.toDisplayString(t.FINAL_CONFIG.chart.highlightArea.caption.text),5)],8,ht)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),e.createElementVNode("g",null,[e.createElementVNode("rect",{x:0,y:t.drawingArea.top,width:t.FINAL_CONFIG.chart.padding.left-1,height:t.drawingArea.height<0?10:t.drawingArea.height,fill:t.FINAL_CONFIG.chart.backgroundColor},null,8,dt),e.createElementVNode("rect",{x:t.drawingArea.right+1,y:t.drawingArea.top,width:t.FINAL_CONFIG.chart.padding.right,height:t.drawingArea.height<0?10:t.drawingArea.height,fill:t.FINAL_CONFIG.chart.backgroundColor},null,8,ut)]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.lineSet,(a,s)=>(e.openBlock(),e.createElementBlock("g",{key:`xLabel_line_${s}`,class:e.normalizeClass(`xLabel_line_${s}`),style:e.normalizeStyle(`opacity:${l.selectedScale?l.selectedScale===a.id?1:.2:1};transition:opacity 0.2s ease-in-out`)},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.plots,(i,h)=>(e.openBlock(),e.createElementBlock("g",{key:`xLabel_line_${s}_${h}`},[i&&h===0&&a.showSerieName&&a.showSerieName==="start"?(e.openBlock(),e.createElementBlock("text",{key:0,x:i.x-l.fontSizes.plotLabels,y:i.y,"font-size":l.fontSizes.plotLabels,"text-anchor":"end",fill:a.color,innerHTML:t.createTSpans({content:a.name,fontSize:l.fontSizes.plotLabels,fill:a.color,x:i.x-l.fontSizes.plotLabels,y:i.y,maxWords:2})},null,8,mt)):e.createCommentVNode("",!0),i&&h===a.plots.length-1&&a.showSerieName&&a.showSerieName==="end"?(e.openBlock(),e.createElementBlock("text",{key:1,x:i.x+l.fontSizes.plotLabels,y:i.y,"font-size":l.fontSizes.plotLabels,"text-anchor":"start",fill:a.color,innerHTML:t.createTSpans({content:a.name,fontSize:l.fontSizes.plotLabels,fill:a.color,x:i.x+l.fontSizes.plotLabels,y:i.y,maxWords:2})},null,8,gt)):e.createCommentVNode("",!0)]))),128))],6))),128)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.plotSet,(a,s)=>(e.openBlock(),e.createElementBlock("g",{key:`xLabel_plot_${s}`,class:e.normalizeClass(`xLabel_plot_${s}`),style:e.normalizeStyle(`opacity:${l.selectedScale?l.selectedScale===a.id?1:.2:1};transition:opacity 0.2s ease-in-out`)},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.plots,(i,h)=>(e.openBlock(),e.createElementBlock("g",{key:`xLabel_plot_${s}_${h}`},[i&&h===0&&a.showSerieName&&a.showSerieName==="start"?(e.openBlock(),e.createElementBlock("text",{key:0,x:i.x-l.fontSizes.plotLabels,y:i.y,"font-size":l.fontSizes.plotLabels,"text-anchor":"end",fill:a.color,innerHTML:t.createTSpans({content:a.name,fontSize:l.fontSizes.plotLabels,fill:a.color,x:i.x-l.fontSizes.plotLabels,y:i.y,maxWords:2})},null,8,Nt)):e.createCommentVNode("",!0),i&&h===a.plots.length-1&&a.showSerieName&&a.showSerieName==="end"?(e.openBlock(),e.createElementBlock("text",{key:1,x:i.x+l.fontSizes.plotLabels,y:i.y,"font-size":l.fontSizes.plotLabels,"text-anchor":"start",fill:a.color,innerHTML:t.createTSpans({content:a.name,fontSize:l.fontSizes.plotLabels,fill:a.color,x:i.x+l.fontSizes.plotLabels,y:i.y,maxWords:2})},null,8,ft)):e.createCommentVNode("",!0)]))),128))],6))),128)),t.FINAL_CONFIG.chart.grid.labels.show?(e.openBlock(),e.createElementBlock("g",bt,[l.mutableConfig.useIndividualScale?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.allScales,a=>(e.openBlock(),e.createElementBlock("g",null,[e.createElementVNode("line",{x1:a.x,x2:a.x,y1:l.mutableConfig.isStacked?t.drawingArea.bottom-a.yOffset-a.individualHeight:t.drawingArea.top,y2:l.mutableConfig.isStacked?t.drawingArea.bottom-a.yOffset:t.drawingArea.bottom,stroke:a.color,"stroke-width":t.FINAL_CONFIG.chart.grid.stroke,"stroke-linecap":"round",style:e.normalizeStyle(`opacity:${l.selectedScale?l.selectedScale===a.id?1:.3:1};transition:opacity 0.2s ease-in-out`)},null,12,kt)]))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.allScales,a=>(e.openBlock(),e.createElementBlock("g",{style:e.normalizeStyle(`opacity:${l.selectedScale?l.selectedScale===a.id?1:.3:1};transition:opacity 0.2s ease-in-out`)},[e.createElementVNode("text",{fill:a.color,"font-size":l.fontSizes.dataLabels,"text-anchor":"middle",transform:`translate(${a.x-t.FINAL_CONFIG.chart.grid.labels.yAxis.labelWidth+5}, ${l.mutableConfig.isStacked?t.drawingArea.bottom-a.yOffset-a.individualHeight/2:t.drawingArea.top+t.drawingArea.height/2}) rotate(-90)`},e.toDisplayString(a.name)+" "+e.toDisplayString(a.scaleLabel?`- ${a.scaleLabel}`:""),9,It),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.yLabels,(s,i)=>(e.openBlock(),e.createElementBlock("line",{x1:a.x-3,x2:a.x,y1:s.y,y2:s.y,stroke:a.color,"stroke-width":1,"stroke-linecap":"round"},null,8,Ft))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.yLabels,(s,i)=>(e.openBlock(),e.createElementBlock("text",{x:a.x-5,y:s.y,"font-size":l.fontSizes.dataLabels,"text-anchor":"end",fill:a.color},e.toDisplayString(t.applyDataLabel(t.FINAL_CONFIG.chart.grid.labels.yAxis.formatter,s.value,t.dataLabel({p:t.FINAL_CONFIG.chart.labels.prefix,v:s.value,s:t.FINAL_CONFIG.chart.labels.suffix,r:1}))),9,_t))),256))],4))),256))],64)):(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:1},e.renderList(t.yLabels,(a,s)=>(e.openBlock(),e.createElementBlock("g",{key:`yLabel_${s}`},[t.canShowValue(a)&&a.value>=t.niceScale.min&&a.value<=t.niceScale.max?(e.openBlock(),e.createElementBlock("line",{key:0,x1:t.drawingArea.left,x2:t.drawingArea.left-5,y1:a.y,y2:a.y,stroke:t.FINAL_CONFIG.chart.grid.stroke,"stroke-width":"1","stroke-linecap":"round"},null,8,yt)):e.createCommentVNode("",!0),a.value>=t.niceScale.min&&a.value<=t.niceScale.max?(e.openBlock(),e.createElementBlock("text",{key:1,x:t.drawingArea.left-7,y:a.y+l.fontSizes.dataLabels/3,"font-size":l.fontSizes.dataLabels,"text-anchor":"end",fill:t.FINAL_CONFIG.chart.grid.labels.color},e.toDisplayString(t.canShowValue(a.value)?t.applyDataLabel(t.FINAL_CONFIG.chart.grid.labels.yAxis.formatter,a.value,t.dataLabel({p:t.FINAL_CONFIG.chart.labels.prefix,v:a.value,s:t.FINAL_CONFIG.chart.labels.suffix,r:1})):""),9,xt)):e.createCommentVNode("",!0)]))),128))])):e.createCommentVNode("",!0),l.mutableConfig.useIndividualScale&&!l.mutableConfig.isStacked?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:7},e.renderList(t.allScales,a=>(e.openBlock(),e.createElementBlock("rect",{x:a.x-t.FINAL_CONFIG.chart.grid.labels.yAxis.labelWidth,y:t.drawingArea.top,width:t.FINAL_CONFIG.chart.grid.labels.yAxis.labelWidth,height:t.drawingArea.height<0?10:t.drawingArea.height,fill:l.selectedScale===a.id?`${a.color}20`:"transparent",onMouseenter:s=>l.selectedScale=a.id,onMouseleave:o[0]||(o[0]=s=>l.selectedScale=null)},null,40,Ct))),256)):e.createCommentVNode("",!0),e.createElementVNode("g",null,[t.FINAL_CONFIG.chart.grid.labels.axis.yLabel&&!l.mutableConfig.useIndividualScale?(e.openBlock(),e.createElementBlock("text",{key:0,"font-size":l.fontSizes.yAxis,fill:t.FINAL_CONFIG.chart.grid.labels.color,transform:`translate(${l.fontSizes.yAxis+t.FINAL_CONFIG.chart.grid.labels.axis.yLabelOffsetX}, ${t.drawingArea.top+t.drawingArea.height/2}) rotate(-90)`,"text-anchor":"middle",style:{transition:"none"}},e.toDisplayString(t.FINAL_CONFIG.chart.grid.labels.axis.yLabel),9,St)):e.createCommentVNode("",!0),t.FINAL_CONFIG.chart.grid.labels.axis.xLabel?(e.openBlock(),e.createElementBlock("text",{key:1,"text-anchor":"middle",x:l.width/2,y:t.drawingArea.bottom+l.fontSizes.yAxis+l.fontSizes.xAxis*1.3+t.FINAL_CONFIG.chart.grid.labels.axis.xLabelOffsetY,"font-size":l.fontSizes.yAxis,fill:t.FINAL_CONFIG.chart.grid.labels.color},e.toDisplayString(t.FINAL_CONFIG.chart.grid.labels.axis.xLabel),9,At)):e.createCommentVNode("",!0)]),t.FINAL_CONFIG.chart.grid.labels.xAxisLabels.show?(e.openBlock(),e.createElementBlock("g",Lt,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.timeLabels,(a,s)=>(e.openBlock(),e.createElementBlock("g",{key:`time_label_${s}`},[a&&!t.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast&&!t.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyAtModulo||a&&t.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast&&(s===0||s===t.timeLabels.length-1)&&!t.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyAtModulo||a&&t.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast&&l.selectedSerieIndex===s&&!t.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyAtModulo||a&&!t.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast&&t.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyAtModulo&&s%Math.floor((this.slicer.end-this.slicer.start)/t.FINAL_CONFIG.chart.grid.labels.xAxisLabels.modulo)===0?(e.openBlock(),e.createElementBlock("text",{key:0,"text-anchor":t.FINAL_CONFIG.chart.grid.labels.xAxisLabels.rotation>0?"start":t.FINAL_CONFIG.chart.grid.labels.xAxisLabels.rotation<0?"end":"middle","font-size":l.fontSizes.xAxis,fill:t.FINAL_CONFIG.chart.grid.labels.xAxisLabels.color,transform:`translate(${t.drawingArea.left+t.drawingArea.width/t.maxSeries*s+t.drawingArea.width/t.maxSeries/2}, ${t.drawingArea.bottom+l.fontSizes.xAxis*1.3+t.FINAL_CONFIG.chart.grid.labels.xAxisLabels.yOffset}), rotate(${t.FINAL_CONFIG.chart.grid.labels.xAxisLabels.rotation})`},e.toDisplayString(a||""),9,wt)):e.createCommentVNode("",!0)]))),128))])):e.createCommentVNode("",!0),e.createElementVNode("g",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.maxSeries,(a,s)=>(e.openBlock(),e.createElementBlock("g",{key:`tooltip_trap_${s}`},[e.createElementVNode("rect",{"data-cy-trap":"",x:t.drawingArea.left+t.drawingArea.width/t.maxSeries*s,y:t.drawingArea.top,height:t.drawingArea.height<0?10:t.drawingArea.height,width:t.drawingArea.width/t.maxSeries<0?1e-5:t.drawingArea.width/t.maxSeries,fill:l.selectedSerieIndex===s||l.selectedRowIndex===s?`${t.FINAL_CONFIG.chart.highlighter.color}${l.opacity[t.FINAL_CONFIG.chart.highlighter.opacity]}`:"transparent",onMouseenter:i=>t.toggleTooltipVisibility(!0,s),onMouseleave:o[1]||(o[1]=i=>t.toggleTooltipVisibility(!1)),onClick:i=>t.selectX(s)},null,40,Ot)]))),128))]),t.FINAL_CONFIG.chart.highlighter.useLine&&![null,void 0].includes(l.selectedSerieIndex)?(e.openBlock(),e.createElementBlock("g",vt,[e.createElementVNode("line",{x1:t.drawingArea.left+t.drawingArea.width/t.maxSeries*l.selectedSerieIndex+t.drawingArea.width/t.maxSeries/2,x2:t.drawingArea.left+t.drawingArea.width/t.maxSeries*l.selectedSerieIndex+t.drawingArea.width/t.maxSeries/2,y1:t.drawingArea.top,y2:t.drawingArea.bottom,stroke:t.FINAL_CONFIG.chart.highlighter.color,"stroke-width":t.FINAL_CONFIG.chart.highlighter.lineWidth,"stroke-dasharray":t.FINAL_CONFIG.chart.highlighter.lineDasharray,"stroke-linecap":"round",style:{transition:"none !important",animation:"none !important","pointer-events":"none"}},null,8,Gt)])):e.createCommentVNode("",!0),t.FINAL_CONFIG.chart.timeTag.show&&![null,void 0].includes(l.selectedSerieIndex)?(e.openBlock(),e.createElementBlock("g",pt,[(e.openBlock(),e.createElementBlock("foreignObject",{x:t.drawingArea.left+t.drawingArea.width/t.maxSeries*l.selectedSerieIndex-100+t.drawingArea.width/t.maxSeries/2,y:t.drawingArea.bottom,width:"200",height:"40",style:{overflow:"visible !important"}},[e.createElementVNode("div",{class:"vue-ui-xy-time-tag",style:e.normalizeStyle(`width: fit-content;margin: 0 auto;text-align:center;padding:3px 12px;background:${t.FINAL_CONFIG.chart.timeTag.backgroundColor};color:${t.FINAL_CONFIG.chart.timeTag.color};font-size:${t.FINAL_CONFIG.chart.timeTag.fontSize}px`)},e.toDisplayString(t.timeLabels[l.selectedSerieIndex]||l.selectedSerieIndex),5)],8,Bt)),e.createElementVNode("circle",{cx:t.drawingArea.left+t.drawingArea.width/t.maxSeries*l.selectedSerieIndex+t.drawingArea.width/t.maxSeries/2,cy:t.drawingArea.bottom,r:t.FINAL_CONFIG.chart.timeTag.circleMarker.radius,fill:t.FINAL_CONFIG.chart.timeTag.circleMarker.color},null,8,Et)])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),e.renderSlot(r.$slots,"svg",{svg:t.svg},void 0,!0)],14,X)):e.createCommentVNode("",!0),r.$slots.watermark?(e.openBlock(),e.createElementBlock("div",zt,[e.renderSlot(r.$slots,"watermark",e.normalizeProps(e.guardReactiveProps({isPrinting:l.isPrinting||l.isImaging})),void 0,!0)])):e.createCommentVNode("",!0),t.isDataset?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(f,{key:4,config:{type:"line",style:{backgroundColor:t.FINAL_CONFIG.chart.backgroundColor,line:{axis:{color:t.FINAL_CONFIG.chart.grid.stroke},path:{color:t.FINAL_CONFIG.chart.grid.stroke,strokeWidth:.5}}}}},null,8,["config"])),t.FINAL_CONFIG.chart.zoom.show&&l.maxX>6&&t.isDataset?(e.openBlock(),e.createBlock(S,{ref:"chartSlicer",key:`slicer_${l.slicerStep}`,background:t.FINAL_CONFIG.chart.zoom.color,fontSize:t.FINAL_CONFIG.chart.zoom.fontSize,useResetSlot:t.FINAL_CONFIG.chart.zoom.useResetSlot,labelLeft:t.FINAL_CONFIG.chart.grid.labels.xAxisLabels.values[l.slicer.start],labelRight:t.FINAL_CONFIG.chart.grid.labels.xAxisLabels.values[l.slicer.end-1],textColor:t.FINAL_CONFIG.chart.color,inputColor:t.FINAL_CONFIG.chart.zoom.color,selectColor:t.FINAL_CONFIG.chart.zoom.highlightColor,borderColor:t.FINAL_CONFIG.chart.backgroundColor,max:l.maxX,min:0,valueStart:l.slicer.start,valueEnd:l.slicer.end,start:l.slicer.start,"onUpdate:start":o[2]||(o[2]=a=>l.slicer.start=a),end:l.slicer.end,"onUpdate:end":o[3]||(o[3]=a=>l.slicer.end=a),onReset:t.refreshSlicer},{"reset-action":e.withCtx(({reset:a})=>[e.renderSlot(r.$slots,"reset-action",e.normalizeProps(e.guardReactiveProps({reset:a})),void 0,!0)]),_:3},8,["background","fontSize","useResetSlot","labelLeft","labelRight","textColor","inputColor","selectColor","borderColor","max","valueStart","valueEnd","start","end","onReset"])):e.createCommentVNode("",!0),t.FINAL_CONFIG.chart.legend.show?(e.openBlock(),e.createElementBlock("div",{key:6,ref:"chartLegend",class:"vue-ui-xy-legend",style:e.normalizeStyle(`font-size:${t.FINAL_CONFIG.chart.legend.fontSize}px`)},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.absoluteDataset,(a,s)=>(e.openBlock(),e.createElementBlock("div",{key:`div_legend_item_${s}`,onClick:i=>t.segregate(a),class:e.normalizeClass({"vue-ui-xy-legend-item":!0,"vue-ui-xy-legend-item-segregated":l.segregatedSeries.includes(a.id)})},[l.icons[a.type]==="line"?(e.openBlock(),e.createElementBlock("svg",Pt,[e.createElementVNode("rect",{x:"0",y:"7",rx:"3",stroke:"none",height:"4",width:"20",fill:a.color},null,8,Tt),e.createVNode(u,{plot:{x:10,y:9},radius:4,color:a.color,shape:["triangle","square","diamond","pentagon","hexagon","star"].includes(a.shape)?a.shape:"circle",stroke:t.FINAL_CONFIG.chart.backgroundColor,strokeWidth:1},null,8,["color","shape","stroke"])])):(e.openBlock(),e.createElementBlock("svg",Mt,[l.icons[a.type]==="bar"?(e.openBlock(),e.createElementBlock("rect",{key:0,x:"0",y:"0",rx:"1",height:"12",width:"12",stroke:"none",fill:a.color},null,8,Dt)):(e.openBlock(),e.createBlock(u,{key:1,plot:{x:6,y:6},radius:5,color:a.color,shape:["triangle","square","diamond","pentagon","hexagon","star"].includes(a.shape)?a.shape:"circle"},null,8,["color","shape"]))])),e.createElementVNode("span",{style:e.normalizeStyle(`color:${t.FINAL_CONFIG.chart.legend.color}`)},e.toDisplayString(a.name),5)],10,Vt))),128))],4)):(e.openBlock(),e.createElementBlock("div",Rt,[e.renderSlot(r.$slots,"legend",{legend:t.absoluteDataset},void 0,!0)],512)),e.createVNode(_,{show:l.mutableConfig.showTooltip&&l.isTooltip,backgroundColor:t.FINAL_CONFIG.chart.tooltip.backgroundColor,color:t.FINAL_CONFIG.chart.tooltip.color,fontSize:t.FINAL_CONFIG.chart.tooltip.fontSize,borderRadius:t.FINAL_CONFIG.chart.tooltip.borderRadius,borderColor:t.FINAL_CONFIG.chart.tooltip.borderColor,borderWidth:t.FINAL_CONFIG.chart.tooltip.borderWidth,backgroundOpacity:t.FINAL_CONFIG.chart.tooltip.backgroundOpacity,position:t.FINAL_CONFIG.chart.tooltip.position,offsetY:t.FINAL_CONFIG.chart.tooltip.offsetY,parent:r.$refs.chart,content:t.tooltipContent,isCustom:t.FINAL_CONFIG.chart.tooltip.customFormat&&typeof t.FINAL_CONFIG.chart.tooltip.customFormat=="function"},{"tooltip-before":e.withCtx(()=>[e.renderSlot(r.$slots,"tooltip-before",e.normalizeProps(e.guardReactiveProps({...t.dataTooltipSlot})),void 0,!0)]),"tooltip-after":e.withCtx(()=>[e.renderSlot(r.$slots,"tooltip-after",e.normalizeProps(e.guardReactiveProps({...t.dataTooltipSlot})),void 0,!0)]),_:3},8,["show","backgroundColor","color","fontSize","borderRadius","borderColor","borderWidth","backgroundOpacity","position","offsetY","parent","content","isCustom"]),t.isDataset?(e.openBlock(),e.createBlock(F,{key:8,hideDetails:"",config:{open:l.mutableConfig.showTable,maxHeight:1e4,body:{backgroundColor:t.FINAL_CONFIG.chart.backgroundColor,color:t.FINAL_CONFIG.chart.color},head:{backgroundColor:t.FINAL_CONFIG.chart.backgroundColor,color:t.FINAL_CONFIG.chart.color}}},{content:e.withCtx(()=>[e.createElementVNode("div",{style:e.normalizeStyle(`${l.isPrinting?"":"max-height:400px"};overflow:auto;width:100%;margin-top:48px`)},[e.createElementVNode("div",Ht,[e.withDirectives(e.createElementVNode("input",{type:"checkbox","onUpdate:modelValue":o[4]||(o[4]=a=>l.showSparklineTable=a)},null,512),[[e.vModelCheckbox,l.showSparklineTable]]),e.createElementVNode("div",{onClick:o[5]||(o[5]=a=>l.showSparklineTable=!l.showSparklineTable),style:{cursor:"pointer"}},[e.createVNode(y,{name:"chartLine",size:20,stroke:t.FINAL_CONFIG.chart.color},null,8,["stroke"])])]),l.showSparklineTable?(e.openBlock(),e.createBlock(C,{key:`sparkline_${l.segregateStep}`,dataset:t.tableSparklineDataset,config:t.tableSparklineConfig},null,8,["dataset","config"])):(e.openBlock(),e.createBlock(N,{key:1,colNames:t.dataTable.colNames,head:t.dataTable.head,body:t.dataTable.body,config:t.dataTable.config,title:`${t.FINAL_CONFIG.chart.title.text}${t.FINAL_CONFIG.chart.title.subtitle.text?` : ${t.FINAL_CONFIG.chart.title.subtitle.text}`:""}`,onClose:o[6]||(o[6]=a=>l.mutableConfig.showTable=!1)},{th:e.withCtx(({th:a})=>[e.createElementVNode("div",{innerHTML:a},null,8,Yt)]),td:e.withCtx(({td:a})=>[e.createTextVNode(e.toDisplayString(isNaN(Number(a))?a:t.dataLabel({p:t.FINAL_CONFIG.chart.labels.prefix,v:a,s:t.FINAL_CONFIG.chart.labels.suffix,r:t.FINAL_CONFIG.table.rounding})),1)]),_:1},8,["colNames","head","body","config","title"]))],4)]),_:1},8,["config"])):e.createCommentVNode("",!0)],14,W)}const Wt=H._export_sfc(q,[["render",qt],["__scopeId","data-v-6a1d72ac"]]);exports.default=Wt;
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { p as J } from "./pdf-97UbtKC2.js";
|
|
2
|
-
import { U as K, s as Q } from "./usePrinter-
|
|
3
|
-
import { c as U, a as j, t as $, v as ee, p as te, u as ae, P as X, J as M, f as q, F as le, U as re, i as ie, A as se, V as oe, M as ne, W as he, y as ce, s as ue, d as de, z as ge, b as fe, r as be, q as Ie, D as me, S as Ne, Y as _e, w as Fe, x as xe, e as ye, o as Ae, Z as Le, C as Se } from "./index-
|
|
4
|
-
import { D as Ce } from "./DataTable-
|
|
5
|
-
import { _ as ke } from "./Title-
|
|
6
|
-
import { _ as we, u as Oe } from "./Tooltip-
|
|
7
|
-
import { _ as ve } from "./Shape-
|
|
8
|
-
import Ge from "./BaseIcon-
|
|
9
|
-
import ze from "./vue-ui-table-sparkline-
|
|
10
|
-
import pe from "./vue-ui-skeleton-
|
|
11
|
-
import { S as Te } from "./Slicer-
|
|
12
|
-
import Me from "./vue-ui-accordion-
|
|
13
|
-
import { u as Z } from "./useNestedProp-
|
|
2
|
+
import { U as K, s as Q } from "./usePrinter-SBoyJa9C.js";
|
|
3
|
+
import { c as U, a as j, t as $, v as ee, p as te, u as ae, P as X, J as M, f as q, F as le, U as re, i as ie, A as se, V as oe, M as ne, W as he, y as ce, s as ue, d as de, z as ge, b as fe, r as be, q as Ie, D as me, S as Ne, Y as _e, w as Fe, x as xe, e as ye, o as Ae, Z as Le, C as Se } from "./index-_qS8WYUi.js";
|
|
4
|
+
import { D as Ce } from "./DataTable-D0s-F16a.js";
|
|
5
|
+
import { _ as ke } from "./Title-BWhB-LZD.js";
|
|
6
|
+
import { _ as we, u as Oe } from "./Tooltip-DG4rhTsB.js";
|
|
7
|
+
import { _ as ve } from "./Shape-DJ-kAg5I.js";
|
|
8
|
+
import Ge from "./BaseIcon-BGb_p9W-.js";
|
|
9
|
+
import ze from "./vue-ui-table-sparkline-Bnc7_7-9.js";
|
|
10
|
+
import pe from "./vue-ui-skeleton-BdsJjwOS.js";
|
|
11
|
+
import { S as Te } from "./Slicer-Sp5HprCO.js";
|
|
12
|
+
import Me from "./vue-ui-accordion-sb2V8ews.js";
|
|
13
|
+
import { u as Z } from "./useNestedProp-Cqc-Ol8-.js";
|
|
14
14
|
import { resolveComponent as P, openBlock as r, createElementBlock as i, normalizeClass as T, normalizeStyle as L, createVNode as E, createCommentVNode as h, createBlock as V, createSlots as Pe, withCtx as z, renderSlot as v, normalizeProps as Y, guardReactiveProps as W, createElementVNode as d, Fragment as I, renderList as m, toDisplayString as C, withDirectives as Ve, vModelCheckbox as Re, createTextVNode as De } from "vue";
|
|
15
15
|
import { _ as He } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
16
16
|
const Be = U(), Ye = {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("vue"),s=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("vue"),s=require("./index-CXlW59V9.cjs"),c=require("./useResponsive-B3TrDDIG.cjs"),qe=require("./Tooltip-BuFiGszl.cjs"),Ye=require("./Legend-Bw_SrfZv.cjs"),Ue=require("./Title-BSJEkzs1.cjs"),Xe=require("./Slicer-DmhzGeZJ.cjs"),xe=require("./usePrinter-BuaBVD2x.cjs"),Ae=require("./vue-ui-accordion-BYuReZs8.cjs"),Ze=require("./DataTable-Df6uZv-T.cjs"),Ge=require("./vue-ui-skeleton-DRUBehRT.cjs"),Le=require("./useNestedProp-cZtyh-Ib.cjs"),je=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),Je=["id"],Ke=["onClick"],Qe={key:2,class:"vue-data-ui-watermark"},et=["innerHTML"],tt={__name:"vue-ui-xy-canvas",props:{dataset:{type:Array,default(){return[]}},config:{type:Object,default(){return{}}}},emits:["selectLegend"],setup(J,{expose:ke,emit:Ce}){const R=J,{vue_ui_xy_canvas:we}=s.useConfig(),U=a.ref(s.createUid()),D=a.ref(null),C=a.ref(null),I=a.ref(null),i=a.ref(null),g=a.ref(1),z=a.ref(1),_=a.ref(!1),f=a.ref(null),H=a.ref(""),K=a.ref(null),k=a.ref([]),N=a.ref(1),M=a.ref(!0),w=a.ref(!0),X=a.ref(null),Q=a.ref(0),ee=a.ref(0),A=a.ref(!1),te=a.ref(null),ae=a.ref(null),le=a.ref(null),Z=a.computed(()=>!!R.dataset&&R.dataset.length),t=a.computed(()=>{const e=Le.useNestedProp({userConfig:R.config,defaultConfig:we});return e.theme?{...Le.useNestedProp({userConfig:s.themes.vue_ui_xy_canvas[e.theme]||R.config,defaultConfig:e}),customPalette:s.themePalettes[e.theme]||s.palette}:e}),oe=a.ref(t.value.style.chart.aspectRatio),{isPrinting:re,isImaging:ue,generatePdf:ne,generateImage:se}=xe.usePrinter({elementId:`xy_canvas_${U.value}`,fileName:t.value.style.chart.title.text||"vue-ui-xy-canvas"}),n=a.ref({showTable:t.value.table.show,showDataLabels:t.value.style.chart.dataLabels.show,stacked:t.value.style.chart.stacked,showTooltip:t.value.style.chart.tooltip.show});function Se(e){A.value=e,ee.value+=1}const ie=a.computed(()=>s.convertCustomPalette(t.value.customPalette)),P=a.computed(()=>Math.max(...E.value.filter((e,o)=>!k.value.includes(e.absoluteIndex)).map(e=>e.series.length))),l=a.computed(()=>{const e=g.value-g.value*(t.value.style.chart.paddingProportions.left+t.value.style.chart.paddingProportions.right);return{canvasWidth:g.value,canvasHeight:z.value,left:g.value*t.value.style.chart.paddingProportions.left,top:z.value*t.value.style.chart.paddingProportions.top,right:g.value-g.value*t.value.style.chart.paddingProportions.right,bottom:z.value-z.value*t.value.style.chart.paddingProportions.bottom,width:e,height:z.value-z.value*(t.value.style.chart.paddingProportions.top+t.value.style.chart.paddingProportions.bottom),slot:e/(u.value.end-u.value.start)}});function ve(e,o){return e/o}function ze({hasAutoScale:e,series:o,min:r,max:d,scale:h,yOffset:p,individualHeight:v,stackIndex:m=null}){return o.map((L,j)=>{const S=h.min<0?Math.abs(h.min):0,$=ve(L+S,S+h.max);let T,O;e&&(T=Math.abs(h.min),O=ve(L+T,h.max+T));let F=0;return m===null?F=l.value.bottom-l.value.height*(e?O:$):F=l.value.bottom-p-v*(e?O:$),{x:l.value.left+l.value.slot*j+l.value.slot/2,y:F,value:L}})}const b=a.computed(()=>{const e=Math.min(...E.value.filter((v,m)=>!k.value.includes(v.absoluteIndex)).flatMap(v=>v.series.slice(u.value.start,u.value.end))),o=Math.max(...E.value.filter((v,m)=>!k.value.includes(v.absoluteIndex)).flatMap(v=>v.series.slice(u.value.start,u.value.end))),r=s.calculateNiceScale(e<0?e:0,o===e?e+1<0?0:e+1:o<0?0:o,t.value.style.chart.scale.ticks),d=r.min<0?Math.abs(r.min):0,h=l.value.bottom-l.value.height*(d/(r.max+d)),p=r.ticks.map(v=>({y:l.value.bottom-l.value.height*((v+d)/(r.max+d)),x:l.value.left-8,value:v}));return{absoluteMin:d,max:o,min:e,scale:r,yLabels:p,zero:h}}),$e=a.computed(()=>y.value.map(e=>`
|
|
2
2
|
<div style="display:flex;flex-direction:row;gap:6px;align-items:center;">
|
|
3
3
|
<svg viewBox="0 0 10 10" height="12" width="12">
|
|
4
4
|
<circle cx="5" cy="5" r="5" fill="${e.color}"/>
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { ref as d, computed as m, watch as re, onMounted as ha, onBeforeUnmount as ya, openBlock as T, createElementBlock as se, normalizeStyle as X, normalizeClass as fa, createVNode as ye, createCommentVNode as A, createBlock as Z, unref as E, createSlots as ga, withCtx as b, renderSlot as k, normalizeProps as G, guardReactiveProps as V, createElementVNode as j, toDisplayString as We, createTextVNode as pa } from "vue";
|
|
2
|
-
import { u as ma, c as ba, t as xa, a as La, p as N, b as ka, A as fe, i as q, f as J, d as Ye, U as Ca, o as wa, e as Sa, w as Be, x as $a, q as za, r as Ta, v as K, l as Ma } from "./index-
|
|
2
|
+
import { u as ma, c as ba, t as xa, a as La, p as N, b as ka, A as fe, i as q, f as J, d as Ye, U as Ca, o as wa, e as Sa, w as Be, x as $a, q as za, r as Ta, v as K, l as Ma } from "./index-_qS8WYUi.js";
|
|
3
3
|
import { d as Ra, c as Ia, a as Ue, t as Oa, l as C, r as ge, b as O, p as Xe, u as Pa } from "./useResponsive-NZB-WLRF.js";
|
|
4
|
-
import { _ as Fa } from "./Tooltip-
|
|
5
|
-
import { L as Ea } from "./Legend-
|
|
6
|
-
import { _ as Na } from "./Title-
|
|
7
|
-
import { S as _a } from "./Slicer-
|
|
8
|
-
import { u as Da, U as Ha } from "./usePrinter-
|
|
9
|
-
import Wa from "./vue-ui-accordion-
|
|
10
|
-
import { D as Ya } from "./DataTable-
|
|
11
|
-
import Ba from "./vue-ui-skeleton-
|
|
12
|
-
import { u as Ae } from "./useNestedProp-
|
|
4
|
+
import { _ as Fa } from "./Tooltip-DG4rhTsB.js";
|
|
5
|
+
import { L as Ea } from "./Legend-xB4cmG5F.js";
|
|
6
|
+
import { _ as Na } from "./Title-BWhB-LZD.js";
|
|
7
|
+
import { S as _a } from "./Slicer-Sp5HprCO.js";
|
|
8
|
+
import { u as Da, U as Ha } from "./usePrinter-SBoyJa9C.js";
|
|
9
|
+
import Wa from "./vue-ui-accordion-sb2V8ews.js";
|
|
10
|
+
import { D as Ya } from "./DataTable-D0s-F16a.js";
|
|
11
|
+
import Ba from "./vue-ui-skeleton-BdsJjwOS.js";
|
|
12
|
+
import { u as Ae } from "./useNestedProp-Cqc-Ol8-.js";
|
|
13
13
|
import { _ as Ua } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
14
14
|
const Xa = ["id"], Aa = ["onClick"], Za = {
|
|
15
15
|
key: 2,
|
package/package.json
CHANGED
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),r=require("./index-C9r5MSxp.cjs"),le=require("./useResponsive-B3TrDDIG.cjs"),Ce=require("./Title-D5JSyW9g.cjs"),ae=require("./usePrinter-CgeascwN.cjs"),xe=require("./Tooltip-Bd80EmMe.cjs"),oe=require("./Legend-B_gotRVB.cjs"),_e=require("./vue-ui-skeleton-ldYPv9PF.cjs"),we=require("./BaseIcon-DsmnhCxw.cjs"),$e=require("./vue-ui-accordion-B_pg4OcN.cjs"),ne=require("./useNestedProp-DlpyayQg.cjs"),Ne=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),Se=["id"],Ve=["onClick"],Te=["xmlns","viewBox"],Ee=["id"],Be=["stop-color"],Le=["stop-color"],ze=["x","y","width","height","fill","rx"],Pe=["x","y","width","height","fill","rx","stroke","stroke-width"],De=["x2","y1","y2","stroke","stroke-width"],Fe=["x1","x2","y1","y2","stroke","stroke-width"],Me=["x","y","text-anchor","font-size","fill","font-weight"],Ie=["x","y","font-size","fill","font-weight"],Oe=["x","y","font-size","fill","font-weight"],Re=["x","y","font-size","fill","font-weight"],qe=["y","width","height","fill","onMouseenter"],He={key:4,class:"vue-data-ui-watermark"},Xe=["onClick"],je={style:"width:100%;padding-top: 36px;position:relative"},Ae={class:"vue-ui-data-table"},Ge={key:0},Ue={style:{width:"100%"}},We=["data-cell"],Ye={style:{display:"flex","align-items":"center",gap:"5px","justify-content":"flex-end",width:"100%","padding-right":"3px"}},Ke=["data-cell"],Je={style:{display:"flex","align-items":"center",gap:"5px","justify-content":"flex-end",width:"100%","padding-right":"3px"}},Qe=["data-cell"],Ze={style:{display:"flex","align-items":"center",gap:"5px","justify-content":"flex-end",width:"100%","padding-right":"3px"}},et=["data-cell"],tt={style:{display:"flex","align-items":"center",gap:"5px","justify-content":"flex-end",width:"100%","padding-right":"3px"}},lt=["data-cell"],at={style:{display:"flex","align-items":"center",gap:"5px","justify-content":"flex-end",width:"100%","padding-right":"3px"}},ot=["data-cell"],nt={style:{display:"flex","align-items":"center",gap:"5px","justify-content":"flex-end",width:"100%","padding-right":"3px"}},rt=["data-cell"],ut={style:{display:"flex","align-items":"center",gap:"5px","justify-content":"flex-end",width:"100%","padding-right":"3px"}},st={__name:"vue-ui-vertical-bar",props:{config:{type:Object,default(){return{}}},dataset:{type:Array,default(){return[]}}},emits:["selectLegend"],setup(re,{expose:ue,emit:se}){const f=re;e.useCssVars(a=>({"4e87e0a7":a.tdo}));const{vue_ui_vertical_bar:ie}=r.useConfig(),V=e.computed(()=>!!f.dataset&&f.dataset.length),m=e.ref(r.createUid()),ce=e.ref(null),B=e.ref(!1),L=e.ref(""),T=e.ref(0),de=e.ref(null),I=e.ref(0),$=e.ref(null),O=e.ref(null),z=e.ref(null),t=e.computed(()=>{const a=ne.useNestedProp({userConfig:f.config,defaultConfig:ie});return a.theme?{...ne.useNestedProp({userConfig:r.themes.vue_ui_vertical_bar[a.theme]||f.config,defaultConfig:a}),customPalette:r.themePalettes[a.theme]||r.palette}:a}),{isPrinting:R,isImaging:q,generatePdf:H,generateImage:X}=ae.usePrinter({elementId:`vue-ui-vertical-bar_${m.value}`,fileName:t.value.style.chart.title.text||"vue-ui-vertical-bar"}),j=e.computed(()=>r.convertCustomPalette(t.value.customPalette)),A=e.ref(null),G=e.ref(!1),ve=e.computed(()=>t.value.table.responsiveBreakpoint),E=e.ref(null);e.onMounted(()=>{if(r.objectIsEmpty(f.dataset)&&r.error({componentName:"VueUiVerticalBar",type:"dataset"}),T.value=f.dataset.flatMap(a=>a.children&&a.children.length>0?a.children.length:1).reduce((a,o)=>a+o,0),he(),t.value.responsive){const a=le.throttle(()=>{const{width:o,height:l}=le.useResponsive({chart:$.value,title:t.value.style.chart.title.text?O.value:null,legend:t.value.style.chart.legend.show?z.value:null});Y.value=o,c.value=l/T.value-v.value*2});E.value=new ResizeObserver(a),E.value.observe($.value.parentNode)}}),e.onBeforeUnmount(()=>{E.value&&E.value.disconnect()});function he(){new ResizeObserver(o=>{o.forEach(l=>{G.value=l.contentRect.width<ve.value})}).observe(A.value)}const h=e.ref({showTable:t.value.table.show,sortDesc:t.value.style.chart.layout.bars.sort==="desc",showTooltip:t.value.style.chart.tooltip.show}),U=e.computed(()=>h.value.sortDesc),k=e.computed(()=>(f.dataset.forEach((a,o)=>{a.children&&(r.objectIsEmpty(a.children)?r.error({componentName:"VueUiVerticalBar",type:"datasetAttributeEmpty",property:`children (index ${o})`}):a.children.forEach((l,n)=>{[null,void 0].includes(l.name)&&r.error({componentName:"VueUiVerticalBar",type:"datasetSerieAttribute",property:"name",key:"children",index:n})}))}),f.dataset.map((a,o)=>{const l=`vertical_parent_${o}_${m.value}`,n=!!a.children&&a.children.length>0;return{...a,id:l,shape:"square",opacity:y.value.includes(l)?.5:1,value:n?a.children.map(s=>s.value||0).reduce((s,i)=>s+i,0):Math.abs(a.value)||0,sign:a.value>=0?1:-1,hasChildren:n,isChild:!1,segregate:()=>N(l),isSegregated:y.value.includes(l),color:r.convertColorToHex(a.color)||j.value[o]||r.palette[o]||r.palette[o%r.palette.length],children:!a.children||!a.children.length?[]:a.children.toSorted((s,i)=>U.value?i.value-s.value:s.value-i.value).map((s,i)=>({...s,value:Math.abs(s.value)||0,sign:s.value>=0?1:-1,isChild:!0,parentId:l,parentName:a.name,parentValue:a.value||n?a.children.map(M=>M.value||0).reduce((M,ke)=>M+ke,0):0,id:`vertical_child_${o}_${i}_${m.value}`,childIndex:i,color:r.convertColorToHex(s.color)||r.convertColorToHex(a.color)||j.value[o]||r.palette[o]||r.palette[o%r.palette.length]})).map((s,i)=>({...s,isFirstChild:i===0,isLastChild:i===a.children.length-1}))}}).toSorted((a,o)=>U.value?o.value-a.value:a.value-o.value))),W=e.computed(()=>({cy:"vertical-bar-div-legend",backgroundColor:t.value.style.chart.legend.backgroundColor,color:t.value.style.chart.legend.color,fontSize:t.value.style.chart.legend.fontSize,paddingBottom:12,fontWeight:t.value.style.chart.legend.bold?"bold":""})),c=e.ref(t.value.style.chart.layout.bars.height),v=e.ref(t.value.style.chart.layout.bars.gap),pe=e.computed(()=>(c.value+v.value)*T.value),Y=e.ref(512),d=e.computed(()=>({width:Y.value,height:pe.value,padding:{top:12,left:128+t.value.style.chart.layout.bars.offsetX,right:64+t.value.style.chart.layout.bars.paddingRight,bottom:12}})),u=e.computed(()=>({fullHeight:d.value.padding.top+d.value.padding.bottom+d.value.height,top:d.value.padding.top,left:d.value.padding.left,right:d.value.width-d.value.padding.right,bottom:d.value.padding.top+d.value.height,width:d.value.width-(d.value.padding.left+d.value.padding.right)}));function P(){T.value=C.value.flatMap(a=>a.children&&a.children.length>0?a.children.length:1).reduce((a,o)=>a+o,0)}const y=e.ref([]);function N(a){y.value.includes(a)?y.value=y.value.filter(o=>o!==a):y.value.push(a),P(),se("selectLegend",C.value)}const C=e.computed(()=>k.value.filter(a=>!y.value.includes(a.id))),g=e.computed(()=>C.value.map(a=>Math.abs(a.value)).reduce((a,o)=>a+o,0));function K(a,o=!1,l=0){return o?r.dataLabel({v:Math.abs(a)/g.value*100,s:"%",r:l}):Math.abs(a)/g.value}const x=e.computed(()=>C.value.flatMap(a=>a.hasChildren?a.children:a)),_=e.computed(()=>x.value.map(a=>a.sign).includes(-1)),ye=e.computed(()=>Math.max(...C.value.flatMap(a=>a.children&&a.children.length?Math.max(...a.children.map(o=>o.value)):a.value)));function b(a){const o=a/ye.value;return u.value.width/(_.value?2:1)*o}function ge(a){return b(a)+u.value.left}function w(a,o){const l=C.value.find(i=>i.id===a.parentId),n=u.value.top+(v.value+c.value)*o,s=l.children.length*(v.value+c.value);return{y:n+s/2-t.value.style.chart.layout.bars.parentLabels.fontSize,name:l.name,value:[void 0,NaN,null].includes(l.value)?"":l.sign===1?l.value:-l.value,percentageToTotal:isNaN(l.value/g.value)?"":K(l.value,!0,t.value.style.chart.layout.bars.dataLabels.percentage.roundingPercentage),sign:l.sign}}function fe(){return C.value}const D=e.ref(null),F=e.ref(null);function be(a,o){F.value={datapoint:a,seriesIndex:o,series:k.value,config:t.value},B.value=!0,D.value=a.id;let l="";const n=a.isChild?a.parentName:a.name,s=a.isChild?a.name:"",i=t.value.style.chart.tooltip.customFormat;r.isFunction(i)&&r.functionReturnsString(()=>i({datapoint:a,series:k.value,config:t.value,seriesIndex:o}))?L.value=i({datapoint:a,series:k.value,config:t.value,seriesIndex:o}):(l+=`<div style="width:100%;text-align:center;border-bottom:1px solid ${t.value.style.chart.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;text-align:left;">
|
|
2
|
-
<div style="display:flex;align-items:center;gap:4px;"><svg viewBox="0 0 12 12" height="14" width="14"><rect x="0" y="0" height="12" width="12" rx="2" stroke="none" fill="${a.color}"/></svg> ${n}</div>
|
|
3
|
-
${s?`<div>${s}</div>`:""}
|
|
4
|
-
</div>`,t.value.style.chart.tooltip.showValue&&(l+=`<div>${t.value.translations.value}: <b>${r.applyDataLabel(t.value.style.chart.layout.bars.dataLabels.value.formatter,a.sign===1?a.value:-a.value,r.dataLabel({p:t.value.style.chart.tooltip.prefix,v:a.sign===1?a.value:-a.value,s:t.value.style.chart.tooltip.suffix,r:t.value.style.chart.tooltip.roundingValue}),{datapoint:a,seriesIndex:o})}</b></div>`),t.value.style.chart.tooltip.showPercentage&&(l+=`<div>${t.value.translations.percentageToTotal} : <b>${r.dataLabel({v:Math.abs(a.value)/g.value*100,s:"%",r:t.value.style.chart.tooltip.roundingPercentage})}</b></div>`,a.isChild&&(l+=`<div>${t.value.translations.percentageToSerie}: <b>${r.dataLabel({v:Math.abs(a.value)/Math.abs(a.parentValue)*100,s:"%",r:t.value.style.chart.tooltip.roundingPercentage})}</b></div>`)),L.value=`<div style="text-align:left">${l}</div>`)}function J(a,o,l,n){if(!t.value.style.chart.layout.bars.dataLabels.value.show)return"";const s=r.applyDataLabel(t.value.style.chart.layout.bars.dataLabels.value.formatter,n===1?a:-a,r.dataLabel({p:t.value.style.chart.layout.bars.dataLabels.value.prefix,v:n===1?a:-a,s:t.value.style.chart.layout.bars.dataLabels.value.suffix,r:t.value.style.chart.layout.bars.dataLabels.value.roundingValue}),{datapoint:o,seriesIndex:l}),i=`(${K(a,!0,t.value.style.chart.layout.bars.dataLabels.percentage.roundingPercentage)})`;return`${s}${t.value.style.chart.layout.bars.dataLabels.percentage.show?` ${i}`:""}`}const p=e.computed(()=>{const a=[t.value.translations.parentName,t.value.translations.value,t.value.translations.percentageToTotal,t.value.translations.childName,t.value.translations.value,t.value.translations.percentageToSerie,t.value.translations.percentageToTotal],o=x.value.map(l=>l.isChild?l.isFirstChild?{color:l.color,parentName:l.parentName,parentValue:l.parentValue,percentageToTotal:l.parentValue/g.value,childName:l.name,childValue:l.sign===1?l.value:-l.value,childPercentageToParent:Math.abs(l.value)/Math.abs(l.parentValue),childPercentageToTotal:Math.abs(l.value)/g.value}:{color:"",parentName:"",parentValue:"",percentageToTotal:"",childName:l.name,childValue:l.sign===1?l.value:-l.value,childPercentageToParent:Math.abs(l.value)/Math.abs(l.parentValue),childPercentageToTotal:Math.abs(l.value)/g.value}:{color:l.color,parentName:l.name,parentValue:l.sign===1?l.value:-l.value,percentageToTotal:Math.abs(l.value)/g.value,childName:"",childValue:"",childPercentageToParent:"",childPercentageToTotal:""});return{head:a,body:o}});function Q(){const a=[[t.value.style.chart.title.text],[t.value.style.chart.title.subtitle.text],[""]],o=p.value.head,l=p.value.body.map(i=>[i.parentName,i.parentValue,i.percentageToTotal,i.childName,i.childValue,i.childPercentageToParent,i.childPercentageToTotal]),n=a.concat([o]).concat(l),s=r.createCsvContent(n);r.downloadCsv({csvContent:s,title:t.value.style.chart.title.text||"vue-ui-vertical-bar"})}const S=e.ref(!1);function me(a){S.value=a,I.value+=1}function Z(){h.value.showTable=!h.value.showTable}function ee(){h.value.sortDesc=!h.value.sortDesc,P()}function te(){h.value.showTooltip=!h.value.showTooltip}return ue({getData:fe,recalculateHeight:P,generatePdf:H,generateCsv:Q,generateImage:X,toggleTable:Z,toggleSort:ee,toggleTooltip:te}),(a,o)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(`vue-ui-vertical-bar ${S.value?"vue-data-ui-wrapper-fullscreen":""} ${t.value.useCssAnimation?"":"vue-ui-dna"}`),ref_key:"verticalBarChart",ref:$,id:`vue-ui-vertical-bar_${m.value}`,style:e.normalizeStyle(`font-family:${t.value.style.fontFamily};width:100%; text-align:center;${t.value.style.chart.title.text?"":"padding-top:36px"};background:${t.value.style.chart.backgroundColor};${t.value.responsive?"height: 100%":""}`)},[t.value.style.chart.title.text?(e.openBlock(),e.createElementBlock("div",{key:0,ref_key:"chartTitle",ref:O,style:e.normalizeStyle(`width:100%;background:${t.value.style.chart.backgroundColor};padding-bottom:12px`)},[e.createVNode(Ce._sfc_main,{config:{title:{cy:"vertical-bar-div-title",...t.value.style.chart.title},subtitle:{cy:"vertical-bar-div-subtitle",...t.value.style.chart.title.subtitle}}},null,8,["config"])],4)):e.createCommentVNode("",!0),t.value.userOptions.show&&V.value?(e.openBlock(),e.createBlock(ae.UserOptions,{ref_key:"details",ref:ce,key:`user_options_${I.value}`,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,isImaging:e.unref(q),isPrinting:e.unref(R),uid:m.value,hasTooltip:t.value.userOptions.buttons.tooltip&&t.value.style.chart.tooltip.show,hasPdf:t.value.userOptions.buttons.pdf,hasImg:t.value.userOptions.buttons.img,hasXls:t.value.userOptions.buttons.csv,hasTable:t.value.userOptions.buttons.table,hasSort:t.value.userOptions.buttons.sort,hasFullscreen:t.value.userOptions.buttons.fullscreen,isFullscreen:S.value,isTooltip:h.value.showTooltip,titles:{...t.value.userOptions.buttonTitles},chartElement:$.value,onToggleFullscreen:me,onGeneratePdf:e.unref(H),onGenerateCsv:Q,onGenerateImage:e.unref(X),onToggleTable:Z,onToggleSort:ee,onToggleTooltip:te},e.createSlots({_:2},[a.$slots.optionTooltip?{name:"optionTooltip",fn:e.withCtx(()=>[e.renderSlot(a.$slots,"optionTooltip",{},void 0,!0)]),key:"0"}:void 0,a.$slots.optionPdf?{name:"optionPdf",fn:e.withCtx(()=>[e.renderSlot(a.$slots,"optionPdf",{},void 0,!0)]),key:"1"}:void 0,a.$slots.optionCsv?{name:"optionCsv",fn:e.withCtx(()=>[e.renderSlot(a.$slots,"optionCsv",{},void 0,!0)]),key:"2"}:void 0,a.$slots.optionImg?{name:"optionImg",fn:e.withCtx(()=>[e.renderSlot(a.$slots,"optionImg",{},void 0,!0)]),key:"3"}:void 0,a.$slots.optionTable?{name:"optionTable",fn:e.withCtx(()=>[e.renderSlot(a.$slots,"optionTable",{},void 0,!0)]),key:"4"}:void 0,a.$slots.optionLabels?{name:"optionLabels",fn:e.withCtx(()=>[e.renderSlot(a.$slots,"optionLabels",{},void 0,!0)]),key:"5"}:void 0,a.$slots.optionSort?{name:"optionSort",fn:e.withCtx(()=>[e.renderSlot(a.$slots,"optionSort",{},void 0,!0)]),key:"6"}:void 0,a.$slots.optionFullscreen?{name:"optionFullscreen",fn:e.withCtx(({toggleFullscreen:l,isFullscreen:n})=>[e.renderSlot(a.$slots,"optionFullscreen",e.normalizeProps(e.guardReactiveProps({toggleFullscreen:l,isFullscreen:n})),void 0,!0)]),key:"7"}:void 0]),1032,["backgroundColor","color","isImaging","isPrinting","uid","hasTooltip","hasPdf","hasImg","hasXls","hasTable","hasSort","hasFullscreen","isFullscreen","isTooltip","titles","chartElement","onGeneratePdf","onGenerateImage"])):e.createCommentVNode("",!0),t.value.style.chart.legend.show&&t.value.style.chart.legend.position==="top"?(e.openBlock(),e.createElementBlock("div",{key:2,ref_key:"chartLegend",ref:z},[e.createVNode(oe.Legend,{legendSet:k.value,config:W.value,onClickMarker:o[0]||(o[0]=({legend:l})=>N(l.id))},{item:e.withCtx(({legend:l,index:n})=>[e.createElementVNode("div",{"data-cy-legend-item":"",onClick:s=>N(l.id),style:e.normalizeStyle(`opacity:${y.value.includes(l.id)?.5:1}`)},e.toDisplayString(l.name)+": "+e.toDisplayString(e.unref(r.applyDataLabel)(t.value.style.chart.layout.bars.dataLabels.value.formatter,l.value,e.unref(r.dataLabel)({p:t.value.style.chart.legend.prefix,v:l.value,s:t.value.style.chart.legend.suffix,r:t.value.style.chart.legend.roundingValue}),{datapoint:l,seriesIndex:n})),13,Ve)]),_:1},8,["legendSet","config"])],512)):e.createCommentVNode("",!0),V.value?(e.openBlock(),e.createElementBlock("svg",{key:3,xmlns:e.unref(r.XMLNS),class:e.normalizeClass({"vue-data-ui-fullscreen--on":S.value,"vue-data-ui-fulscreen--off":!S.value}),viewBox:`0 0 ${d.value.width<=0?10:d.value.width} ${u.value.fullHeight<=0?10:u.value.fullHeight}`,style:e.normalizeStyle(`max-width:100%;overflow:visible;background:${t.value.style.chart.backgroundColor};color:${t.value.style.chart.color}`)},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(x.value,(l,n)=>(e.openBlock(),e.createElementBlock("linearGradient",{x1:"0%",y1:"0%",x2:"100%",y2:"0%",id:`vertical_bar_gradient_${m.value}_${n}`},[e.createElementVNode("stop",{offset:"0%","stop-color":l.color},null,8,Be),e.createElementVNode("stop",{offset:"100%","stop-color":`${e.unref(r.shiftHue)(l.color,.03)}${e.unref(r.opacity)[100-t.value.style.chart.layout.bars.gradientIntensity]}`},null,8,Le)],8,Ee))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(x.value,(l,n)=>(e.openBlock(),e.createElementBlock("g",null,[e.createElementVNode("rect",{x:_.value?u.value.left+u.value.width/2-(l.sign===1?0:b(l.value)<=0?1e-4:b(l.value)):u.value.left,y:u.value.top+(v.value+c.value)*n,width:b(l.value)<=0?1e-4:b(l.value),height:c.value<=0?1e-4:c.value,fill:t.value.style.chart.layout.bars.underlayerColor,rx:t.value.style.chart.layout.bars.borderRadius,class:e.normalizeClass({animated:t.value.useCssAnimation})},null,10,ze)]))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(x.value,(l,n)=>(e.openBlock(),e.createElementBlock("g",null,[e.createElementVNode("rect",{x:_.value?u.value.left+u.value.width/2-(l.sign===1?0:b(l.value)<=0?1e-4:b(l.value)):u.value.left,y:u.value.top+(v.value+c.value)*n,width:b(l.value)<=0?1e-4:b(l.value),height:c.value<=0?1e-4:c.value,fill:t.value.style.chart.layout.bars.useGradient?`url(#vertical_bar_gradient_${m.value}_${n})`:`${l.color}${e.unref(r.opacity)[t.value.style.chart.layout.bars.fillOpacity]}`,rx:t.value.style.chart.layout.bars.borderRadius,stroke:t.value.style.chart.layout.bars.useStroke?l.color:"none","stroke-width":t.value.style.chart.layout.bars.useStroke?t.value.style.chart.layout.bars.strokeWidth:0,class:e.normalizeClass({animated:t.value.useCssAnimation})},null,10,Pe),(!l.isChild||l.isLastChild)&&t.value.style.chart.layout.separators.show&&n!==x.value.length-1?(e.openBlock(),e.createElementBlock("line",{key:0,x1:0,x2:u.value.left,y1:c.value+v.value/2+u.value.top+(v.value+c.value)*n,y2:c.value+v.value/2+u.value.top+(v.value+c.value)*n,stroke:t.value.style.chart.layout.separators.color,"stroke-width":t.value.style.chart.layout.separators.strokeWidth,"stroke-linecap":"round"},null,8,De)):e.createCommentVNode("",!0),_.value&&t.value.style.chart.layout.separators.show?(e.openBlock(),e.createElementBlock("line",{key:1,x1:u.value.left+u.value.width/2,x2:u.value.left+u.value.width/2,y1:u.value.top,y2:u.value.bottom,stroke:t.value.style.chart.layout.separators.color,"stroke-width":t.value.style.chart.layout.separators.strokeWidth,"stroke-linecap":"round"},null,8,Fe)):e.createCommentVNode("",!0),e.createElementVNode("text",{x:_.value?u.value.left+u.value.width/2+(l.sign===1?-12:12)+(l.sign===1?-t.value.style.chart.layout.bars.dataLabels.offsetX:t.value.style.chart.layout.bars.dataLabels.offsetX):ge(l.value)+3+t.value.style.chart.layout.bars.dataLabels.offsetX,y:u.value.top+(v.value+c.value)*n+c.value/2+t.value.style.chart.layout.bars.dataLabels.fontSize/2,"text-anchor":!_.value||l.sign===-1?"start":"end","font-size":t.value.style.chart.layout.bars.dataLabels.fontSize,fill:t.value.style.chart.layout.bars.dataLabels.color,"font-weight":t.value.style.chart.layout.bars.dataLabels.bold?"bold":"normal"},e.toDisplayString(J(l.value,l,n,l.sign)),9,Me),(l.isChild||!l.hasChildren)&&t.value.style.chart.layout.bars.nameLabels.show?(e.openBlock(),e.createElementBlock("text",{key:2,"text-anchor":"end",x:u.value.left-3+t.value.style.chart.layout.bars.nameLabels.offsetX,y:u.value.top+(v.value+c.value)*n+c.value/2+t.value.style.chart.layout.bars.nameLabels.fontSize/2,"font-size":t.value.style.chart.layout.bars.nameLabels.fontSize,fill:t.value.style.chart.layout.bars.nameLabels.color,"font-weight":t.value.style.chart.layout.bars.nameLabels.bold?"bold":"normal"},e.toDisplayString(l.name),9,Ie)):e.createCommentVNode("",!0),l.isChild&&l.childIndex===0&&t.value.style.chart.layout.bars.parentLabels.show?(e.openBlock(),e.createElementBlock("text",{key:3,x:3+t.value.style.chart.layout.bars.parentLabels.offsetX,y:w(l,n).y,"font-size":t.value.style.chart.layout.bars.parentLabels.fontSize,fill:t.value.style.chart.layout.bars.parentLabels.color,"font-weight":t.value.style.chart.layout.bars.parentLabels.bold?"bold":"normal","text-anchor":"start"},e.toDisplayString(w(l,n).name),9,Oe)):e.createCommentVNode("",!0),l.isChild&&l.childIndex===0&&t.value.style.chart.layout.bars.parentLabels.show?(e.openBlock(),e.createElementBlock("text",{key:4,x:3+t.value.style.chart.layout.bars.parentLabels.offsetX,y:w(l,n).y+t.value.style.chart.layout.bars.parentLabels.fontSize+6,"font-size":t.value.style.chart.layout.bars.parentLabels.fontSize,fill:t.value.style.chart.layout.bars.parentLabels.color,"font-weight":t.value.style.chart.layout.bars.dataLabels.bold?"bold":"normal","text-anchor":"start"},e.toDisplayString(J(w(l,n).value),w(l,n),n,w(l,n).sign),9,Re)):e.createCommentVNode("",!0),e.createElementVNode("rect",{"data-cy-trap":"",x:0,y:u.value.top+(v.value+c.value)*n-v.value/2,width:d.value.width<=0?1e-4:d.value.width,height:c.value+v.value<=0?1e-4:c.value+v.value,fill:D.value===l.id?`${t.value.style.chart.layout.highlighter.color}${e.unref(r.opacity)[t.value.style.chart.layout.highlighter.opacity]}`:"transparent",onMouseenter:s=>be(l,n),onMouseleave:o[1]||(o[1]=s=>{de.value=null,B.value=!1,D.value=null})},null,40,qe)]))),256)),e.renderSlot(a.$slots,"svg",{svg:d.value},void 0,!0)],14,Te)):e.createCommentVNode("",!0),a.$slots.watermark?(e.openBlock(),e.createElementBlock("div",He,[e.renderSlot(a.$slots,"watermark",e.normalizeProps(e.guardReactiveProps({isPrinting:e.unref(R)||e.unref(q)})),void 0,!0)])):e.createCommentVNode("",!0),V.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(_e.default,{key:5,config:{type:"verticalBar",style:{backgroundColor:t.value.style.chart.backgroundColor,verticalBar:{axis:{color:"#CCCCCC"},color:"#CCCCCC"}}}},null,8,["config"])),t.value.style.chart.legend.show&&t.value.style.chart.legend.position==="bottom"?(e.openBlock(),e.createElementBlock("div",{key:6,ref_key:"chartLegend",ref:z},[e.createVNode(oe.Legend,{legendSet:k.value,config:W.value,onClickMarker:o[2]||(o[2]=({legend:l})=>N(l.id))},{item:e.withCtx(({legend:l,index:n})=>[e.createElementVNode("div",{onClick:s=>N(l.id),style:e.normalizeStyle(`opacity:${y.value.includes(l.id)?.5:1}`)},e.toDisplayString(l.name)+": "+e.toDisplayString(e.unref(r.applyDataLabel)(t.value.style.chart.layout.bars.dataLabels.value.formatter,l.value,e.unref(r.dataLabel)({p:t.value.style.chart.legend.prefix,v:l.value,s:t.value.style.chart.legend.suffix,r:t.value.style.chart.legend.roundingValue}),{datapoint:l,seriesIndex:n})),13,Xe)]),_:1},8,["legendSet","config"])],512)):e.createCommentVNode("",!0),e.renderSlot(a.$slots,"legend",{legend:k.value},void 0,!0),e.createVNode(xe._sfc_main,{show:h.value.showTooltip&&B.value&&y.value.length<f.dataset.length,backgroundColor:t.value.style.chart.tooltip.backgroundColor,color:t.value.style.chart.tooltip.color,borderRadius:t.value.style.chart.tooltip.borderRadius,borderColor:t.value.style.chart.tooltip.borderColor,borderWidth:t.value.style.chart.tooltip.borderWidth,fontSize:t.value.style.chart.tooltip.fontSize,backgroundOpacity:t.value.style.chart.tooltip.backgroundOpacity,position:t.value.style.chart.tooltip.position,offsetY:t.value.style.chart.tooltip.offsetY,parent:$.value,content:L.value,isCustom:t.value.style.chart.tooltip.customFormat&&typeof t.value.style.chart.tooltip.customFormat=="function"},{"tooltip-before":e.withCtx(()=>[e.renderSlot(a.$slots,"tooltip-before",e.normalizeProps(e.guardReactiveProps({...F.value})),void 0,!0)]),"tooltip-after":e.withCtx(()=>[e.renderSlot(a.$slots,"tooltip-after",e.normalizeProps(e.guardReactiveProps({...F.value})),void 0,!0)]),_:3},8,["show","backgroundColor","color","borderRadius","borderColor","borderWidth","fontSize","backgroundOpacity","position","offsetY","parent","content","isCustom"]),V.value?(e.openBlock(),e.createBlock($e.default,{key:7,hideDetails:"",config:{open:h.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.createElementVNode("div",{ref_key:"tableContainer",ref:A,class:"vue-ui-vertical-bar-table"},[e.createElementVNode("div",je,[e.createElementVNode("div",{role:"button",tabindex:"0",style:e.normalizeStyle(`width:32px; position: absolute; top: 0; right:4px; padding: 0 0px; display: flex; align-items:center;justify-content:center;height: 36px; width: 32px; cursor:pointer; background:${t.value.table.th.backgroundColor};`),onClick:o[3]||(o[3]=l=>h.value.showTable=!1),onKeypress:o[4]||(o[4]=e.withKeys(l=>h.value.showTable=!1,["enter"]))},[e.createVNode(we.default,{name:"close",stroke:t.value.table.th.color,"stroke-width":2},null,8,["stroke"])],36),e.createElementVNode("div",{style:{width:"100%","container-type":"inline-size"},class:e.normalizeClass({"vue-ui-responsive":G.value})},[e.createElementVNode("table",Ae,[e.createElementVNode("caption",{style:e.normalizeStyle({backgroundColor:t.value.table.th.backgroundColor,color:t.value.table.th.color,outline:t.value.table.th.outline}),class:"vue-ui-data-table__caption"},[e.createTextVNode(e.toDisplayString(t.value.style.chart.title.text)+" ",1),t.value.style.chart.title.subtitle.text?(e.openBlock(),e.createElementBlock("span",Ge,e.toDisplayString(t.value.style.chart.title.subtitle.text),1)):e.createCommentVNode("",!0)],4),e.createElementVNode("thead",null,[e.createElementVNode("tr",{role:"row",style:e.normalizeStyle(`background:${t.value.table.th.backgroundColor};color:${t.value.table.th.color}`)},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(p.value.head,l=>(e.openBlock(),e.createElementBlock("th",{style:e.normalizeStyle(`outline:${t.value.table.th.outline}`)},[e.createElementVNode("div",Ue,e.toDisplayString(l),1)],4))),256))],4),e.createElementVNode("tr",null,[e.createElementVNode("th",{style:e.normalizeStyle(`background:${t.value.table.th.backgroundColor};color:${t.value.table.th.color};outline:${t.value.table.th.outline}`)},null,4),e.createElementVNode("th",{style:e.normalizeStyle(`background:${t.value.table.th.backgroundColor};color:${t.value.table.th.color};outline:${t.value.table.th.outline};text-align:right;padding-right:5px;font-weight:bold`)},"∑ "+e.toDisplayString(t.value.table.td.prefix)+e.toDisplayString(isNaN(g.value)?"":g.value.toFixed(t.value.table.td.roundingValue))+e.toDisplayString(t.value.table.td.suffix),5),e.createElementVNode("th",{style:e.normalizeStyle(`background:${t.value.table.th.backgroundColor};color:${t.value.table.th.color};outline:${t.value.table.th.outline};text-align:right;padding-right:5px;font-weight:bold`)},"100%",4),e.createElementVNode("th",{style:e.normalizeStyle(`background:${t.value.table.th.backgroundColor};color:${t.value.table.th.color};outline:${t.value.table.th.outline}`)},null,4),e.createElementVNode("th",{style:e.normalizeStyle(`background:${t.value.table.th.backgroundColor};color:${t.value.table.th.color};outline:${t.value.table.th.outline}`)},null,4),e.createElementVNode("th",{style:e.normalizeStyle(`background:${t.value.table.th.backgroundColor};color:${t.value.table.th.color};outline:${t.value.table.th.outline}`)},null,4),e.createElementVNode("th",{style:e.normalizeStyle(`background:${t.value.table.th.backgroundColor};color:${t.value.table.th.color};outline:${t.value.table.th.outline}`)},null,4)])]),e.createElementVNode("tbody",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(p.value.body,(l,n)=>(e.openBlock(),e.createElementBlock("tr",{class:e.normalizeClass({"vue-ui-data-table__tbody__row":!0,"vue-ui-data-table__tbody__row-even":n%2===0,"vue-ui-data-table__tbody__row-odd":n%2!==0}),style:e.normalizeStyle(`background:${t.value.table.td.backgroundColor};color:${t.value.table.td.color}`)},[e.createElementVNode("td",{class:"vue-ui-data-table__tbody__td",style:e.normalizeStyle(`outline:${t.value.table.td.outline};font-variant-numeric: tabular-nums;`),"data-cell":p.value.head[0]??""},[e.createElementVNode("div",Ye,[l.color?(e.openBlock(),e.createElementBlock("span",{key:0,style:e.normalizeStyle(`color:${l.color};margin-right:3px`)},"⬤",4)):e.createCommentVNode("",!0),e.createElementVNode("span",null,e.toDisplayString(l.parentName),1)])],12,We),e.createElementVNode("td",{class:"vue-ui-data-table__tbody__td",style:e.normalizeStyle(`outline:${t.value.table.td.outline}`),"data-cell":p.value.head[1]??""},[e.createElementVNode("div",Je,e.toDisplayString(t.value.table.td.prefix)+e.toDisplayString(["",NaN,void 0].includes(l.parentValue)?"":l.parentValue.toFixed(t.value.table.td.roundingValue))+e.toDisplayString(t.value.table.td.suffix),1)],12,Ke),e.createElementVNode("td",{class:"vue-ui-data-table__tbody__td",style:e.normalizeStyle(`outline:${t.value.table.td.outline}`),"data-cell":p.value.head[2]??""},[e.createElementVNode("div",Ze,e.toDisplayString(["",NaN,void 0].includes(l.percentageToTotal)?"":`${(l.percentageToTotal*100).toFixed(t.value.table.td.roundingPercentage)}%`),1)],12,Qe),e.createElementVNode("td",{class:"vue-ui-data-table__tbody__td",style:e.normalizeStyle(`outline:${t.value.table.td.outline}`),"data-cell":p.value.head[3]??""},[e.createElementVNode("div",tt,e.toDisplayString(l.childName),1)],12,et),e.createElementVNode("td",{class:"vue-ui-data-table__tbody__td",style:e.normalizeStyle(`outline:${t.value.table.td.outline}`),"data-cell":p.value.head[4]??""},[e.createElementVNode("div",at,e.toDisplayString(t.value.table.td.prefix)+e.toDisplayString(["",NaN,void 0].includes(l.childValue)?"":l.childValue.toFixed(t.value.table.td.roundingValue))+e.toDisplayString(t.value.table.td.suffix),1)],12,lt),e.createElementVNode("td",{class:"vue-ui-data-table__tbody__td",style:e.normalizeStyle(`outline:${t.value.table.td.outline}`),"data-cell":p.value.head[5]??""},[e.createElementVNode("div",nt,e.toDisplayString(["",NaN,void 0].includes(l.childPercentageToParent)?"":`${(l.childPercentageToParent*100).toFixed(t.value.table.td.roundingPercentage)}%`),1)],12,ot),e.createElementVNode("td",{class:"vue-ui-data-table__tbody__td",style:e.normalizeStyle(`outline:${t.value.table.td.outline}`),"data-cell":p.value.head[6]??""},[e.createElementVNode("div",ut,e.toDisplayString(["",NaN,void 0].includes(l.childPercentageToTotal)?"":`${(l.childPercentageToTotal*100).toFixed(t.value.table.td.roundingPercentage)}%`),1)],12,rt)],6))),256))])])],2)])],512)]),_:1},8,["config"])):e.createCommentVNode("",!0)],14,Se))}},it=Ne._export_sfc(st,[["__scopeId","data-v-bfc1046b"]]);exports.default=it;
|