vue-data-ui 3.17.13 → 3.18.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/A11yDataTable-q2-8fSlJ.js +45 -0
- package/dist/Arrow-Cj6W6Xbi.js +116 -0
- package/dist/BaseDraggableDialog-BQcmQAK5.js +272 -0
- package/dist/BaseIcon-CEmt3Ifx.js +499 -0
- package/dist/BaseLegendToggle-DUIqQmwM.js +56 -0
- package/dist/BaseScanner-C7dmAref.js +27 -0
- package/dist/BaseZoomControls-Ce1yqas1.js +111 -0
- package/dist/ColorPicker-DS_QkH3W.js +255 -0
- package/dist/DataTable-BvDJEAma.js +150 -0
- package/dist/Legend-Gg5Q4Clb.js +114 -0
- package/dist/NonSvgPenAndPaper-D4Gh7O43.js +577 -0
- package/dist/PackageVersion-DhDKg-ez.js +11 -0
- package/dist/PenAndPaper-DwpL8Z0l.js +461 -0
- package/dist/RecursiveCircles-DPpLel6f.js +117 -0
- package/dist/RecursiveLabels-DBMJf_to.js +56 -0
- package/dist/RecursiveLinks-D06dBL4a.js +78 -0
- package/dist/Shape-DEGOZ6GG.js +141 -0
- package/dist/Slicer-BlfyiHHD.js +1144 -0
- package/dist/SlicerPreview-BPS8mYO2.js +1523 -0
- package/dist/SparkTooltip-c2DL7gqD.js +93 -0
- package/dist/Title-__gWq2g6.js +87 -0
- package/dist/Tooltip-B7lmdbac.js +307 -0
- package/dist/UserOptions-DMw8EZEo.js +1407 -0
- package/dist/_plugin-vue_export-helper-Dq1MygBL.js +8 -0
- package/dist/canvas-lib-DTaADQOK.js +79 -0
- package/dist/components/arrow.js +2 -5
- package/dist/components/vue-ui-3d-bar.js +2 -5
- package/dist/components/vue-ui-accordion.js +2 -5
- package/dist/components/vue-ui-age-pyramid.js +2 -5
- package/dist/components/vue-ui-annotator.js +2 -5
- package/dist/components/vue-ui-bullet.js +2 -5
- package/dist/components/vue-ui-bump.js +2 -5
- package/dist/components/vue-ui-candlestick.js +2 -5
- package/dist/components/vue-ui-carousel-table.js +2 -5
- package/dist/components/vue-ui-chestnut.js +2 -5
- package/dist/components/vue-ui-chord.js +2 -5
- package/dist/components/vue-ui-circle-pack.js +2 -5
- package/dist/components/vue-ui-cursor.js +2 -5
- package/dist/components/vue-ui-dag.js +2 -5
- package/dist/components/vue-ui-dashboard.js +2 -5
- package/dist/components/vue-ui-digits.js +2 -5
- package/dist/components/vue-ui-donut-evolution.js +2 -5
- package/dist/components/vue-ui-donut.js +2 -5
- package/dist/components/vue-ui-dumbbell.js +2 -5
- package/dist/components/vue-ui-flow.js +2 -5
- package/dist/components/vue-ui-funnel.js +2 -5
- package/dist/components/vue-ui-galaxy.js +2 -5
- package/dist/components/vue-ui-gauge.js +2 -5
- package/dist/components/vue-ui-geo.js +2 -5
- package/dist/components/vue-ui-gizmo.js +2 -5
- package/dist/components/vue-ui-heatmap.js +2 -5
- package/dist/components/vue-ui-history-plot.js +2 -5
- package/dist/components/vue-ui-horizontal-bar.js +2 -5
- package/dist/components/vue-ui-icon.js +2 -5
- package/dist/components/vue-ui-kpi.js +2 -5
- package/dist/components/vue-ui-mini-loader.js +2 -5
- package/dist/components/vue-ui-molecule.js +2 -5
- package/dist/components/vue-ui-mood-radar.js +2 -5
- package/dist/components/vue-ui-nested-donuts.js +2 -5
- package/dist/components/vue-ui-onion.js +2 -5
- package/dist/components/vue-ui-parallel-coordinate-plot.js +2 -5
- package/dist/components/vue-ui-pattern-seed.js +2 -5
- package/dist/components/vue-ui-pattern.js +2 -5
- package/dist/components/vue-ui-quadrant.js +2 -5
- package/dist/components/vue-ui-quick-chart.js +2 -5
- package/dist/components/vue-ui-radar.js +2 -5
- package/dist/components/vue-ui-rating.js +2 -5
- package/dist/components/vue-ui-relation-circle.js +2 -5
- package/dist/components/vue-ui-ridgeline.js +2 -5
- package/dist/components/vue-ui-rings.js +2 -5
- package/dist/components/vue-ui-scatter.js +2 -5
- package/dist/components/vue-ui-skeleton.js +2 -5
- package/dist/components/vue-ui-smiley.js +2 -5
- package/dist/components/vue-ui-spark-trend.js +2 -5
- package/dist/components/vue-ui-sparkbar.js +2 -5
- package/dist/components/vue-ui-sparkgauge.js +2 -5
- package/dist/components/vue-ui-sparkhistogram.js +2 -5
- package/dist/components/vue-ui-sparkline.js +2 -5
- package/dist/components/vue-ui-sparkstackbar.js +2 -5
- package/dist/components/vue-ui-stackbar.js +2 -5
- package/dist/components/vue-ui-stackline.js +2 -5
- package/dist/components/vue-ui-strip-plot.js +2 -5
- package/dist/components/vue-ui-table-heatmap.js +2 -5
- package/dist/components/vue-ui-table-sparkline.js +2 -5
- package/dist/components/vue-ui-table.js +2 -5
- package/dist/components/vue-ui-thermometer.js +2 -5
- package/dist/components/vue-ui-timer.js +2 -5
- package/dist/components/vue-ui-tiremarks.js +2 -5
- package/dist/components/vue-ui-treemap.js +2 -5
- package/dist/components/vue-ui-vertical-bar.js +2 -5
- package/dist/components/vue-ui-waffle.js +2 -5
- package/dist/components/vue-ui-wheel.js +2 -5
- package/dist/components/vue-ui-word-cloud.js +2 -5
- package/dist/components/vue-ui-world.js +2 -5
- package/dist/components/vue-ui-xy-canvas.js +2 -5
- package/dist/components/vue-ui-xy.js +2 -5
- package/dist/dom-to-png-9WSt6hXe.js +237 -0
- package/dist/exposedLib-CwWU4zv-.js +19 -0
- package/dist/geoProjections-CQIkC70z.js +146 -0
- package/dist/img-BjOr008R.js +74 -0
- package/dist/labelUtils-Cr97N8E1.js +19 -0
- package/dist/lib-BkiwukKO.js +1879 -0
- package/dist/patternUtils-B7BWu5bV.js +258 -0
- package/dist/pdf-DSXSFUnK.js +90 -0
- package/dist/rolldown-runtime-CAFD8bLK.js +11 -0
- package/dist/style.css +2 -1
- package/dist/types/arrow.d.ts +1 -1
- package/dist/types/utils.d.ts +23 -0
- package/dist/types/vue-data-ui.d.ts +4775 -627
- package/dist/types/vue-ui-3d-bar.d.ts +64 -9
- package/dist/types/vue-ui-accordion.d.ts +4 -3
- package/dist/types/vue-ui-age-pyramid.d.ts +79 -9
- package/dist/types/vue-ui-annotator.d.ts +3 -5
- package/dist/types/vue-ui-bullet.d.ts +60 -9
- package/dist/types/vue-ui-bump.d.ts +65 -9
- package/dist/types/vue-ui-candlestick.d.ts +83 -9
- package/dist/types/vue-ui-carousel-table.d.ts +36 -6
- package/dist/types/vue-ui-chestnut.d.ts +66 -9
- package/dist/types/vue-ui-chord.d.ts +78 -9
- package/dist/types/vue-ui-circle-pack.d.ts +86 -9
- package/dist/types/vue-ui-cursor.d.ts +4 -2
- package/dist/types/vue-ui-dag.d.ts +92 -9
- package/dist/types/vue-ui-dashboard.d.ts +43 -6
- package/dist/types/vue-ui-digits.d.ts +4 -2
- package/dist/types/vue-ui-donut-evolution.d.ts +70 -9
- package/dist/types/vue-ui-donut.d.ts +92 -9
- package/dist/types/vue-ui-dumbbell.d.ts +65 -9
- package/dist/types/vue-ui-flow.d.ts +79 -9
- package/dist/types/vue-ui-funnel.d.ts +55 -9
- package/dist/types/vue-ui-galaxy.d.ts +83 -9
- package/dist/types/vue-ui-gauge.d.ts +64 -9
- package/dist/types/vue-ui-geo.d.ts +71 -9
- package/dist/types/vue-ui-gizmo.d.ts +17 -6
- package/dist/types/vue-ui-heatmap.d.ts +73 -9
- package/dist/types/vue-ui-history-plot.d.ts +82 -9
- package/dist/types/vue-ui-horizontal-bar.d.ts +84 -9
- package/dist/types/vue-ui-icon.d.ts +2 -2
- package/dist/types/vue-ui-kpi.d.ts +21 -7
- package/dist/types/vue-ui-mini-loader.d.ts +5 -3
- package/dist/types/vue-ui-molecule.d.ts +86 -9
- package/dist/types/vue-ui-mood-radar.d.ts +66 -9
- package/dist/types/vue-ui-nested-donuts.d.ts +80 -9
- package/dist/types/vue-ui-onion.d.ts +77 -9
- package/dist/types/vue-ui-parallel-coordinate-plot.d.ts +92 -9
- package/dist/types/vue-ui-pattern-seed.d.ts +1 -1
- package/dist/types/vue-ui-pattern.d.ts +2 -2
- package/dist/types/vue-ui-quadrant.d.ts +86 -9
- package/dist/types/vue-ui-quick-chart.d.ts +79 -9
- package/dist/types/vue-ui-radar.d.ts +83 -9
- package/dist/types/vue-ui-rating.d.ts +22 -6
- package/dist/types/vue-ui-relation-circle.d.ts +66 -9
- package/dist/types/vue-ui-ridgeline.d.ts +69 -9
- package/dist/types/vue-ui-rings.d.ts +70 -9
- package/dist/types/vue-ui-scatter.d.ts +67 -9
- package/dist/types/vue-ui-skeleton.d.ts +3 -2
- package/dist/types/vue-ui-smiley.d.ts +3 -2
- package/dist/types/vue-ui-spark-trend.d.ts +14 -6
- package/dist/types/vue-ui-sparkbar.d.ts +27 -6
- package/dist/types/vue-ui-sparkgauge.d.ts +20 -6
- package/dist/types/vue-ui-sparkhistogram.d.ts +24 -6
- package/dist/types/vue-ui-sparkline.d.ts +35 -6
- package/dist/types/vue-ui-sparkstackbar.d.ts +35 -6
- package/dist/types/vue-ui-stackbar.d.ts +85 -9
- package/dist/types/vue-ui-stackline.d.ts +81 -9
- package/dist/types/vue-ui-strip-plot.d.ts +66 -9
- package/dist/types/vue-ui-table-heatmap.d.ts +52 -6
- package/dist/types/vue-ui-table-sparkline.d.ts +30 -6
- package/dist/types/vue-ui-table.d.ts +10 -2
- package/dist/types/vue-ui-thermometer.d.ts +46 -9
- package/dist/types/vue-ui-timer.d.ts +31 -5
- package/dist/types/vue-ui-tiremarks.d.ts +46 -9
- package/dist/types/vue-ui-treemap.d.ts +73 -9
- package/dist/types/vue-ui-vertical-bar.d.ts +2 -2
- package/dist/types/vue-ui-waffle.d.ts +72 -9
- package/dist/types/vue-ui-wheel.d.ts +46 -9
- package/dist/types/vue-ui-word-cloud.d.ts +73 -9
- package/dist/types/vue-ui-world.d.ts +68 -9
- package/dist/types/vue-ui-xy-canvas.d.ts +75 -9
- package/dist/types/vue-ui-xy.d.ts +108 -10
- package/dist/useAutoSizeLabelsInsideViewbox-dp-3Gg97.js +50 -0
- package/dist/useChartAccessibility-Do37qcw2.js +12 -0
- package/dist/useConfig-BV0kTCnO.js +7431 -0
- package/dist/useFitSvgText-C-MEdAfe.js +63 -0
- package/dist/useNestedProp-Ck4hsrpu.js +10 -0
- package/dist/useObjectBindings-Ce_ZZk-f.js +189 -0
- package/dist/usePanZoom-B-4M_gmY.js +157 -0
- package/dist/usePrefersMotion-BywLbIko.js +15 -0
- package/dist/usePrinter-X0yWOynH.js +49 -0
- package/dist/useResponsive-CrAInupd.js +19 -0
- package/dist/useStableElementSize-0I1IpHPl.js +77 -0
- package/dist/useSvgExport-Dtu973wa.js +755 -0
- package/dist/useTableResponsive-DrM1xqII.js +24 -0
- package/dist/useThemeCheck-rFK9Zlb_.js +24 -0
- package/dist/useTimeLabelCollider-Dm55Emzg.js +57 -0
- package/dist/useTimeLabels-C0x7zUXP.js +272 -0
- package/dist/useUserOptionState-CjPJPTg2.js +15 -0
- package/dist/utils.js +27 -44
- package/dist/vClickOutside-CbX_bC9A.js +13 -0
- package/dist/vue-data-ui-DIh8ayZc.js +274 -0
- package/dist/vue-data-ui.js +76 -167
- package/dist/vue-ui-3d-bar-BZ8_6ylo.js +1747 -0
- package/dist/vue-ui-accordion-cVv18nTV.js +81 -0
- package/dist/vue-ui-age-pyramid-BR3i-CgS.js +1226 -0
- package/dist/vue-ui-annotator-B9mA_PlF.js +2899 -0
- package/dist/vue-ui-bullet-ByJdNLVf.js +700 -0
- package/dist/vue-ui-bump-Ps1gkA-F.js +1239 -0
- package/dist/vue-ui-candlestick-0C1QFoV4.js +1802 -0
- package/dist/vue-ui-carousel-table-1P28pCRK.js +445 -0
- package/dist/vue-ui-chestnut-CJOCGWwX.js +2000 -0
- package/dist/vue-ui-chord-BpiVJCCm.js +1381 -0
- package/dist/vue-ui-circle-pack-C3wvXz1f.js +1183 -0
- package/dist/vue-ui-cursor-CNn_3b24.js +283 -0
- package/dist/vue-ui-dag-DRVXVCJV.js +2899 -0
- package/dist/vue-ui-dashboard-gOXyms0o.js +503 -0
- package/dist/vue-ui-digits-DIKyN3z6.js +209 -0
- package/dist/vue-ui-donut-RogzKj0G.js +2396 -0
- package/dist/vue-ui-donut-evolution-Bxz06Qqf.js +1490 -0
- package/dist/vue-ui-dumbbell-D10T4gmB.js +1517 -0
- package/dist/vue-ui-flow-OK563Z46.js +1223 -0
- package/dist/vue-ui-funnel-nWmbiJu5.js +767 -0
- package/dist/vue-ui-galaxy-CtaTlHWZ.js +1062 -0
- package/dist/vue-ui-gauge-DWTEHJqX.js +910 -0
- package/dist/vue-ui-geo-DUpWvv5m.js +1504 -0
- package/dist/vue-ui-gizmo-vddzP4dM.js +225 -0
- package/dist/vue-ui-heatmap-CUE_zJQa.js +1556 -0
- package/dist/vue-ui-history-plot-CcRg_NgJ.js +1551 -0
- package/dist/vue-ui-horizontal-bar-DX5aZOEn.js +1669 -0
- package/dist/vue-ui-kpi-B74v84Hu.js +96 -0
- package/dist/vue-ui-mini-loader-BcCG6Yqb.js +125 -0
- package/dist/vue-ui-molecule-CVdB8rxf.js +912 -0
- package/dist/vue-ui-mood-radar-CWDVBOck.js +1138 -0
- package/dist/vue-ui-nested-donuts-Be8b5d81.js +1472 -0
- package/dist/vue-ui-onion-Cs90yQQZ.js +1188 -0
- package/dist/vue-ui-parallel-coordinate-plot-D-mZdTop.js +1413 -0
- package/dist/vue-ui-pattern-Bj-IPFr2.js +154 -0
- package/dist/vue-ui-pattern-seed-abRweCDE.js +61 -0
- package/dist/vue-ui-quadrant-DLD_ZR9M.js +1966 -0
- package/dist/vue-ui-quick-chart-UWjZdmzt.js +2459 -0
- package/dist/vue-ui-radar-Bxu07MOG.js +1214 -0
- package/dist/vue-ui-rating-DA9Bmfyb.js +343 -0
- package/dist/vue-ui-relation-circle-O5s1UJtt.js +914 -0
- package/dist/vue-ui-ridgeline-C3siN0d_.js +1612 -0
- package/dist/vue-ui-rings-DVVDtwhB.js +1231 -0
- package/dist/vue-ui-scatter-Cfvh06OC.js +2380 -0
- package/dist/vue-ui-skeleton-CxTmGCQp.js +2556 -0
- package/dist/vue-ui-smiley-B6nc7b71.js +356 -0
- package/dist/vue-ui-spark-trend--39vutfQ.js +438 -0
- package/dist/vue-ui-sparkbar-DhCRNOu4.js +393 -0
- package/dist/vue-ui-sparkgauge-6Igkqlqs.js +255 -0
- package/dist/vue-ui-sparkhistogram-BLEzZSZi.js +560 -0
- package/dist/vue-ui-sparkline-ppwKM4aO.js +1503 -0
- package/dist/vue-ui-sparkstackbar-uIzSq9Wh.js +660 -0
- package/dist/vue-ui-stackbar-CdOkMCbI.js +2235 -0
- package/dist/vue-ui-stackline-DifD9OXC.js +2362 -0
- package/dist/vue-ui-strip-plot-D1LjIVqK.js +1328 -0
- package/dist/vue-ui-table-WDkEyyQ0.js +1338 -0
- package/dist/vue-ui-table-heatmap-CfGJVzI3.js +334 -0
- package/dist/vue-ui-table-sparkline-BEWWP4Rq.js +697 -0
- package/dist/vue-ui-thermometer-CFWOAB8K.js +753 -0
- package/dist/vue-ui-timer-D1DQyf9i.js +439 -0
- package/dist/vue-ui-tiremarks-IeM3BlPW.js +542 -0
- package/dist/vue-ui-treemap-BGZM7ibv.js +1575 -0
- package/dist/vue-ui-waffle-a3dFVBk4.js +1350 -0
- package/dist/vue-ui-wheel-OnIRQJ8a.js +875 -0
- package/dist/vue-ui-word-cloud-C9SkyutR.js +1644 -0
- package/dist/vue-ui-world-CEevuFbk.js +14252 -0
- package/dist/vue-ui-xy-1hee-IEM.js +4114 -0
- package/dist/vue-ui-xy-canvas-D2f0d45c.js +1774 -0
- package/dist/vue_ui_3d_bar-CXKqO5Ej.js +185 -0
- package/dist/vue_ui_age_pyramid-BON8QI6X.js +301 -0
- package/dist/vue_ui_bullet-CE5sFT7u.js +186 -0
- package/dist/vue_ui_bump-frnXaXul.js +201 -0
- package/dist/vue_ui_candlestick-sY6UtOop.js +374 -0
- package/dist/vue_ui_chestnut-BiUZFv40.js +305 -0
- package/dist/vue_ui_chord-DpyR_b9A.js +275 -0
- package/dist/vue_ui_circle_pack-DBKz_Fi_.js +130 -0
- package/dist/vue_ui_dag-Ci_MOnvd.js +258 -0
- package/dist/vue_ui_donut-Cx2_BGcQ.js +358 -0
- package/dist/vue_ui_donut_evolution-CAJefrHs.js +717 -0
- package/dist/vue_ui_dumbbell-CClzAZTN.js +304 -0
- package/dist/vue_ui_flow-CCHO1Lo9.js +238 -0
- package/dist/vue_ui_funnel-h8q2mRpC.js +234 -0
- package/dist/vue_ui_galaxy-70vtkEBw.js +265 -0
- package/dist/vue_ui_gauge-C17CgfzN.js +178 -0
- package/dist/vue_ui_geo-C0UbQ0Lc.js +248 -0
- package/dist/vue_ui_heatmap-BqPP3J4M.js +319 -0
- package/dist/vue_ui_history_plot-C5nytDHh.js +413 -0
- package/dist/vue_ui_horizontal_bar-Bqxorkc_.js +341 -0
- package/dist/vue_ui_molecule-Dka4JBOp.js +231 -0
- package/dist/vue_ui_mood_radar-Dg4ijm53.js +281 -0
- package/dist/vue_ui_nested_donuts-BY9cOoHF.js +273 -0
- package/dist/vue_ui_onion-DTV9cup-.js +293 -0
- package/dist/vue_ui_parallel_coordinate_plot-CNWrDh96.js +278 -0
- package/dist/vue_ui_quadrant-3kjYvxpj.js +428 -0
- package/dist/vue_ui_quick_chart--VaYQuM4.js +139 -0
- package/dist/vue_ui_radar-Dxx9GJmj.js +306 -0
- package/dist/vue_ui_relation_circle-Cr0I2SoU.js +98 -0
- package/dist/vue_ui_ridgeline-CAtYca4b.js +767 -0
- package/dist/vue_ui_rings-DXC1VeX5.js +320 -0
- package/dist/vue_ui_scatter-D2S2j0ap.js +479 -0
- package/dist/vue_ui_spark_trend-BHMQ6_1p.js +82 -0
- package/dist/vue_ui_sparkbar-BR6hbuDE.js +64 -0
- package/dist/vue_ui_sparkgauge-xfPRHnMv.js +90 -0
- package/dist/vue_ui_sparkhistogram-CJRENZ1C.js +123 -0
- package/dist/vue_ui_sparkline-wgk7yO7E.js +151 -0
- package/dist/vue_ui_sparkstackbar-C5qZMmAl.js +175 -0
- package/dist/vue_ui_stackbar-BW_C3MXw.js +412 -0
- package/dist/vue_ui_stackline-DpI2LnjO.js +426 -0
- package/dist/vue_ui_strip_plot-8ZelqC5b.js +301 -0
- package/dist/vue_ui_table_heatmap-BGUjA0WA.js +80 -0
- package/dist/vue_ui_table_sparkline-i0Q-N_we.js +124 -0
- package/dist/vue_ui_thermometer-CuN7Gpez.js +123 -0
- package/dist/vue_ui_tiremarks-A6UHC0c3.js +122 -0
- package/dist/vue_ui_treemap-BQp06q-g.js +328 -0
- package/dist/vue_ui_vertical_bar-CJSD1FZS.js +247 -0
- package/dist/vue_ui_waffle-C_Ev4l7B.js +292 -0
- package/dist/vue_ui_wheel-DdkTPXJU.js +133 -0
- package/dist/vue_ui_word_cloud-B1PbsYPc.js +254 -0
- package/dist/vue_ui_xy-BYPqfYyx.js +482 -0
- package/dist/vue_ui_xy_canvas-CMHGNrLf.js +408 -0
- package/package.json +7 -7
- package/dist/A11yDataTable-BpmuNomI.js +0 -54
- package/dist/Arrow-dSvLFssU.js +0 -101
- package/dist/BaseDraggableDialog-Di8Hlru3.js +0 -249
- package/dist/BaseIcon-DX0hTWa-.js +0 -476
- package/dist/BaseLegendToggle-cMP8M2u0.js +0 -47
- package/dist/BaseScanner-C2j3TsSY.js +0 -36
- package/dist/BaseZoomControls-CVSC1-SU.js +0 -123
- package/dist/ColorPicker-bAxGcXK0.js +0 -271
- package/dist/DataTable-cMnb68Ik.js +0 -145
- package/dist/Legend-DGN5lY60.js +0 -104
- package/dist/NonSvgPenAndPaper-B6E0zEYe.js +0 -573
- package/dist/PackageVersion-BfrCAH6_.js +0 -10
- package/dist/PenAndPaper-CJDoB5H9.js +0 -527
- package/dist/RecursiveCircles-BE6GoMmo.js +0 -101
- package/dist/RecursiveLabels-BhQMS9Sm.js +0 -55
- package/dist/RecursiveLinks-BDwyYfP-.js +0 -83
- package/dist/Shape-CxJ5_Rre.js +0 -116
- package/dist/Slicer-D7UcO8sN.js +0 -1145
- package/dist/SlicerPreview-D_CgrN_7.js +0 -1580
- package/dist/SparkTooltip-D4bM-kfz.js +0 -68
- package/dist/Title-BbKoiBk2.js +0 -88
- package/dist/Tooltip-Cvt7Fi0Q.js +0 -299
- package/dist/UserOptions-DVduN6X7.js +0 -1474
- package/dist/_plugin-vue_export-helper-CHgC5LLL.js +0 -9
- package/dist/dom-to-png-DGvx6i5V.js +0 -262
- package/dist/exposedLib-sJvY1pST.js +0 -22
- package/dist/geoProjections-BFq2sOBY.js +0 -162
- package/dist/img-CjTQXS0U.js +0 -57
- package/dist/labelUtils-DX9oyq3C.js +0 -26
- package/dist/lib-DMzrGQHK.js +0 -2477
- package/dist/patternUtils-BINhU4Ky.js +0 -615
- package/dist/pdf-C4H4o1Cj.js +0 -88
- package/dist/useAutoSizeLabelsInsideViewbox-izlGDfwu.js +0 -55
- package/dist/useChartAccessibility-cp6XQtqi.js +0 -15
- package/dist/useConfig-CG4HT3wS.js +0 -7901
- package/dist/useFitSvgText-2crs6Fv5.js +0 -69
- package/dist/useNestedProp-DH0BEVVS.js +0 -13
- package/dist/useObjectBindings-Dixg-RIe.js +0 -228
- package/dist/usePanZoom-BbDhcKWf.js +0 -141
- package/dist/usePrefersMotion-Co0nj1eS.js +0 -17
- package/dist/usePrinter-C4t8DdQ-.js +0 -51
- package/dist/useResponsive-DfdjqQps.js +0 -195
- package/dist/useStableElementSize-C48ZVcZQ.js +0 -77
- package/dist/useSvgExport-BTG4hVPO.js +0 -870
- package/dist/useTableResponsive-BpfiEtzR.js +0 -26
- package/dist/useThemeCheck-C9Ccl7U9.js +0 -36
- package/dist/useTimeLabelCollider-D3JeJ6Ye.js +0 -86
- package/dist/useTimeLabels-Cv0tD9In.js +0 -307
- package/dist/useUserOptionState-B7Ej974k.js +0 -19
- package/dist/vClickOutside-C6WiFswA.js +0 -13
- package/dist/vue-data-ui-D1ZI7Y4l.js +0 -433
- package/dist/vue-ui-3d-bar-DEjKYzI5.js +0 -1824
- package/dist/vue-ui-accordion-DFtpH_16.js +0 -92
- package/dist/vue-ui-age-pyramid-LiC9hTjP.js +0 -1179
- package/dist/vue-ui-annotator-DrKnQoHf.js +0 -2991
- package/dist/vue-ui-bullet-DdxEINdq.js +0 -769
- package/dist/vue-ui-bump-CdgO1V7z.js +0 -1250
- package/dist/vue-ui-candlestick-DxJnPwto.js +0 -1775
- package/dist/vue-ui-carousel-table-CMefu5TI.js +0 -487
- package/dist/vue-ui-chestnut-BnGN72PO.js +0 -2001
- package/dist/vue-ui-chord-DWyar45U.js +0 -1457
- package/dist/vue-ui-circle-pack-CQ8vF2XH.js +0 -1076
- package/dist/vue-ui-cursor-HHOdkmyB.js +0 -260
- package/dist/vue-ui-dag-BDWPBElq.js +0 -3209
- package/dist/vue-ui-dashboard-Dg_I3X2a.js +0 -627
- package/dist/vue-ui-digits-CZmdir8V.js +0 -211
- package/dist/vue-ui-donut-BKegKHxj.js +0 -2608
- package/dist/vue-ui-donut-evolution-047dE4Lu.js +0 -1578
- package/dist/vue-ui-dumbbell-BL4ZMChj.js +0 -1552
- package/dist/vue-ui-flow-BAqtyunQ.js +0 -1279
- package/dist/vue-ui-funnel-Pl2sEOZs.js +0 -823
- package/dist/vue-ui-galaxy-CBF5Wsax.js +0 -1108
- package/dist/vue-ui-gauge-COV_S0Vp.js +0 -955
- package/dist/vue-ui-geo-CaPXElPf.js +0 -1510
- package/dist/vue-ui-gizmo-Csn7up96.js +0 -238
- package/dist/vue-ui-heatmap-Cpb0BYLa.js +0 -1694
- package/dist/vue-ui-history-plot-ZZEdzFCE.js +0 -1564
- package/dist/vue-ui-horizontal-bar-BonPYUZf.js +0 -1735
- package/dist/vue-ui-kpi-DoHhSsDK.js +0 -130
- package/dist/vue-ui-mini-loader-DOTBVCLE.js +0 -138
- package/dist/vue-ui-molecule-mVYnXouV.js +0 -945
- package/dist/vue-ui-mood-radar-DPvwnc3z.js +0 -1197
- package/dist/vue-ui-nested-donuts-C7E6TXrZ.js +0 -1702
- package/dist/vue-ui-onion-BGIlFhGB.js +0 -1207
- package/dist/vue-ui-parallel-coordinate-plot-C6G_A9ua.js +0 -1432
- package/dist/vue-ui-pattern-mXZW_pvA.js +0 -146
- package/dist/vue-ui-pattern-seed-BcNlxb2i.js +0 -36
- package/dist/vue-ui-quadrant-CVpIeYOB.js +0 -1918
- package/dist/vue-ui-quick-chart-CcV8qn9-.js +0 -2514
- package/dist/vue-ui-radar-G4AV1rBo.js +0 -1259
- package/dist/vue-ui-rating-CqPlP88P.js +0 -370
- package/dist/vue-ui-relation-circle-CkZ8oFVV.js +0 -856
- package/dist/vue-ui-ridgeline-CBTyYn6Q.js +0 -1737
- package/dist/vue-ui-rings-CSIOqFiP.js +0 -1256
- package/dist/vue-ui-scatter-AuC46ufT.js +0 -2345
- package/dist/vue-ui-skeleton-YD6rZjY_.js +0 -2475
- package/dist/vue-ui-smiley-CY0WFv2j.js +0 -391
- package/dist/vue-ui-spark-trend-D8KGIt-R.js +0 -423
- package/dist/vue-ui-sparkbar-BjWGJjzN.js +0 -424
- package/dist/vue-ui-sparkgauge-Dab5mss7.js +0 -285
- package/dist/vue-ui-sparkhistogram-D0rsmiPh.js +0 -559
- package/dist/vue-ui-sparkline-BCaauQuX.js +0 -1550
- package/dist/vue-ui-sparkstackbar-NT5yD6xA.js +0 -672
- package/dist/vue-ui-stackbar-ChBk_A1c.js +0 -2393
- package/dist/vue-ui-stackline-Cujamlze.js +0 -2490
- package/dist/vue-ui-strip-plot-CGBumG6I.js +0 -1293
- package/dist/vue-ui-table-BX2iMku4.js +0 -1726
- package/dist/vue-ui-table-heatmap-KXgXYVXm.js +0 -353
- package/dist/vue-ui-table-sparkline-C3NWnry0.js +0 -803
- package/dist/vue-ui-thermometer-DvdceZB1.js +0 -743
- package/dist/vue-ui-timer-XWAbvuAY.js +0 -504
- package/dist/vue-ui-tiremarks-B-YI1RlT.js +0 -578
- package/dist/vue-ui-treemap-AzorGfmd.js +0 -1757
- package/dist/vue-ui-waffle-CKtUvdTE.js +0 -1442
- package/dist/vue-ui-wheel-CnsLEArZ.js +0 -908
- package/dist/vue-ui-word-cloud-iAme2ihe.js +0 -1644
- package/dist/vue-ui-world-D5rrC9rw.js +0 -14452
- package/dist/vue-ui-xy-C_Q9chQe.js +0 -4468
- package/dist/vue-ui-xy-canvas-DG0299qE.js +0 -2107
- package/dist/vue_ui_3d_bar-CL0iX8Qi.js +0 -22
- package/dist/vue_ui_age_pyramid-8H8WSL7J.js +0 -22
- package/dist/vue_ui_bullet-Ckqieba5.js +0 -22
- package/dist/vue_ui_bump-CIht647H.js +0 -22
- package/dist/vue_ui_candlestick-BAMn-VGw.js +0 -22
- package/dist/vue_ui_chestnut-BloFvDuV.js +0 -22
- package/dist/vue_ui_chord-Bc1_ocwK.js +0 -22
- package/dist/vue_ui_circle_pack-CLmw8nHe.js +0 -22
- package/dist/vue_ui_dag-ZOwuDBZ8.js +0 -22
- package/dist/vue_ui_donut-CA4dgV8J.js +0 -22
- package/dist/vue_ui_donut_evolution-DFQU-rqE.js +0 -22
- package/dist/vue_ui_dumbbell-BCOHDiPk.js +0 -22
- package/dist/vue_ui_flow-BErINgox.js +0 -22
- package/dist/vue_ui_funnel-yuaMZ-yb.js +0 -22
- package/dist/vue_ui_galaxy-D95AN4FT.js +0 -22
- package/dist/vue_ui_gauge-BMEuRC4J.js +0 -22
- package/dist/vue_ui_geo--kg4VoVX.js +0 -22
- package/dist/vue_ui_heatmap-C9u993qE.js +0 -22
- package/dist/vue_ui_history_plot-BCKk1CrQ.js +0 -22
- package/dist/vue_ui_horizontal_bar-BEagrV0T.js +0 -22
- package/dist/vue_ui_molecule-BtvlINUh.js +0 -22
- package/dist/vue_ui_mood_radar-BUs6Fdn8.js +0 -22
- package/dist/vue_ui_nested_donuts-DvTrWT_C.js +0 -22
- package/dist/vue_ui_onion-CxWH9_OZ.js +0 -22
- package/dist/vue_ui_parallel_coordinate_plot-DH3cFJ3n.js +0 -22
- package/dist/vue_ui_quadrant-DjRs--Uz.js +0 -22
- package/dist/vue_ui_quick_chart-DMCjEjPe.js +0 -22
- package/dist/vue_ui_radar-DryGBOrz.js +0 -22
- package/dist/vue_ui_relation_circle-CCroen7h.js +0 -22
- package/dist/vue_ui_ridgeline-j4rVmpEp.js +0 -22
- package/dist/vue_ui_rings-CxOrekqA.js +0 -22
- package/dist/vue_ui_scatter-Bu1EAy9H.js +0 -22
- package/dist/vue_ui_spark_trend-3BjrSprO.js +0 -22
- package/dist/vue_ui_sparkbar-BsMzz5Um.js +0 -22
- package/dist/vue_ui_sparkgauge-KnjASOZs.js +0 -22
- package/dist/vue_ui_sparkhistogram-GBdzIVvS.js +0 -22
- package/dist/vue_ui_sparkline-CQ8DJVJx.js +0 -22
- package/dist/vue_ui_sparkstackbar-BSexvOuM.js +0 -22
- package/dist/vue_ui_stackbar-CuDC4O4b.js +0 -22
- package/dist/vue_ui_stackline-QTh-nuxE.js +0 -22
- package/dist/vue_ui_strip_plot-B9ypi_F3.js +0 -22
- package/dist/vue_ui_table_heatmap-CkvipPVy.js +0 -16
- package/dist/vue_ui_table_sparkline-yQdijcyJ.js +0 -22
- package/dist/vue_ui_thermometer-BTmjRBH8.js +0 -22
- package/dist/vue_ui_tiremarks-DBotWfi8.js +0 -22
- package/dist/vue_ui_treemap-D9-AIkT-.js +0 -22
- package/dist/vue_ui_vertical_bar-CELc39b8.js +0 -18
- package/dist/vue_ui_waffle-M2h-uJQ_.js +0 -22
- package/dist/vue_ui_wheel-LqBz3lv4.js +0 -22
- package/dist/vue_ui_word_cloud-mKAtBxHR.js +0 -22
- package/dist/vue_ui_xy-esktmpg-.js +0 -22
- package/dist/vue_ui_xy_canvas-6BBDSowT.js +0 -22
|
@@ -1,4468 +0,0 @@
|
|
|
1
|
-
import { defineAsyncComponent as Re, useSlots as Nu, getCurrentInstance as Fu, ref as g, shallowRef as Vu, computed as b, onMounted as It, toRefs as Bu, watch as ct, watchEffect as sl, nextTick as Pt, onBeforeUnmount as Pl, openBlock as i, createElementBlock as r, normalizeStyle as w, normalizeClass as Je, createElementVNode as y, toDisplayString as se, createBlock as _e, createCommentVNode as h, unref as v, withCtx as Y, renderSlot as O, normalizeProps as ve, guardReactiveProps as de, createSlots as lo, createVNode as vt, Fragment as d, renderList as k, mergeProps as Qe, Teleport as Ru, resolveDynamicComponent as Hu, withDirectives as Du, vModelCheckbox as Wu, createTextVNode as ao } from "vue";
|
|
2
|
-
import { j as Ol, q as Nl, t as oo, n as Eu, D as uo, E as so, s as Fl, p as Vl, F as nl, G as W, H as Bl, I as Yu, J as Xu, K as N, L as no, c as io, M as ro, b as co, N as Gu, O as qu, P as Uu, Q as vo, R as ho, k as he, S as Zu, T as fo, U as Ku, z as mo, A as Ie, l as Pe, v as je, u as Ce, V as Ju, a as Qu, W as He, d as il, Y as Se, Z as ju, _ as De, $ as Ot, m as es, o as go, a0 as ts, a1 as ls, a2 as dt, a3 as as } from "./lib-DMzrGQHK.js";
|
|
3
|
-
import { u as bo, a as po, b as os } from "./useTimeLabels-Cv0tD9In.js";
|
|
4
|
-
import { u as us } from "./useConfig-CG4HT3wS.js";
|
|
5
|
-
import { u as ss } from "./usePrinter-C4t8DdQ-.js";
|
|
6
|
-
import { u as ns, B as is } from "./BaseScanner-C2j3TsSY.js";
|
|
7
|
-
import { u as rs } from "./useSvgExport-BTG4hVPO.js";
|
|
8
|
-
import { u as Nt } from "./useNestedProp-DH0BEVVS.js";
|
|
9
|
-
import { u as cs } from "./useThemeCheck-C9Ccl7U9.js";
|
|
10
|
-
import { u as vs } from "./useStableElementSize-C48ZVcZQ.js";
|
|
11
|
-
import { u as ds } from "./useTimeLabelCollider-D3JeJ6Ye.js";
|
|
12
|
-
import hs from "./img-CjTQXS0U.js";
|
|
13
|
-
import fs from "./Title-BbKoiBk2.js";
|
|
14
|
-
import ms from "./vue_ui_xy-esktmpg-.js";
|
|
15
|
-
import { _ as rl } from "./Shape-CxJ5_Rre.js";
|
|
16
|
-
import { S as gs } from "./SlicerPreview-D_CgrN_7.js";
|
|
17
|
-
import bs from "./vue-ui-accordion-DFtpH_16.js";
|
|
18
|
-
import { B as ps } from "./BaseLegendToggle-cMP8M2u0.js";
|
|
19
|
-
import { A as ys } from "./A11yDataTable-BpmuNomI.js";
|
|
20
|
-
import { _ as xs } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
21
|
-
const ks = ["id"], _s = ["id"], ws = ["id"], Ss = { style: { position: "relative" } }, $s = ["viewBox", "aria-label", "aria-describedby"], Ls = ["x", "y", "width", "height"], Ms = { key: 1 }, As = { class: "vue-ui-xy-grid" }, Cs = ["stroke", "x1", "x2", "y1", "y2"], Ts = ["stroke", "x1", "x2", "y1", "y2"], zs = { key: 1 }, Is = ["x1", "x2", "y1", "y2", "stroke"], Ps = ["x1", "x2", "y1", "y2", "stroke"], Os = ["x1", "x2", "y1", "y2", "stroke"], Ns = { key: 3 }, Fs = ["d", "stroke"], Vs = { key: 4 }, Bs = ["d", "stroke"], Rs = ["id"], Hs = ["stop-color"], Ds = ["stop-color"], Ws = ["stop-color"], Es = ["id"], Ys = ["stop-color"], Xs = ["stop-color"], Gs = ["stop-color"], qs = ["id"], Us = ["stop-color"], Zs = ["stop-color"], Ks = ["id"], Js = ["stop-color"], Qs = ["stop-color"], js = ["id"], en = ["stop-color"], tn = ["stop-color"], ln = { key: 0 }, an = ["id"], on = ["stop-color", "offset"], un = ["x", "y", "height", "width", "fill"], sn = ["x", "y", "width"], nn = { key: 0 }, rn = ["x", "y", "height", "width", "fill"], cn = ["x", "y", "height", "width", "rx", "fill", "stroke", "stroke-width"], vn = ["x", "y", "height", "width", "rx", "fill", "stroke", "stroke-width"], dn = ["width", "x", "y"], hn = ["stroke", "x1", "x2", "y1", "y2"], fn = { key: 3 }, mn = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], gn = ["x", "y", "width", "height", "stroke", "stroke-width", "stroke-linecap", "stroke-linejoin", "stroke-dasharray"], bn = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], pn = ["fill", "font-size", "transform"], yn = ["x1", "x2", "y1", "y2", "stroke"], xn = ["x", "y", "font-size", "fill"], kn = ["x1", "x2", "y1", "y2", "stroke"], _n = ["x", "y", "font-size", "fill"], wn = ["width", "x", "y"], Sn = { style: { width: "100%" } }, $n = ["d", "stroke", "stroke-width", "stroke-dasharray"], Ln = ["d", "stroke", "stroke-width", "stroke-dasharray"], Mn = { key: 6 }, An = { key: 7 }, Cn = ["d", "fill", "fill-opacity"], Tn = { key: 0 }, zn = ["d", "fill"], In = ["d", "fill"], Pn = ["d", "fill"], On = ["d", "fill"], Nn = ["d", "stroke", "stroke-width", "stroke-dasharray"], Fn = ["d", "stroke", "stroke-width", "stroke-dasharray"], Vn = ["d", "stroke", "stroke-width", "stroke-dasharray"], Bn = ["d", "stroke", "stroke-width", "stroke-dasharray"], Rn = ["width", "x", "y"], Hn = { style: { width: "100%" } }, Dn = { key: 8 }, Wn = ["x", "y", "font-size", "fill"], En = ["x", "y", "font-size", "fill", "font-weight"], Yn = { key: 9 }, Xn = ["x", "y", "font-size", "fill"], Gn = { key: 10 }, qn = ["x", "y"], Un = ["innerHTML"], Zn = ["x", "y"], Kn = ["innerHTML"], Jn = ["x1", "x2", "y1", "y2", "stroke"], Qn = { key: 11 }, jn = ["x", "y", "font-size", "fill"], ei = { key: 12 }, ti = ["x", "y"], li = ["innerHTML"], ai = ["x", "y"], oi = ["innerHTML"], ui = ["x1", "x2", "y1", "y2", "stroke"], si = ["x", "y", "font-size", "fill", "innerHTML"], ni = ["x", "y", "font-size", "fill", "innerHTML"], ii = ["x", "y", "font-size", "fill", "innerHTML"], ri = ["x", "y", "font-size", "fill", "innerHTML"], ci = { key: 0 }, vi = ["id"], di = ["fill", "stroke"], hi = ["x1", "x2", "y1", "y2", "stroke", "marker-end"], fi = ["x1", "x2", "y1", "y2", "stroke", "marker-end"], mi = ["x", "y", "font-size", "fill", "stroke"], gi = ["id"], bi = ["stop-color"], pi = ["stop-color"], yi = ["x", "y", "width", "height", "fill", "onMouseenter"], xi = ["font-size", "fill", "transform"], ki = ["x", "y", "font-size", "fill"], _i = ["text-anchor", "font-size", "fill", "transform", "onClick"], wi = ["text-anchor", "font-size", "fill", "transform", "innerHTML", "onClick"], Si = { key: 15 }, $i = ["x1", "y1", "x2", "y2", "stroke", "stroke-width", "stroke-dasharray"], Li = ["x1", "y1", "x2", "y2", "stroke", "stroke-width", "stroke-dasharray"], Mi = ["y", "x", "width", "height", "fill"], Ai = ["id", "x", "y", "font-size", "fill", "text-anchor"], Ci = {
|
|
22
|
-
key: 16,
|
|
23
|
-
style: { "pointer-events": "none" }
|
|
24
|
-
}, Ti = ["x", "y"], zi = ["innerHTML"], Ii = ["cx", "cy", "r", "fill"], Pi = ["data-start", "data-end"], Oi = {
|
|
25
|
-
key: 0,
|
|
26
|
-
style: { position: "absolute", top: "100%", left: "0", width: "100%" },
|
|
27
|
-
"data-dom-to-png-ignore": "",
|
|
28
|
-
"aria-hidden": "true"
|
|
29
|
-
}, Ni = {
|
|
30
|
-
key: 5,
|
|
31
|
-
class: "vue-data-ui-watermark"
|
|
32
|
-
}, Fi = {
|
|
33
|
-
class: "vue-ui-xy-tag-arrow",
|
|
34
|
-
height: "20",
|
|
35
|
-
viewBox: "0 0 10 20",
|
|
36
|
-
style: {
|
|
37
|
-
position: "absolute",
|
|
38
|
-
right: "100%",
|
|
39
|
-
top: "50%",
|
|
40
|
-
transform: "translateY(-50%)"
|
|
41
|
-
}
|
|
42
|
-
}, Vi = ["fill"], Bi = ["innerHTML"], Ri = {
|
|
43
|
-
class: "vue-ui-xy-tag-arrow",
|
|
44
|
-
height: "100%",
|
|
45
|
-
viewBox: "0 0 10 20",
|
|
46
|
-
style: {
|
|
47
|
-
position: "absolute",
|
|
48
|
-
left: "100%",
|
|
49
|
-
top: "50%",
|
|
50
|
-
transform: "translateY(-50%)"
|
|
51
|
-
}
|
|
52
|
-
}, Hi = ["fill"], Di = ["innerHTML"], Wi = {
|
|
53
|
-
class: "vue-ui-xy-tag-arrow",
|
|
54
|
-
height: "20",
|
|
55
|
-
viewBox: "0 0 10 20",
|
|
56
|
-
style: {
|
|
57
|
-
position: "absolute",
|
|
58
|
-
right: "100%",
|
|
59
|
-
top: "50%",
|
|
60
|
-
transform: "translateY(-50%)"
|
|
61
|
-
}
|
|
62
|
-
}, Ei = ["fill"], Yi = ["innerHTML"], Xi = {
|
|
63
|
-
class: "vue-ui-xy-tag-arrow",
|
|
64
|
-
height: "100%",
|
|
65
|
-
viewBox: "0 0 10 20",
|
|
66
|
-
style: {
|
|
67
|
-
position: "absolute",
|
|
68
|
-
left: "100%",
|
|
69
|
-
top: "50%",
|
|
70
|
-
transform: "translateY(-50%)"
|
|
71
|
-
}
|
|
72
|
-
}, Gi = ["fill"], qi = ["innerHTML"], Ui = ["id"], Zi = ["onClick", "onKeydown"], Ki = {
|
|
73
|
-
key: 0,
|
|
74
|
-
viewBox: "0 0 20 12",
|
|
75
|
-
height: "1em",
|
|
76
|
-
width: "1.43em",
|
|
77
|
-
"aria-hidden": "true"
|
|
78
|
-
}, Ji = ["stroke", "fill"], Qi = {
|
|
79
|
-
key: 1,
|
|
80
|
-
viewBox: "0 0 40 40",
|
|
81
|
-
height: "1em",
|
|
82
|
-
width: "1em",
|
|
83
|
-
"aria-hidden": "true"
|
|
84
|
-
}, ji = ["fill"], er = ["fill"], tr = {
|
|
85
|
-
key: 2,
|
|
86
|
-
viewBox: "0 0 12 12",
|
|
87
|
-
height: "1em",
|
|
88
|
-
width: "1em",
|
|
89
|
-
"aria-hidden": "true"
|
|
90
|
-
}, lr = {
|
|
91
|
-
style: { display: "flex", "flex-direction": "row", gap: "6px", "align-items": "center", "padding-left": "6px" },
|
|
92
|
-
"data-dom-to-png-ignore": ""
|
|
93
|
-
}, ar = ["innerHTML"], or = {
|
|
94
|
-
__name: "vue-ui-xy",
|
|
95
|
-
props: {
|
|
96
|
-
config: {
|
|
97
|
-
type: Object,
|
|
98
|
-
default() {
|
|
99
|
-
return {};
|
|
100
|
-
}
|
|
101
|
-
},
|
|
102
|
-
dataset: {
|
|
103
|
-
type: Array,
|
|
104
|
-
default() {
|
|
105
|
-
return [];
|
|
106
|
-
}
|
|
107
|
-
},
|
|
108
|
-
selectedXIndex: {
|
|
109
|
-
type: Number,
|
|
110
|
-
default: void 0
|
|
111
|
-
}
|
|
112
|
-
},
|
|
113
|
-
emits: [
|
|
114
|
-
"selectTimeLabel",
|
|
115
|
-
"selectX",
|
|
116
|
-
"selectLegend",
|
|
117
|
-
"zoomStart",
|
|
118
|
-
"zoomEnd",
|
|
119
|
-
"zoomReset",
|
|
120
|
-
"copyAlt"
|
|
121
|
-
],
|
|
122
|
-
setup(cl, { expose: yo, emit: xo }) {
|
|
123
|
-
const T = cl, ko = Re(() => import("./DataTable-cMnb68Ik.js")), _o = Re(() => import("./Tooltip-Cvt7Fi0Q.js")), wo = Re(
|
|
124
|
-
() => import("./UserOptions-DVduN6X7.js")
|
|
125
|
-
), Rl = Re(() => import("./BaseIcon-DX0hTWa-.js")), So = Re(
|
|
126
|
-
() => import("./vue-ui-table-sparkline-C3NWnry0.js")
|
|
127
|
-
), $o = Re(
|
|
128
|
-
() => import("./PackageVersion-BfrCAH6_.js")
|
|
129
|
-
), Lo = Re(
|
|
130
|
-
() => import("./PenAndPaper-CJDoB5H9.js")
|
|
131
|
-
), Mo = Re(
|
|
132
|
-
() => import("./BaseDraggableDialog-Di8Hlru3.js")
|
|
133
|
-
), We = xo, Hl = Nu(), Ao = Fu(), { vue_ui_xy: ht } = us(), { isThemeValid: Co, warnInvalidTheme: To } = cs(), $e = g(null), ft = g(null), Te = g(null), mt = g(null), gt = g(null), bt = g(null), zo = g(null), vl = g(null), dl = g(null), Ft = g(null), hl = g(null), fl = g(null), Ne = g(null), ml = g(null), Io = g(0), C = g(null), Dl = g(!0), fe = g(600), ee = g(1e3), Vt = g("0 0 1000 600"), Po = g({ x: 0, y: 0 }), pt = g({ line: "line", bar: "bar", plot: "plot" }), et = g(!1), Ee = g(!1), Wl = g(!1), Ye = g(null), G = g([]), z = g(Ol()), El = g(0), Yl = g(0), Xl = g(0), yt = g(!0), gl = g(0), P = g(null), Gl = g(!1), bl = g(!0), Bt = g(!0), ae = g(null), Oe = g({}), Rt = g(null), ql = g(!1), tt = g(null), Ht = g(!1), Dt = g(!1), _ = g(null), lt = g(null), Ul = g({ x: 0, y: 0 }), Zl = Vu(null), Kl = g(!1), Jl = g(0), Ql = g(0), jl = vs({
|
|
134
|
-
elementRef: Zl,
|
|
135
|
-
minimumWidth: 2,
|
|
136
|
-
minimumHeight: 2,
|
|
137
|
-
stableFramesRequired: 2,
|
|
138
|
-
once: !1,
|
|
139
|
-
onSizeAccepted: () => {
|
|
140
|
-
at();
|
|
141
|
-
}
|
|
142
|
-
});
|
|
143
|
-
function xt() {
|
|
144
|
-
Zl.value = $e.value?.parentNode ?? null;
|
|
145
|
-
}
|
|
146
|
-
function ea() {
|
|
147
|
-
return new Promise((l) => {
|
|
148
|
-
requestAnimationFrame(() => {
|
|
149
|
-
requestAnimationFrame(l);
|
|
150
|
-
});
|
|
151
|
-
});
|
|
152
|
-
}
|
|
153
|
-
async function at() {
|
|
154
|
-
const l = ++Ql.value;
|
|
155
|
-
Kl.value = !1, await Pt(), await ea(), await ea(), l === Ql.value && (Jl.value += 1, Kl.value = !0);
|
|
156
|
-
}
|
|
157
|
-
const Oo = b(() => ({
|
|
158
|
-
height: fe.value,
|
|
159
|
-
width: ee.value
|
|
160
|
-
}));
|
|
161
|
-
function ta(l) {
|
|
162
|
-
return Number.isFinite(l) ? Math.max(0, Math.floor(l)) : 0;
|
|
163
|
-
}
|
|
164
|
-
function pl(l, o, e = 0) {
|
|
165
|
-
return Number.isFinite(l) && Number.isFinite(o) && Math.abs(o) > 1e-9 ? l / o : e;
|
|
166
|
-
}
|
|
167
|
-
const la = g(!1), x = g({
|
|
168
|
-
xAxis: 18,
|
|
169
|
-
yAxis: 12,
|
|
170
|
-
dataLabels: 20,
|
|
171
|
-
plotLabels: 10
|
|
172
|
-
}), Le = g({ plot: 3, line: 3 });
|
|
173
|
-
It(() => {
|
|
174
|
-
ql.value = !0, T.dataset.length && T.dataset.forEach((l, o) => {
|
|
175
|
-
[null, void 0].includes(l.series) && Nl({
|
|
176
|
-
componentName: "VueUiXy",
|
|
177
|
-
type: "datasetSerieAttribute",
|
|
178
|
-
property: "series (number[])",
|
|
179
|
-
index: o,
|
|
180
|
-
debug: kt.value
|
|
181
|
-
});
|
|
182
|
-
}), xt(), jl.start(), at();
|
|
183
|
-
});
|
|
184
|
-
function yl() {
|
|
185
|
-
if (!Object.keys(T.config || {}).length)
|
|
186
|
-
return ht;
|
|
187
|
-
const l = Nt({
|
|
188
|
-
userConfig: T.config,
|
|
189
|
-
defaultConfig: ht
|
|
190
|
-
});
|
|
191
|
-
T.config && Ot(T.config, "chart.highlightArea") && (Array.isArray(T.config.chart.highlightArea) ? l.chart.highlightArea = T.config.chart.highlightArea : l.chart.highlightArea = [
|
|
192
|
-
T.config.chart.highlightArea
|
|
193
|
-
]), T.config && Ot(T.config, "chart.annotations") && Array.isArray(T.config.chart.annotations) && T.config.chart.annotations.length ? l.chart.annotations = T.config.chart.annotations.map(
|
|
194
|
-
(a) => Nt({
|
|
195
|
-
defaultConfig: ht.chart.annotations[0],
|
|
196
|
-
userConfig: a
|
|
197
|
-
})
|
|
198
|
-
) : l.chart.annotations = [], T.config && Ot(T.config, "chart.grid.position") && T.config.chart.grid.position === "start" && T.dataset.length && T.dataset.some((a) => a.type === "bar") && (l.chart.grid.position = "middle", Ot(T.config, "debug") && console.warn(
|
|
199
|
-
"Vue Data UI - VueUiXy - config.chart.grid.position was overriden to `middle` because your dataset contains a bar"
|
|
200
|
-
)), T.config && Ot(T.config, "chart.highlightArea") && (Array.isArray(T.config.chart.highlightArea) ? l.chart.highlightArea = T.config.chart.highlightArea.map(
|
|
201
|
-
(a) => aa({
|
|
202
|
-
defaultConfig: ht.chart.highlightArea,
|
|
203
|
-
userConfig: a
|
|
204
|
-
})
|
|
205
|
-
) : l.chart.highlightArea = aa({
|
|
206
|
-
defaultConfig: ht.chart.highlightArea,
|
|
207
|
-
userConfig: T.config.chart.highlightArea
|
|
208
|
-
}));
|
|
209
|
-
const o = l.theme;
|
|
210
|
-
if (!o) return l;
|
|
211
|
-
if (!Co.value(l))
|
|
212
|
-
return To(l), l;
|
|
213
|
-
const e = Nt({
|
|
214
|
-
userConfig: ms[o] || T.config,
|
|
215
|
-
defaultConfig: l
|
|
216
|
-
}), s = Nt({
|
|
217
|
-
userConfig: T.config,
|
|
218
|
-
defaultConfig: e
|
|
219
|
-
});
|
|
220
|
-
return {
|
|
221
|
-
...s,
|
|
222
|
-
customPalette: s.customPalette.length ? s.customPalette : es[o] || Vl
|
|
223
|
-
};
|
|
224
|
-
}
|
|
225
|
-
function aa({ defaultConfig: l, userConfig: o }) {
|
|
226
|
-
return Nt({
|
|
227
|
-
defaultConfig: l,
|
|
228
|
-
userConfig: o
|
|
229
|
-
});
|
|
230
|
-
}
|
|
231
|
-
const xl = b({
|
|
232
|
-
get() {
|
|
233
|
-
return !!T.dataset && T.dataset.length;
|
|
234
|
-
},
|
|
235
|
-
set(l) {
|
|
236
|
-
return l;
|
|
237
|
-
}
|
|
238
|
-
}), t = g(yl()), Xe = b(
|
|
239
|
-
() => t.value.chart.userOptions.useCursorPointer
|
|
240
|
-
), f = g({
|
|
241
|
-
dataLabels: { show: !0 },
|
|
242
|
-
showTooltip: !0,
|
|
243
|
-
showTable: !1,
|
|
244
|
-
isStacked: !1,
|
|
245
|
-
useIndividualScale: !1
|
|
246
|
-
});
|
|
247
|
-
function kl() {
|
|
248
|
-
la.value ? (f.value.showTooltip = t.value.chart.tooltip.show === !0, f.value.isStacked = t.value.chart.grid.labels.yAxis.stacked, f.value.useIndividualScale == null && (f.value.useIndividualScale = t.value.chart.grid.labels.yAxis.useIndividualScale)) : (f.value = {
|
|
249
|
-
dataLabels: { show: !0 },
|
|
250
|
-
showTooltip: t.value.chart.tooltip.show === !0,
|
|
251
|
-
showTable: t.value.showTable === !0,
|
|
252
|
-
isStacked: t.value.chart.grid.labels.yAxis.stacked,
|
|
253
|
-
useIndividualScale: t.value.chart.grid.labels.yAxis.useIndividualScale
|
|
254
|
-
}, la.value = !0);
|
|
255
|
-
}
|
|
256
|
-
const kt = b(() => !!t.value.debug), No = b(() => oo({
|
|
257
|
-
defaultConfig: {
|
|
258
|
-
useCssAnimation: !1,
|
|
259
|
-
showTable: !1,
|
|
260
|
-
chart: {
|
|
261
|
-
annotations: [],
|
|
262
|
-
highlightArea: [],
|
|
263
|
-
backgroundColor: "#99999930",
|
|
264
|
-
grid: {
|
|
265
|
-
stroke: "#6A6A6A",
|
|
266
|
-
labels: {
|
|
267
|
-
show: !1,
|
|
268
|
-
axis: {
|
|
269
|
-
yLabel: "",
|
|
270
|
-
xLabel: ""
|
|
271
|
-
},
|
|
272
|
-
xAxisLabels: { show: !1 },
|
|
273
|
-
yAxis: {
|
|
274
|
-
commonScaleSteps: 10,
|
|
275
|
-
useNiceScale: !0,
|
|
276
|
-
scaleMin: 0,
|
|
277
|
-
scaleMax: 134
|
|
278
|
-
},
|
|
279
|
-
zeroLine: { show: !0 }
|
|
280
|
-
}
|
|
281
|
-
},
|
|
282
|
-
padding: {
|
|
283
|
-
top: 12,
|
|
284
|
-
bottom: 24,
|
|
285
|
-
left: 24,
|
|
286
|
-
right: 24
|
|
287
|
-
},
|
|
288
|
-
userOptions: { show: !1 },
|
|
289
|
-
zoom: {
|
|
290
|
-
show: !1,
|
|
291
|
-
startIndex: null,
|
|
292
|
-
endIndex: null
|
|
293
|
-
}
|
|
294
|
-
},
|
|
295
|
-
bar: {
|
|
296
|
-
serieName: { show: !1 },
|
|
297
|
-
labels: { show: !1 },
|
|
298
|
-
border: {
|
|
299
|
-
useSerieColor: !1,
|
|
300
|
-
stroke: "#999999"
|
|
301
|
-
}
|
|
302
|
-
},
|
|
303
|
-
line: {
|
|
304
|
-
dot: {
|
|
305
|
-
useSerieColor: !1,
|
|
306
|
-
fill: "#8A8A8A"
|
|
307
|
-
},
|
|
308
|
-
labels: { show: !1 }
|
|
309
|
-
}
|
|
310
|
-
},
|
|
311
|
-
userConfig: t.value.skeletonConfig ?? {}
|
|
312
|
-
})), Fo = b(() => T.config?.skeletonDataset ?? [
|
|
313
|
-
{
|
|
314
|
-
name: "",
|
|
315
|
-
series: [0, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89, 134],
|
|
316
|
-
type: "line",
|
|
317
|
-
smooth: !0,
|
|
318
|
-
color: "#BABABA"
|
|
319
|
-
},
|
|
320
|
-
{
|
|
321
|
-
name: "",
|
|
322
|
-
series: [0, 0.5, 1, 1.5, 2.5, 4, 6.5, 10.5, 17, 27.5, 44.5, 67],
|
|
323
|
-
type: "bar",
|
|
324
|
-
color: "#CACACA"
|
|
325
|
-
}
|
|
326
|
-
]), { loading: ne, FINAL_DATASET: pe, manualLoading: Wt } = ns({
|
|
327
|
-
...Bu(T),
|
|
328
|
-
FINAL_CONFIG: t,
|
|
329
|
-
prepareConfig: yl,
|
|
330
|
-
callback: () => {
|
|
331
|
-
Promise.resolve().then(async () => {
|
|
332
|
-
await Jt(), f.value.showTable = t.value.showTable;
|
|
333
|
-
});
|
|
334
|
-
},
|
|
335
|
-
skeletonDataset: Fo.value,
|
|
336
|
-
skeletonConfig: oo({
|
|
337
|
-
defaultConfig: t.value,
|
|
338
|
-
userConfig: No.value
|
|
339
|
-
})
|
|
340
|
-
});
|
|
341
|
-
function Vo(l) {
|
|
342
|
-
const o = /* @__PURE__ */ new WeakMap();
|
|
343
|
-
return (e, ...s) => {
|
|
344
|
-
let a = o.get(e);
|
|
345
|
-
const n = JSON.stringify(s);
|
|
346
|
-
if (a && a.has(n)) return a.get(n);
|
|
347
|
-
const u = l(e, ...s);
|
|
348
|
-
return a || (a = /* @__PURE__ */ new Map(), o.set(e, a)), a.set(n, u), u;
|
|
349
|
-
};
|
|
350
|
-
}
|
|
351
|
-
const Bo = Vo((l, o) => Bl({ data: l, threshold: o })), Fe = (l) => Bo(l, t.value.downsample.threshold), ze = b({
|
|
352
|
-
get: () => Math.max(
|
|
353
|
-
...pe.value.map(
|
|
354
|
-
(l) => Fe(l.series).length
|
|
355
|
-
)
|
|
356
|
-
),
|
|
357
|
-
set: (l) => l
|
|
358
|
-
}), m = g({ start: 0, end: ze.value }), Me = g({ start: 0, end: ze.value }), oa = b(() => t.value.chart.zoom.preview.enable && (Me.value.start !== m.value.start || Me.value.end !== m.value.end));
|
|
359
|
-
function ua(l, o) {
|
|
360
|
-
Me.value[l] = o;
|
|
361
|
-
}
|
|
362
|
-
function ot() {
|
|
363
|
-
const l = Math.max(
|
|
364
|
-
1,
|
|
365
|
-
...pe.value.map((s) => Fe(s.series).length)
|
|
366
|
-
);
|
|
367
|
-
let o = Math.max(0, Math.min(m.value.start ?? 0, l - 1)), e = Math.max(o + 1, Math.min(m.value.end ?? l, l));
|
|
368
|
-
(!Number.isFinite(o) || !Number.isFinite(e) || e <= o) && (o = 0, e = l), m.value = { start: o, end: e }, Me.value.start = o, Me.value.end = e, Te.value && (Te.value.setStartValue(o), Te.value.setEndValue(e));
|
|
369
|
-
}
|
|
370
|
-
const Ro = b(() => {
|
|
371
|
-
const { left: l, top: o, width: e, height: s } = c.value, a = m.value.start, u = m.value.end - a, S = e / u, M = Me.value.start - a, I = Me.value.end - a, V = Math.max(0, Math.min(u, M)), D = Math.max(0, Math.min(u, I));
|
|
372
|
-
return {
|
|
373
|
-
x: l + V * S,
|
|
374
|
-
y: o,
|
|
375
|
-
width: (D - V) * S,
|
|
376
|
-
height: s,
|
|
377
|
-
fill: t.value.chart.zoom.preview.fill,
|
|
378
|
-
stroke: t.value.chart.zoom.preview.stroke,
|
|
379
|
-
"stroke-width": t.value.chart.zoom.preview.strokeWidth,
|
|
380
|
-
"stroke-dasharray": t.value.chart.zoom.preview.strokeDasharray,
|
|
381
|
-
"stroke-linecap": "round",
|
|
382
|
-
"stroke-linejoin": "round",
|
|
383
|
-
style: {
|
|
384
|
-
pointerEvents: "none",
|
|
385
|
-
transition: "none !important",
|
|
386
|
-
animation: "none !important"
|
|
387
|
-
}
|
|
388
|
-
};
|
|
389
|
-
});
|
|
390
|
-
ct(
|
|
391
|
-
() => T.selectedXIndex,
|
|
392
|
-
(l) => {
|
|
393
|
-
if ([null, void 0].includes(T.selectedXIndex)) {
|
|
394
|
-
_.value = null;
|
|
395
|
-
return;
|
|
396
|
-
}
|
|
397
|
-
const o = l - m.value.start;
|
|
398
|
-
o < 0 || l >= m.value.end ? _.value = null : _.value = o ?? null;
|
|
399
|
-
},
|
|
400
|
-
{ immediate: !0 }
|
|
401
|
-
);
|
|
402
|
-
const { isPrinting: Et, isImaging: _l, generatePdf: sa, generateImage: na } = ss({
|
|
403
|
-
elementId: `vue-ui-xy_${z.value}`,
|
|
404
|
-
fileName: t.value.chart.title.text || "vue-ui-xy",
|
|
405
|
-
options: t.value.chart.userOptions.print
|
|
406
|
-
}), Ho = g(!1), Yt = b(() => Eu(t.value.customPalette)), ut = b(() => {
|
|
407
|
-
const l = t.value.chart.grid.labels.yAxis.scaleMin;
|
|
408
|
-
if (l == null) return null;
|
|
409
|
-
const o = Number(l);
|
|
410
|
-
return Number.isFinite(o) ? o : null;
|
|
411
|
-
}), Do = b(() => ut.value !== null ? c.value.bottom : me.value), _t = b(() => {
|
|
412
|
-
const l = t.value.chart.grid.labels.yAxis.scaleMax;
|
|
413
|
-
if (l == null) return null;
|
|
414
|
-
const o = Number(l);
|
|
415
|
-
return Number.isFinite(o) ? o : null;
|
|
416
|
-
}), ia = b(() => ut.value !== null || _t.value !== null), ra = b(() => {
|
|
417
|
-
const l = Ve.value.filter((o) => !G.value.includes(o.id)).flatMap((o) => Array.isArray(o.series) ? o.series : []).filter(Number.isFinite);
|
|
418
|
-
return l.length ? {
|
|
419
|
-
min: Math.min(...l),
|
|
420
|
-
max: Math.max(...l)
|
|
421
|
-
} : { min: 0, max: 1 };
|
|
422
|
-
});
|
|
423
|
-
function ca(l, o) {
|
|
424
|
-
let e = Number.isFinite(l) ? l : 0, s = Number.isFinite(o) ? o : 1;
|
|
425
|
-
return e === s ? s = e + 1 : e > s && ([e, s] = [s, e]), { min: e, max: s };
|
|
426
|
-
}
|
|
427
|
-
const Xt = b(() => {
|
|
428
|
-
const { min: l, max: o } = ra.value;
|
|
429
|
-
if (!ia.value) {
|
|
430
|
-
const u = l;
|
|
431
|
-
return u > 0 ? 0 : u;
|
|
432
|
-
}
|
|
433
|
-
const e = ut.value !== null ? ut.value : l > 0 ? 0 : l, s = _t.value !== null ? _t.value : o, a = l < e ? l : e, n = o > s ? o : s;
|
|
434
|
-
return ca(a, n).min;
|
|
435
|
-
}), Gt = b(() => {
|
|
436
|
-
const { min: l, max: o } = ra.value;
|
|
437
|
-
if (!ia.value) {
|
|
438
|
-
const u = o;
|
|
439
|
-
return Xt.value === u ? u + 1 : u;
|
|
440
|
-
}
|
|
441
|
-
const e = ut.value !== null ? ut.value : l > 0 ? 0 : l, s = _t.value !== null ? _t.value : o, a = l < e ? l : e, n = o > s ? o : s;
|
|
442
|
-
return ca(a, n).max;
|
|
443
|
-
}), Ae = b(() => t.value.chart.grid.labels.yAxis.useNiceScale ? uo(
|
|
444
|
-
Xt.value,
|
|
445
|
-
Gt.value < 0 ? 0 : Gt.value,
|
|
446
|
-
t.value.chart.grid.labels.yAxis.commonScaleSteps
|
|
447
|
-
) : so(
|
|
448
|
-
Xt.value,
|
|
449
|
-
Gt.value < 0 ? 0 : Gt.value,
|
|
450
|
-
t.value.chart.grid.labels.yAxis.commonScaleSteps
|
|
451
|
-
)), wt = b(() => [null, void 0].includes(
|
|
452
|
-
t.value.chart.grid.labels.yAxis.scaleMin
|
|
453
|
-
) ? Ae.value.min >= 0 ? 0 : Math.abs(Ae.value.min) : -Ae.value.min), Ve = b(() => Dl.value ? pe.value.map((l, o) => {
|
|
454
|
-
const e = Fe(l.series), s = `uniqueId_${o}`;
|
|
455
|
-
return {
|
|
456
|
-
...l,
|
|
457
|
-
slotAbsoluteIndex: o,
|
|
458
|
-
series: e.map((a) => nl(a) ? a : null).slice(m.value.start, m.value.end),
|
|
459
|
-
color: Fl(
|
|
460
|
-
l.color ? l.color : Yt.value[o] ? Yt.value[o] : Vl[o]
|
|
461
|
-
),
|
|
462
|
-
id: s,
|
|
463
|
-
scaleLabel: l.scaleLabel || s
|
|
464
|
-
};
|
|
465
|
-
}) : pe.value), ie = b(() => Ve.value.map((l, o) => ({
|
|
466
|
-
absoluteIndex: o,
|
|
467
|
-
...l,
|
|
468
|
-
series: l.series.map((e) => e + wt.value),
|
|
469
|
-
absoluteValues: l.series,
|
|
470
|
-
segregate: () => Mt(l),
|
|
471
|
-
isSegregated: G.value.includes(l.id)
|
|
472
|
-
}))), ye = b(() => Ve.value.map((l, o) => ({
|
|
473
|
-
...l,
|
|
474
|
-
series: l.series.map(
|
|
475
|
-
(e) => e + wt.value
|
|
476
|
-
),
|
|
477
|
-
absoluteValues: l.series
|
|
478
|
-
})).filter((l) => !G.value.includes(l.id))), Wo = b(
|
|
479
|
-
() => G.value.length === ie.value.length
|
|
480
|
-
);
|
|
481
|
-
function Eo() {
|
|
482
|
-
let l = 0;
|
|
483
|
-
hl.value && (l = Array.from(hl.value.querySelectorAll("text")).reduce((a, n) => {
|
|
484
|
-
const u = n.getComputedTextLength();
|
|
485
|
-
return (u > a ? u : a) + t.value.chart.grid.labels.yAxis.scaleValueOffsetX;
|
|
486
|
-
}, 0));
|
|
487
|
-
const o = dl.value ? dl.value.getBoundingClientRect().width + t.value.chart.grid.labels.axis.yLabelOffsetX + x.value.yAxis : 0, e = t.value.chart.grid.labels.yAxis.crosshairSize;
|
|
488
|
-
return l + o + e;
|
|
489
|
-
}
|
|
490
|
-
const St = g(0), st = g(0);
|
|
491
|
-
function va() {
|
|
492
|
-
const l = Ft.value;
|
|
493
|
-
if (!l) {
|
|
494
|
-
St.value = 0, st.value = 0;
|
|
495
|
-
return;
|
|
496
|
-
}
|
|
497
|
-
try {
|
|
498
|
-
const o = l.getBBox();
|
|
499
|
-
St.value = o?.height ?? 0, st.value = o?.x ?? 0;
|
|
500
|
-
} catch {
|
|
501
|
-
St.value = 0, st.value = 0;
|
|
502
|
-
}
|
|
503
|
-
}
|
|
504
|
-
const da = b(() => {
|
|
505
|
-
let l = 0;
|
|
506
|
-
if (vl.value)
|
|
507
|
-
try {
|
|
508
|
-
l = vl.value.getBBox().height || 0;
|
|
509
|
-
} catch {
|
|
510
|
-
l = 0;
|
|
511
|
-
}
|
|
512
|
-
return l + St.value + x.value.xAxis;
|
|
513
|
-
}), Yo = b(() => pe.value.some((l) => l.useProgression)), c = b(() => {
|
|
514
|
-
Jl.value;
|
|
515
|
-
let l = 0;
|
|
516
|
-
const o = 36;
|
|
517
|
-
t.value.chart.grid.labels.show && (f.value.useIndividualScale && !f.value.isStacked ? l = (pe.value.length - G.value.length) * (t.value.chart.grid.labels.yAxis.labelWidth + o) : f.value.useIndividualScale && f.value.isStacked ? l = t.value.chart.grid.labels.yAxis.labelWidth + o : l = Eo());
|
|
518
|
-
const e = t.value.chart.labels.fontSize * 1.1, s = Yo.value ? 24 : 6;
|
|
519
|
-
Ft.value && st.value < 0 && (l += Math.abs(st.value));
|
|
520
|
-
const a = ee.value - l - t.value.chart.grid.labels.yAxis.crosshairSize - s - t.value.chart.padding?.left - t.value.chart.padding?.right, n = t.value.chart.grid.position === "middle" ? 0 : a / $.value / 2;
|
|
521
|
-
return {
|
|
522
|
-
top: t.value.chart.padding?.top + e,
|
|
523
|
-
right: ee.value - s - t.value.chart.padding?.right,
|
|
524
|
-
bottom: fe.value - da.value - t.value.chart.padding?.bottom - t.value.chart.grid.labels.axis.xLabelOffsetY,
|
|
525
|
-
left: l + t.value.chart.grid.labels.yAxis.crosshairSize - n + t.value.chart.padding?.left,
|
|
526
|
-
height: fe.value - da.value - t.value.chart.padding?.top - t.value.chart.padding?.bottom - e - t.value.chart.grid.labels.axis.xLabelOffsetY,
|
|
527
|
-
width: a,
|
|
528
|
-
scaleLabelX: l,
|
|
529
|
-
individualOffsetX: o
|
|
530
|
-
};
|
|
531
|
-
}), Xo = b(() => {
|
|
532
|
-
const l = t.value.chart.grid.position === "middle" ? 1 : 0, o = $.value + l, e = W(c.value?.top), s = W(c.value?.bottom);
|
|
533
|
-
return Array.from({ length: o }).map((a, n) => {
|
|
534
|
-
const u = c.value.width / $.value * n + c.value?.left + q.value;
|
|
535
|
-
return `M${u},${e} L${u},${s}`;
|
|
536
|
-
}).join(" ");
|
|
537
|
-
}), Go = b(() => {
|
|
538
|
-
if (!t.value.chart.grid.labels.xAxis.showCrosshairs) return "";
|
|
539
|
-
const l = c.value.width / $.value, o = t.value.chart.grid.labels.xAxis.crosshairSize, e = t.value.chart.grid.labels.xAxis.crosshairsAlwaysAtZero;
|
|
540
|
-
return Kt.value.map((s, a) => {
|
|
541
|
-
if (!s || !s.text) return null;
|
|
542
|
-
const n = c.value?.left + l * a + l / 2, u = e ? me.value - (me.value === c.value?.bottom ? 0 : o / 2) : c.value?.bottom, S = e ? me.value + o / (me.value === c.value?.bottom ? 1 : 2) : c.value?.bottom + o;
|
|
543
|
-
return `M${n},${u} L${n},${S}`;
|
|
544
|
-
}).filter(Boolean).join(" ");
|
|
545
|
-
});
|
|
546
|
-
function ha() {
|
|
547
|
-
return !!Ao?.vnode.props?.onSelectTimeLabel;
|
|
548
|
-
}
|
|
549
|
-
function qo(l, o, e) {
|
|
550
|
-
if (!Rt.value) {
|
|
551
|
-
const s = document.createElement("canvas");
|
|
552
|
-
Rt.value = s.getContext("2d");
|
|
553
|
-
}
|
|
554
|
-
return Rt.value.font = `normal ${l}px sans-serif`, Rt.value;
|
|
555
|
-
}
|
|
556
|
-
function fa() {
|
|
557
|
-
const l = $e.value.querySelectorAll(".vue-ui-xy-tag");
|
|
558
|
-
l.length && Array.from(l).forEach((o) => o.style.opacity = "0");
|
|
559
|
-
}
|
|
560
|
-
function qt(l, o, e, s, a) {
|
|
561
|
-
e && (Oe.value[`${l}_${o}_${s}_${a}`] = e);
|
|
562
|
-
}
|
|
563
|
-
const Ut = g(!1);
|
|
564
|
-
async function ma(l = !1) {
|
|
565
|
-
await Pt(), Ut.value = l, Gl.value && (Bt.value = l);
|
|
566
|
-
}
|
|
567
|
-
function wl() {
|
|
568
|
-
et.value = !et.value;
|
|
569
|
-
}
|
|
570
|
-
const oe = g([]), Zt = g([]);
|
|
571
|
-
let ga = 0;
|
|
572
|
-
sl(() => {
|
|
573
|
-
const l = ++ga;
|
|
574
|
-
(async () => {
|
|
575
|
-
const o = Math.max(
|
|
576
|
-
...pe.value.map(
|
|
577
|
-
(s) => Bl({
|
|
578
|
-
data: s.series,
|
|
579
|
-
threshold: t.value.downsample.threshold
|
|
580
|
-
}).length
|
|
581
|
-
)
|
|
582
|
-
), e = await bo({
|
|
583
|
-
values: t.value.chart.grid.labels.xAxisLabels.values,
|
|
584
|
-
maxDatapoints: o,
|
|
585
|
-
formatter: t.value.chart.grid.labels.xAxisLabels.datetimeFormatter,
|
|
586
|
-
start: m.value.start,
|
|
587
|
-
end: m.value.end
|
|
588
|
-
});
|
|
589
|
-
l === ga && (oe.value = e);
|
|
590
|
-
})();
|
|
591
|
-
});
|
|
592
|
-
let ba = 0;
|
|
593
|
-
sl(() => {
|
|
594
|
-
const l = ++ba;
|
|
595
|
-
(async () => {
|
|
596
|
-
const o = Math.max(
|
|
597
|
-
...pe.value.map(
|
|
598
|
-
(s) => Bl({
|
|
599
|
-
data: s.series,
|
|
600
|
-
threshold: t.value.downsample.threshold
|
|
601
|
-
}).length
|
|
602
|
-
)
|
|
603
|
-
), e = await bo({
|
|
604
|
-
values: t.value.chart.grid.labels.xAxisLabels.values,
|
|
605
|
-
maxDatapoints: o,
|
|
606
|
-
formatter: t.value.chart.grid.labels.xAxisLabels.datetimeFormatter,
|
|
607
|
-
start: 0,
|
|
608
|
-
end: ze.value
|
|
609
|
-
});
|
|
610
|
-
l === ba && (Zt.value = e);
|
|
611
|
-
})();
|
|
612
|
-
});
|
|
613
|
-
const Uo = b(() => {
|
|
614
|
-
const l = t.value.chart.grid.labels.xAxisLabels.modulo;
|
|
615
|
-
return oe.value.length ? Math.min(
|
|
616
|
-
l,
|
|
617
|
-
[...new Set(oe.value.map((o) => o.text))].length
|
|
618
|
-
) : l;
|
|
619
|
-
}), Kt = b(() => {
|
|
620
|
-
const l = t.value.chart.grid.labels.xAxisLabels, o = oe.value || [], e = Zt.value || [], s = m.value.start ?? 0, a = _.value, n = $.value, u = o.map((M) => M?.text ?? ""), S = e.map((M) => M?.text ?? "");
|
|
621
|
-
return Yu(
|
|
622
|
-
!!l.showOnlyFirstAndLast,
|
|
623
|
-
!!l.showOnlyAtModulo,
|
|
624
|
-
Math.max(1, Uo.value || 1),
|
|
625
|
-
u,
|
|
626
|
-
S,
|
|
627
|
-
s,
|
|
628
|
-
a,
|
|
629
|
-
n
|
|
630
|
-
);
|
|
631
|
-
}), Zo = b(() => (Kt.value || []).map((l) => l?.text ?? "").join("|"));
|
|
632
|
-
It(() => {
|
|
633
|
-
requestAnimationFrame(() => {
|
|
634
|
-
va();
|
|
635
|
-
}), ct(
|
|
636
|
-
[
|
|
637
|
-
() => Zo.value,
|
|
638
|
-
() => t.value.chart.grid.labels.xAxisLabels.rotation,
|
|
639
|
-
() => x.value.xAxis,
|
|
640
|
-
() => ee.value,
|
|
641
|
-
() => fe.value
|
|
642
|
-
],
|
|
643
|
-
async () => {
|
|
644
|
-
await Pt(), requestAnimationFrame(() => {
|
|
645
|
-
va();
|
|
646
|
-
});
|
|
647
|
-
},
|
|
648
|
-
{ flush: "post" }
|
|
649
|
-
);
|
|
650
|
-
}), Pl(() => {
|
|
651
|
-
St.value = 0, st.value = 0, jl.stop();
|
|
652
|
-
});
|
|
653
|
-
function pa(l, o) {
|
|
654
|
-
const e = ye.value.map((s) => ({
|
|
655
|
-
shape: s.shape ?? s.type === "bar" ? "square" : "circle",
|
|
656
|
-
name: s.name,
|
|
657
|
-
color: s.color,
|
|
658
|
-
type: s.type,
|
|
659
|
-
value: s.absoluteValues.find(
|
|
660
|
-
(a, n) => n === o
|
|
661
|
-
),
|
|
662
|
-
comments: s.comments || [],
|
|
663
|
-
prefix: s.prefix || t.value.chart.labels.prefix,
|
|
664
|
-
suffix: s.suffix || t.value.chart.labels.suffix
|
|
665
|
-
}));
|
|
666
|
-
We("selectTimeLabel", {
|
|
667
|
-
datapoint: e,
|
|
668
|
-
absoluteIndex: l.absoluteIndex,
|
|
669
|
-
label: l.text
|
|
670
|
-
});
|
|
671
|
-
}
|
|
672
|
-
const $ = b(() => {
|
|
673
|
-
const l = ta((m.value.end ?? 0) - (m.value.start ?? 0));
|
|
674
|
-
return Math.max(1, l);
|
|
675
|
-
});
|
|
676
|
-
function Ko(l) {
|
|
677
|
-
P.value = l;
|
|
678
|
-
}
|
|
679
|
-
function ya() {
|
|
680
|
-
f.value.isStacked = !f.value.isStacked, f.value.isStacked ? f.value.useIndividualScale = !0 : f.value.useIndividualScale = t.value.chart.grid.labels.yAxis.useIndividualScale;
|
|
681
|
-
}
|
|
682
|
-
function Sl(l) {
|
|
683
|
-
kt.value && l.autoScaling && (t.value.chart.grid.labels.yAxis.useIndividualScale || console.warn(
|
|
684
|
-
`VueUiXy (datapoint: ${l.name}) : autoScaling only works when config.chart.grid.labels.yAxis.useIndividualScale is set to true`
|
|
685
|
-
), t.value.chart.grid.labels.yAxis.stacked || console.warn(
|
|
686
|
-
`VueUiXy (datapoint: ${l.name}) : autoScaling only works when config.chart.grid.labels.yAxis.stacked is set to true`
|
|
687
|
-
));
|
|
688
|
-
}
|
|
689
|
-
function Jo(l, o) {
|
|
690
|
-
const e = ta(l), s = Array(e).fill(0);
|
|
691
|
-
for (let a = 0; a < o.length && a < e; a += 1) s[a] = o[a] ?? 0;
|
|
692
|
-
return s;
|
|
693
|
-
}
|
|
694
|
-
function xa(l) {
|
|
695
|
-
const o = Math.max(
|
|
696
|
-
...pe.value.map(
|
|
697
|
-
(e) => Fe(e.series).length
|
|
698
|
-
)
|
|
699
|
-
);
|
|
700
|
-
return l > o ? o : l < 0 || t.value.chart.zoom.startIndex !== null && l < t.value.chart.zoom.startIndex ? t.value.chart.zoom.startIndex !== null ? t.value.chart.zoom.startIndex + 1 : 1 : l;
|
|
701
|
-
}
|
|
702
|
-
const $t = g(!1), ka = g(!1), _a = g(0), wa = g(0);
|
|
703
|
-
function Sa(l, o) {
|
|
704
|
-
const e = Number(l), s = Number(o);
|
|
705
|
-
return !Number.isFinite(e) || !Number.isFinite(s) ? !1 : !Object.is(e, s);
|
|
706
|
-
}
|
|
707
|
-
function Jt() {
|
|
708
|
-
if (!$t.value) {
|
|
709
|
-
$t.value = !0;
|
|
710
|
-
try {
|
|
711
|
-
const { startIndex: l, endIndex: o } = t.value.chart.zoom, e = Math.max(
|
|
712
|
-
...pe.value.map((n) => Fe(n.series).length)
|
|
713
|
-
);
|
|
714
|
-
_a.value = 0, wa.value = e;
|
|
715
|
-
const s = l ?? 0, a = o != null ? Math.min(xa(o + 1), e) : e;
|
|
716
|
-
Qt.value = !0, m.value.start = s, m.value.end = a, Me.value.start = s, Me.value.end = a, ot(), ka.value = !0;
|
|
717
|
-
} finally {
|
|
718
|
-
queueMicrotask(() => {
|
|
719
|
-
Qt.value = !1;
|
|
720
|
-
}), $t.value = !1;
|
|
721
|
-
}
|
|
722
|
-
}
|
|
723
|
-
}
|
|
724
|
-
const Qt = g(!1);
|
|
725
|
-
function Qo(l) {
|
|
726
|
-
if ($t.value || Qt.value) return;
|
|
727
|
-
const o = Number(l);
|
|
728
|
-
We("zoomStart", {
|
|
729
|
-
index: o,
|
|
730
|
-
isZoom: Sa(
|
|
731
|
-
o,
|
|
732
|
-
_a.value
|
|
733
|
-
)
|
|
734
|
-
}), Number.isFinite(o) && o !== m.value.start && (m.value.start = o, Me.value.start = o, ot());
|
|
735
|
-
}
|
|
736
|
-
function jo(l) {
|
|
737
|
-
if ($t.value || Qt.value) return;
|
|
738
|
-
const o = xa(l);
|
|
739
|
-
We("zoomEnd", {
|
|
740
|
-
index: o,
|
|
741
|
-
isZoom: Sa(o, wa.value)
|
|
742
|
-
}), o !== m.value.end && (m.value.end = o, Me.value.end = o, ot());
|
|
743
|
-
}
|
|
744
|
-
async function eu() {
|
|
745
|
-
await Jt(), We("zoomReset");
|
|
746
|
-
}
|
|
747
|
-
function xe(l) {
|
|
748
|
-
return ![null, void 0, NaN, 1 / 0, -1 / 0].includes(l);
|
|
749
|
-
}
|
|
750
|
-
const $a = b(() => Ae.value.max + wt.value);
|
|
751
|
-
function Ge(l) {
|
|
752
|
-
return l / (xe($a.value) ? $a.value : 1);
|
|
753
|
-
}
|
|
754
|
-
const me = b(() => isNaN(Ge(wt.value)) ? c.value?.bottom : c.value?.bottom - c.value.height * Ge(wt.value));
|
|
755
|
-
function La(l) {
|
|
756
|
-
const o = ![null, void 0].includes(
|
|
757
|
-
t.value.chart.grid.labels.yAxis.scaleMin
|
|
758
|
-
) && t.value.chart.grid.labels.yAxis.scaleMin > 0 && Xt.value >= 0 ? c.value?.bottom : me.value;
|
|
759
|
-
return l.value >= 0 ? N(
|
|
760
|
-
o - l.y <= 0 ? 1e-5 : o - l.y
|
|
761
|
-
) : N(
|
|
762
|
-
l.y - me.value <= 0 ? 1e-5 : l.y - me.value
|
|
763
|
-
);
|
|
764
|
-
}
|
|
765
|
-
function Ma(l) {
|
|
766
|
-
return l.value >= 0 ? N(
|
|
767
|
-
l.zeroPosition - l.y <= 0 ? 1e-5 : l.zeroPosition - l.y
|
|
768
|
-
) : N(
|
|
769
|
-
l.y - l.zeroPosition <= 0 ? 1e-5 : l.zeroPosition - l.y
|
|
770
|
-
);
|
|
771
|
-
}
|
|
772
|
-
const J = b(() => {
|
|
773
|
-
const l = Math.max(1, $.value), o = Math.max(1, c.value.width), e = Math.max(
|
|
774
|
-
1,
|
|
775
|
-
Ve.value.filter(
|
|
776
|
-
(s) => s.type === "bar" && !G.value.includes(s.id)
|
|
777
|
-
).length
|
|
778
|
-
);
|
|
779
|
-
return {
|
|
780
|
-
bar: pl(o, l * e, 1),
|
|
781
|
-
plot: pl(o, l, 1),
|
|
782
|
-
line: pl(o, l, 1)
|
|
783
|
-
};
|
|
784
|
-
});
|
|
785
|
-
function Be() {
|
|
786
|
-
return f.value.useIndividualScale && f.value.isStacked ? J.value.line - c.value.width / $.value * 0.1 : J.value.bar;
|
|
787
|
-
}
|
|
788
|
-
function jt(l) {
|
|
789
|
-
return f.value.useIndividualScale && f.value.isStacked ? l.x + c.value.width / $.value * 0.05 : l.x + J.value.bar / 2;
|
|
790
|
-
}
|
|
791
|
-
function Aa(l) {
|
|
792
|
-
return l.value >= 0 ? l.y : [null, void 0, NaN, 1 / 0, -1 / 0].includes(me.value) ? c?.bottom.value : me.value;
|
|
793
|
-
}
|
|
794
|
-
function Ca(l) {
|
|
795
|
-
return l.value >= 0 ? l.y : [null, void 0, NaN, 1 / 0, -1 / 0].includes(
|
|
796
|
-
l.zeroPosition
|
|
797
|
-
) ? 0 : l.zeroPosition;
|
|
798
|
-
}
|
|
799
|
-
const nt = g(null);
|
|
800
|
-
function Ta(l) {
|
|
801
|
-
const o = ae.value;
|
|
802
|
-
if (!o) return null;
|
|
803
|
-
if (o.createSVGPoint && o.getScreenCTM) {
|
|
804
|
-
const D = o.createSVGPoint();
|
|
805
|
-
D.x = l.clientX, D.y = l.clientY;
|
|
806
|
-
const F = o.getScreenCTM();
|
|
807
|
-
if (F) {
|
|
808
|
-
const p = D.matrixTransform(F.inverse());
|
|
809
|
-
return { x: p.x, y: p.y, ok: !0 };
|
|
810
|
-
}
|
|
811
|
-
}
|
|
812
|
-
const e = o.getBoundingClientRect(), s = o.viewBox?.baseVal || {
|
|
813
|
-
x: 0,
|
|
814
|
-
y: 0,
|
|
815
|
-
width: e.width,
|
|
816
|
-
height: e.height
|
|
817
|
-
}, a = Math.min(e.width / s.width, e.height / s.height), n = s.width * a, u = s.height * a, S = (e.width - n) / 2, M = (e.height - u) / 2, I = (l.clientX - e?.left - S) / a + s.x, V = (l.clientY - e?.top - M) / a + s.y;
|
|
818
|
-
return { x: I, y: V, ok: !0 };
|
|
819
|
-
}
|
|
820
|
-
let qe = 0;
|
|
821
|
-
function tu(l) {
|
|
822
|
-
lt.value = null, !et.value && (qe && cancelAnimationFrame(qe), qe = requestAnimationFrame(() => {
|
|
823
|
-
qe = 0;
|
|
824
|
-
const o = Ta(l);
|
|
825
|
-
if (!o || !ae.value) {
|
|
826
|
-
Lt();
|
|
827
|
-
return;
|
|
828
|
-
}
|
|
829
|
-
const { left: e, right: s, top: a, bottom: n, width: u } = c.value;
|
|
830
|
-
if (o.x < e || o.x > s || o.y < a || o.y > n) {
|
|
831
|
-
Lt();
|
|
832
|
-
return;
|
|
833
|
-
}
|
|
834
|
-
const S = o.x - e, M = u / $.value, I = Math.floor(S / M);
|
|
835
|
-
I >= 0 && I < $.value ? nt.value !== I && (nt.value = I, Al(!0, I)) : Lt();
|
|
836
|
-
}));
|
|
837
|
-
}
|
|
838
|
-
function Lt() {
|
|
839
|
-
qe && (cancelAnimationFrame(qe), qe = 0), nt.value = null, Al(!1, null);
|
|
840
|
-
}
|
|
841
|
-
function za(l) {
|
|
842
|
-
const o = Ta(l);
|
|
843
|
-
if (o && ae.value) {
|
|
844
|
-
const { left: e, right: s, top: a, bottom: n, width: u } = c.value;
|
|
845
|
-
if (o.x >= e && o.x <= s && o.y >= a && o.y <= n) {
|
|
846
|
-
const S = u / Math.max(1, $.value), M = Math.floor((o.x - e) / S);
|
|
847
|
-
if (M >= 0 && M < $.value) {
|
|
848
|
-
Ia(M);
|
|
849
|
-
return;
|
|
850
|
-
}
|
|
851
|
-
}
|
|
852
|
-
}
|
|
853
|
-
nt.value != null && Ia(nt.value);
|
|
854
|
-
}
|
|
855
|
-
function Ia(l) {
|
|
856
|
-
const o = ye.value.map((e) => ({
|
|
857
|
-
name: e.name,
|
|
858
|
-
value: [null, void 0, NaN].includes(e.absoluteValues[l]) ? null : e.absoluteValues[l],
|
|
859
|
-
color: e.color,
|
|
860
|
-
type: e.type
|
|
861
|
-
}));
|
|
862
|
-
We("selectX", {
|
|
863
|
-
dataset: o,
|
|
864
|
-
index: l,
|
|
865
|
-
indexLabel: t.value.chart.grid.labels.xAxisLabels.values[l]
|
|
866
|
-
}), t.value.events.datapointClick && t.value.events.datapointClick({
|
|
867
|
-
datapoint: o,
|
|
868
|
-
seriesIndex: l + m.value.start
|
|
869
|
-
});
|
|
870
|
-
}
|
|
871
|
-
function lu() {
|
|
872
|
-
return ie.value.map((l) => ({
|
|
873
|
-
values: l.absoluteValues,
|
|
874
|
-
color: l.color,
|
|
875
|
-
name: l.name,
|
|
876
|
-
type: l.type
|
|
877
|
-
}));
|
|
878
|
-
}
|
|
879
|
-
async function au({ scale: l = 2 } = {}) {
|
|
880
|
-
if (!$e.value) return;
|
|
881
|
-
const { width: o, height: e } = $e.value.getBoundingClientRect(), s = o / e, { imageUri: a, base64: n } = await hs({
|
|
882
|
-
domElement: $e.value,
|
|
883
|
-
base64: !0,
|
|
884
|
-
img: !0,
|
|
885
|
-
scale: l
|
|
886
|
-
});
|
|
887
|
-
return {
|
|
888
|
-
imageUri: a,
|
|
889
|
-
base64: n,
|
|
890
|
-
title: t.value.chart.title.text,
|
|
891
|
-
width: o,
|
|
892
|
-
height: e,
|
|
893
|
-
aspectRatio: s
|
|
894
|
-
};
|
|
895
|
-
}
|
|
896
|
-
function ou() {
|
|
897
|
-
G.value.length ? G.value = [] : ie.value.forEach((l) => {
|
|
898
|
-
G.value.push(l.id);
|
|
899
|
-
});
|
|
900
|
-
}
|
|
901
|
-
function uu(l, o) {
|
|
902
|
-
(l.key === "Enter" || l.key === " ") && (l.preventDefault(), Mt(o));
|
|
903
|
-
}
|
|
904
|
-
function Mt(l) {
|
|
905
|
-
if (G.value.includes(l.id))
|
|
906
|
-
G.value = G.value.filter(
|
|
907
|
-
(o) => o !== l.id
|
|
908
|
-
);
|
|
909
|
-
else {
|
|
910
|
-
if (G.value.length + 1 === Ve.value.length)
|
|
911
|
-
return;
|
|
912
|
-
G.value.push(l.id);
|
|
913
|
-
}
|
|
914
|
-
We(
|
|
915
|
-
"selectLegend",
|
|
916
|
-
ye.value.map((o) => ({
|
|
917
|
-
name: o.name,
|
|
918
|
-
values: o.absoluteValues,
|
|
919
|
-
color: o.color,
|
|
920
|
-
type: o.type
|
|
921
|
-
}))
|
|
922
|
-
), gl.value += 1;
|
|
923
|
-
}
|
|
924
|
-
function Pa(l) {
|
|
925
|
-
if (!ie.value.length)
|
|
926
|
-
return t.value.debug && console.warn("VueUiXy - There are no series to show."), null;
|
|
927
|
-
const o = ie.value.find((e) => e.name === l);
|
|
928
|
-
return o || (t.value.debug && console.warn(`VueUiXy - Series name not found "${l}"`), null);
|
|
929
|
-
}
|
|
930
|
-
function su(l) {
|
|
931
|
-
const o = Pa(l);
|
|
932
|
-
o !== null && G.value.includes(o.id) && Mt({ id: o.id });
|
|
933
|
-
}
|
|
934
|
-
function nu(l) {
|
|
935
|
-
const o = Pa(l);
|
|
936
|
-
o !== null && (G.value.includes(o.id) || Mt({ id: o.id }));
|
|
937
|
-
}
|
|
938
|
-
const iu = b(() => {
|
|
939
|
-
const l = t.value.chart.title.text || "Chart visualization", o = t.value.chart.title.subtitle.text || "";
|
|
940
|
-
return `${l}. ${o}`;
|
|
941
|
-
}), Oa = b(() => ({
|
|
942
|
-
linePlot: $.value > t.value.line.dot.hideAboveMaxSerieLength
|
|
943
|
-
})), ru = b(() => t.value.chart.userOptions.show && (!t.value.chart.title.show || !t.value.chart.title.text)), cu = b(() => {
|
|
944
|
-
if (Array.isArray(t.value.chart.highlightArea))
|
|
945
|
-
return t.value.chart.highlightArea.map((o) => {
|
|
946
|
-
const e = Math.min(o.to, ze.value - 1);
|
|
947
|
-
return {
|
|
948
|
-
...o,
|
|
949
|
-
span: o.from === e ? 1 : e < o.from ? 0 : e - o.from + 1
|
|
950
|
-
};
|
|
951
|
-
});
|
|
952
|
-
const l = {
|
|
953
|
-
...t.value.chart.highlightArea,
|
|
954
|
-
to: Math.min(t.value.chart.highlightArea.to, ze.value - 1)
|
|
955
|
-
};
|
|
956
|
-
return [
|
|
957
|
-
{
|
|
958
|
-
...l,
|
|
959
|
-
span: l.from === l.to ? 1 : l.to < l.from ? 0 : l.to - l.from + 1
|
|
960
|
-
}
|
|
961
|
-
];
|
|
962
|
-
}), Na = b(() => Dl.value ? pe.value.map((l, o) => ({
|
|
963
|
-
...l,
|
|
964
|
-
series: Fe(l.series),
|
|
965
|
-
id: `uniqueId_${o}`,
|
|
966
|
-
color: Fl(
|
|
967
|
-
l.color ? l.color : Yt.value[o] ? Yt.value[o] : Vl[o]
|
|
968
|
-
)
|
|
969
|
-
})) : pe.value), vu = b(() => ye.value.map((l) => {
|
|
970
|
-
const o = l.absoluteValues.map(
|
|
971
|
-
(e) => [void 0, null].includes(e) ? 0 : e
|
|
972
|
-
);
|
|
973
|
-
return {
|
|
974
|
-
id: l.id,
|
|
975
|
-
name: l.name,
|
|
976
|
-
color: l.color,
|
|
977
|
-
values: Jo($.value, o)
|
|
978
|
-
};
|
|
979
|
-
})), du = b(() => ({
|
|
980
|
-
responsiveBreakpoint: t.value.table.responsiveBreakpoint,
|
|
981
|
-
roundingValues: t.value.table.rounding,
|
|
982
|
-
showAverage: !1,
|
|
983
|
-
showMedian: !1,
|
|
984
|
-
showTotal: !1,
|
|
985
|
-
fontFamily: t.value.chart.fontFamily,
|
|
986
|
-
prefix: t.value.chart.labels.prefix,
|
|
987
|
-
suffix: t.value.chart.labels.suffix,
|
|
988
|
-
colNames: oe.value.map(
|
|
989
|
-
(l, o) => t.value.table.useDefaultTimeFormat ? l.text : it.value(
|
|
990
|
-
o + m.value.start,
|
|
991
|
-
t.value.table.timeFormat
|
|
992
|
-
)
|
|
993
|
-
),
|
|
994
|
-
thead: {
|
|
995
|
-
backgroundColor: t.value.table.th.backgroundColor,
|
|
996
|
-
color: t.value.table.th.color,
|
|
997
|
-
outline: t.value.table.th.outline
|
|
998
|
-
},
|
|
999
|
-
tbody: {
|
|
1000
|
-
backgroundColor: t.value.table.td.backgroundColor,
|
|
1001
|
-
color: t.value.table.td.color,
|
|
1002
|
-
outline: t.value.table.td.outline
|
|
1003
|
-
},
|
|
1004
|
-
userOptions: {
|
|
1005
|
-
show: !1
|
|
1006
|
-
},
|
|
1007
|
-
sparkline: {
|
|
1008
|
-
animation: { show: !1 }
|
|
1009
|
-
}
|
|
1010
|
-
})), q = b(() => t.value.chart.grid.position === "middle" ? 0 : c.value.width / $.value / 2), Ue = b(() => Xu(
|
|
1011
|
-
ie.value.filter(
|
|
1012
|
-
(l) => !G.value.includes(l.id)
|
|
1013
|
-
)
|
|
1014
|
-
));
|
|
1015
|
-
function hu(l, o) {
|
|
1016
|
-
const e = /* @__PURE__ */ Object.create(null);
|
|
1017
|
-
for (let s = 0; s < l.length; s += 1) {
|
|
1018
|
-
const a = l[s], n = String(o(a));
|
|
1019
|
-
e[n] || (e[n] = []), e[n].push(a);
|
|
1020
|
-
}
|
|
1021
|
-
return e;
|
|
1022
|
-
}
|
|
1023
|
-
const L = b(() => {
|
|
1024
|
-
const l = hu(
|
|
1025
|
-
Ue.value,
|
|
1026
|
-
(e) => e.scaleLabel
|
|
1027
|
-
), o = {};
|
|
1028
|
-
for (const [e, s] of Object.entries(l)) {
|
|
1029
|
-
const a = s.flatMap((n) => n.absoluteValues);
|
|
1030
|
-
o[e] = {
|
|
1031
|
-
min: Math.min(...a) || 0,
|
|
1032
|
-
max: Math.max(...a) || 1,
|
|
1033
|
-
groupId: `scale_group_${Ol()}`
|
|
1034
|
-
};
|
|
1035
|
-
}
|
|
1036
|
-
return o;
|
|
1037
|
-
}), fu = b(() => {
|
|
1038
|
-
const l = Ve.value.filter((o) => o.type === "bar").filter((o) => !G.value.includes(o.id)).length;
|
|
1039
|
-
return c.value.width / $.value / l - el.value * l;
|
|
1040
|
-
}), el = b(
|
|
1041
|
-
() => J.value.line * t.value.bar.periodGap
|
|
1042
|
-
), tl = b(() => Math.max(
|
|
1043
|
-
1e-5,
|
|
1044
|
-
Be() - (f.value.useIndividualScale && f.value.isStacked ? 0 : el.value)
|
|
1045
|
-
)), ll = b(
|
|
1046
|
-
() => tl.value * Math.min(Math.abs(t.value.bar.innerGap), 0.95)
|
|
1047
|
-
), mu = b(() => {
|
|
1048
|
-
if (!t.value.chart.zoom.minimap.show) return [];
|
|
1049
|
-
const l = Na.value.filter(
|
|
1050
|
-
(a) => !G.value.includes(a.id)
|
|
1051
|
-
), o = Math.max(
|
|
1052
|
-
...l.map((a) => a.series.length)
|
|
1053
|
-
), e = [];
|
|
1054
|
-
for (let a = 0; a < o; a += 1)
|
|
1055
|
-
e.push(
|
|
1056
|
-
l.map((n) => n.series[a] || 0).reduce((n, u) => (n || 0) + (u || 0), 0)
|
|
1057
|
-
);
|
|
1058
|
-
const s = Math.min(...e);
|
|
1059
|
-
return e.map((a) => a + (s < 0 ? Math.abs(s) : 0));
|
|
1060
|
-
}), gu = b(() => t.value.chart.zoom.minimap.show ? Na.value.map((o) => ({
|
|
1061
|
-
...o,
|
|
1062
|
-
isVisible: !G.value.includes(o.id)
|
|
1063
|
-
})) : []), Ze = b(() => ye.value.map((l) => ({
|
|
1064
|
-
slotAbsoluteIndex: l.slotAbsoluteIndex,
|
|
1065
|
-
shape: l.shape || l.type === "bar" ? "square" : "circle",
|
|
1066
|
-
name: l.name,
|
|
1067
|
-
color: l.color,
|
|
1068
|
-
type: l.type,
|
|
1069
|
-
value: l.absoluteValues.find(
|
|
1070
|
-
(o, e) => e === _.value
|
|
1071
|
-
),
|
|
1072
|
-
comments: l.comments || [],
|
|
1073
|
-
prefix: l.prefix || t.value.chart.labels.prefix,
|
|
1074
|
-
suffix: l.suffix || t.value.chart.labels.suffix
|
|
1075
|
-
}))), Fa = b(() => Ae.value.ticks.map((l) => ({
|
|
1076
|
-
y: l >= 0 ? me.value - c.value.height * Ge(l) : me.value + c.value.height * Ge(Math.abs(l)),
|
|
1077
|
-
value: l,
|
|
1078
|
-
prefix: t.value.chart.labels.prefix,
|
|
1079
|
-
suffix: t.value.chart.labels.suffix
|
|
1080
|
-
}))), Va = b(() => {
|
|
1081
|
-
const l = t.value.chart.annotations;
|
|
1082
|
-
if (!l || !Array.isArray(l) || l.every((V) => !V.show)) return [];
|
|
1083
|
-
const o = l.filter(
|
|
1084
|
-
(V) => V.show && (V.yAxis.yTop != null || V.yAxis.yBottom != null)
|
|
1085
|
-
);
|
|
1086
|
-
if (!o.length) return [];
|
|
1087
|
-
const { left: e, right: s } = c.value, a = me.value, n = c.value.height, u = Ae.value.min, M = Ae.value.max - u, I = (V) => {
|
|
1088
|
-
const D = (V - 0) / M;
|
|
1089
|
-
return a - D * n;
|
|
1090
|
-
};
|
|
1091
|
-
return o.map((V) => {
|
|
1092
|
-
const {
|
|
1093
|
-
yAxis: { yTop: D, yBottom: F, label: p }
|
|
1094
|
-
} = V, te = D != null && F != null && D !== F, B = D == null ? null : I(D), Q = F == null ? null : I(F), X = qo(p.fontSize);
|
|
1095
|
-
X.font = `${p.fontSize}px sans-serif`;
|
|
1096
|
-
const H = X.measureText(p.text).width, U = p.fontSize, j = (p.position === "start" ? e + p.padding?.left : s - p.padding?.right) + p.offsetX, we = (B != null && Q != null ? Math.min(B, Q) : B ?? Q) - p.fontSize / 3 + p.offsetY - p.padding?.top;
|
|
1097
|
-
let Z;
|
|
1098
|
-
p.textAnchor === "middle" ? Z = j - H / 2 - p.padding?.left : p.textAnchor === "end" ? Z = j - H - p.padding?.right : Z = j - p.padding?.left;
|
|
1099
|
-
const be = we - U * 0.75 - p.padding?.top;
|
|
1100
|
-
return {
|
|
1101
|
-
show: ![B, Q, be].includes(NaN),
|
|
1102
|
-
id: `annotation_y_${Ol()}`,
|
|
1103
|
-
hasArea: te,
|
|
1104
|
-
areaHeight: te ? Math.abs(B - Q) : 0,
|
|
1105
|
-
yTop: B,
|
|
1106
|
-
yBottom: Q,
|
|
1107
|
-
config: V.yAxis,
|
|
1108
|
-
x1: e,
|
|
1109
|
-
x2: s,
|
|
1110
|
-
_text: { x: j, y: we },
|
|
1111
|
-
_box: {
|
|
1112
|
-
x: Z,
|
|
1113
|
-
y: be,
|
|
1114
|
-
width: H + p.padding?.left + p.padding?.right,
|
|
1115
|
-
height: U + p.padding?.top + p.padding?.bottom,
|
|
1116
|
-
fill: p.backgroundColor,
|
|
1117
|
-
stroke: p.border.stroke,
|
|
1118
|
-
rx: p.border.rx,
|
|
1119
|
-
ry: p.border.ry,
|
|
1120
|
-
strokeWidth: p.border.strokeWidth
|
|
1121
|
-
}
|
|
1122
|
-
};
|
|
1123
|
-
});
|
|
1124
|
-
});
|
|
1125
|
-
function Ba(l, o) {
|
|
1126
|
-
const e = l[o - 1], s = l[o + 1];
|
|
1127
|
-
let a = !!e && !!s && e.value == null && s.value == null || !e && !!s && s.value == null || !!e && !s && e.value == null;
|
|
1128
|
-
return xe(l[o].value) && a && t.value.line.cutNullValues;
|
|
1129
|
-
}
|
|
1130
|
-
function $l({
|
|
1131
|
-
datapoint: l,
|
|
1132
|
-
totalSeries: o,
|
|
1133
|
-
gap: e,
|
|
1134
|
-
usableHeight: s,
|
|
1135
|
-
autoScaleValueMin: a,
|
|
1136
|
-
autoScaleValueMax: n,
|
|
1137
|
-
individualExtremes: u,
|
|
1138
|
-
forceExactScale: S = !1
|
|
1139
|
-
}) {
|
|
1140
|
-
const M = l.scaleSteps || t.value.chart.grid.labels.yAxis.commonScaleSteps, I = 1.0000001, V = S || !t.value.chart.grid.labels.yAxis.useNiceScale ? so : uo, D = u.max === u.min ? u.max * I : u.max, F = n === a ? n * I : n, p = V(
|
|
1141
|
-
u.min,
|
|
1142
|
-
D,
|
|
1143
|
-
M
|
|
1144
|
-
), te = V(
|
|
1145
|
-
a,
|
|
1146
|
-
F,
|
|
1147
|
-
M
|
|
1148
|
-
), B = p.min >= 0 ? 0 : Math.abs(p.min), Q = 0, X = p.max + Math.abs(B), H = te.max + Math.abs(Q), U = l.stackIndex, j = o - 1 - U, K = f.value.isStacked ? 1 - l.cumulatedStackRatio : 0, we = f.value.isStacked ? s * K + e * j : 0, Z = f.value.isStacked ? s * l.stackRatio : c.value.height, be = c.value?.bottom - we - Z * B / X, E = c.value?.bottom - we - Z * Q / H;
|
|
1149
|
-
return {
|
|
1150
|
-
scaleSteps: M,
|
|
1151
|
-
individualScale: p,
|
|
1152
|
-
autoScaleSteps: te,
|
|
1153
|
-
individualZero: B,
|
|
1154
|
-
autoScaleZero: Q,
|
|
1155
|
-
individualMax: X,
|
|
1156
|
-
autoScaleMax: H,
|
|
1157
|
-
yOffset: we,
|
|
1158
|
-
individualHeight: Z,
|
|
1159
|
-
zeroPosition: be,
|
|
1160
|
-
autoScaleZeroPosition: E
|
|
1161
|
-
};
|
|
1162
|
-
}
|
|
1163
|
-
const ke = b(() => {
|
|
1164
|
-
const l = Ue.value.filter(
|
|
1165
|
-
(u) => ["bar", "line", "plot"].includes(u.type)
|
|
1166
|
-
), o = l.length, e = t.value.chart.grid.labels.yAxis.gap, a = f.value.isStacked ? e * (o - 1) : 0, n = c.value.height - a;
|
|
1167
|
-
return l.filter((u) => u.type === "bar").map((u, S) => {
|
|
1168
|
-
Sl(u);
|
|
1169
|
-
const M = L.value[u.scaleLabel].min, I = L.value[u.scaleLabel].max;
|
|
1170
|
-
u.absoluteValues.filter((R) => ![null, void 0].includes(R)).map((R) => (R - M) / (I - M));
|
|
1171
|
-
const V = {
|
|
1172
|
-
valueMin: M,
|
|
1173
|
-
valueMax: I < 0 ? 0 : I
|
|
1174
|
-
}, D = {
|
|
1175
|
-
max: u.scaleMax || Math.max(...u.absoluteValues) || 1,
|
|
1176
|
-
min: u.scaleMin || Math.min(
|
|
1177
|
-
...u.absoluteValues.filter(
|
|
1178
|
-
(R) => ![void 0, null].includes(R)
|
|
1179
|
-
)
|
|
1180
|
-
) > 0 ? 0 : Math.min(
|
|
1181
|
-
...u.absoluteValues.filter(
|
|
1182
|
-
(R) => ![null, void 0].includes(R)
|
|
1183
|
-
)
|
|
1184
|
-
)
|
|
1185
|
-
}, {
|
|
1186
|
-
individualScale: F,
|
|
1187
|
-
autoScaleSteps: p,
|
|
1188
|
-
individualZero: te,
|
|
1189
|
-
individualMax: B,
|
|
1190
|
-
autoScaleMax: Q,
|
|
1191
|
-
yOffset: X,
|
|
1192
|
-
individualHeight: H,
|
|
1193
|
-
zeroPosition: U,
|
|
1194
|
-
autoScaleZeroPosition: j
|
|
1195
|
-
} = $l({
|
|
1196
|
-
datapoint: u,
|
|
1197
|
-
totalSeries: o,
|
|
1198
|
-
gap: e,
|
|
1199
|
-
usableHeight: n,
|
|
1200
|
-
autoScaleValueMin: V.valueMin,
|
|
1201
|
-
autoScaleValueMax: V.valueMax,
|
|
1202
|
-
individualExtremes: D
|
|
1203
|
-
}), K = ie.value.filter((R) => R.type === "bar").filter((R) => !G.value.includes(R.id)).length, we = u.series.map((R, re) => {
|
|
1204
|
-
const Tt = f.value.useIndividualScale ? (u.absoluteValues[re] + te) / B : Ge(R), Ke = f.value.useIndividualScale && f.value.isStacked ? c.value?.left + c.value.width / $.value * re : c.value?.left + J.value.bar * S + J.value.bar * re * K - fu.value / 2 - S * el.value;
|
|
1205
|
-
return {
|
|
1206
|
-
yOffset: N(X),
|
|
1207
|
-
individualHeight: N(H),
|
|
1208
|
-
x: N(Ke),
|
|
1209
|
-
y: c.value?.bottom - X - H * Tt,
|
|
1210
|
-
value: u.absoluteValues[re],
|
|
1211
|
-
zeroPosition: N(U),
|
|
1212
|
-
individualMax: N(B),
|
|
1213
|
-
comment: u.comments && u.comments.slice(
|
|
1214
|
-
m.value.start,
|
|
1215
|
-
m.value.end
|
|
1216
|
-
)[re] || ""
|
|
1217
|
-
};
|
|
1218
|
-
}), Z = u.absoluteValues.map(
|
|
1219
|
-
(R) => p.min >= 0 ? (R - Math.abs(p.min)) / (p.max - Math.abs(p.min)) : (R + Math.abs(p.min)) / (p.max + Math.abs(p.min))
|
|
1220
|
-
), be = u.series.map((R, re) => {
|
|
1221
|
-
const Tt = f.value.useIndividualScale && f.value.isStacked ? c.value?.left + c.value.width / $.value * re : c.value?.left - J.value.bar / 2 + J.value.bar * S + J.value.bar * re * ie.value.filter((Ke) => Ke.type === "bar").filter(
|
|
1222
|
-
(Ke) => !G.value.includes(
|
|
1223
|
-
Ke.id
|
|
1224
|
-
)
|
|
1225
|
-
).length;
|
|
1226
|
-
return {
|
|
1227
|
-
yOffset: N(X),
|
|
1228
|
-
individualHeight: N(H),
|
|
1229
|
-
x: N(Tt),
|
|
1230
|
-
y: N(
|
|
1231
|
-
c.value?.bottom - N(X) - (N(H) * Z[re] || 0)
|
|
1232
|
-
),
|
|
1233
|
-
value: u.absoluteValues[re],
|
|
1234
|
-
zeroPosition: N(U),
|
|
1235
|
-
individualMax: N(B),
|
|
1236
|
-
comment: u.comments && u.comments.slice(
|
|
1237
|
-
m.value.start,
|
|
1238
|
-
m.value.end
|
|
1239
|
-
)[re] || ""
|
|
1240
|
-
};
|
|
1241
|
-
}), E = F.ticks.map((R) => ({
|
|
1242
|
-
y: R >= 0 ? U - H * (R / B) : U + H * Math.abs(R) / B,
|
|
1243
|
-
value: R,
|
|
1244
|
-
prefix: u.prefix || t.value.chart.labels.prefix,
|
|
1245
|
-
suffix: u.suffix || t.value.chart.labels.suffix,
|
|
1246
|
-
datapoint: u
|
|
1247
|
-
})), le = p.ticks.map((R) => {
|
|
1248
|
-
const re = (R - p.min) / (p.max - p.min);
|
|
1249
|
-
return {
|
|
1250
|
-
y: R >= 0 ? j - H * re : j + H * re,
|
|
1251
|
-
value: R,
|
|
1252
|
-
prefix: u.prefix || t.value.chart.labels.prefix,
|
|
1253
|
-
suffix: u.suffix || t.value.chart.labels.suffix,
|
|
1254
|
-
datapoint: u
|
|
1255
|
-
};
|
|
1256
|
-
});
|
|
1257
|
-
return L.value[u.scaleLabel].name = u.name, L.value[u.scaleLabel].groupName = u.scaleLabel, L.value[u.scaleLabel].groupColor = t.value.chart.grid.labels.yAxis.groupColor || u.color, L.value[u.scaleLabel].color = u.color, L.value[u.scaleLabel].scaleYLabels = u.autoScaling ? le : E, L.value[u.scaleLabel].zeroPosition = u.autoScaling ? j : U, L.value[u.scaleLabel].individualMax = u.autoScaling ? Q : B, L.value[u.scaleLabel].scaleLabel = u.scaleLabel, L.value[u.scaleLabel].id = u.id, L.value[u.scaleLabel].yOffset = X, L.value[u.scaleLabel].individualHeight = H, L.value[u.scaleLabel].autoScaleYLabels = le, L.value[u.scaleLabel].unique = Ue.value.filter(
|
|
1258
|
-
(R) => R.scaleLabel === u.scaleLabel
|
|
1259
|
-
).length === 1, {
|
|
1260
|
-
...u,
|
|
1261
|
-
yOffset: X,
|
|
1262
|
-
autoScaleYLabels: le,
|
|
1263
|
-
individualHeight: H,
|
|
1264
|
-
scaleYLabels: u.autoScaling ? le : E,
|
|
1265
|
-
individualScale: u.autoScaling ? p : F,
|
|
1266
|
-
individualMax: u.autoScaling ? Q : B,
|
|
1267
|
-
zeroPosition: u.autoScaling ? j : U,
|
|
1268
|
-
plots: u.autoScaling ? be : we,
|
|
1269
|
-
groupId: L.value[u.scaleLabel].groupId
|
|
1270
|
-
};
|
|
1271
|
-
});
|
|
1272
|
-
}), ue = b(() => {
|
|
1273
|
-
const l = Ue.value.filter(
|
|
1274
|
-
(u) => ["bar", "line", "plot"].includes(u.type)
|
|
1275
|
-
), o = l.length, e = t.value.chart.grid.labels.yAxis.gap, a = f.value.isStacked ? e * (o - 1) : 0, n = c.value.height - a;
|
|
1276
|
-
return l.filter((u) => u.type === "line").map((u, S) => {
|
|
1277
|
-
Sl(u);
|
|
1278
|
-
const M = L.value[u.scaleLabel].min, I = L.value[u.scaleLabel].max;
|
|
1279
|
-
u.absoluteValues.filter((A) => ![null, void 0].includes(A)).map((A) => (A - M) / (I - M));
|
|
1280
|
-
const V = {
|
|
1281
|
-
valueMin: M,
|
|
1282
|
-
valueMax: I
|
|
1283
|
-
}, D = {
|
|
1284
|
-
max: u.scaleMax || Math.max(...u.absoluteValues) || 1,
|
|
1285
|
-
min: u.scaleMin || (Math.min(...u.absoluteValues) > 0 ? 0 : Math.min(...u.absoluteValues))
|
|
1286
|
-
}, {
|
|
1287
|
-
individualScale: F,
|
|
1288
|
-
autoScaleSteps: p,
|
|
1289
|
-
individualZero: te,
|
|
1290
|
-
individualMax: B,
|
|
1291
|
-
autoScaleMax: Q,
|
|
1292
|
-
yOffset: X,
|
|
1293
|
-
individualHeight: H,
|
|
1294
|
-
zeroPosition: U,
|
|
1295
|
-
autoScaleZeroPosition: j
|
|
1296
|
-
} = $l({
|
|
1297
|
-
datapoint: u,
|
|
1298
|
-
totalSeries: o,
|
|
1299
|
-
gap: e,
|
|
1300
|
-
usableHeight: n,
|
|
1301
|
-
autoScaleValueMin: V.valueMin,
|
|
1302
|
-
autoScaleValueMax: V.valueMax,
|
|
1303
|
-
individualExtremes: D
|
|
1304
|
-
}), K = u.series.map((A, ce) => {
|
|
1305
|
-
const Ou = f.value.useIndividualScale ? (u.absoluteValues[ce] + Math.abs(te)) / B : Ge(A);
|
|
1306
|
-
return {
|
|
1307
|
-
x: N(
|
|
1308
|
-
c.value?.left + J.value.line / 2 + J.value.line * ce
|
|
1309
|
-
),
|
|
1310
|
-
y: N(
|
|
1311
|
-
c.value?.bottom - X - H * Ou
|
|
1312
|
-
),
|
|
1313
|
-
value: u.absoluteValues[ce],
|
|
1314
|
-
comment: u.comments && u.comments.slice(
|
|
1315
|
-
m.value.start,
|
|
1316
|
-
m.value.end
|
|
1317
|
-
)[ce] || ""
|
|
1318
|
-
};
|
|
1319
|
-
}), we = u.absoluteValues.map(
|
|
1320
|
-
(A) => p.min >= 0 ? (A - Math.abs(p.min)) / (p.max - Math.abs(p.min)) : (A + Math.abs(p.min)) / (p.max + Math.abs(p.min))
|
|
1321
|
-
), Z = u.series.map((A, ce) => [void 0, null].includes(u.absoluteValues[ce]) ? {
|
|
1322
|
-
x: N(
|
|
1323
|
-
c.value?.left + J.value.line / 2 + J.value.line * ce
|
|
1324
|
-
),
|
|
1325
|
-
y: U,
|
|
1326
|
-
value: u.absoluteValues[ce],
|
|
1327
|
-
comment: u.comments && u.comments.slice(
|
|
1328
|
-
m.value.start,
|
|
1329
|
-
m.value.end
|
|
1330
|
-
)[ce] || ""
|
|
1331
|
-
} : {
|
|
1332
|
-
x: N(
|
|
1333
|
-
c.value?.left + J.value.line / 2 + J.value.line * ce
|
|
1334
|
-
),
|
|
1335
|
-
y: N(
|
|
1336
|
-
c.value?.bottom - X - (H * we[ce] || 0)
|
|
1337
|
-
),
|
|
1338
|
-
value: u.absoluteValues[ce],
|
|
1339
|
-
comment: u.comments && u.comments.slice(
|
|
1340
|
-
m.value.start,
|
|
1341
|
-
m.value.end
|
|
1342
|
-
)[ce] || ""
|
|
1343
|
-
}), be = u.dashIndices && Array.isArray(u.dashIndices) && u?.dashIndices?.length > 0, E = t.value.line.cutNullValues ? no(K) : io(K.filter((A) => A.value !== null)), le = t.value.line.cutNullValues ? no(Z) : io(
|
|
1344
|
-
Z.filter((A) => A.value !== null)
|
|
1345
|
-
), R = t.value.line.cutNullValues ? ro(K) : co(K.filter((A) => A.value !== null)), re = t.value.line.cutNullValues ? ro(Z) : co(
|
|
1346
|
-
Z.filter((A) => A.value !== null)
|
|
1347
|
-
), Tt = be ? Gu(
|
|
1348
|
-
t.value.line.cutNullValues ? K : K.filter((A) => A.value !== null),
|
|
1349
|
-
u.dashIndices.map((A) => A - m.value.start)
|
|
1350
|
-
) : [], Ke = be ? qu(
|
|
1351
|
-
t.value.line.cutNullValues ? K : K.filter((A) => A.value !== null),
|
|
1352
|
-
u.dashIndices.map((A) => A - m.value.start)
|
|
1353
|
-
) : [], ol = F.ticks.map((A) => ({
|
|
1354
|
-
y: A >= 0 ? U - H * (A / B) : U + H * Math.abs(A) / B,
|
|
1355
|
-
value: A,
|
|
1356
|
-
prefix: u.prefix || t.value.chart.labels.prefix,
|
|
1357
|
-
suffix: u.suffix || t.value.chart.labels.suffix,
|
|
1358
|
-
datapoint: u
|
|
1359
|
-
})), ul = p.ticks.map((A) => {
|
|
1360
|
-
const ce = (A - p.min) / (p.max - p.min);
|
|
1361
|
-
return {
|
|
1362
|
-
y: A >= 0 ? j - H * ce : j + H * ce,
|
|
1363
|
-
value: A,
|
|
1364
|
-
prefix: u.prefix || t.value.chart.labels.prefix,
|
|
1365
|
-
suffix: u.suffix || t.value.chart.labels.suffix,
|
|
1366
|
-
datapoint: u
|
|
1367
|
-
};
|
|
1368
|
-
});
|
|
1369
|
-
L.value[u.scaleLabel].name = u.name, L.value[u.scaleLabel].groupName = u.scaleLabel, L.value[u.scaleLabel].groupColor = t.value.chart.grid.labels.yAxis.groupColor || u.color, L.value[u.scaleLabel].color = u.color, L.value[u.scaleLabel].scaleYLabels = u.autoScaling ? ul : ol, L.value[u.scaleLabel].zeroPosition = u.autoScaling ? j : U, L.value[u.scaleLabel].individualMax = u.autoScaling ? Q : B, L.value[u.scaleLabel].scaleLabel = u.scaleLabel, L.value[u.scaleLabel].id = u.id, L.value[u.scaleLabel].yOffset = X, L.value[u.scaleLabel].individualHeight = H, L.value[u.scaleLabel].autoScaleYLabels = ul, L.value[u.scaleLabel].unique = Ue.value.filter(
|
|
1370
|
-
(A) => A.scaleLabel === u.scaleLabel
|
|
1371
|
-
).length === 1;
|
|
1372
|
-
const Pu = f.value.useIndividualScale ? u.autoScaling ? j : U : Do.value, zt = Math.max(
|
|
1373
|
-
Math.max(
|
|
1374
|
-
u.autoScaling ? j : ol.at(-1) ? ol.at(-1).y : 0,
|
|
1375
|
-
c.value?.top
|
|
1376
|
-
),
|
|
1377
|
-
Pu
|
|
1378
|
-
);
|
|
1379
|
-
return {
|
|
1380
|
-
...u,
|
|
1381
|
-
temperatureColors: u.temperatureColors ? u.temperatureColors.map(
|
|
1382
|
-
(A) => Fl(A)
|
|
1383
|
-
) : null,
|
|
1384
|
-
yOffset: X,
|
|
1385
|
-
autoScaleYLabels: ul,
|
|
1386
|
-
individualHeight: H,
|
|
1387
|
-
scaleYLabels: u.autoScaling ? ul : ol,
|
|
1388
|
-
individualScale: u.autoScaling ? p : F,
|
|
1389
|
-
individualMax: u.autoScaling ? Q : B,
|
|
1390
|
-
zeroPosition: u.autoScaling ? j : U,
|
|
1391
|
-
curve: u.autoScaling ? le : E,
|
|
1392
|
-
plots: u.autoScaling ? Z : K,
|
|
1393
|
-
dashedStraight: Tt,
|
|
1394
|
-
dashedSmooth: Ke,
|
|
1395
|
-
hasDashedSegments: be,
|
|
1396
|
-
area: u.useArea ? f.value.useIndividualScale ? t.value.line.cutNullValues ? vo(
|
|
1397
|
-
u.autoScaling ? Z : K,
|
|
1398
|
-
zt
|
|
1399
|
-
) : ho(
|
|
1400
|
-
u.autoScaling ? Z.filter(
|
|
1401
|
-
(A) => A.value !== null
|
|
1402
|
-
) : K.filter((A) => A.value !== null),
|
|
1403
|
-
zt
|
|
1404
|
-
) : t.value.line.cutNullValues ? vo(
|
|
1405
|
-
K,
|
|
1406
|
-
zt
|
|
1407
|
-
) : ho(
|
|
1408
|
-
K.filter((A) => A.value !== null),
|
|
1409
|
-
zt
|
|
1410
|
-
) : "",
|
|
1411
|
-
curveAreas: u.useArea ? Uu(
|
|
1412
|
-
u.autoScaling ? t.value.line.cutNullValues ? Z : Z.filter(
|
|
1413
|
-
(A) => A.value !== null
|
|
1414
|
-
) : t.value.line.cutNullValues ? K : K.filter((A) => A.value !== null),
|
|
1415
|
-
zt,
|
|
1416
|
-
t.value.line.cutNullValues
|
|
1417
|
-
) : [],
|
|
1418
|
-
straight: u.autoScaling ? re : R,
|
|
1419
|
-
groupId: L.value[u.scaleLabel].groupId
|
|
1420
|
-
};
|
|
1421
|
-
});
|
|
1422
|
-
}), ge = b(() => {
|
|
1423
|
-
const l = Ue.value.filter(
|
|
1424
|
-
(u) => ["bar", "line", "plot"].includes(u.type)
|
|
1425
|
-
), o = l.length, e = t.value.chart.grid.labels.yAxis.gap, a = f.value.isStacked ? e * (o - 1) : 0, n = c.value.height - a;
|
|
1426
|
-
return l.filter((u) => u.type === "plot").map((u) => {
|
|
1427
|
-
Sl(u);
|
|
1428
|
-
const S = L.value[u.scaleLabel].min, M = L.value[u.scaleLabel].max;
|
|
1429
|
-
u.absoluteValues.filter((E) => ![null, void 0].includes(E)).map((E) => (E - S) / (M - S));
|
|
1430
|
-
const I = {
|
|
1431
|
-
valueMin: S,
|
|
1432
|
-
valueMax: M
|
|
1433
|
-
}, V = {
|
|
1434
|
-
max: u.scaleMax || Math.max(...u.absoluteValues) || 1,
|
|
1435
|
-
min: u.scaleMin || Math.min(...u.absoluteValues) > 0 ? 0 : Math.min(...u.absoluteValues)
|
|
1436
|
-
}, {
|
|
1437
|
-
individualScale: D,
|
|
1438
|
-
autoScaleSteps: F,
|
|
1439
|
-
individualZero: p,
|
|
1440
|
-
individualMax: te,
|
|
1441
|
-
autoScaleMax: B,
|
|
1442
|
-
yOffset: Q,
|
|
1443
|
-
individualHeight: X,
|
|
1444
|
-
zeroPosition: H,
|
|
1445
|
-
autoScaleZeroPosition: U
|
|
1446
|
-
} = $l({
|
|
1447
|
-
datapoint: u,
|
|
1448
|
-
totalSeries: o,
|
|
1449
|
-
gap: e,
|
|
1450
|
-
usableHeight: n,
|
|
1451
|
-
autoScaleValueMin: I.valueMin,
|
|
1452
|
-
autoScaleValueMax: I.valueMax,
|
|
1453
|
-
individualExtremes: V,
|
|
1454
|
-
forceExactScale: !0
|
|
1455
|
-
}), j = u.series.map((E, le) => {
|
|
1456
|
-
const R = f.value.useIndividualScale ? (u.absoluteValues[le] + Math.abs(p)) / te : Ge(E);
|
|
1457
|
-
return {
|
|
1458
|
-
x: N(
|
|
1459
|
-
c.value?.left + J.value.plot / 2 + J.value.plot * le
|
|
1460
|
-
),
|
|
1461
|
-
y: N(
|
|
1462
|
-
c.value?.bottom - Q - X * R
|
|
1463
|
-
),
|
|
1464
|
-
value: u.absoluteValues[le],
|
|
1465
|
-
comment: u.comments && u.comments.slice(
|
|
1466
|
-
m.value.start,
|
|
1467
|
-
m.value.end
|
|
1468
|
-
)[le] || ""
|
|
1469
|
-
};
|
|
1470
|
-
}), K = u.absoluteValues.map(
|
|
1471
|
-
(E) => F.min >= 0 ? (E - Math.abs(F.min)) / (F.max - Math.abs(F.min)) : (E + Math.abs(F.min)) / (F.max + Math.abs(F.min))
|
|
1472
|
-
), we = u.series.map((E, le) => ({
|
|
1473
|
-
x: N(
|
|
1474
|
-
c.value?.left + J.value.plot / 2 + J.value.plot * le
|
|
1475
|
-
),
|
|
1476
|
-
y: N(
|
|
1477
|
-
c.value?.bottom - Q - (X * K[le] || 0)
|
|
1478
|
-
),
|
|
1479
|
-
value: u.absoluteValues[le],
|
|
1480
|
-
comment: u.comments && u.comments.slice(
|
|
1481
|
-
m.value.start,
|
|
1482
|
-
m.value.end
|
|
1483
|
-
)[le] || ""
|
|
1484
|
-
})), Z = D.ticks.map((E) => ({
|
|
1485
|
-
y: E >= 0 ? H - X * (E / te) : H + X * Math.abs(E) / te,
|
|
1486
|
-
value: E,
|
|
1487
|
-
prefix: u.prefix || t.value.chart.labels.prefix,
|
|
1488
|
-
suffix: u.suffix || t.value.chart.labels.suffix,
|
|
1489
|
-
datapoint: u
|
|
1490
|
-
})), be = F.ticks.map((E) => {
|
|
1491
|
-
const le = (E - F.min) / (F.max - F.min);
|
|
1492
|
-
return {
|
|
1493
|
-
y: E >= 0 ? U - X * le : U + X * le,
|
|
1494
|
-
value: E,
|
|
1495
|
-
prefix: u.prefix || t.value.chart.labels.prefix,
|
|
1496
|
-
suffix: u.suffix || t.value.chart.labels.suffix,
|
|
1497
|
-
datapoint: u
|
|
1498
|
-
};
|
|
1499
|
-
});
|
|
1500
|
-
return L.value[u.scaleLabel].name = u.name, L.value[u.scaleLabel].groupName = u.scaleLabel, L.value[u.scaleLabel].groupColor = t.value.chart.grid.labels.yAxis.groupColor || u.color, L.value[u.scaleLabel].color = u.color, L.value[u.scaleLabel].scaleYLabels = u.autoScaling ? be : Z, L.value[u.scaleLabel].zeroPosition = u.autoScaling ? U : H, L.value[u.scaleLabel].individualMax = u.autoScaling ? B : te, L.value[u.scaleLabel].scaleLabel = u.scaleLabel, L.value[u.scaleLabel].id = u.id, L.value[u.scaleLabel].yOffset = Q, L.value[u.scaleLabel].individualHeight = X, L.value[u.scaleLabel].autoScaleYLabels = be, L.value[u.scaleLabel].unique = Ue.value.filter(
|
|
1501
|
-
(E) => E.scaleLabel === u.scaleLabel
|
|
1502
|
-
).length === 1, {
|
|
1503
|
-
...u,
|
|
1504
|
-
yOffset: Q,
|
|
1505
|
-
autoScaleYLabels: be,
|
|
1506
|
-
individualHeight: X,
|
|
1507
|
-
scaleYLabels: u.autoScaling ? be : Z,
|
|
1508
|
-
individualScale: u.autoScaling ? F : D,
|
|
1509
|
-
individualMax: u.autoScaling ? B : te,
|
|
1510
|
-
zeroPosition: u.autoScaling ? U : H,
|
|
1511
|
-
plots: u.autoScaling ? we : j,
|
|
1512
|
-
groupId: L.value[u.scaleLabel].groupId
|
|
1513
|
-
};
|
|
1514
|
-
});
|
|
1515
|
-
}), At = b(() => {
|
|
1516
|
-
const l = ue.value.map((n) => ({
|
|
1517
|
-
name: n.name,
|
|
1518
|
-
color: n.color,
|
|
1519
|
-
scale: n.individualScale,
|
|
1520
|
-
scaleYLabels: n.scaleYLabels,
|
|
1521
|
-
zero: n.zeroPosition,
|
|
1522
|
-
max: n.individualMax,
|
|
1523
|
-
scaleLabel: n.scaleLabel || "",
|
|
1524
|
-
id: n.id,
|
|
1525
|
-
yOffset: n.yOffset || 0,
|
|
1526
|
-
individualHeight: n.individualHeight || c.value.height,
|
|
1527
|
-
autoScaleYLabels: n.autoScaleYLabels
|
|
1528
|
-
})), o = ke.value.map((n) => ({
|
|
1529
|
-
name: n.name,
|
|
1530
|
-
color: n.color,
|
|
1531
|
-
scale: n.individualScale,
|
|
1532
|
-
scaleYLabels: n.scaleYLabels,
|
|
1533
|
-
zero: n.zeroPosition,
|
|
1534
|
-
max: n.individualMax,
|
|
1535
|
-
scaleLabel: n.scaleLabel || "",
|
|
1536
|
-
id: n.id,
|
|
1537
|
-
yOffset: n.yOffset || 0,
|
|
1538
|
-
individualHeight: n.individualHeight || c.value.height
|
|
1539
|
-
})), e = ge.value.map((n) => ({
|
|
1540
|
-
name: n.name,
|
|
1541
|
-
color: n.color,
|
|
1542
|
-
scale: n.individualScale,
|
|
1543
|
-
scaleYLabels: n.scaleYLabels,
|
|
1544
|
-
// FIX
|
|
1545
|
-
zero: n.zeroPosition,
|
|
1546
|
-
max: n.individualMax,
|
|
1547
|
-
scaleLabel: n.scaleLabel || "",
|
|
1548
|
-
id: n.id,
|
|
1549
|
-
yOffset: n.yOffset || 0,
|
|
1550
|
-
individualHeight: n.individualHeight || c.value.height
|
|
1551
|
-
})), s = f.value.useIndividualScale && !f.value.isStacked ? Object.values(L.value) : [...l, ...o, ...e], a = s.flatMap((n) => n).length;
|
|
1552
|
-
return s.flatMap((n, u) => {
|
|
1553
|
-
let S = 0;
|
|
1554
|
-
S = f.value.isStacked ? c.value?.left : c.value?.left / a * (u + 1);
|
|
1555
|
-
const M = f.value.useIndividualScale && !f.value.isStacked ? n.unique ? n.name : n.groupName : n.name;
|
|
1556
|
-
return {
|
|
1557
|
-
unique: n.unique,
|
|
1558
|
-
id: n.id,
|
|
1559
|
-
groupId: n.groupId,
|
|
1560
|
-
scaleLabel: n.scaleLabel,
|
|
1561
|
-
name: he(
|
|
1562
|
-
t.value.chart.grid.labels.yAxis.serieNameFormatter,
|
|
1563
|
-
M,
|
|
1564
|
-
M,
|
|
1565
|
-
n
|
|
1566
|
-
),
|
|
1567
|
-
color: f.value.useIndividualScale && !f.value.isStacked ? n.unique ? n.color : n.groupColor : n.color,
|
|
1568
|
-
scale: n.scale,
|
|
1569
|
-
yOffset: n.yOffset,
|
|
1570
|
-
individualHeight: n.individualHeight,
|
|
1571
|
-
x: S,
|
|
1572
|
-
yLabels: n.scaleYLabels || n.scale.ticks.map((I) => ({
|
|
1573
|
-
y: I >= 0 ? n.zero - n.individualHeight * (I / n.max) : n.zero + n.individualHeight * Math.abs(I) / n.max,
|
|
1574
|
-
value: I
|
|
1575
|
-
}))
|
|
1576
|
-
};
|
|
1577
|
-
});
|
|
1578
|
-
}), Ra = b(() => {
|
|
1579
|
-
const l = t.value.line.interLine || {}, o = l.pairs || [], e = l.colors || [];
|
|
1580
|
-
if (!o.length) return [];
|
|
1581
|
-
const s = [];
|
|
1582
|
-
return o.forEach((a, n) => {
|
|
1583
|
-
const [u, S] = Array.isArray(a) ? a : [a.a, a.b];
|
|
1584
|
-
if (!u || !S) return;
|
|
1585
|
-
const M = ue.value.find((p) => p.name === u), I = ue.value.find((p) => p.name === S);
|
|
1586
|
-
if (!M || !I || M.type !== "line" || I.type !== "line") return;
|
|
1587
|
-
const V = e?.[n]?.[0] ?? M.color, D = e?.[n]?.[1] ?? I.color;
|
|
1588
|
-
Zu({
|
|
1589
|
-
lineA: M.plots,
|
|
1590
|
-
lineB: I.plots,
|
|
1591
|
-
smoothA: !!M.smooth,
|
|
1592
|
-
smoothB: !!I.smooth,
|
|
1593
|
-
colorLineA: V,
|
|
1594
|
-
colorLineB: D,
|
|
1595
|
-
sampleStepPx: 2,
|
|
1596
|
-
cutNullValues: t.value.line.cutNullValues
|
|
1597
|
-
}).forEach((p, te) => {
|
|
1598
|
-
s.push({ ...p, key: `inter_${u}_${S}_${n}_${te}` });
|
|
1599
|
-
});
|
|
1600
|
-
}), s;
|
|
1601
|
-
}), Ll = b(() => ({
|
|
1602
|
-
timeLabel: oe.value[_.value],
|
|
1603
|
-
datapoint: Ze.value,
|
|
1604
|
-
seriesIndex: _.value,
|
|
1605
|
-
series: ie.value,
|
|
1606
|
-
bars: ke.value,
|
|
1607
|
-
lines: ue.value,
|
|
1608
|
-
plots: ge.value,
|
|
1609
|
-
config: t.value
|
|
1610
|
-
})), Ha = g({
|
|
1611
|
-
months: [],
|
|
1612
|
-
shortMonths: [],
|
|
1613
|
-
days: [],
|
|
1614
|
-
shortDays: []
|
|
1615
|
-
});
|
|
1616
|
-
let Da = 0;
|
|
1617
|
-
sl(() => {
|
|
1618
|
-
const l = ++Da, o = t.value.chart.grid.labels.xAxisLabels.datetimeFormatter;
|
|
1619
|
-
(async () => {
|
|
1620
|
-
const e = await po(o.locale).catch(
|
|
1621
|
-
() => po("en")
|
|
1622
|
-
);
|
|
1623
|
-
l === Da && (Ha.value = e.data);
|
|
1624
|
-
})();
|
|
1625
|
-
});
|
|
1626
|
-
const it = b(() => {
|
|
1627
|
-
const l = t.value.chart.grid.labels.xAxisLabels.datetimeFormatter, o = os({
|
|
1628
|
-
useUTC: l.useUTC,
|
|
1629
|
-
locale: Ha.value,
|
|
1630
|
-
januaryAsYear: l.januaryAsYear
|
|
1631
|
-
});
|
|
1632
|
-
return (e, s) => {
|
|
1633
|
-
const n = t.value.chart.grid.labels.xAxisLabels.values?.[e];
|
|
1634
|
-
return n == null ? "" : o.formatDate(new Date(n), s);
|
|
1635
|
-
};
|
|
1636
|
-
}), Wa = b(() => (t.value.chart.grid.labels.xAxisLabels.values || []).map((o, e) => ({
|
|
1637
|
-
text: it.value(
|
|
1638
|
-
e,
|
|
1639
|
-
t.value.chart.zoom.timeFormat
|
|
1640
|
-
),
|
|
1641
|
-
absoluteIndex: e
|
|
1642
|
-
}))), bu = b(() => {
|
|
1643
|
-
let l = "", o = Ze.value.map((a) => a.value).filter((a) => nl(a) && a !== null).reduce((a, n) => Math.abs(a) + Math.abs(n), 0);
|
|
1644
|
-
const e = oe.value[_.value], s = t.value.chart.tooltip.customFormat;
|
|
1645
|
-
if (fo(s) && Ku(
|
|
1646
|
-
() => s({
|
|
1647
|
-
absoluteIndex: _.value + m.value.start,
|
|
1648
|
-
seriesIndex: _.value,
|
|
1649
|
-
datapoint: Ze.value,
|
|
1650
|
-
series: ie.value,
|
|
1651
|
-
bars: ke.value,
|
|
1652
|
-
lines: ue.value,
|
|
1653
|
-
plots: ge.value,
|
|
1654
|
-
config: t.value,
|
|
1655
|
-
dateLabel: e
|
|
1656
|
-
})
|
|
1657
|
-
))
|
|
1658
|
-
return s({
|
|
1659
|
-
absoluteIndex: _.value + m.value.start,
|
|
1660
|
-
seriesIndex: _.value,
|
|
1661
|
-
datapoint: Ze.value,
|
|
1662
|
-
series: ie.value,
|
|
1663
|
-
bars: ke.value,
|
|
1664
|
-
lines: ue.value,
|
|
1665
|
-
plots: ge.value,
|
|
1666
|
-
config: t.value,
|
|
1667
|
-
dateLabel: e
|
|
1668
|
-
});
|
|
1669
|
-
if (e && e.text && t.value.chart.tooltip.showTimeLabel) {
|
|
1670
|
-
const a = it.value(
|
|
1671
|
-
_.value + m.value.start,
|
|
1672
|
-
t.value.chart.tooltip.timeFormat
|
|
1673
|
-
);
|
|
1674
|
-
l += `<div style="padding-bottom: 6px; margin-bottom: 4px; border-bottom: 1px solid ${t.value.chart.tooltip.borderColor}; width:100%">${t.value.chart.grid.labels.xAxisLabels.datetimeFormatter.enable && !t.value.chart.tooltip.useDefaultTimeFormat ? a : e.text}</div>`;
|
|
1675
|
-
}
|
|
1676
|
-
return Ze.value.forEach((a) => {
|
|
1677
|
-
if (nl(a.value)) {
|
|
1678
|
-
let n = "", u = "";
|
|
1679
|
-
switch (pt.value[a.type]) {
|
|
1680
|
-
case "bar":
|
|
1681
|
-
n = `<svg viewBox="0 0 40 40" height="14" width="14">${Hl.pattern ? `<rect x="0" y="0" rx="1" stroke="none" height="40" width="40" fill="${a.color}" />` : ""}<rect x="0" y="0" rx="1" stroke="none" height="40" width="40" fill="${Hl.pattern ? `url(#pattern_${z.value}_${a.slotAbsoluteIndex}` : a.color}" /></svg>`;
|
|
1682
|
-
break;
|
|
1683
|
-
case "line":
|
|
1684
|
-
!a.shape || ![
|
|
1685
|
-
"star",
|
|
1686
|
-
"triangle",
|
|
1687
|
-
"square",
|
|
1688
|
-
"diamond",
|
|
1689
|
-
"pentagon",
|
|
1690
|
-
"hexagon"
|
|
1691
|
-
].includes(a.shape) ? u = `<circle cx="10" cy="8" r="4" stroke="${t.value.chart.tooltip.backgroundColor}" stroke-width="0.5" fill="${a.color}" />` : a.shape === "triangle" ? u = `<path d="${Ie({ plot: { x: 10, y: 8 }, radius: 4, sides: 3, rotation: 0.52 }).path}" fill="${a.color}" stroke="${t.value.chart.tooltip.backgroundColor}" stroke-width="0.5" />` : a.shape === "square" ? u = `<path d="${Ie({ plot: { x: 10, y: 8 }, radius: 4, sides: 4, rotation: 0.8 }).path}" fill="${a.color}" stroke="${t.value.chart.tooltip.backgroundColor}" stroke-width="0.5" />` : a.shape === "diamond" ? u = `<path d="${Ie({ plot: { x: 10, y: 8 }, radius: 4, sides: 4, rotation: 0 }).path}" fill="${a.color}" stroke="${t.value.chart.tooltip.backgroundColor}" stroke-width="0.5" />` : a.shape === "pentagon" ? u = `<path d="${Ie({ plot: { x: 10, y: 8 }, radius: 4, sides: 5, rotation: 0.95 }).path}" fill="${a.color}" stroke="${t.value.chart.tooltip.backgroundColor}" stroke-width="0.5" />` : a.shape === "hexagon" ? u = `<path d="${Ie({ plot: { x: 10, y: 8 }, radius: 4, sides: 6, rotation: 0 }).path}" fill="${a.color}" stroke="${t.value.chart.tooltip.backgroundColor}" stroke-width="0.5" />` : a.shape === "star" && (u = `<polygon stroke="${t.value.chart.tooltip.backgroundColor}" stroke-width="0.5" fill="${a.color}" points="${mo({ plot: { x: 10, y: 8 }, radius: 4 })}" />`), n = `<svg viewBox="0 0 20 12" height="14" width="20"><rect rx="1.5" x="0" y="6.5" stroke="${t.value.chart.tooltip.backgroundColor}" stroke-width="0.5" height="3" width="20" fill="${a.color}" />${u}</svg>`;
|
|
1692
|
-
break;
|
|
1693
|
-
case "plot":
|
|
1694
|
-
if (!a.shape || ![
|
|
1695
|
-
"star",
|
|
1696
|
-
"triangle",
|
|
1697
|
-
"square",
|
|
1698
|
-
"diamond",
|
|
1699
|
-
"pentagon",
|
|
1700
|
-
"hexagon"
|
|
1701
|
-
].includes(a.shape)) {
|
|
1702
|
-
n = `<svg viewBox="0 0 12 12" height="14" width="14"><circle cx="6" cy="6" r="6" stroke="${t.value.chart.tooltip.backgroundColor}" stroke-width="1" fill="${a.color}" /></svg>`;
|
|
1703
|
-
break;
|
|
1704
|
-
}
|
|
1705
|
-
if (a.shape === "star") {
|
|
1706
|
-
n = `<svg viewBox="0 0 12 12" height="14" width="14"><polygon stroke="${t.value.chart.tooltip.backgroundColor}" stroke-width="1" fill="${a.color}" points="${mo({ plot: { x: 6, y: 6 }, radius: 5 })}" /></svg>`;
|
|
1707
|
-
break;
|
|
1708
|
-
}
|
|
1709
|
-
if (a.shape === "triangle") {
|
|
1710
|
-
n = `<svg viewBox="0 0 12 12" height="14" width="14"><path d="${Ie({ plot: { x: 6, y: 6 }, radius: 6, sides: 3, rotation: 0.52 }).path}" fill="${a.color}" stroke="${t.value.chart.tooltip.backgroundColor}" stroke-width="1" /></svg>`;
|
|
1711
|
-
break;
|
|
1712
|
-
}
|
|
1713
|
-
if (a.shape === "square") {
|
|
1714
|
-
n = `<svg viewBox="0 0 12 12" height="14" width="14"><path d="${Ie({ plot: { x: 6, y: 6 }, radius: 6, sides: 4, rotation: 0.8 }).path}" fill="${a.color}" stroke="${t.value.chart.tooltip.backgroundColor}" stroke-width="1" /></svg>`;
|
|
1715
|
-
break;
|
|
1716
|
-
}
|
|
1717
|
-
if (a.shape === "diamond") {
|
|
1718
|
-
n = `<svg viewBox="0 0 12 12" height="14" width="14"><path d="${Ie({ plot: { x: 6, y: 6 }, radius: 5, sides: 4, rotation: 0 }).path}" fill="${a.color}" stroke="${t.value.chart.tooltip.backgroundColor}" stroke-width="1" /></svg>`;
|
|
1719
|
-
break;
|
|
1720
|
-
}
|
|
1721
|
-
if (a.shape === "pentagon") {
|
|
1722
|
-
n = `<svg viewBox="0 0 12 12" height="14" width="14"><path d="${Ie({ plot: { x: 6, y: 6 }, radius: 5, sides: 5, rotation: 0.95 }).path}" fill="${a.color}" stroke="${t.value.chart.tooltip.backgroundColor}" stroke-width="1" /></svg>`;
|
|
1723
|
-
break;
|
|
1724
|
-
}
|
|
1725
|
-
if (a.shape === "hexagon") {
|
|
1726
|
-
n = `<svg viewBox="0 0 12 12" height="14" width="14"><path d="${Ie({ plot: { x: 6, y: 6 }, radius: 5, sides: 6, rotation: 0 }).path}" fill="${a.color}" stroke="${t.value.chart.tooltip.backgroundColor}" stroke-width="1" /></svg>`;
|
|
1727
|
-
break;
|
|
1728
|
-
}
|
|
1729
|
-
}
|
|
1730
|
-
l += `<div style="display:flex;flex-direction:row; align-items:center;gap:3px;"><div style="width:20px">${n}</div> ${a.name}: <b>${t.value.chart.tooltip.showValue ? he(
|
|
1731
|
-
a.type === "line" ? t.value.line.labels.formatter : a.type === "bar" ? t.value.bar.labels.formatter : t.value.plot.labels.formatter,
|
|
1732
|
-
a.value,
|
|
1733
|
-
Pe({
|
|
1734
|
-
p: a.prefix,
|
|
1735
|
-
v: a.value,
|
|
1736
|
-
s: a.suffix,
|
|
1737
|
-
r: t.value.chart.tooltip.roundingValue
|
|
1738
|
-
}),
|
|
1739
|
-
{ datapoint: a }
|
|
1740
|
-
) : ""}</b> ${t.value.chart.tooltip.showPercentage ? `(${Pe({
|
|
1741
|
-
v: N(Math.abs(a.value) / o * 100),
|
|
1742
|
-
s: "%",
|
|
1743
|
-
r: t.value.chart.tooltip.roundingPercentage
|
|
1744
|
-
})})` : ""}</div>`, t.value.chart.comments.showInTooltip && a.comments.length && a.comments.slice(m.value.start, m.value.end)[_.value] && (l += `<div class="vue-data-ui-tooltip-comment" style="background:${a.color}20; padding: 6px; margin-bottom: 6px; border-left: 1px solid ${a.color}">${a.comments.slice(m.value.start, m.value.end)[_.value]}</div>`);
|
|
1745
|
-
}
|
|
1746
|
-
}), `<div style="border-radius:4px;padding:12px;font-variant-numeric: tabular-nums;color:${t.value.chart.tooltip.color}">${l}</div>`;
|
|
1747
|
-
}), Ea = b(() => {
|
|
1748
|
-
if (Ve.value.length === 0)
|
|
1749
|
-
return { head: [], body: [], config: {}, columnNames: [] };
|
|
1750
|
-
const l = ye.value.map((e) => ({
|
|
1751
|
-
label: e.name,
|
|
1752
|
-
color: e.color,
|
|
1753
|
-
type: e.type
|
|
1754
|
-
})), o = [];
|
|
1755
|
-
return oe.value.forEach((e, s) => {
|
|
1756
|
-
const a = t.value.table.useDefaultTimeFormat ? [e.text] : [
|
|
1757
|
-
it.value(
|
|
1758
|
-
s + m.value.start,
|
|
1759
|
-
t.value.table.timeFormat
|
|
1760
|
-
)
|
|
1761
|
-
];
|
|
1762
|
-
ye.value.forEach((n) => {
|
|
1763
|
-
a.push(
|
|
1764
|
-
xe(n.absoluteValues[s]) ? Number(
|
|
1765
|
-
n.absoluteValues[s].toFixed(
|
|
1766
|
-
t.value.table.rounding
|
|
1767
|
-
)
|
|
1768
|
-
) : ""
|
|
1769
|
-
);
|
|
1770
|
-
}), o.push(a);
|
|
1771
|
-
}), { head: l, body: o };
|
|
1772
|
-
}), rt = b(() => {
|
|
1773
|
-
const l = t.value.table.showSum;
|
|
1774
|
-
let o = [""].concat(ye.value.map((n) => n.name));
|
|
1775
|
-
l && (o = o.concat(
|
|
1776
|
-
' <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>'
|
|
1777
|
-
));
|
|
1778
|
-
let e = [];
|
|
1779
|
-
for (let n = 0; n < $.value; n += 1) {
|
|
1780
|
-
const u = ye.value.map((S) => S.absoluteValues[n] ?? 0).reduce((S, M) => S + M, 0);
|
|
1781
|
-
e.push(
|
|
1782
|
-
[
|
|
1783
|
-
t.value.table.useDefaultTimeFormat ? oe.value[n]?.text ?? "-" : it.value(
|
|
1784
|
-
n + m.value.start,
|
|
1785
|
-
t.value.table.timeFormat
|
|
1786
|
-
)
|
|
1787
|
-
].concat(
|
|
1788
|
-
ye.value.map((S) => he(
|
|
1789
|
-
S.type === "line" ? t.value.line.labels.formatter : S.type === "bar" ? t.value.bar.labels.formatter : t.value.plot.labels.formatter,
|
|
1790
|
-
S.absoluteValues[n] ?? 0,
|
|
1791
|
-
Pe({
|
|
1792
|
-
p: S.prefix || t.value.chart.labels.prefix,
|
|
1793
|
-
v: S.absoluteValues[n] ?? 0,
|
|
1794
|
-
s: S.suffix || t.value.chart.labels.suffix,
|
|
1795
|
-
r: t.value.table.rounding
|
|
1796
|
-
})
|
|
1797
|
-
))
|
|
1798
|
-
).concat(
|
|
1799
|
-
l ? (u ?? 0).toFixed(t.value.table.rounding) : []
|
|
1800
|
-
)
|
|
1801
|
-
);
|
|
1802
|
-
}
|
|
1803
|
-
const s = {
|
|
1804
|
-
th: {
|
|
1805
|
-
backgroundColor: t.value.table.th.backgroundColor,
|
|
1806
|
-
color: t.value.table.th.color,
|
|
1807
|
-
outline: t.value.table.th.outline
|
|
1808
|
-
},
|
|
1809
|
-
td: {
|
|
1810
|
-
backgroundColor: t.value.table.td.backgroundColor,
|
|
1811
|
-
color: t.value.table.td.color,
|
|
1812
|
-
outline: t.value.table.td.outline
|
|
1813
|
-
},
|
|
1814
|
-
breakpoint: t.value.table.responsiveBreakpoint
|
|
1815
|
-
}, a = [t.value.table.columnNames.period].concat(ye.value.map((n) => n.name)).concat(t.value.table.columnNames.total);
|
|
1816
|
-
return { head: o, body: e, config: s, colNames: a };
|
|
1817
|
-
});
|
|
1818
|
-
function Ml(l = null) {
|
|
1819
|
-
const o = [
|
|
1820
|
-
[t.value.chart.title.text],
|
|
1821
|
-
[t.value.chart.title.subtitle.text],
|
|
1822
|
-
[""]
|
|
1823
|
-
], e = ["", ...Ea.value.head.map((u) => u.label)], s = Ea.value.body, a = o.concat([e]).concat(s), n = ts(a);
|
|
1824
|
-
l ? l(n) : ls({
|
|
1825
|
-
csvContent: n,
|
|
1826
|
-
title: t.value.chart.title.text || "vue-ui-xy"
|
|
1827
|
-
});
|
|
1828
|
-
}
|
|
1829
|
-
function Al(l, o = null) {
|
|
1830
|
-
if (Wo.value) return;
|
|
1831
|
-
Wl.value = l;
|
|
1832
|
-
const e = ye.value.map((s) => ({
|
|
1833
|
-
name: s.name,
|
|
1834
|
-
value: [null, void 0, NaN].includes(
|
|
1835
|
-
s.absoluteValues[o]
|
|
1836
|
-
) ? null : s.absoluteValues[o],
|
|
1837
|
-
color: s.color,
|
|
1838
|
-
type: s.type
|
|
1839
|
-
}));
|
|
1840
|
-
l ? (_.value = o, t.value.events.datapointEnter && t.value.events.datapointEnter({
|
|
1841
|
-
datapoint: e,
|
|
1842
|
-
seriesIndex: o + m.value.start
|
|
1843
|
-
})) : (_.value = null, t.value.events.datapointLeave && t.value.events.datapointLeave({
|
|
1844
|
-
datapoint: e,
|
|
1845
|
-
seriesIndex: o + m.value.start
|
|
1846
|
-
}));
|
|
1847
|
-
}
|
|
1848
|
-
function Ya() {
|
|
1849
|
-
f.value.showTable = !f.value.showTable;
|
|
1850
|
-
}
|
|
1851
|
-
function Xa() {
|
|
1852
|
-
f.value.dataLabels.show = !f.value.dataLabels.show;
|
|
1853
|
-
}
|
|
1854
|
-
function Ga() {
|
|
1855
|
-
f.value.showTooltip = !f.value.showTooltip;
|
|
1856
|
-
}
|
|
1857
|
-
function qa(l) {
|
|
1858
|
-
Ee.value = l, El.value += 1;
|
|
1859
|
-
}
|
|
1860
|
-
function Ua() {
|
|
1861
|
-
if (!t.value.responsiveProportionalSizing) {
|
|
1862
|
-
x.value.dataLabels = t.value.chart.grid.labels.fontSize, x.value.yAxis = t.value.chart.grid.labels.axis.fontSize, x.value.xAxis = t.value.chart.grid.labels.xAxisLabels.fontSize, x.value.plotLabels = t.value.chart.labels.fontSize, Le.value.plot = t.value.plot.radius, Le.value.line = t.value.line.radius;
|
|
1863
|
-
return;
|
|
1864
|
-
}
|
|
1865
|
-
x.value.dataLabels = dt({
|
|
1866
|
-
relator: fe.value,
|
|
1867
|
-
adjuster: 400,
|
|
1868
|
-
source: t.value.chart.grid.labels.fontSize,
|
|
1869
|
-
threshold: 10,
|
|
1870
|
-
fallback: 10
|
|
1871
|
-
}), x.value.yAxis = dt({
|
|
1872
|
-
relator: ee.value,
|
|
1873
|
-
adjuster: 1e3,
|
|
1874
|
-
source: t.value.chart.grid.labels.axis.fontSize,
|
|
1875
|
-
threshold: 10,
|
|
1876
|
-
fallback: 10
|
|
1877
|
-
}), x.value.xAxis = dt({
|
|
1878
|
-
relator: ee.value,
|
|
1879
|
-
adjuster: 1e3,
|
|
1880
|
-
source: t.value.chart.grid.labels.xAxisLabels.fontSize,
|
|
1881
|
-
threshold: 10,
|
|
1882
|
-
fallback: 10
|
|
1883
|
-
}), x.value.plotLabels = dt({
|
|
1884
|
-
relator: ee.value,
|
|
1885
|
-
adjuster: 800,
|
|
1886
|
-
source: t.value.chart.labels.fontSize,
|
|
1887
|
-
threshold: 10,
|
|
1888
|
-
fallback: 10
|
|
1889
|
-
}), Le.value.plot = dt({
|
|
1890
|
-
relator: ee.value,
|
|
1891
|
-
adjuster: 800,
|
|
1892
|
-
source: t.value.plot.radius,
|
|
1893
|
-
threshold: 1,
|
|
1894
|
-
fallback: 1
|
|
1895
|
-
}), Le.value.line = dt({
|
|
1896
|
-
relator: ee.value,
|
|
1897
|
-
adjuster: 800,
|
|
1898
|
-
source: t.value.line.radius,
|
|
1899
|
-
threshold: 1,
|
|
1900
|
-
fallback: 1
|
|
1901
|
-
});
|
|
1902
|
-
}
|
|
1903
|
-
function Cl() {
|
|
1904
|
-
go(T.dataset) ? (Nl({
|
|
1905
|
-
componentName: "VueUiXy",
|
|
1906
|
-
type: "dataset",
|
|
1907
|
-
debug: kt.value
|
|
1908
|
-
}), Wt.value = !0) : T.dataset.forEach((o, e) => {
|
|
1909
|
-
[null, void 0].includes(o.name) && (Nl({
|
|
1910
|
-
componentName: "VueUiXy",
|
|
1911
|
-
type: "datasetSerieAttribute",
|
|
1912
|
-
property: "name (string)",
|
|
1913
|
-
index: e,
|
|
1914
|
-
debug: kt.value
|
|
1915
|
-
}), Wt.value = !0);
|
|
1916
|
-
}), kt.value && T.dataset.forEach((o) => {
|
|
1917
|
-
o.series.forEach((e, s) => {
|
|
1918
|
-
nl(e) || console.warn(
|
|
1919
|
-
`VueUiXy has detected an unsafe value in your dataset:
|
|
1920
|
-
-----> The serie '${o.name}' contains the value '${e}' at index ${s}.
|
|
1921
|
-
'${e}' was converted to null to allow the chart to display.`
|
|
1922
|
-
);
|
|
1923
|
-
});
|
|
1924
|
-
}), go(T.dataset) || (Wt.value = t.value.loading), Gl.value = t.value.chart.userOptions.showOnChartHover, bl.value = t.value.chart.userOptions.keepStateOnChartLeave, Bt.value = !t.value.chart.userOptions.showOnChartHover, kl();
|
|
1925
|
-
const l = 12;
|
|
1926
|
-
if (t.value.responsive) {
|
|
1927
|
-
const e = $e.value.parentNode;
|
|
1928
|
-
Ne.value && (Ne.value.unobserve(ml.value), Ne.value.disconnect());
|
|
1929
|
-
const { height: s, width: a } = e.getBoundingClientRect();
|
|
1930
|
-
let n = null, u = 0;
|
|
1931
|
-
t.value.chart.title.show && ft.value && (n = ft.value, u = n.getBoundingClientRect().height);
|
|
1932
|
-
let S = null, M = 0;
|
|
1933
|
-
t.value.chart.zoom.show && ze.value > 6 && xl.value && Te.value && Te.value.$el && (S = Te.value.$el, M = S.getBoundingClientRect().height);
|
|
1934
|
-
let I = null, V = 0;
|
|
1935
|
-
t.value.chart.legend.show && mt.value && (I = mt.value, V = I.getBoundingClientRect().height);
|
|
1936
|
-
let D = 0;
|
|
1937
|
-
gt.value && (D = gt.value.getBoundingClientRect().height);
|
|
1938
|
-
let F = 0;
|
|
1939
|
-
bt.value && (F = bt.value.getBoundingClientRect().height), fe.value = s - u - V - M - D - F - l, ee.value = a, Vt.value = `0 0 ${ee.value < 0 ? 10 : ee.value} ${fe.value < 0 ? 10 : fe.value}`, Ua();
|
|
1940
|
-
const p = new ResizeObserver((te) => {
|
|
1941
|
-
for (const B of te)
|
|
1942
|
-
t.value.chart.title.show && ft.value ? u = ft.value.getBoundingClientRect().height : u = 0, Te.value && Te.value.$el ? M = Te.value.$el.getBoundingClientRect().height : M = 0, mt.value ? V = mt.value.getBoundingClientRect().height : V = 0, gt.value ? D = gt.value.getBoundingClientRect().height : D = 0, bt.value ? F = bt.value.getBoundingClientRect().height : F = 0, requestAnimationFrame(() => {
|
|
1943
|
-
fe.value = B.contentRect.height - u - V - M - D - F - l, ee.value = B.contentBoxSize[0].inlineSize ?? B.contentRect.width, Vt.value = `0 0 ${ee.value < 0 ? 10 : ee.value} ${fe.value < 0 ? 10 : fe.value}`, Ua(), xt(), at();
|
|
1944
|
-
});
|
|
1945
|
-
});
|
|
1946
|
-
Ne.value = p, ml.value = e, p.observe(e);
|
|
1947
|
-
} else
|
|
1948
|
-
fe.value = t.value.chart.height, ee.value = t.value.chart.width, x.value.dataLabels = t.value.chart.grid.labels.fontSize, x.value.yAxis = t.value.chart.grid.labels.axis.fontSize, x.value.xAxis = t.value.chart.grid.labels.xAxisLabels.fontSize, x.value.plotLabels = t.value.chart.labels.fontSize, Le.value.plot = t.value.plot.radius, Le.value.line = t.value.line.radius, Vt.value = `0 0 ${ee.value} ${fe.value}`;
|
|
1949
|
-
xt(), at();
|
|
1950
|
-
}
|
|
1951
|
-
function Za(l) {
|
|
1952
|
-
Po.value = {
|
|
1953
|
-
x: l.clientX,
|
|
1954
|
-
y: l.clientY
|
|
1955
|
-
};
|
|
1956
|
-
}
|
|
1957
|
-
It(() => {
|
|
1958
|
-
Cl(), Jt(), document.addEventListener("mousemove", Za, {
|
|
1959
|
-
passive: !0
|
|
1960
|
-
}), document.addEventListener("scroll", fa, { passive: !0 });
|
|
1961
|
-
}), Pl(() => {
|
|
1962
|
-
document.removeEventListener("scroll", fa, { passive: !0 }), document.removeEventListener("mousemove", Za, {
|
|
1963
|
-
passive: !0
|
|
1964
|
-
}), Ne.value && (Ne.value.unobserve(ml.value), Ne.value.disconnect(), Ne.value = null);
|
|
1965
|
-
}), ds({
|
|
1966
|
-
timeLabelsEls: Ft,
|
|
1967
|
-
timeLabels: oe,
|
|
1968
|
-
slicer: m,
|
|
1969
|
-
configRef: t,
|
|
1970
|
-
rotationPath: ["chart", "grid", "labels", "xAxisLabels", "rotation"],
|
|
1971
|
-
autoRotatePath: [
|
|
1972
|
-
"chart",
|
|
1973
|
-
"grid",
|
|
1974
|
-
"labels",
|
|
1975
|
-
"xAxisLabels",
|
|
1976
|
-
"autoRotate",
|
|
1977
|
-
"enable"
|
|
1978
|
-
],
|
|
1979
|
-
isAutoSize: Ho,
|
|
1980
|
-
height: fe,
|
|
1981
|
-
width: ee,
|
|
1982
|
-
rotation: t.value.chart.grid.labels.xAxisLabels.autoRotate.angle
|
|
1983
|
-
});
|
|
1984
|
-
const al = g(!1), Ka = g(null), Ja = g(200), pu = b(
|
|
1985
|
-
() => _.value ?? P.value ?? 0
|
|
1986
|
-
);
|
|
1987
|
-
function yu() {
|
|
1988
|
-
const l = Math.ceil(Ja.value || 200);
|
|
1989
|
-
return Math.min(Math.max(l, 1), 200);
|
|
1990
|
-
}
|
|
1991
|
-
function xu() {
|
|
1992
|
-
const l = yu(), o = 200, e = Math.max(1, $.value), s = c.value.width / e, n = c.value?.left + pu.value * s + s / 2 - l / 2 - (o - l) / 2, u = c.value?.left - (o - l) / 2, S = c.value?.right - (o + l) / 2, M = Math.max(u, Math.min(n, S));
|
|
1993
|
-
return N(M);
|
|
1994
|
-
}
|
|
1995
|
-
It(() => {
|
|
1996
|
-
let l = null, o = null;
|
|
1997
|
-
const e = (n) => {
|
|
1998
|
-
cancelAnimationFrame(o), o = requestAnimationFrame(() => {
|
|
1999
|
-
Ja.value = Math.min(Math.max(Math.ceil(n || 0), 1), 200);
|
|
2000
|
-
});
|
|
2001
|
-
}, s = new ResizeObserver((n) => {
|
|
2002
|
-
let u = n.find((S) => S.target === l) || n[0];
|
|
2003
|
-
u && e(u.contentRect.width || 200);
|
|
2004
|
-
}), a = sl((n) => {
|
|
2005
|
-
const u = Ka.value;
|
|
2006
|
-
l && l !== u && (s.unobserve(l), l = null), u && u !== l && (Pt(() => {
|
|
2007
|
-
u.offsetParent !== null && e(u.offsetWidth || u.getBoundingClientRect().width || 200);
|
|
2008
|
-
}), s.observe(u), l = u), n(() => {
|
|
2009
|
-
l && (s.unobserve(l), l = null);
|
|
2010
|
-
});
|
|
2011
|
-
});
|
|
2012
|
-
Pl(() => {
|
|
2013
|
-
try {
|
|
2014
|
-
l && s.unobserve(l), s.disconnect(), a();
|
|
2015
|
-
} catch {
|
|
2016
|
-
}
|
|
2017
|
-
});
|
|
2018
|
-
});
|
|
2019
|
-
const ku = b(() => {
|
|
2020
|
-
if ([null, void 0].includes(_.value) && [null, void 0].includes(P.value))
|
|
2021
|
-
return "";
|
|
2022
|
-
const l = (_.value != null ? _.value : 0) || (P.value != null ? P.value : 0), o = t.value.chart.timeTag.customFormat;
|
|
2023
|
-
if (al.value = !1, fo(o))
|
|
2024
|
-
try {
|
|
2025
|
-
const e = o({
|
|
2026
|
-
absoluteIndex: l + m.value.start,
|
|
2027
|
-
seriesIndex: l,
|
|
2028
|
-
datapoint: Ze.value,
|
|
2029
|
-
bars: ke.value,
|
|
2030
|
-
lines: ue.value,
|
|
2031
|
-
plots: ge.value,
|
|
2032
|
-
config: t.value
|
|
2033
|
-
});
|
|
2034
|
-
if (typeof e == "string")
|
|
2035
|
-
return al.value = !0, e;
|
|
2036
|
-
} catch {
|
|
2037
|
-
console.warn("Custom format cannot be applied on timeTag."), al.value = !1;
|
|
2038
|
-
}
|
|
2039
|
-
if (!al.value)
|
|
2040
|
-
return [null, void 0].includes(oe.value[l]) ? "" : t.value.chart.grid.labels.xAxisLabels.datetimeFormatter.enable && !t.value.chart.timeTag.useDefaultFormat ? it.value(
|
|
2041
|
-
l + m.value.start,
|
|
2042
|
-
t.value.chart.timeTag.timeFormat
|
|
2043
|
-
) : oe.value[l].text;
|
|
2044
|
-
});
|
|
2045
|
-
ct(
|
|
2046
|
-
() => T.dataset,
|
|
2047
|
-
(l) => {
|
|
2048
|
-
Array.isArray(l) && l.length > 0 && (Wt.value = !1), ze.value = Math.max(
|
|
2049
|
-
...pe.value.map(
|
|
2050
|
-
(o) => Fe(o.series).length
|
|
2051
|
-
)
|
|
2052
|
-
), m.value = {
|
|
2053
|
-
start: 0,
|
|
2054
|
-
end: ze.value
|
|
2055
|
-
}, Io.value += 1, gl.value += 1, xt(), at(), ot();
|
|
2056
|
-
},
|
|
2057
|
-
{ deep: !0 }
|
|
2058
|
-
), ct(
|
|
2059
|
-
() => T.config,
|
|
2060
|
-
(l) => {
|
|
2061
|
-
ne.value || (t.value = yl()), Cl(), Xl.value += 1, Yl.value += 1, kl(), xt(), at(), ot();
|
|
2062
|
-
},
|
|
2063
|
-
{ deep: !0 }
|
|
2064
|
-
);
|
|
2065
|
-
const Tl = g(!1);
|
|
2066
|
-
function Qa() {
|
|
2067
|
-
const l = $e.value?.parentNode;
|
|
2068
|
-
if (!l) {
|
|
2069
|
-
Tl.value = !1;
|
|
2070
|
-
return;
|
|
2071
|
-
}
|
|
2072
|
-
const o = l.getBoundingClientRect();
|
|
2073
|
-
Tl.value = o.width > 2 && o.height > 2;
|
|
2074
|
-
}
|
|
2075
|
-
It(() => {
|
|
2076
|
-
Qa();
|
|
2077
|
-
const l = new ResizeObserver(() => {
|
|
2078
|
-
Qa(), Tl.value && (Cl(), ot(), Jt());
|
|
2079
|
-
});
|
|
2080
|
-
$e.value?.parentNode && l.observe($e.value.parentNode);
|
|
2081
|
-
}), ct(
|
|
2082
|
-
t,
|
|
2083
|
-
() => {
|
|
2084
|
-
kl();
|
|
2085
|
-
},
|
|
2086
|
-
{ immediate: !0 }
|
|
2087
|
-
);
|
|
2088
|
-
const Ct = b(() => {
|
|
2089
|
-
const l = t.value.table.useDialog && !t.value.showTable, o = f.value.showTable;
|
|
2090
|
-
return {
|
|
2091
|
-
component: l ? Mo : bs,
|
|
2092
|
-
title: `${t.value.chart.title.text}${t.value.chart.title.subtitle.text ? `: ${t.value.chart.title.subtitle.text}` : ""}`,
|
|
2093
|
-
props: l ? {
|
|
2094
|
-
backgroundColor: t.value.table.th.backgroundColor,
|
|
2095
|
-
color: t.value.table.th.color,
|
|
2096
|
-
headerColor: t.value.table.th.color,
|
|
2097
|
-
headerBg: t.value.table.th.backgroundColor,
|
|
2098
|
-
isFullscreen: Ee.value,
|
|
2099
|
-
fullscreenParent: $e.value,
|
|
2100
|
-
forcedWidth: Math.min(800, window.innerWidth * 0.8)
|
|
2101
|
-
} : {
|
|
2102
|
-
hideDetails: !0,
|
|
2103
|
-
config: {
|
|
2104
|
-
open: o,
|
|
2105
|
-
maxHeight: 1e4,
|
|
2106
|
-
body: {
|
|
2107
|
-
backgroundColor: t.value.chart.backgroundColor,
|
|
2108
|
-
color: t.value.chart.color
|
|
2109
|
-
},
|
|
2110
|
-
head: {
|
|
2111
|
-
backgroundColor: t.value.chart.backgroundColor,
|
|
2112
|
-
color: t.value.chart.color
|
|
2113
|
-
}
|
|
2114
|
-
}
|
|
2115
|
-
}
|
|
2116
|
-
};
|
|
2117
|
-
});
|
|
2118
|
-
ct(
|
|
2119
|
-
() => f.value.showTable,
|
|
2120
|
-
(l) => {
|
|
2121
|
-
t.value.showTable || (l && t.value.table.useDialog && tt.value ? tt.value.open() : tt.value && tt.value.close && tt.value.close());
|
|
2122
|
-
}
|
|
2123
|
-
);
|
|
2124
|
-
function ja() {
|
|
2125
|
-
f.value.showTable = !1, fl.value && fl.value.setTableIconState(!1);
|
|
2126
|
-
}
|
|
2127
|
-
const _u = b(() => ie.value.map((l) => ({
|
|
2128
|
-
shape: l.type === "bar" ? "square" : l.shape ?? "circle",
|
|
2129
|
-
color: l.color,
|
|
2130
|
-
name: l.name
|
|
2131
|
-
}))), wu = b(() => t.value.chart.backgroundColor), Su = b(() => t.value.chart.legend), $u = b(() => t.value.chart.title), { exportSvg: Lu, getSvg: Mu } = rs({
|
|
2132
|
-
svg: ae,
|
|
2133
|
-
title: $u,
|
|
2134
|
-
legend: Su,
|
|
2135
|
-
legendItems: _u,
|
|
2136
|
-
backgroundColor: wu
|
|
2137
|
-
});
|
|
2138
|
-
async function eo({ isCb: l }) {
|
|
2139
|
-
Dt.value = !0, await Pt();
|
|
2140
|
-
try {
|
|
2141
|
-
if (l) {
|
|
2142
|
-
const { blob: o, url: e, text: s, dataUrl: a } = await Mu();
|
|
2143
|
-
await Promise.resolve(
|
|
2144
|
-
t.value.chart.userOptions.callbacks.svg({
|
|
2145
|
-
blob: o,
|
|
2146
|
-
url: e,
|
|
2147
|
-
text: s,
|
|
2148
|
-
dataUrl: a
|
|
2149
|
-
})
|
|
2150
|
-
);
|
|
2151
|
-
} else
|
|
2152
|
-
await Promise.resolve(Lu());
|
|
2153
|
-
} finally {
|
|
2154
|
-
Dt.value = !1;
|
|
2155
|
-
}
|
|
2156
|
-
}
|
|
2157
|
-
function Au(l) {
|
|
2158
|
-
if (l?.stage === "start") {
|
|
2159
|
-
Ht.value = !0;
|
|
2160
|
-
return;
|
|
2161
|
-
}
|
|
2162
|
-
if (l?.stage === "end") {
|
|
2163
|
-
Ht.value = !1;
|
|
2164
|
-
return;
|
|
2165
|
-
}
|
|
2166
|
-
na();
|
|
2167
|
-
}
|
|
2168
|
-
async function to() {
|
|
2169
|
-
if (We("copyAlt", {
|
|
2170
|
-
config: {
|
|
2171
|
-
...t.value,
|
|
2172
|
-
formattedDates: oe.value
|
|
2173
|
-
},
|
|
2174
|
-
dataset: {
|
|
2175
|
-
lines: ue.value,
|
|
2176
|
-
bars: ke.value,
|
|
2177
|
-
plots: ge.value
|
|
2178
|
-
}
|
|
2179
|
-
}), !t.value.chart.userOptions.callbacks.altCopy) {
|
|
2180
|
-
console.warn(
|
|
2181
|
-
"Vue Data UI - A callback must be set for `altCopy` in userOptions."
|
|
2182
|
-
);
|
|
2183
|
-
return;
|
|
2184
|
-
}
|
|
2185
|
-
await Promise.resolve(
|
|
2186
|
-
t.value.chart.userOptions.callbacks.altCopy({
|
|
2187
|
-
config: {
|
|
2188
|
-
...t.value,
|
|
2189
|
-
formattedDates: oe.value
|
|
2190
|
-
},
|
|
2191
|
-
dataset: {
|
|
2192
|
-
lines: ue.value,
|
|
2193
|
-
bars: ke.value,
|
|
2194
|
-
plots: ge.value
|
|
2195
|
-
}
|
|
2196
|
-
})
|
|
2197
|
-
);
|
|
2198
|
-
}
|
|
2199
|
-
const zl = g(!1);
|
|
2200
|
-
function Cu() {
|
|
2201
|
-
m.value.end > m.value.start && (lt.value = null), Ut.value = !0, zl.value = !0;
|
|
2202
|
-
}
|
|
2203
|
-
function Tu() {
|
|
2204
|
-
lt.value = null, Lt(), zl.value = !1, Ut.value = !1;
|
|
2205
|
-
}
|
|
2206
|
-
function zu(l) {
|
|
2207
|
-
if (!ae.value || et.value || document.activeElement !== ae.value) return;
|
|
2208
|
-
const o = l.key === "ArrowLeft", e = l.key === "ArrowRight";
|
|
2209
|
-
if (!o && !e || !m.value.end && m.value.end !== 0) return;
|
|
2210
|
-
const s = m.value.end - m.value.start;
|
|
2211
|
-
if (s <= 0) return;
|
|
2212
|
-
l.preventDefault(), l.stopPropagation();
|
|
2213
|
-
let a = lt.value;
|
|
2214
|
-
const n = nt.value, u = a !== null && a >= 0 && a < s, S = n !== null && n >= 0 && n < s;
|
|
2215
|
-
u ? e ? (a += 1, a >= s && (a = 0)) : o && (a -= 1, a < 0 && (a = s - 1)) : S ? (a = e ? n + 1 : n - 1, a >= s && (a = 0), a < 0 && (a = s - 1)) : e ? a = 0 : a = s - 1, lt.value = a, Iu(a), Al(!0, a);
|
|
2216
|
-
}
|
|
2217
|
-
function Iu(l) {
|
|
2218
|
-
const o = m.value.end - m.value.start;
|
|
2219
|
-
if (o <= 0) return;
|
|
2220
|
-
const e = c.value.width / o, s = c.value.left + e * l + e / 2, a = c.value.top + c.value.height / 2, n = as(s, a, ae.value);
|
|
2221
|
-
n && (Ul.value = n);
|
|
2222
|
-
}
|
|
2223
|
-
const Il = b(() => {
|
|
2224
|
-
if (!rt.value) return null;
|
|
2225
|
-
const l = t.value.table.showSum;
|
|
2226
|
-
let o = [t.value.table.columnNames.period].concat(
|
|
2227
|
-
ye.value.map((s) => s.name)
|
|
2228
|
-
);
|
|
2229
|
-
l && (o = o.concat(t.value.table.columnNames.total));
|
|
2230
|
-
const e = rt.value.body.slice(
|
|
2231
|
-
m.value.start,
|
|
2232
|
-
m.value.end
|
|
2233
|
-
);
|
|
2234
|
-
return {
|
|
2235
|
-
headers: o,
|
|
2236
|
-
rows: e
|
|
2237
|
-
};
|
|
2238
|
-
});
|
|
2239
|
-
return yo({
|
|
2240
|
-
getData: lu,
|
|
2241
|
-
getImage: au,
|
|
2242
|
-
generatePdf: sa,
|
|
2243
|
-
generateImage: na,
|
|
2244
|
-
generateSvg: eo,
|
|
2245
|
-
generateCsv: Ml,
|
|
2246
|
-
hideSeries: nu,
|
|
2247
|
-
showSeries: su,
|
|
2248
|
-
toggleStack: ya,
|
|
2249
|
-
toggleTable: Ya,
|
|
2250
|
-
toggleLabels: Xa,
|
|
2251
|
-
toggleTooltip: Ga,
|
|
2252
|
-
toggleAnnotator: wl,
|
|
2253
|
-
toggleFullscreen: qa,
|
|
2254
|
-
copyAlt: to
|
|
2255
|
-
}), (l, o) => (i(), r("div", {
|
|
2256
|
-
id: `vue-ui-xy_${z.value}`,
|
|
2257
|
-
class: Je(`vue-data-ui-component vue-ui-xy ${Ee.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${t.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
2258
|
-
ref_key: "chart",
|
|
2259
|
-
ref: $e,
|
|
2260
|
-
style: w(`background:${t.value.chart.backgroundColor}; color:${t.value.chart.color};width:100%;font-family:${t.value.chart.fontFamily};${t.value.responsive ? "height: 100%" : ""}`),
|
|
2261
|
-
onMouseenter: o[6] || (o[6] = () => ma(!0)),
|
|
2262
|
-
onMouseleave: o[7] || (o[7] = () => ma(!1)),
|
|
2263
|
-
onClick: za
|
|
2264
|
-
}, [
|
|
2265
|
-
y("div", {
|
|
2266
|
-
id: `chart-instructions-${z.value}`,
|
|
2267
|
-
class: "sr-only"
|
|
2268
|
-
}, [
|
|
2269
|
-
y("p", null, se(t.value.a11y.translations.keyboardNavigation), 1)
|
|
2270
|
-
], 8, _s),
|
|
2271
|
-
Il.value?.rows?.length ? (i(), _e(ys, {
|
|
2272
|
-
key: 0,
|
|
2273
|
-
uid: z.value,
|
|
2274
|
-
head: Il.value.headers,
|
|
2275
|
-
body: Il.value.rows,
|
|
2276
|
-
notice: t.value.a11y.translations.tableAvailable,
|
|
2277
|
-
caption: t.value.a11y.translations.tableCaption
|
|
2278
|
-
}, null, 8, ["uid", "head", "body", "notice", "caption"])) : h("", !0),
|
|
2279
|
-
t.value.chart.userOptions.buttons.annotator && ae.value ? (i(), _e(v(Lo), {
|
|
2280
|
-
key: 1,
|
|
2281
|
-
svgRef: ae.value,
|
|
2282
|
-
backgroundColor: t.value.chart.backgroundColor,
|
|
2283
|
-
color: t.value.chart.color,
|
|
2284
|
-
active: et.value,
|
|
2285
|
-
isCursorPointer: Xe.value,
|
|
2286
|
-
onClose: wl
|
|
2287
|
-
}, {
|
|
2288
|
-
"annotator-action-close": Y(() => [
|
|
2289
|
-
O(l.$slots, "annotator-action-close", {}, void 0, !0)
|
|
2290
|
-
]),
|
|
2291
|
-
"annotator-action-color": Y(({ color: e }) => [
|
|
2292
|
-
O(l.$slots, "annotator-action-color", ve(de({ color: e })), void 0, !0)
|
|
2293
|
-
]),
|
|
2294
|
-
"annotator-action-draw": Y(({ mode: e }) => [
|
|
2295
|
-
O(l.$slots, "annotator-action-draw", ve(de({ mode: e })), void 0, !0)
|
|
2296
|
-
]),
|
|
2297
|
-
"annotator-action-undo": Y(({ disabled: e }) => [
|
|
2298
|
-
O(l.$slots, "annotator-action-undo", ve(de({ disabled: e })), void 0, !0)
|
|
2299
|
-
]),
|
|
2300
|
-
"annotator-action-redo": Y(({ disabled: e }) => [
|
|
2301
|
-
O(l.$slots, "annotator-action-redo", ve(de({ disabled: e })), void 0, !0)
|
|
2302
|
-
]),
|
|
2303
|
-
"annotator-action-delete": Y(({ disabled: e }) => [
|
|
2304
|
-
O(l.$slots, "annotator-action-delete", ve(de({ disabled: e })), void 0, !0)
|
|
2305
|
-
]),
|
|
2306
|
-
_: 3
|
|
2307
|
-
}, 8, ["svgRef", "backgroundColor", "color", "active", "isCursorPointer"])) : h("", !0),
|
|
2308
|
-
ru.value ? (i(), r("div", {
|
|
2309
|
-
key: 2,
|
|
2310
|
-
ref_key: "noTitle",
|
|
2311
|
-
ref: bt,
|
|
2312
|
-
class: "vue-data-ui-no-title-space",
|
|
2313
|
-
style: "height:36px; width: 100%; background:transparent"
|
|
2314
|
-
}, null, 512)) : h("", !0),
|
|
2315
|
-
t.value.chart.title.show ? (i(), r("div", {
|
|
2316
|
-
key: 3,
|
|
2317
|
-
ref_key: "chartTitle",
|
|
2318
|
-
ref: ft,
|
|
2319
|
-
class: "vue-ui-xy-title",
|
|
2320
|
-
style: w(`font-family:${t.value.chart.fontFamily}`)
|
|
2321
|
-
}, [
|
|
2322
|
-
(i(), _e(fs, {
|
|
2323
|
-
key: `title_${Xl.value}`,
|
|
2324
|
-
config: {
|
|
2325
|
-
title: {
|
|
2326
|
-
cy: "xy-div-title",
|
|
2327
|
-
...t.value.chart.title
|
|
2328
|
-
},
|
|
2329
|
-
subtitle: {
|
|
2330
|
-
cy: "xy-div-subtitle",
|
|
2331
|
-
...t.value.chart.title.subtitle
|
|
2332
|
-
}
|
|
2333
|
-
}
|
|
2334
|
-
}, null, 8, ["config"]))
|
|
2335
|
-
], 4)) : h("", !0),
|
|
2336
|
-
y("div", {
|
|
2337
|
-
id: `legend-top-${z.value}`
|
|
2338
|
-
}, null, 8, ws),
|
|
2339
|
-
t.value.chart.userOptions.show && (bl.value || Bt.value) ? (i(), _e(v(wo), {
|
|
2340
|
-
ref_key: "userOptionsRef",
|
|
2341
|
-
ref: fl,
|
|
2342
|
-
key: `user_options_${El.value}`,
|
|
2343
|
-
backgroundColor: t.value.chart.backgroundColor,
|
|
2344
|
-
color: t.value.chart.color,
|
|
2345
|
-
isPrinting: v(Et),
|
|
2346
|
-
isImaging: v(_l),
|
|
2347
|
-
uid: z.value,
|
|
2348
|
-
hasTooltip: t.value.chart.userOptions.buttons.tooltip && t.value.chart.tooltip.show,
|
|
2349
|
-
hasPdf: t.value.chart.userOptions.buttons.pdf,
|
|
2350
|
-
hasXls: t.value.chart.userOptions.buttons.csv,
|
|
2351
|
-
hasImg: t.value.chart.userOptions.buttons.img,
|
|
2352
|
-
hasSvg: t.value.chart.userOptions.buttons.svg,
|
|
2353
|
-
hasLabel: t.value.chart.userOptions.buttons.labels,
|
|
2354
|
-
hasTable: t.value.chart.userOptions.buttons.table,
|
|
2355
|
-
hasStack: cl.dataset.length > 1 && t.value.chart.userOptions.buttons.stack,
|
|
2356
|
-
hasFullscreen: t.value.chart.userOptions.buttons.fullscreen,
|
|
2357
|
-
hasAltCopy: t.value.chart.userOptions.buttons.altCopy,
|
|
2358
|
-
isStacked: f.value.isStacked,
|
|
2359
|
-
isFullscreen: Ee.value,
|
|
2360
|
-
chartElement: l.$refs.chart,
|
|
2361
|
-
position: t.value.chart.userOptions.position,
|
|
2362
|
-
isTooltip: f.value.showTooltip,
|
|
2363
|
-
titles: { ...t.value.chart.userOptions.buttonTitles },
|
|
2364
|
-
hasAnnotator: t.value.chart.userOptions.buttons.annotator,
|
|
2365
|
-
isAnnotation: et.value,
|
|
2366
|
-
callbacks: t.value.chart.userOptions.callbacks,
|
|
2367
|
-
tableDialog: t.value.table.useDialog,
|
|
2368
|
-
printScale: t.value.chart.userOptions.print.scale,
|
|
2369
|
-
isCursorPointer: Xe.value,
|
|
2370
|
-
onToggleFullscreen: qa,
|
|
2371
|
-
onGeneratePdf: v(sa),
|
|
2372
|
-
onGenerateCsv: Ml,
|
|
2373
|
-
onGenerateImage: Au,
|
|
2374
|
-
onGenerateSvg: eo,
|
|
2375
|
-
onToggleTable: Ya,
|
|
2376
|
-
onToggleLabels: Xa,
|
|
2377
|
-
onToggleStack: ya,
|
|
2378
|
-
onToggleTooltip: Ga,
|
|
2379
|
-
onToggleAnnotator: wl,
|
|
2380
|
-
onCopyAlt: to,
|
|
2381
|
-
style: w({
|
|
2382
|
-
visibility: bl.value ? Bt.value ? "visible" : "hidden" : "visible"
|
|
2383
|
-
})
|
|
2384
|
-
}, lo({ _: 2 }, [
|
|
2385
|
-
l.$slots.menuIcon ? {
|
|
2386
|
-
name: "menuIcon",
|
|
2387
|
-
fn: Y(({ isOpen: e, color: s }) => [
|
|
2388
|
-
O(l.$slots, "menuIcon", ve(de({ isOpen: e, color: s })), void 0, !0)
|
|
2389
|
-
]),
|
|
2390
|
-
key: "0"
|
|
2391
|
-
} : void 0,
|
|
2392
|
-
l.$slots.optionTooltip ? {
|
|
2393
|
-
name: "optionTooltip",
|
|
2394
|
-
fn: Y(() => [
|
|
2395
|
-
O(l.$slots, "optionTooltip", {}, void 0, !0)
|
|
2396
|
-
]),
|
|
2397
|
-
key: "1"
|
|
2398
|
-
} : void 0,
|
|
2399
|
-
l.$slots.optionPdf ? {
|
|
2400
|
-
name: "optionPdf",
|
|
2401
|
-
fn: Y(() => [
|
|
2402
|
-
O(l.$slots, "optionPdf", {}, void 0, !0)
|
|
2403
|
-
]),
|
|
2404
|
-
key: "2"
|
|
2405
|
-
} : void 0,
|
|
2406
|
-
l.$slots.optionCsv ? {
|
|
2407
|
-
name: "optionCsv",
|
|
2408
|
-
fn: Y(() => [
|
|
2409
|
-
O(l.$slots, "optionCsv", {}, void 0, !0)
|
|
2410
|
-
]),
|
|
2411
|
-
key: "3"
|
|
2412
|
-
} : void 0,
|
|
2413
|
-
l.$slots.optionImg ? {
|
|
2414
|
-
name: "optionImg",
|
|
2415
|
-
fn: Y(() => [
|
|
2416
|
-
O(l.$slots, "optionImg", {}, void 0, !0)
|
|
2417
|
-
]),
|
|
2418
|
-
key: "4"
|
|
2419
|
-
} : void 0,
|
|
2420
|
-
l.$slots.optionSvg ? {
|
|
2421
|
-
name: "optionSvg",
|
|
2422
|
-
fn: Y(() => [
|
|
2423
|
-
O(l.$slots, "optionSvg", {}, void 0, !0)
|
|
2424
|
-
]),
|
|
2425
|
-
key: "5"
|
|
2426
|
-
} : void 0,
|
|
2427
|
-
l.$slots.optionTable ? {
|
|
2428
|
-
name: "optionTable",
|
|
2429
|
-
fn: Y(() => [
|
|
2430
|
-
O(l.$slots, "optionTable", {}, void 0, !0)
|
|
2431
|
-
]),
|
|
2432
|
-
key: "6"
|
|
2433
|
-
} : void 0,
|
|
2434
|
-
l.$slots.optionLabels ? {
|
|
2435
|
-
name: "optionLabels",
|
|
2436
|
-
fn: Y(() => [
|
|
2437
|
-
O(l.$slots, "optionLabels", {}, void 0, !0)
|
|
2438
|
-
]),
|
|
2439
|
-
key: "7"
|
|
2440
|
-
} : void 0,
|
|
2441
|
-
l.$slots.optionStack ? {
|
|
2442
|
-
name: "optionStack",
|
|
2443
|
-
fn: Y(({ isStack: e }) => [
|
|
2444
|
-
O(l.$slots, "optionStack", ve(de({ isStack: e })), void 0, !0)
|
|
2445
|
-
]),
|
|
2446
|
-
key: "8"
|
|
2447
|
-
} : void 0,
|
|
2448
|
-
l.$slots.optionFullscreen ? {
|
|
2449
|
-
name: "optionFullscreen",
|
|
2450
|
-
fn: Y(({ toggleFullscreen: e, isFullscreen: s }) => [
|
|
2451
|
-
O(l.$slots, "optionFullscreen", ve(de({ toggleFullscreen: e, isFullscreen: s })), void 0, !0)
|
|
2452
|
-
]),
|
|
2453
|
-
key: "9"
|
|
2454
|
-
} : void 0,
|
|
2455
|
-
l.$slots.optionAnnotator ? {
|
|
2456
|
-
name: "optionAnnotator",
|
|
2457
|
-
fn: Y(({ toggleAnnotator: e, isAnnotator: s }) => [
|
|
2458
|
-
O(l.$slots, "optionAnnotator", ve(de({ toggleAnnotator: e, isAnnotator: s })), void 0, !0)
|
|
2459
|
-
]),
|
|
2460
|
-
key: "10"
|
|
2461
|
-
} : void 0,
|
|
2462
|
-
l.$slots.optionAltCopy ? {
|
|
2463
|
-
name: "optionAltCopy",
|
|
2464
|
-
fn: Y(({ altCopy: e }) => [
|
|
2465
|
-
O(l.$slots, "optionAltCopy", ve(de({ altCopy: e })), void 0, !0)
|
|
2466
|
-
]),
|
|
2467
|
-
key: "11"
|
|
2468
|
-
} : void 0
|
|
2469
|
-
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasXls", "hasImg", "hasSvg", "hasLabel", "hasTable", "hasStack", "hasFullscreen", "hasAltCopy", "isStacked", "isFullscreen", "chartElement", "position", "isTooltip", "titles", "hasAnnotator", "isAnnotation", "callbacks", "tableDialog", "printScale", "isCursorPointer", "onGeneratePdf", "style"])) : h("", !0),
|
|
2470
|
-
y("div", Ss, [
|
|
2471
|
-
(i(), r("svg", {
|
|
2472
|
-
ref_key: "svgRef",
|
|
2473
|
-
ref: ae,
|
|
2474
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
2475
|
-
class: Je([{
|
|
2476
|
-
"vue-data-ui-fullscreen--on": Ee.value,
|
|
2477
|
-
"vue-data-ui-fulscreen--off": !Ee.value
|
|
2478
|
-
}, "vue-ui-xy-svg vue-data-ui-svg"]),
|
|
2479
|
-
width: "100%",
|
|
2480
|
-
viewBox: Vt.value,
|
|
2481
|
-
style: w({
|
|
2482
|
-
background: "transparent",
|
|
2483
|
-
color: t.value.chart.color,
|
|
2484
|
-
fontFamily: t.value.chart.fontFamily
|
|
2485
|
-
}),
|
|
2486
|
-
"aria-label": iu.value,
|
|
2487
|
-
"aria-describedby": `chart-instructions-${z.value}`,
|
|
2488
|
-
"aria-live": "polite",
|
|
2489
|
-
role: "img",
|
|
2490
|
-
tabindex: "0",
|
|
2491
|
-
preserveAspectRatio: "xMidYMid",
|
|
2492
|
-
onMousemove: tu,
|
|
2493
|
-
onMouseleave: Lt,
|
|
2494
|
-
onClick: za,
|
|
2495
|
-
onFocus: Cu,
|
|
2496
|
-
onBlur: Tu,
|
|
2497
|
-
onKeydown: zu
|
|
2498
|
-
}, [
|
|
2499
|
-
y("g", {
|
|
2500
|
-
ref_key: "G",
|
|
2501
|
-
ref: zo,
|
|
2502
|
-
class: "vue-data-ui-g"
|
|
2503
|
-
}, [
|
|
2504
|
-
vt(v($o)),
|
|
2505
|
-
l.$slots["chart-background"] ? (i(), r("foreignObject", {
|
|
2506
|
-
key: 0,
|
|
2507
|
-
x: c.value?.left + q.value < 0 ? 0 : c.value?.left + q.value,
|
|
2508
|
-
y: c.value?.top,
|
|
2509
|
-
width: c.value.width - (t.value.chart.grid.position === "middle" ? 0 : c.value.width / $.value) < 0 ? 0 : c.value.width - (t.value.chart.grid.position === "middle" ? 0 : c.value.width / $.value),
|
|
2510
|
-
height: c.value.height < 0 ? 0 : c.value.height,
|
|
2511
|
-
style: {
|
|
2512
|
-
pointerEvents: "none"
|
|
2513
|
-
}
|
|
2514
|
-
}, [
|
|
2515
|
-
O(l.$slots, "chart-background", {}, void 0, !0)
|
|
2516
|
-
], 8, Ls)) : h("", !0),
|
|
2517
|
-
$.value > 0 ? (i(), r("g", Ms, [
|
|
2518
|
-
y("g", As, [
|
|
2519
|
-
t.value.chart.grid.labels.xAxis.showBaseline ? (i(), r("line", {
|
|
2520
|
-
key: 0,
|
|
2521
|
-
stroke: t.value.chart.grid.stroke,
|
|
2522
|
-
"stroke-width": "1",
|
|
2523
|
-
x1: c.value?.left + q.value,
|
|
2524
|
-
x2: c.value?.right - q.value,
|
|
2525
|
-
y1: v(W)(c.value?.bottom),
|
|
2526
|
-
y2: v(W)(c.value?.bottom),
|
|
2527
|
-
"stroke-linecap": "round",
|
|
2528
|
-
style: { animation: "none !important" }
|
|
2529
|
-
}, null, 8, Cs)) : h("", !0),
|
|
2530
|
-
f.value.useIndividualScale ? t.value.chart.grid.showHorizontalLines ? (i(!0), r(d, { key: 2 }, k(At.value, (e) => (i(), r("g", null, [
|
|
2531
|
-
e.id === C.value && e.yLabels.length ? (i(!0), r(d, { key: 0 }, k(e.yLabels, (s) => (i(), r("line", {
|
|
2532
|
-
x1: c.value?.left + q.value,
|
|
2533
|
-
x2: c.value?.right - q.value,
|
|
2534
|
-
y1: v(W)(s.y),
|
|
2535
|
-
y2: v(W)(s.y),
|
|
2536
|
-
stroke: e.color,
|
|
2537
|
-
"stroke-width": 0.5,
|
|
2538
|
-
"stroke-linecap": "round",
|
|
2539
|
-
style: {
|
|
2540
|
-
animation: "none !important"
|
|
2541
|
-
}
|
|
2542
|
-
}, null, 8, Ps))), 256)) : e.yLabels.length ? (i(!0), r(d, { key: 1 }, k(e.yLabels, (s) => (i(), r("line", {
|
|
2543
|
-
x1: c.value?.left + q.value,
|
|
2544
|
-
x2: c.value?.right - q.value,
|
|
2545
|
-
y1: v(W)(s.y),
|
|
2546
|
-
y2: v(W)(s.y),
|
|
2547
|
-
stroke: t.value.chart.grid.stroke,
|
|
2548
|
-
"stroke-width": 0.5,
|
|
2549
|
-
"stroke-linecap": "round",
|
|
2550
|
-
style: {
|
|
2551
|
-
animation: "none !important"
|
|
2552
|
-
}
|
|
2553
|
-
}, null, 8, Os))), 256)) : h("", !0)
|
|
2554
|
-
]))), 256)) : h("", !0) : (i(), r(d, { key: 1 }, [
|
|
2555
|
-
t.value.chart.grid.labels.yAxis.showBaseline ? (i(), r("line", {
|
|
2556
|
-
key: 0,
|
|
2557
|
-
stroke: t.value.chart.grid.stroke,
|
|
2558
|
-
"stroke-width": "1",
|
|
2559
|
-
x1: c.value?.left + q.value,
|
|
2560
|
-
x2: c.value?.left + q.value,
|
|
2561
|
-
y1: v(W)(c.value?.top),
|
|
2562
|
-
y2: v(W)(c.value?.bottom),
|
|
2563
|
-
"stroke-linecap": "round",
|
|
2564
|
-
style: { animation: "none !important" }
|
|
2565
|
-
}, null, 8, Ts)) : h("", !0),
|
|
2566
|
-
t.value.chart.grid.showHorizontalLines ? (i(), r("g", zs, [
|
|
2567
|
-
(i(!0), r(d, null, k(Fa.value, (e) => (i(), r("line", {
|
|
2568
|
-
x1: c.value?.left + q.value,
|
|
2569
|
-
x2: c.value?.right,
|
|
2570
|
-
y1: v(W)(e.y),
|
|
2571
|
-
y2: v(W)(e.y),
|
|
2572
|
-
stroke: t.value.chart.grid.stroke,
|
|
2573
|
-
"stroke-width": 0.5,
|
|
2574
|
-
"stroke-linecap": "round",
|
|
2575
|
-
style: {
|
|
2576
|
-
animation: "none !important"
|
|
2577
|
-
}
|
|
2578
|
-
}, null, 8, Is))), 256))
|
|
2579
|
-
])) : h("", !0)
|
|
2580
|
-
], 64)),
|
|
2581
|
-
t.value.chart.grid.showVerticalLines ? (i(), r("g", Ns, [
|
|
2582
|
-
y("path", {
|
|
2583
|
-
d: Xo.value,
|
|
2584
|
-
"stroke-width": 0.5,
|
|
2585
|
-
stroke: t.value.chart.grid.stroke,
|
|
2586
|
-
"stroke-linecap": "round",
|
|
2587
|
-
style: { animation: "none !important" }
|
|
2588
|
-
}, null, 8, Fs)
|
|
2589
|
-
])) : h("", !0),
|
|
2590
|
-
t.value.chart.grid.labels.xAxisLabels.show ? (i(), r("g", Vs, [
|
|
2591
|
-
y("path", {
|
|
2592
|
-
d: Go.value,
|
|
2593
|
-
stroke: t.value.chart.grid.stroke,
|
|
2594
|
-
"stroke-width": 1,
|
|
2595
|
-
"stroke-linecap": "round",
|
|
2596
|
-
style: { animation: "none !important" }
|
|
2597
|
-
}, null, 8, Bs)
|
|
2598
|
-
])) : h("", !0)
|
|
2599
|
-
]),
|
|
2600
|
-
(i(!0), r(d, null, k(ke.value, (e, s) => (i(), r("defs", {
|
|
2601
|
-
key: `def_rect_${s}`
|
|
2602
|
-
}, [
|
|
2603
|
-
l.$slots["bar-gradient"] ? O(l.$slots, "bar-gradient", Qe({
|
|
2604
|
-
key: 0,
|
|
2605
|
-
ref_for: !0
|
|
2606
|
-
}, {
|
|
2607
|
-
series: e,
|
|
2608
|
-
positiveId: `rectGradient_pos_${s}_${z.value}`,
|
|
2609
|
-
negativeId: `rectGradient_neg_${s}_${z.value}`
|
|
2610
|
-
}), void 0, !0) : (i(), r(d, { key: 1 }, [
|
|
2611
|
-
y("linearGradient", {
|
|
2612
|
-
id: `rectGradient_pos_${s}_${z.value}`,
|
|
2613
|
-
x2: "0%",
|
|
2614
|
-
y2: "100%"
|
|
2615
|
-
}, [
|
|
2616
|
-
y("stop", {
|
|
2617
|
-
offset: "0%",
|
|
2618
|
-
"stop-color": e.color
|
|
2619
|
-
}, null, 8, Hs),
|
|
2620
|
-
y("stop", {
|
|
2621
|
-
offset: "62%",
|
|
2622
|
-
"stop-color": `${v(je)(e.color, 0.02)}`
|
|
2623
|
-
}, null, 8, Ds),
|
|
2624
|
-
y("stop", {
|
|
2625
|
-
offset: "100%",
|
|
2626
|
-
"stop-color": `${v(je)(e.color, 0.05)}`
|
|
2627
|
-
}, null, 8, Ws)
|
|
2628
|
-
], 8, Rs),
|
|
2629
|
-
y("linearGradient", {
|
|
2630
|
-
id: `rectGradient_neg_${s}_${z.value}`,
|
|
2631
|
-
x2: "0%",
|
|
2632
|
-
y2: "100%"
|
|
2633
|
-
}, [
|
|
2634
|
-
y("stop", {
|
|
2635
|
-
offset: "0%",
|
|
2636
|
-
"stop-color": `${v(je)(e.color, 0.05)}`
|
|
2637
|
-
}, null, 8, Ys),
|
|
2638
|
-
y("stop", {
|
|
2639
|
-
offset: "38%",
|
|
2640
|
-
"stop-color": `${v(je)(e.color, 0.02)}`
|
|
2641
|
-
}, null, 8, Xs),
|
|
2642
|
-
y("stop", {
|
|
2643
|
-
offset: "100%",
|
|
2644
|
-
"stop-color": e.color
|
|
2645
|
-
}, null, 8, Gs)
|
|
2646
|
-
], 8, Es)
|
|
2647
|
-
], 64))
|
|
2648
|
-
]))), 128)),
|
|
2649
|
-
(i(!0), r(d, null, k(ge.value, (e, s) => (i(), r("defs", {
|
|
2650
|
-
key: `def_plot_${s}`
|
|
2651
|
-
}, [
|
|
2652
|
-
y("radialGradient", {
|
|
2653
|
-
id: `plotGradient_${s}_${z.value}`,
|
|
2654
|
-
cx: "50%",
|
|
2655
|
-
cy: "50%",
|
|
2656
|
-
r: "50%",
|
|
2657
|
-
fx: "50%",
|
|
2658
|
-
fy: "50%"
|
|
2659
|
-
}, [
|
|
2660
|
-
y("stop", {
|
|
2661
|
-
offset: "0%",
|
|
2662
|
-
"stop-color": `${v(je)(e.color, 0.05)}`
|
|
2663
|
-
}, null, 8, Us),
|
|
2664
|
-
y("stop", {
|
|
2665
|
-
offset: "100%",
|
|
2666
|
-
"stop-color": e.color
|
|
2667
|
-
}, null, 8, Zs)
|
|
2668
|
-
], 8, qs)
|
|
2669
|
-
]))), 128)),
|
|
2670
|
-
(i(!0), r(d, null, k(ue.value, (e, s) => (i(), r(d, {
|
|
2671
|
-
key: `def_line_${e.id}`
|
|
2672
|
-
}, [
|
|
2673
|
-
y("defs", null, [
|
|
2674
|
-
y("radialGradient", {
|
|
2675
|
-
id: `lineGradient_${s}_${z.value}`,
|
|
2676
|
-
cx: "50%",
|
|
2677
|
-
cy: "50%",
|
|
2678
|
-
r: "50%",
|
|
2679
|
-
fx: "50%",
|
|
2680
|
-
fy: "50%"
|
|
2681
|
-
}, [
|
|
2682
|
-
y("stop", {
|
|
2683
|
-
offset: "0%",
|
|
2684
|
-
"stop-color": `${v(je)(e.color, 0.05)}`
|
|
2685
|
-
}, null, 8, Js),
|
|
2686
|
-
y("stop", {
|
|
2687
|
-
offset: "100%",
|
|
2688
|
-
"stop-color": e.color
|
|
2689
|
-
}, null, 8, Qs)
|
|
2690
|
-
], 8, Ks),
|
|
2691
|
-
l.$slots["area-gradient"] ? O(l.$slots, "area-gradient", Qe({
|
|
2692
|
-
key: 0,
|
|
2693
|
-
ref_for: !0
|
|
2694
|
-
}, {
|
|
2695
|
-
series: e,
|
|
2696
|
-
id: `areaGradient_${s}_${z.value}`
|
|
2697
|
-
}), void 0, !0) : (i(), r("linearGradient", {
|
|
2698
|
-
key: 1,
|
|
2699
|
-
id: `areaGradient_${s}_${z.value}`,
|
|
2700
|
-
x1: "0%",
|
|
2701
|
-
x2: "100%",
|
|
2702
|
-
y1: "0%",
|
|
2703
|
-
y2: "0%"
|
|
2704
|
-
}, [
|
|
2705
|
-
y("stop", {
|
|
2706
|
-
offset: "0%",
|
|
2707
|
-
"stop-color": `${v(Ce)(v(je)(e.color, 0.03), t.value.line.area.opacity)}`
|
|
2708
|
-
}, null, 8, en),
|
|
2709
|
-
y("stop", {
|
|
2710
|
-
offset: "100%",
|
|
2711
|
-
"stop-color": `${v(Ce)(e.color, t.value.line.area.opacity)}`
|
|
2712
|
-
}, null, 8, tn)
|
|
2713
|
-
], 8, js))
|
|
2714
|
-
]),
|
|
2715
|
-
e.temperatureColors ? (i(), r("defs", ln, [
|
|
2716
|
-
y("linearGradient", {
|
|
2717
|
-
id: `temperature_grad_line_${s}_${z.value}`,
|
|
2718
|
-
gradientTransform: "rotate(90)"
|
|
2719
|
-
}, [
|
|
2720
|
-
(i(!0), r(d, null, k(e.temperatureColors, (a, n) => (i(), r("stop", {
|
|
2721
|
-
key: `temperature_grad_stop_${s}_${n}_${z.value}`,
|
|
2722
|
-
"stop-color": a,
|
|
2723
|
-
offset: v(Ju)(
|
|
2724
|
-
n,
|
|
2725
|
-
e.temperatureColors.length
|
|
2726
|
-
)
|
|
2727
|
-
}, null, 8, on))), 128))
|
|
2728
|
-
], 8, an)
|
|
2729
|
-
])) : h("", !0)
|
|
2730
|
-
], 64))), 128)),
|
|
2731
|
-
(i(!0), r(d, null, k(cu.value, (e) => (i(), r("g", null, [
|
|
2732
|
-
e.show ? (i(), r(d, { key: 0 }, [
|
|
2733
|
-
(i(!0), r(d, null, k(e.span, (s, a) => (i(), r("g", null, [
|
|
2734
|
-
y("rect", {
|
|
2735
|
-
style: w({
|
|
2736
|
-
transition: "none",
|
|
2737
|
-
opacity: e.from + a >= m.value.start && e.from + a <= m.value.end - 1 ? 1 : 0
|
|
2738
|
-
}),
|
|
2739
|
-
x: c.value?.left + c.value.width / $.value * (e.from + a - m.value.start),
|
|
2740
|
-
y: c.value?.top,
|
|
2741
|
-
height: c.value.height < 0 ? 10 : c.value.height,
|
|
2742
|
-
width: c.value.width / $.value < 0 ? 1e-5 : c.value.width / $.value,
|
|
2743
|
-
fill: v(Ce)(
|
|
2744
|
-
e.color,
|
|
2745
|
-
e.opacity
|
|
2746
|
-
)
|
|
2747
|
-
}, null, 12, un)
|
|
2748
|
-
]))), 256)),
|
|
2749
|
-
(i(!0), r(d, null, k(e.span, (s, a) => (i(), r("g", null, [
|
|
2750
|
-
e.caption.text && a === 0 ? (i(), r("foreignObject", {
|
|
2751
|
-
key: 0,
|
|
2752
|
-
x: c.value?.left + c.value.width / $.value * (e.from + a - m.value.start) - (e.caption.width === "auto" ? 0 : e.caption.width / 2 - c.value.width / $.value * e.span / 2),
|
|
2753
|
-
y: c.value?.top + e.caption.offsetY,
|
|
2754
|
-
style: w({
|
|
2755
|
-
overflow: "visible",
|
|
2756
|
-
opacity: e.to >= m.value.start && e.from < m.value.end ? 1 : 0
|
|
2757
|
-
}),
|
|
2758
|
-
height: "1",
|
|
2759
|
-
width: e.caption.width === "auto" ? c.value.width / $.value * e.span : e.caption.width
|
|
2760
|
-
}, [
|
|
2761
|
-
y("div", {
|
|
2762
|
-
style: w(`padding:${e.caption.padding}px;text-align:${e.caption.textAlign};font-size:${e.caption.fontSize}px;color:${e.caption.color};font-weight:${e.caption.bold ? "bold" : "normal"}`)
|
|
2763
|
-
}, se(e.caption.text), 5)
|
|
2764
|
-
], 12, sn)) : h("", !0)
|
|
2765
|
-
]))), 256))
|
|
2766
|
-
], 64)) : h("", !0)
|
|
2767
|
-
]))), 256)),
|
|
2768
|
-
Ut.value ? (i(), r("g", nn, [
|
|
2769
|
-
(i(!0), r(d, null, k($.value, (e, s) => (i(), r("g", {
|
|
2770
|
-
key: `tooltip_trap_highlighter_${s}`
|
|
2771
|
-
}, [
|
|
2772
|
-
y("rect", {
|
|
2773
|
-
x: c.value?.left + c.value.width / $.value * s,
|
|
2774
|
-
y: c.value?.top,
|
|
2775
|
-
height: c.value.height < 0 ? 10 : c.value.height,
|
|
2776
|
-
width: c.value.width / $.value < 0 ? 1e-5 : c.value.width / $.value,
|
|
2777
|
-
fill: [
|
|
2778
|
-
P.value,
|
|
2779
|
-
_.value,
|
|
2780
|
-
Ye.value
|
|
2781
|
-
].includes(s) ? v(Ce)(
|
|
2782
|
-
t.value.chart.highlighter.color,
|
|
2783
|
-
t.value.chart.highlighter.opacity
|
|
2784
|
-
) : "transparent",
|
|
2785
|
-
style: {
|
|
2786
|
-
transition: "none !important",
|
|
2787
|
-
animation: "none !important"
|
|
2788
|
-
}
|
|
2789
|
-
}, null, 8, rn)
|
|
2790
|
-
]))), 128))
|
|
2791
|
-
])) : h("", !0),
|
|
2792
|
-
ke.value.length ? (i(!0), r(d, { key: 1 }, k(ke.value, (e, s) => (i(), r("g", {
|
|
2793
|
-
key: `serie_bar_${e.id}`,
|
|
2794
|
-
class: Je(`serie_bar_${s}`),
|
|
2795
|
-
style: w(`opacity:${C.value ? C.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
2796
|
-
}, [
|
|
2797
|
-
(i(!0), r(d, null, k(e.plots, (a, n) => (i(), r("g", {
|
|
2798
|
-
key: `bar_plot_${s}_${n}`
|
|
2799
|
-
}, [
|
|
2800
|
-
xe(a.value) ? (i(), r("rect", {
|
|
2801
|
-
key: 0,
|
|
2802
|
-
x: jt(a) + ll.value / 2,
|
|
2803
|
-
y: f.value.useIndividualScale ? Ca(a) : Aa(a),
|
|
2804
|
-
height: f.value.useIndividualScale ? Math.abs(
|
|
2805
|
-
Ma(
|
|
2806
|
-
a
|
|
2807
|
-
)
|
|
2808
|
-
) : Math.abs(La(a)),
|
|
2809
|
-
width: tl.value - ll.value,
|
|
2810
|
-
rx: t.value.bar.borderRadius,
|
|
2811
|
-
fill: t.value.bar.useGradient ? a.value >= 0 ? `url(#rectGradient_pos_${s}_${z.value})` : `url(#rectGradient_neg_${s}_${z.value})` : e.color,
|
|
2812
|
-
stroke: t.value.bar.border.useSerieColor ? e.color : t.value.bar.border.stroke,
|
|
2813
|
-
"stroke-width": t.value.bar.border.strokeWidth,
|
|
2814
|
-
style: w({
|
|
2815
|
-
transition: v(ne) || !t.value.bar.showTransition ? void 0 : `all ${t.value.bar.transitionDurationMs}ms ease-in-out`
|
|
2816
|
-
})
|
|
2817
|
-
}, null, 12, cn)) : h("", !0),
|
|
2818
|
-
xe(a.value) && l.$slots.pattern ? (i(), r("rect", {
|
|
2819
|
-
key: 1,
|
|
2820
|
-
x: jt(a) - ll.value / 2,
|
|
2821
|
-
y: f.value.useIndividualScale ? Ca(a) : Aa(a),
|
|
2822
|
-
height: f.value.useIndividualScale ? Math.abs(
|
|
2823
|
-
Ma(
|
|
2824
|
-
a
|
|
2825
|
-
)
|
|
2826
|
-
) : Math.abs(La(a)),
|
|
2827
|
-
width: tl.value - ll.value,
|
|
2828
|
-
rx: t.value.bar.borderRadius,
|
|
2829
|
-
fill: `url(#pattern_${z.value}_${e.slotAbsoluteIndex})`,
|
|
2830
|
-
stroke: t.value.bar.border.useSerieColor ? e.color : t.value.bar.border.stroke,
|
|
2831
|
-
"stroke-width": t.value.bar.border.strokeWidth,
|
|
2832
|
-
style: w({
|
|
2833
|
-
transition: v(ne) || !t.value.bar.showTransition ? void 0 : `all ${t.value.bar.transitionDurationMs}ms ease-in-out`
|
|
2834
|
-
})
|
|
2835
|
-
}, null, 12, vn)) : h("", !0),
|
|
2836
|
-
a.comment && t.value.chart.comments.show ? (i(), r("foreignObject", {
|
|
2837
|
-
key: 2,
|
|
2838
|
-
style: { overflow: "visible" },
|
|
2839
|
-
height: "12",
|
|
2840
|
-
width: tl.value + t.value.chart.comments.width,
|
|
2841
|
-
x: jt(a) - t.value.chart.comments.width / 2 + t.value.chart.comments.offsetX,
|
|
2842
|
-
y: v(N)(a.y) + t.value.chart.comments.offsetY + 6
|
|
2843
|
-
}, [
|
|
2844
|
-
O(l.$slots, "plot-comment", {
|
|
2845
|
-
plot: {
|
|
2846
|
-
...a,
|
|
2847
|
-
color: e.color,
|
|
2848
|
-
seriesIndex: s,
|
|
2849
|
-
datapointIndex: n
|
|
2850
|
-
}
|
|
2851
|
-
}, void 0, !0)
|
|
2852
|
-
], 8, dn)) : h("", !0)
|
|
2853
|
-
]))), 128))
|
|
2854
|
-
], 6))), 128)) : h("", !0),
|
|
2855
|
-
!f.value.useIndividualScale && t.value.chart.grid.labels.zeroLine.show ? (i(), r("line", {
|
|
2856
|
-
key: 2,
|
|
2857
|
-
stroke: t.value.chart.grid.stroke,
|
|
2858
|
-
"stroke-width": "1",
|
|
2859
|
-
x1: c.value?.left + q.value,
|
|
2860
|
-
x2: c.value?.right,
|
|
2861
|
-
y1: v(W)(me.value),
|
|
2862
|
-
y2: v(W)(me.value),
|
|
2863
|
-
"stroke-linecap": "round",
|
|
2864
|
-
style: { animation: "none !important" }
|
|
2865
|
-
}, null, 8, hn)) : h("", !0),
|
|
2866
|
-
t.value.chart.highlighter.useLine && (![null, void 0].includes(
|
|
2867
|
-
_.value
|
|
2868
|
-
) || ![null, void 0].includes(
|
|
2869
|
-
P.value
|
|
2870
|
-
)) ? (i(), r("g", fn, [
|
|
2871
|
-
y("line", {
|
|
2872
|
-
x1: c.value?.left + c.value.width / $.value * ((_.value !== null ? _.value : 0) || (P.value !== null ? P.value : 0)) + c.value.width / $.value / 2,
|
|
2873
|
-
x2: c.value?.left + c.value.width / $.value * ((_.value !== null ? _.value : 0) || (P.value !== null ? P.value : 0)) + c.value.width / $.value / 2,
|
|
2874
|
-
y1: v(W)(c.value?.top),
|
|
2875
|
-
y2: v(W)(c.value?.bottom),
|
|
2876
|
-
stroke: t.value.chart.highlighter.color,
|
|
2877
|
-
"stroke-width": t.value.chart.highlighter.lineWidth,
|
|
2878
|
-
"stroke-dasharray": t.value.chart.highlighter.lineDasharray,
|
|
2879
|
-
"stroke-linecap": "round",
|
|
2880
|
-
style: { transition: "none !important", animation: "none !important", "pointer-events": "none" }
|
|
2881
|
-
}, null, 8, mn)
|
|
2882
|
-
])) : h("", !0),
|
|
2883
|
-
t.value.chart.grid.frame.show ? (i(), r("rect", {
|
|
2884
|
-
key: 4,
|
|
2885
|
-
style: {
|
|
2886
|
-
pointerEvents: "none",
|
|
2887
|
-
transition: "none",
|
|
2888
|
-
animation: "none !important"
|
|
2889
|
-
},
|
|
2890
|
-
x: c.value?.left + q.value < 0 ? 0 : c.value?.left + q.value,
|
|
2891
|
-
y: c.value?.top,
|
|
2892
|
-
width: c.value.width - (t.value.chart.grid.position === "middle" ? 0 : c.value.width / $.value) < 0 ? 0 : c.value.width - (t.value.chart.grid.position === "middle" ? 0 : c.value.width / $.value),
|
|
2893
|
-
height: c.value.height < 0 ? 0 : c.value.height,
|
|
2894
|
-
fill: "transparent",
|
|
2895
|
-
stroke: t.value.chart.grid.frame.stroke,
|
|
2896
|
-
"stroke-width": t.value.chart.grid.frame.strokeWidth,
|
|
2897
|
-
"stroke-linecap": t.value.chart.grid.frame.strokeLinecap,
|
|
2898
|
-
"stroke-linejoin": t.value.chart.grid.frame.strokeLinejoin,
|
|
2899
|
-
"stroke-dasharray": t.value.chart.grid.frame.strokeDasharray
|
|
2900
|
-
}, null, 8, gn)) : h("", !0),
|
|
2901
|
-
t.value.chart.grid.labels.show ? (i(), r("g", {
|
|
2902
|
-
key: 5,
|
|
2903
|
-
ref_key: "scaleLabels",
|
|
2904
|
-
ref: hl
|
|
2905
|
-
}, [
|
|
2906
|
-
f.value.useIndividualScale ? (i(), r(d, { key: 0 }, [
|
|
2907
|
-
(i(!0), r(d, null, k(At.value, (e) => (i(), r("g", null, [
|
|
2908
|
-
y("line", {
|
|
2909
|
-
x1: e.x + q.value - c.value.individualOffsetX,
|
|
2910
|
-
x2: e.x + q.value - c.value.individualOffsetX,
|
|
2911
|
-
y1: f.value.isStacked ? v(W)(
|
|
2912
|
-
c.value?.bottom - e.yOffset - e.individualHeight
|
|
2913
|
-
) : v(W)(
|
|
2914
|
-
c.value?.top
|
|
2915
|
-
),
|
|
2916
|
-
y2: f.value.isStacked ? v(W)(
|
|
2917
|
-
c.value?.bottom - e.yOffset
|
|
2918
|
-
) : v(W)(
|
|
2919
|
-
c.value?.bottom
|
|
2920
|
-
),
|
|
2921
|
-
stroke: e.color,
|
|
2922
|
-
"stroke-width": t.value.chart.grid.stroke,
|
|
2923
|
-
"stroke-linecap": "round",
|
|
2924
|
-
style: w(`opacity:${C.value ? C.value === e.groupId ? 1 : 0.3 : 1};transition:opacity 0.2s ease-in-out; animation: none !important`)
|
|
2925
|
-
}, null, 12, bn)
|
|
2926
|
-
]))), 256)),
|
|
2927
|
-
(i(!0), r(d, null, k(At.value, (e) => (i(), r("g", {
|
|
2928
|
-
style: w(`opacity:${C.value ? C.value === e.groupId ? 1 : 0.3 : 1};transition:opacity 0.2s ease-in-out`)
|
|
2929
|
-
}, [
|
|
2930
|
-
y("text", {
|
|
2931
|
-
fill: e.color,
|
|
2932
|
-
"font-size": x.value.dataLabels * 0.8,
|
|
2933
|
-
"text-anchor": "middle",
|
|
2934
|
-
transform: `translate(${e.x - x.value.dataLabels * 0.8 / 2 + q.value}, ${f.value.isStacked ? c.value?.bottom - e.yOffset - e.individualHeight / 2 : c.value?.top + c.value.height / 2}) rotate(-90)`
|
|
2935
|
-
}, se(e.name) + " " + se(e.scaleLabel && e.unique && e.scaleLabel !== e.id ? `-
|
|
2936
|
-
${e.scaleLabel}` : ""), 9, pn),
|
|
2937
|
-
(i(!0), r(d, null, k(e.yLabels, (s, a) => (i(), r(d, null, [
|
|
2938
|
-
t.value.chart.grid.labels.yAxis.showCrosshairs ? (i(), r("line", {
|
|
2939
|
-
key: 0,
|
|
2940
|
-
x1: e.x + 3 + q.value - t.value.chart.grid.labels.yAxis.crosshairSize - c.value.individualOffsetX,
|
|
2941
|
-
x2: e.x + q.value - c.value.individualOffsetX,
|
|
2942
|
-
y1: v(W)(s.y),
|
|
2943
|
-
y2: v(W)(s.y),
|
|
2944
|
-
stroke: e.color,
|
|
2945
|
-
"stroke-width": 1,
|
|
2946
|
-
"stroke-linecap": "round",
|
|
2947
|
-
style: {
|
|
2948
|
-
animation: "none !important"
|
|
2949
|
-
}
|
|
2950
|
-
}, null, 8, yn)) : h("", !0)
|
|
2951
|
-
], 64))), 256)),
|
|
2952
|
-
(i(!0), r(d, null, k(e.yLabels, (s, a) => (i(), r("text", {
|
|
2953
|
-
x: e.x - 5 + q.value - c.value.individualOffsetX,
|
|
2954
|
-
y: v(W)(s.y) + x.value.dataLabels / 3,
|
|
2955
|
-
"font-size": x.value.dataLabels,
|
|
2956
|
-
"text-anchor": "end",
|
|
2957
|
-
fill: e.color
|
|
2958
|
-
}, se(v(he)(
|
|
2959
|
-
t.value.chart.grid.labels.yAxis.formatter,
|
|
2960
|
-
s.value,
|
|
2961
|
-
v(Pe)({
|
|
2962
|
-
p: s.prefix,
|
|
2963
|
-
v: s.value,
|
|
2964
|
-
s: s.suffix,
|
|
2965
|
-
r: t.value.chart.grid.labels.yAxis.rounding
|
|
2966
|
-
}),
|
|
2967
|
-
{
|
|
2968
|
-
datapoint: s.datapoint,
|
|
2969
|
-
seriesIndex: a
|
|
2970
|
-
}
|
|
2971
|
-
)), 9, xn))), 256))
|
|
2972
|
-
], 4))), 256))
|
|
2973
|
-
], 64)) : (i(!0), r(d, { key: 1 }, k(Fa.value, (e, s) => (i(), r("g", {
|
|
2974
|
-
key: `yLabel_${s}`
|
|
2975
|
-
}, [
|
|
2976
|
-
xe(e) && e.value >= Ae.value.min && e.value <= Ae.value.max && t.value.chart.grid.labels.yAxis.showCrosshairs ? (i(), r("line", {
|
|
2977
|
-
key: 0,
|
|
2978
|
-
x1: c.value?.left + q.value,
|
|
2979
|
-
x2: c.value?.left + q.value - t.value.chart.grid.labels.yAxis.crosshairSize,
|
|
2980
|
-
y1: v(W)(e.y),
|
|
2981
|
-
y2: v(W)(e.y),
|
|
2982
|
-
stroke: t.value.chart.grid.stroke,
|
|
2983
|
-
"stroke-width": "1",
|
|
2984
|
-
"stroke-linecap": "round",
|
|
2985
|
-
style: {
|
|
2986
|
-
animation: "none !important"
|
|
2987
|
-
}
|
|
2988
|
-
}, null, 8, kn)) : h("", !0),
|
|
2989
|
-
e.value >= Ae.value.min && e.value <= Ae.value.max ? (i(), r("text", {
|
|
2990
|
-
key: 1,
|
|
2991
|
-
x: c.value.scaleLabelX - t.value.chart.grid.labels.yAxis.crosshairSize,
|
|
2992
|
-
y: v(N)(
|
|
2993
|
-
e.y + x.value.dataLabels / 3
|
|
2994
|
-
),
|
|
2995
|
-
"font-size": x.value.dataLabels,
|
|
2996
|
-
"text-anchor": "end",
|
|
2997
|
-
fill: t.value.chart.grid.labels.color
|
|
2998
|
-
}, se(xe(e.value) ? v(he)(
|
|
2999
|
-
t.value.chart.grid.labels.yAxis.formatter,
|
|
3000
|
-
e.value,
|
|
3001
|
-
v(Pe)({
|
|
3002
|
-
p: e.prefix,
|
|
3003
|
-
v: e.value,
|
|
3004
|
-
s: e.suffix,
|
|
3005
|
-
r: t.value.chart.grid.labels.yAxis.rounding
|
|
3006
|
-
})
|
|
3007
|
-
) : ""), 9, _n)) : h("", !0)
|
|
3008
|
-
]))), 128))
|
|
3009
|
-
], 512)) : h("", !0),
|
|
3010
|
-
(i(!0), r(d, null, k(ge.value, (e, s) => (i(), r("g", {
|
|
3011
|
-
key: `serie_plot_${e.id}`,
|
|
3012
|
-
class: Je(`serie_plot_${s}`),
|
|
3013
|
-
style: w(`opacity:${C.value ? C.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
3014
|
-
}, [
|
|
3015
|
-
(i(!0), r(d, null, k(e.plots, (a, n) => (i(), r("g", {
|
|
3016
|
-
key: `circle_plot_${s}_${n}`
|
|
3017
|
-
}, [
|
|
3018
|
-
a && xe(a.value) ? (i(), _e(rl, {
|
|
3019
|
-
key: 0,
|
|
3020
|
-
shape: [
|
|
3021
|
-
"triangle",
|
|
3022
|
-
"square",
|
|
3023
|
-
"diamond",
|
|
3024
|
-
"pentagon",
|
|
3025
|
-
"hexagon",
|
|
3026
|
-
"star"
|
|
3027
|
-
].includes(e.shape) ? e.shape : "circle",
|
|
3028
|
-
color: t.value.plot.useGradient ? `url(#plotGradient_${s}_${z.value})` : t.value.plot.dot.useSerieColor ? e.color : t.value.plot.dot.fill,
|
|
3029
|
-
plot: {
|
|
3030
|
-
x: v(N)(a.x),
|
|
3031
|
-
y: v(N)(a.y)
|
|
3032
|
-
},
|
|
3033
|
-
radius: _.value !== null && _.value === n || P.value !== null && P.value === n ? (Le.value.plot || 6) * 1.5 : Le.value.plot || 6,
|
|
3034
|
-
stroke: t.value.plot.dot.useSerieColor ? t.value.chart.backgroundColor : e.color,
|
|
3035
|
-
strokeWidth: t.value.plot.dot.strokeWidth,
|
|
3036
|
-
transition: v(ne) || !t.value.plot.showTransition || _.value !== null && _.value === n || P.value !== null && P.value === n ? void 0 : `all ${t.value.plot.transitionDurationMs}ms ease-in-out`
|
|
3037
|
-
}, null, 8, ["shape", "color", "plot", "radius", "stroke", "strokeWidth", "transition"])) : h("", !0),
|
|
3038
|
-
a.comment && t.value.chart.comments.show ? (i(), r("foreignObject", {
|
|
3039
|
-
key: 1,
|
|
3040
|
-
style: { overflow: "visible" },
|
|
3041
|
-
height: "12",
|
|
3042
|
-
width: t.value.chart.comments.width,
|
|
3043
|
-
x: a.x - t.value.chart.comments.width / 2 + t.value.chart.comments.offsetX,
|
|
3044
|
-
y: a.y + t.value.chart.comments.offsetY + 6
|
|
3045
|
-
}, [
|
|
3046
|
-
y("div", Sn, [
|
|
3047
|
-
O(l.$slots, "plot-comment", {
|
|
3048
|
-
plot: {
|
|
3049
|
-
...a,
|
|
3050
|
-
color: e.color,
|
|
3051
|
-
seriesIndex: s,
|
|
3052
|
-
datapointIndex: n
|
|
3053
|
-
}
|
|
3054
|
-
}, void 0, !0)
|
|
3055
|
-
])
|
|
3056
|
-
], 8, wn)) : h("", !0)
|
|
3057
|
-
]))), 128))
|
|
3058
|
-
], 6))), 128)),
|
|
3059
|
-
(i(!0), r(d, null, k(ue.value, (e, s) => (i(), r("g", {
|
|
3060
|
-
key: `serie_line_${e.id}`,
|
|
3061
|
-
class: Je(`serie_line_${s}`),
|
|
3062
|
-
style: w(`opacity:${C.value ? C.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
3063
|
-
}, [
|
|
3064
|
-
e.smooth && e.plots.length > 1 && e.curve ? (i(), r("path", {
|
|
3065
|
-
key: 0,
|
|
3066
|
-
d: `M${e.curve}`,
|
|
3067
|
-
stroke: t.value.chart.backgroundColor,
|
|
3068
|
-
"stroke-width": t.value.line.strokeWidth + 1,
|
|
3069
|
-
"stroke-dasharray": e.dashed ? t.value.line.strokeWidth * 2 : 0,
|
|
3070
|
-
fill: "none",
|
|
3071
|
-
style: w({
|
|
3072
|
-
transition: v(ne) || !t.value.line.showTransition ? void 0 : `all ${t.value.line.transitionDurationMs}ms ease-in-out`
|
|
3073
|
-
})
|
|
3074
|
-
}, null, 12, $n)) : e.plots.length > 1 && e.straight ? (i(), r("path", {
|
|
3075
|
-
key: 1,
|
|
3076
|
-
d: `M${e.straight}`,
|
|
3077
|
-
stroke: t.value.chart.backgroundColor,
|
|
3078
|
-
"stroke-width": t.value.line.strokeWidth + 1,
|
|
3079
|
-
"stroke-dasharray": e.dashed ? t.value.line.strokeWidth * 2 : 0,
|
|
3080
|
-
fill: "none",
|
|
3081
|
-
"stroke-linecap": "round",
|
|
3082
|
-
"stroke-linejoin": "round",
|
|
3083
|
-
style: w({
|
|
3084
|
-
transition: v(ne) || !t.value.line.showTransition ? void 0 : `all ${t.value.line.transitionDurationMs}ms ease-in-out`
|
|
3085
|
-
})
|
|
3086
|
-
}, null, 12, Ln)) : h("", !0)
|
|
3087
|
-
], 6))), 128)),
|
|
3088
|
-
l.$slots.pattern ? (i(), r("defs", Mn, [
|
|
3089
|
-
(i(!0), r(d, null, k(Ve.value, (e, s) => O(l.$slots, "pattern", Qe({
|
|
3090
|
-
key: `serie_pattern_slot_${e.id}`
|
|
3091
|
-
}, { ref_for: !0 }, {
|
|
3092
|
-
...e,
|
|
3093
|
-
seriesIndex: e.slotAbsoluteIndex,
|
|
3094
|
-
patternId: `pattern_${z.value}_${s}`
|
|
3095
|
-
}), void 0, !0)), 128))
|
|
3096
|
-
])) : h("", !0),
|
|
3097
|
-
Ra.value.length && !f.value.isStacked ? (i(), r("g", An, [
|
|
3098
|
-
(i(!0), r(d, null, k(Ra.value, (e) => (i(), r("path", {
|
|
3099
|
-
key: e.key,
|
|
3100
|
-
d: e.d,
|
|
3101
|
-
fill: e.color,
|
|
3102
|
-
"fill-opacity": t.value.line.interLine.fillOpacity,
|
|
3103
|
-
stroke: "none",
|
|
3104
|
-
"pointer-events": "none",
|
|
3105
|
-
style: w({
|
|
3106
|
-
transition: v(ne) || !t.value.line.showTransition ? void 0 : `all ${t.value.line.transitionDurationMs}ms ease-in-out`
|
|
3107
|
-
})
|
|
3108
|
-
}, null, 12, Cn))), 128))
|
|
3109
|
-
])) : h("", !0),
|
|
3110
|
-
(i(!0), r(d, null, k(ue.value, (e, s) => (i(), r("g", {
|
|
3111
|
-
key: `serie_line_above_${e.id}`,
|
|
3112
|
-
class: Je(`serie_line_${s}`),
|
|
3113
|
-
style: w(`opacity:${C.value ? C.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
3114
|
-
}, [
|
|
3115
|
-
e.useArea && e.plots.length > 1 ? (i(), r("g", Tn, [
|
|
3116
|
-
e.smooth ? (i(!0), r(d, { key: 0 }, k(e.curveAreas, (a, n) => (i(), r(d, { key: n }, [
|
|
3117
|
-
a ? (i(), r("path", {
|
|
3118
|
-
key: 0,
|
|
3119
|
-
d: a,
|
|
3120
|
-
fill: t.value.line.area.useGradient ? `url(#areaGradient_${s}_${z.value})` : v(Ce)(
|
|
3121
|
-
e.color,
|
|
3122
|
-
t.value.line.area.opacity
|
|
3123
|
-
),
|
|
3124
|
-
style: w({
|
|
3125
|
-
transition: v(ne) || !t.value.line.showTransition ? void 0 : `all ${t.value.line.transitionDurationMs}ms ease-in-out`
|
|
3126
|
-
})
|
|
3127
|
-
}, null, 12, zn)) : h("", !0),
|
|
3128
|
-
l.$slots.pattern && a ? (i(), r("path", {
|
|
3129
|
-
key: 1,
|
|
3130
|
-
d: a,
|
|
3131
|
-
fill: `url(#pattern_${z.value}_${e.slotAbsoluteIndex})`,
|
|
3132
|
-
style: w({
|
|
3133
|
-
transition: v(ne) || !t.value.line.showTransition ? void 0 : `all ${t.value.line.transitionDurationMs}ms ease-in-out`
|
|
3134
|
-
})
|
|
3135
|
-
}, null, 12, In)) : h("", !0)
|
|
3136
|
-
], 64))), 128)) : (i(!0), r(d, { key: 1 }, k(e.area.split(";"), (a, n) => (i(), r(d, { key: n }, [
|
|
3137
|
-
a ? (i(), r("path", {
|
|
3138
|
-
key: 0,
|
|
3139
|
-
d: `M${a}Z`,
|
|
3140
|
-
fill: t.value.line.area.useGradient ? `url(#areaGradient_${s}_${z.value})` : v(Ce)(
|
|
3141
|
-
e.color,
|
|
3142
|
-
t.value.line.area.opacity
|
|
3143
|
-
),
|
|
3144
|
-
style: w({
|
|
3145
|
-
transition: v(ne) || !t.value.line.showTransition ? void 0 : `all ${t.value.line.transitionDurationMs}ms ease-in-out`
|
|
3146
|
-
})
|
|
3147
|
-
}, null, 12, Pn)) : h("", !0),
|
|
3148
|
-
l.$slots.pattern && a ? (i(), r("path", {
|
|
3149
|
-
key: 1,
|
|
3150
|
-
d: `M${a}Z`,
|
|
3151
|
-
fill: `url(#pattern_${z.value}_${e.slotAbsoluteIndex})`,
|
|
3152
|
-
style: w({
|
|
3153
|
-
transition: v(ne) || !t.value.line.showTransition ? void 0 : `all ${t.value.line.transitionDurationMs}ms ease-in-out`
|
|
3154
|
-
})
|
|
3155
|
-
}, null, 12, On)) : h("", !0)
|
|
3156
|
-
], 64))), 128))
|
|
3157
|
-
])) : h("", !0),
|
|
3158
|
-
!e.hasDashedSegments && e.smooth && e.plots.length > 1 && e.curve ? (i(), r("path", {
|
|
3159
|
-
key: 1,
|
|
3160
|
-
d: `M${e.curve}`,
|
|
3161
|
-
stroke: e.temperatureColors ? `url(#temperature_grad_line_${s}_${z.value})` : e.color,
|
|
3162
|
-
"stroke-width": t.value.line.strokeWidth,
|
|
3163
|
-
"stroke-dasharray": e.dashed ? t.value.line.strokeWidth * 2 : 0,
|
|
3164
|
-
fill: "none",
|
|
3165
|
-
"stroke-linecap": "round",
|
|
3166
|
-
style: w({
|
|
3167
|
-
transition: v(ne) || !t.value.line.showTransition ? void 0 : `all ${t.value.line.transitionDurationMs}ms ease-in-out`
|
|
3168
|
-
})
|
|
3169
|
-
}, null, 12, Nn)) : e.hasDashedSegments ? (i(), r(d, { key: 2 }, [
|
|
3170
|
-
e.smooth ? (i(!0), r(d, { key: 0 }, k(e.dashedSmooth, (a) => (i(), r("path", {
|
|
3171
|
-
key: a.path,
|
|
3172
|
-
fill: "none",
|
|
3173
|
-
"stroke-linecap": "round",
|
|
3174
|
-
"stroke-linejoin": "round",
|
|
3175
|
-
d: `M ${a.path}`,
|
|
3176
|
-
stroke: e.temperatureColors ? `url(#temperature_grad_line_${s}_${z.value})` : e.color,
|
|
3177
|
-
"stroke-width": t.value.line.strokeWidth,
|
|
3178
|
-
"stroke-dasharray": a.dashed ? t.value.line.strokeWidth * 2 : 0
|
|
3179
|
-
}, null, 8, Fn))), 128)) : (i(!0), r(d, { key: 1 }, k(e.dashedStraight, (a) => (i(), r("path", {
|
|
3180
|
-
key: a.path,
|
|
3181
|
-
fill: "none",
|
|
3182
|
-
"stroke-linecap": "round",
|
|
3183
|
-
"stroke-linejoin": "round",
|
|
3184
|
-
d: `M ${a.path}`,
|
|
3185
|
-
stroke: e.temperatureColors ? `url(#temperature_grad_line_${s}_${z.value})` : e.color,
|
|
3186
|
-
"stroke-width": t.value.line.strokeWidth,
|
|
3187
|
-
"stroke-dasharray": a.dashed ? t.value.line.strokeWidth * 2 : 0
|
|
3188
|
-
}, null, 8, Vn))), 128))
|
|
3189
|
-
], 64)) : e.plots.length > 1 && e.straight ? (i(), r("path", {
|
|
3190
|
-
key: 3,
|
|
3191
|
-
d: `M${e.straight}`,
|
|
3192
|
-
stroke: e.temperatureColors ? `url(#temperature_grad_line_${s}_${z.value})` : e.color,
|
|
3193
|
-
"stroke-width": t.value.line.strokeWidth,
|
|
3194
|
-
"stroke-dasharray": e.dashed ? t.value.line.strokeWidth * 2 : 0,
|
|
3195
|
-
fill: "none",
|
|
3196
|
-
"stroke-linecap": "round",
|
|
3197
|
-
"stroke-linejoin": "round",
|
|
3198
|
-
style: w({
|
|
3199
|
-
transition: v(ne) || !t.value.line.showTransition ? void 0 : `all ${t.value.line.transitionDurationMs}ms ease-in-out`
|
|
3200
|
-
})
|
|
3201
|
-
}, null, 12, Bn)) : h("", !0),
|
|
3202
|
-
(i(!0), r(d, null, k(e.plots, (a, n) => (i(), r(d, {
|
|
3203
|
-
key: `circle_line_${s}_${n}`
|
|
3204
|
-
}, [
|
|
3205
|
-
!Oa.value.linePlot && a && xe(a.value) || Oa.value.linePlot && a && xe(a.value) && (_.value !== null && _.value === n || P.value !== null && P.value === n) || Ba(e.plots, n) ? (i(), _e(rl, {
|
|
3206
|
-
key: 0,
|
|
3207
|
-
shape: [
|
|
3208
|
-
"triangle",
|
|
3209
|
-
"square",
|
|
3210
|
-
"diamond",
|
|
3211
|
-
"pentagon",
|
|
3212
|
-
"hexagon",
|
|
3213
|
-
"star"
|
|
3214
|
-
].includes(e.shape) ? e.shape : "circle",
|
|
3215
|
-
color: t.value.line.useGradient ? `url(#lineGradient_${s}_${z.value})` : t.value.line.dot.useSerieColor ? e.color : t.value.line.dot.fill,
|
|
3216
|
-
plot: {
|
|
3217
|
-
x: v(N)(a.x),
|
|
3218
|
-
y: v(N)(a.y)
|
|
3219
|
-
},
|
|
3220
|
-
radius: _.value !== null && _.value === n || P.value !== null && P.value === n ? (Le.value.line || 6) * 1.5 : (Ba(e.plots, n), Le.value.line || 6),
|
|
3221
|
-
stroke: t.value.line.dot.useSerieColor ? t.value.chart.backgroundColor : e.color,
|
|
3222
|
-
strokeWidth: t.value.line.dot.strokeWidth,
|
|
3223
|
-
transition: v(ne) || !t.value.line.showTransition || _.value !== null && _.value === n || P.value !== null && P.value === n ? void 0 : `all ${t.value.line.transitionDurationMs}ms ease-in-out`
|
|
3224
|
-
}, null, 8, ["shape", "color", "plot", "radius", "stroke", "strokeWidth", "transition"])) : h("", !0),
|
|
3225
|
-
a.comment && t.value.chart.comments.show ? (i(), r("foreignObject", {
|
|
3226
|
-
key: 1,
|
|
3227
|
-
style: { overflow: "visible" },
|
|
3228
|
-
height: "12",
|
|
3229
|
-
width: t.value.chart.comments.width,
|
|
3230
|
-
x: a.x - t.value.chart.comments.width / 2 + t.value.chart.comments.offsetX,
|
|
3231
|
-
y: a.y + t.value.chart.comments.offsetY + 6
|
|
3232
|
-
}, [
|
|
3233
|
-
y("div", Hn, [
|
|
3234
|
-
O(l.$slots, "plot-comment", {
|
|
3235
|
-
plot: {
|
|
3236
|
-
...a,
|
|
3237
|
-
color: e.color,
|
|
3238
|
-
seriesIndex: s,
|
|
3239
|
-
datapointIndex: n
|
|
3240
|
-
}
|
|
3241
|
-
}, void 0, !0)
|
|
3242
|
-
])
|
|
3243
|
-
], 8, Rn)) : h("", !0)
|
|
3244
|
-
], 64))), 128))
|
|
3245
|
-
], 6))), 128)),
|
|
3246
|
-
(t.value.bar.labels.show || t.value.bar.serieName.show) && f.value.dataLabels.show ? (i(), r("g", Dn, [
|
|
3247
|
-
(i(!0), r(d, null, k(ke.value, (e, s) => (i(), r(d, {
|
|
3248
|
-
key: `xLabel_bar_${e.id}`
|
|
3249
|
-
}, [
|
|
3250
|
-
(i(!0), r(d, null, k(e.plots, (a, n) => (i(), r(d, {
|
|
3251
|
-
key: `xLabel_bar_${s}_${n}`
|
|
3252
|
-
}, [
|
|
3253
|
-
a && (!Object.hasOwn(
|
|
3254
|
-
e,
|
|
3255
|
-
"dataLabels"
|
|
3256
|
-
) || e.dataLabels === !0 || _.value !== null && _.value === n || P.value !== null && P.value === n) && t.value.bar.labels.show ? (i(), r("text", {
|
|
3257
|
-
key: 0,
|
|
3258
|
-
x: f.value.useIndividualScale && f.value.isStacked ? a.x + J.value.line / 2 : jt(a) + Be() / 2 - el.value / 2,
|
|
3259
|
-
y: v(N)(a.y) + (a.value >= 0 ? t.value.bar.labels.offsetY : -t.value.bar.labels.offsetY * 3),
|
|
3260
|
-
"text-anchor": "middle",
|
|
3261
|
-
"font-size": x.value.plotLabels,
|
|
3262
|
-
fill: t.value.bar.labels.color,
|
|
3263
|
-
style: w(`opacity:${C.value ? C.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
3264
|
-
}, se(xe(a.value) ? v(he)(
|
|
3265
|
-
t.value.bar.labels.formatter,
|
|
3266
|
-
a.value,
|
|
3267
|
-
v(Pe)({
|
|
3268
|
-
p: e.prefix || t.value.chart.labels.prefix,
|
|
3269
|
-
v: a.value,
|
|
3270
|
-
s: e.suffix || t.value.chart.labels.suffix,
|
|
3271
|
-
r: t.value.bar.labels.rounding
|
|
3272
|
-
}),
|
|
3273
|
-
{
|
|
3274
|
-
datapoint: a,
|
|
3275
|
-
serie: e
|
|
3276
|
-
}
|
|
3277
|
-
) : ""), 13, Wn)) : h("", !0),
|
|
3278
|
-
a && t.value.bar.serieName.show ? (i(), r("text", {
|
|
3279
|
-
key: 1,
|
|
3280
|
-
x: f.value.useIndividualScale && f.value.isStacked ? a.x + J.value.line / 2 : a.x + Be() * 1.1,
|
|
3281
|
-
y: a.y + (a.value > 0 ? t.value.bar.serieName.offsetY : -t.value.bar.serieName.offsetY * 3),
|
|
3282
|
-
"text-anchor": "middle",
|
|
3283
|
-
"font-size": x.value.plotLabels,
|
|
3284
|
-
fill: t.value.bar.serieName.useSerieColor ? e.color : t.value.bar.serieName.color,
|
|
3285
|
-
"font-weight": t.value.bar.serieName.bold ? "bold" : "normal",
|
|
3286
|
-
style: w(`opacity:${C.value ? C.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
3287
|
-
}, se(t.value.bar.serieName.useAbbreviation ? v(Qu)({
|
|
3288
|
-
source: e.name,
|
|
3289
|
-
length: t.value.bar.serieName.abbreviationSize
|
|
3290
|
-
}) : e.name), 13, En)) : h("", !0)
|
|
3291
|
-
], 64))), 128))
|
|
3292
|
-
], 64))), 128))
|
|
3293
|
-
])) : h("", !0),
|
|
3294
|
-
t.value.plot.labels.show && f.value.dataLabels.show ? (i(), r("g", Yn, [
|
|
3295
|
-
(i(!0), r(d, null, k(ge.value, (e, s) => (i(), r(d, {
|
|
3296
|
-
key: `xLabel_plot_${e.id}`
|
|
3297
|
-
}, [
|
|
3298
|
-
(i(!0), r(d, null, k(e.plots, (a, n) => (i(), r(d, {
|
|
3299
|
-
key: `xLabel_plot_${s}_${n}`
|
|
3300
|
-
}, [
|
|
3301
|
-
a && !Object.hasOwn(
|
|
3302
|
-
e,
|
|
3303
|
-
"dataLabels"
|
|
3304
|
-
) || e.dataLabels === !0 || _.value !== null && _.value === n || P.value !== null && P.value === n ? (i(), r("text", {
|
|
3305
|
-
key: 0,
|
|
3306
|
-
x: a.x,
|
|
3307
|
-
y: a.y + t.value.plot.labels.offsetY,
|
|
3308
|
-
"text-anchor": "middle",
|
|
3309
|
-
"font-size": x.value.plotLabels,
|
|
3310
|
-
fill: t.value.plot.labels.color,
|
|
3311
|
-
style: w(`opacity:${C.value ? C.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
3312
|
-
}, se(xe(a.value) ? v(he)(
|
|
3313
|
-
t.value.plot.labels.formatter,
|
|
3314
|
-
a.value,
|
|
3315
|
-
v(Pe)({
|
|
3316
|
-
p: e.prefix || t.value.chart.labels.prefix,
|
|
3317
|
-
v: a.value,
|
|
3318
|
-
s: e.suffix || t.value.chart.labels.suffix,
|
|
3319
|
-
r: t.value.plot.labels.rounding
|
|
3320
|
-
}),
|
|
3321
|
-
{
|
|
3322
|
-
datapoint: a,
|
|
3323
|
-
serie: e
|
|
3324
|
-
}
|
|
3325
|
-
) : ""), 13, Xn)) : h("", !0)
|
|
3326
|
-
], 64))), 128))
|
|
3327
|
-
], 64))), 128))
|
|
3328
|
-
])) : (i(), r("g", Gn, [
|
|
3329
|
-
(i(!0), r(d, null, k(ge.value, (e, s) => (i(), r(d, {
|
|
3330
|
-
key: `xLabel_plot_${e.id}`
|
|
3331
|
-
}, [
|
|
3332
|
-
(i(!0), r(d, null, k(e.plots, (a, n) => (i(), r(d, {
|
|
3333
|
-
key: `xLabel_plot_${s}_${n}`
|
|
3334
|
-
}, [
|
|
3335
|
-
t.value.plot.tag.followValue ? (i(), r(d, { key: 1 }, [
|
|
3336
|
-
[
|
|
3337
|
-
P.value,
|
|
3338
|
-
_.value,
|
|
3339
|
-
Ye.value
|
|
3340
|
-
].includes(n) && e.useTag ? (i(), r("line", {
|
|
3341
|
-
key: 0,
|
|
3342
|
-
class: "vue-ui-xy-tag-plot",
|
|
3343
|
-
x1: c.value?.left,
|
|
3344
|
-
x2: c.value?.right,
|
|
3345
|
-
y1: a.y,
|
|
3346
|
-
y2: a.y,
|
|
3347
|
-
"stroke-width": 1,
|
|
3348
|
-
"stroke-linecap": "round",
|
|
3349
|
-
"stroke-dasharray": "2",
|
|
3350
|
-
stroke: e.color
|
|
3351
|
-
}, null, 8, Jn)) : h("", !0)
|
|
3352
|
-
], 64)) : (i(), r(d, { key: 0 }, [
|
|
3353
|
-
a && n === 0 && e.useTag && e.useTag === "start" ? (i(), r("foreignObject", {
|
|
3354
|
-
key: 0,
|
|
3355
|
-
x: a.x,
|
|
3356
|
-
y: a.y - 20,
|
|
3357
|
-
height: 24,
|
|
3358
|
-
width: "150",
|
|
3359
|
-
style: w(`overflow: visible; opacity:${C.value ? C.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
3360
|
-
}, [
|
|
3361
|
-
y("div", {
|
|
3362
|
-
style: w(`padding: 3px; background:${v(Ce)(e.color, 80)};color:${v(He)(e.color)};width:fit-content;font-size:${x.value.plotLabels}px;border-radius: 2px;`),
|
|
3363
|
-
innerHTML: v(he)(
|
|
3364
|
-
t.value.plot.tag.formatter,
|
|
3365
|
-
a.value,
|
|
3366
|
-
e.name,
|
|
3367
|
-
{
|
|
3368
|
-
datapoint: a,
|
|
3369
|
-
seriesIndex: n,
|
|
3370
|
-
serieName: e.name
|
|
3371
|
-
}
|
|
3372
|
-
)
|
|
3373
|
-
}, null, 12, Un)
|
|
3374
|
-
], 12, qn)) : h("", !0),
|
|
3375
|
-
a && n === e.plots.length - 1 && e.useTag && e.useTag === "end" ? (i(), r("foreignObject", {
|
|
3376
|
-
key: 1,
|
|
3377
|
-
x: a.x - e.name.length * (x.value.plotLabels / 2),
|
|
3378
|
-
y: a.y - 20,
|
|
3379
|
-
height: 24,
|
|
3380
|
-
width: "150",
|
|
3381
|
-
style: w(`overflow: visible; opacity:${C.value ? C.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
3382
|
-
}, [
|
|
3383
|
-
y("div", {
|
|
3384
|
-
style: w(`padding: 3px; background:${v(Ce)(e.color, 80)};color:${v(He)(e.color)};width:fit-content;font-size:${x.value.plotLabels}px;border-radius: 2px;`),
|
|
3385
|
-
innerHTML: v(he)(
|
|
3386
|
-
t.value.plot.tag.formatter,
|
|
3387
|
-
a.value,
|
|
3388
|
-
e.name,
|
|
3389
|
-
{
|
|
3390
|
-
datapoint: a,
|
|
3391
|
-
seriesIndex: n,
|
|
3392
|
-
serieName: e.name
|
|
3393
|
-
}
|
|
3394
|
-
)
|
|
3395
|
-
}, null, 12, Kn)
|
|
3396
|
-
], 12, Zn)) : h("", !0)
|
|
3397
|
-
], 64))
|
|
3398
|
-
], 64))), 128))
|
|
3399
|
-
], 64))), 128))
|
|
3400
|
-
])),
|
|
3401
|
-
t.value.line.labels.show && f.value.dataLabels.show ? (i(), r("g", Qn, [
|
|
3402
|
-
(i(!0), r(d, null, k(ue.value, (e, s) => (i(), r(d, {
|
|
3403
|
-
key: `xLabel_line_${e.id}`
|
|
3404
|
-
}, [
|
|
3405
|
-
(i(!0), r(d, null, k(e.plots, (a, n) => (i(), r(d, {
|
|
3406
|
-
key: `xLabel_line_${s}_${n}`
|
|
3407
|
-
}, [
|
|
3408
|
-
a && !Object.hasOwn(
|
|
3409
|
-
e,
|
|
3410
|
-
"dataLabels"
|
|
3411
|
-
) || e.dataLabels === !0 || _.value !== null && _.value === n || P.value !== null && P.value === n ? (i(), r("text", {
|
|
3412
|
-
key: 0,
|
|
3413
|
-
x: a.x,
|
|
3414
|
-
y: a.y + (a.value >= 0 ? t.value.line.labels.offsetY : -t.value.line.labels.offsetY * 3),
|
|
3415
|
-
"text-anchor": "middle",
|
|
3416
|
-
"font-size": x.value.plotLabels,
|
|
3417
|
-
fill: t.value.line.labels.color,
|
|
3418
|
-
style: w(`opacity:${C.value ? C.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
3419
|
-
}, se(xe(a.value) ? v(he)(
|
|
3420
|
-
t.value.line.labels.formatter,
|
|
3421
|
-
a.value,
|
|
3422
|
-
v(Pe)({
|
|
3423
|
-
p: e.prefix || t.value.chart.labels.prefix,
|
|
3424
|
-
v: a.value,
|
|
3425
|
-
s: e.suffix || t.value.chart.labels.suffix,
|
|
3426
|
-
r: t.value.line.labels.rounding
|
|
3427
|
-
}),
|
|
3428
|
-
{
|
|
3429
|
-
datapoint: a,
|
|
3430
|
-
serie: e
|
|
3431
|
-
}
|
|
3432
|
-
) : ""), 13, jn)) : h("", !0)
|
|
3433
|
-
], 64))), 128))
|
|
3434
|
-
], 64))), 128))
|
|
3435
|
-
])) : (i(), r("g", ei, [
|
|
3436
|
-
(i(!0), r(d, null, k(ue.value, (e, s) => (i(), r(d, {
|
|
3437
|
-
key: `xLabel_line_${e.id}`
|
|
3438
|
-
}, [
|
|
3439
|
-
(i(!0), r(d, null, k(e.plots, (a, n) => (i(), r(d, {
|
|
3440
|
-
key: `xLabel_line_${s}_${n}`
|
|
3441
|
-
}, [
|
|
3442
|
-
t.value.line.tag.followValue ? (i(), r(d, { key: 1 }, [
|
|
3443
|
-
[
|
|
3444
|
-
P.value,
|
|
3445
|
-
_.value,
|
|
3446
|
-
Ye.value
|
|
3447
|
-
].includes(n) && e.useTag ? (i(), r("line", {
|
|
3448
|
-
key: 0,
|
|
3449
|
-
class: "vue-ui-xy-tag-line",
|
|
3450
|
-
x1: c.value?.left,
|
|
3451
|
-
x2: c.value?.right,
|
|
3452
|
-
y1: a.y,
|
|
3453
|
-
y2: a.y,
|
|
3454
|
-
"stroke-width": 1,
|
|
3455
|
-
"stroke-linecap": "round",
|
|
3456
|
-
"stroke-dasharray": "2",
|
|
3457
|
-
stroke: e.color
|
|
3458
|
-
}, null, 8, ui)) : h("", !0)
|
|
3459
|
-
], 64)) : (i(), r(d, { key: 0 }, [
|
|
3460
|
-
a && n === 0 && e.useTag && e.useTag === "start" ? (i(), r("foreignObject", {
|
|
3461
|
-
key: 0,
|
|
3462
|
-
x: a.x,
|
|
3463
|
-
y: a.y - 20,
|
|
3464
|
-
height: 24,
|
|
3465
|
-
width: "150",
|
|
3466
|
-
style: w(`overflow: visible; opacity:${C.value ? C.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
3467
|
-
}, [
|
|
3468
|
-
y("div", {
|
|
3469
|
-
style: w(`padding: 3px; background:${v(Ce)(e.color, 80)};color:${v(He)(e.color)};width:fit-content;font-size:${x.value.plotLabels}px;border-radius: 2px;`),
|
|
3470
|
-
innerHTML: v(he)(
|
|
3471
|
-
t.value.line.tag.formatter,
|
|
3472
|
-
a.value,
|
|
3473
|
-
e.name,
|
|
3474
|
-
{
|
|
3475
|
-
datapoint: a,
|
|
3476
|
-
seriesIndex: n,
|
|
3477
|
-
serieName: e.name
|
|
3478
|
-
}
|
|
3479
|
-
)
|
|
3480
|
-
}, null, 12, li)
|
|
3481
|
-
], 12, ti)) : h("", !0),
|
|
3482
|
-
a && n === e.plots.length - 1 && e.useTag && e.useTag === "end" ? (i(), r("foreignObject", {
|
|
3483
|
-
key: 1,
|
|
3484
|
-
x: a.x,
|
|
3485
|
-
y: a.y - 20,
|
|
3486
|
-
height: 24,
|
|
3487
|
-
width: "150",
|
|
3488
|
-
style: w(`overflow: visible; opacity:${C.value ? C.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
3489
|
-
}, [
|
|
3490
|
-
y("div", {
|
|
3491
|
-
style: w(`padding: 3px; background:${v(Ce)(e.color, 80)};color:${v(He)(e.color)};width:fit-content;font-size:${x.value.plotLabels}px;border-radius: 2px;`),
|
|
3492
|
-
innerHTML: v(he)(
|
|
3493
|
-
t.value.line.tag.formatter,
|
|
3494
|
-
a.value,
|
|
3495
|
-
e.name,
|
|
3496
|
-
{
|
|
3497
|
-
datapoint: a,
|
|
3498
|
-
seriesIndex: n,
|
|
3499
|
-
serieName: e.name
|
|
3500
|
-
}
|
|
3501
|
-
)
|
|
3502
|
-
}, null, 12, oi)
|
|
3503
|
-
], 12, ai)) : h("", !0)
|
|
3504
|
-
], 64))
|
|
3505
|
-
], 64))), 128))
|
|
3506
|
-
], 64))), 128))
|
|
3507
|
-
])),
|
|
3508
|
-
(i(!0), r(d, null, k(ue.value, (e, s) => (i(), r(d, {
|
|
3509
|
-
key: `xLabel_line_${e.id}`
|
|
3510
|
-
}, [
|
|
3511
|
-
(i(!0), r(d, null, k(e.plots, (a, n) => (i(), r(d, {
|
|
3512
|
-
key: `xLabel_line_${s}_${n}`
|
|
3513
|
-
}, [
|
|
3514
|
-
a && n === 0 && e.showSerieName && e.showSerieName === "start" ? (i(), r("text", {
|
|
3515
|
-
key: 0,
|
|
3516
|
-
x: a.x - x.value.plotLabels,
|
|
3517
|
-
y: a.y,
|
|
3518
|
-
"font-size": x.value.plotLabels,
|
|
3519
|
-
"text-anchor": "end",
|
|
3520
|
-
fill: e.color,
|
|
3521
|
-
innerHTML: v(il)({
|
|
3522
|
-
content: e.name,
|
|
3523
|
-
fontSize: x.value.plotLabels,
|
|
3524
|
-
fill: e.color,
|
|
3525
|
-
x: a.x - x.value.plotLabels,
|
|
3526
|
-
y: a.y,
|
|
3527
|
-
maxWords: 2
|
|
3528
|
-
}),
|
|
3529
|
-
style: w(`opacity:${C.value ? C.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
3530
|
-
}, null, 12, si)) : h("", !0),
|
|
3531
|
-
a && n === e.plots.length - 1 && e.showSerieName && e.showSerieName === "end" ? (i(), r("text", {
|
|
3532
|
-
key: 1,
|
|
3533
|
-
x: a.x + x.value.plotLabels,
|
|
3534
|
-
y: a.y,
|
|
3535
|
-
"font-size": x.value.plotLabels,
|
|
3536
|
-
"text-anchor": "start",
|
|
3537
|
-
fill: e.color,
|
|
3538
|
-
innerHTML: v(il)({
|
|
3539
|
-
content: e.name,
|
|
3540
|
-
fontSize: x.value.plotLabels,
|
|
3541
|
-
fill: e.color,
|
|
3542
|
-
x: a.x + x.value.plotLabels,
|
|
3543
|
-
y: a.y,
|
|
3544
|
-
maxWords: 2
|
|
3545
|
-
}),
|
|
3546
|
-
style: w(`opacity:${C.value ? C.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
3547
|
-
}, null, 12, ni)) : h("", !0)
|
|
3548
|
-
], 64))), 128))
|
|
3549
|
-
], 64))), 128)),
|
|
3550
|
-
(i(!0), r(d, null, k(ge.value, (e, s) => (i(), r(d, {
|
|
3551
|
-
key: `xLabel_plot_${e.id}`
|
|
3552
|
-
}, [
|
|
3553
|
-
(i(!0), r(d, null, k(e.plots, (a, n) => (i(), r(d, {
|
|
3554
|
-
key: `xLabel_plot_${s}_${n}`
|
|
3555
|
-
}, [
|
|
3556
|
-
a && n === 0 && e.showSerieName && e.showSerieName === "start" ? (i(), r("text", {
|
|
3557
|
-
key: 0,
|
|
3558
|
-
x: a.x - x.value.plotLabels,
|
|
3559
|
-
y: a.y,
|
|
3560
|
-
"font-size": x.value.plotLabels,
|
|
3561
|
-
"text-anchor": "end",
|
|
3562
|
-
fill: e.color,
|
|
3563
|
-
innerHTML: v(il)({
|
|
3564
|
-
content: e.name,
|
|
3565
|
-
fontSize: x.value.plotLabels,
|
|
3566
|
-
fill: e.color,
|
|
3567
|
-
x: a.x - x.value.plotLabels,
|
|
3568
|
-
y: a.y,
|
|
3569
|
-
maxWords: 2
|
|
3570
|
-
}),
|
|
3571
|
-
style: w(`opacity:${C.value ? C.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
3572
|
-
}, null, 12, ii)) : h("", !0),
|
|
3573
|
-
a && n === e.plots.length - 1 && e.showSerieName && e.showSerieName === "end" ? (i(), r("text", {
|
|
3574
|
-
key: 1,
|
|
3575
|
-
x: a.x + x.value.plotLabels,
|
|
3576
|
-
y: a.y,
|
|
3577
|
-
"font-size": x.value.plotLabels,
|
|
3578
|
-
"text-anchor": "start",
|
|
3579
|
-
fill: e.color,
|
|
3580
|
-
innerHTML: v(il)({
|
|
3581
|
-
content: e.name,
|
|
3582
|
-
fontSize: x.value.plotLabels,
|
|
3583
|
-
fill: e.color,
|
|
3584
|
-
x: a.x + x.value.plotLabels,
|
|
3585
|
-
y: a.y,
|
|
3586
|
-
maxWords: 2
|
|
3587
|
-
}),
|
|
3588
|
-
style: w(`opacity:${C.value ? C.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
3589
|
-
}, null, 12, ri)) : h("", !0)
|
|
3590
|
-
], 64))), 128))
|
|
3591
|
-
], 64))), 128)),
|
|
3592
|
-
(i(!0), r(d, null, k([
|
|
3593
|
-
...ge.value,
|
|
3594
|
-
...ue.value,
|
|
3595
|
-
...ke.value
|
|
3596
|
-
], (e, s) => (i(), r(d, {
|
|
3597
|
-
key: `progression-${s}`
|
|
3598
|
-
}, [
|
|
3599
|
-
Object.hasOwn(e, "useProgression") && e.useProgression === !0 && !isNaN(
|
|
3600
|
-
v(Se)(e.plots).trend
|
|
3601
|
-
) ? (i(), r("g", ci, [
|
|
3602
|
-
y("defs", null, [
|
|
3603
|
-
y("marker", {
|
|
3604
|
-
id: `progression_arrow_${s}`,
|
|
3605
|
-
markerWidth: "9",
|
|
3606
|
-
markerHeight: "9",
|
|
3607
|
-
viewBox: "-1 -1 9 9",
|
|
3608
|
-
markerUnits: "userSpaceOnUse",
|
|
3609
|
-
refX: "7",
|
|
3610
|
-
refY: 7 / 2,
|
|
3611
|
-
orient: "auto",
|
|
3612
|
-
overflow: "visible"
|
|
3613
|
-
}, [
|
|
3614
|
-
y("polygon", {
|
|
3615
|
-
points: "0,0 7,3.5 0,7",
|
|
3616
|
-
fill: e.color,
|
|
3617
|
-
stroke: t.value.chart.backgroundColor,
|
|
3618
|
-
"stroke-width": "1",
|
|
3619
|
-
"stroke-linejoin": "round"
|
|
3620
|
-
}, null, 8, di)
|
|
3621
|
-
], 8, vi)
|
|
3622
|
-
]),
|
|
3623
|
-
e.plots.length > 1 ? (i(), r("line", {
|
|
3624
|
-
key: 0,
|
|
3625
|
-
x1: v(Se)(e.plots).x1 + (e.type === "bar" ? Be() : 0),
|
|
3626
|
-
x2: v(Se)(e.plots).x2 + (e.type === "bar" ? Be() : 0),
|
|
3627
|
-
y1: v(W)(
|
|
3628
|
-
v(Se)(e.plots).y1
|
|
3629
|
-
),
|
|
3630
|
-
y2: v(W)(
|
|
3631
|
-
v(Se)(e.plots).y2
|
|
3632
|
-
),
|
|
3633
|
-
"stroke-width": 1,
|
|
3634
|
-
stroke: t.value.chart.backgroundColor,
|
|
3635
|
-
"stroke-dasharray": 2,
|
|
3636
|
-
"stroke-linecap": "round",
|
|
3637
|
-
"stroke-linejoin": "round",
|
|
3638
|
-
"marker-end": `url(#progression_arrow_${s})`
|
|
3639
|
-
}, null, 8, hi)) : h("", !0),
|
|
3640
|
-
e.plots.length > 1 ? (i(), r("line", {
|
|
3641
|
-
key: 1,
|
|
3642
|
-
x1: v(Se)(e.plots).x1 + (e.type === "bar" ? Be() : 0),
|
|
3643
|
-
x2: v(Se)(e.plots).x2 + (e.type === "bar" ? Be() : 0),
|
|
3644
|
-
y1: v(W)(
|
|
3645
|
-
v(Se)(e.plots).y1
|
|
3646
|
-
),
|
|
3647
|
-
y2: v(W)(
|
|
3648
|
-
v(Se)(e.plots).y2
|
|
3649
|
-
),
|
|
3650
|
-
"stroke-width": 1,
|
|
3651
|
-
stroke: e.color,
|
|
3652
|
-
"stroke-dasharray": 2,
|
|
3653
|
-
"stroke-linecap": "round",
|
|
3654
|
-
"stroke-linejoin": "round",
|
|
3655
|
-
"marker-end": `url(#progression_arrow_${s})`
|
|
3656
|
-
}, null, 8, fi)) : h("", !0),
|
|
3657
|
-
e.plots.length > 1 ? (i(), r("text", {
|
|
3658
|
-
key: 2,
|
|
3659
|
-
"text-anchor": "middle",
|
|
3660
|
-
x: v(Se)(e.plots).x2 + (e.type === "bar" ? Be() : 0),
|
|
3661
|
-
y: v(Se)(e.plots).y2 - 12,
|
|
3662
|
-
"font-size": x.value.plotLabels,
|
|
3663
|
-
fill: e.color,
|
|
3664
|
-
stroke: t.value.chart.backgroundColor,
|
|
3665
|
-
"stroke-width": 4,
|
|
3666
|
-
"stroke-linecap": "round",
|
|
3667
|
-
"stroke-linejoin": "round",
|
|
3668
|
-
"paint-order": "stroke fill"
|
|
3669
|
-
}, se(v(Pe)({
|
|
3670
|
-
v: v(Se)(
|
|
3671
|
-
e.plots
|
|
3672
|
-
).trend * 100,
|
|
3673
|
-
s: "%",
|
|
3674
|
-
r: 2
|
|
3675
|
-
})), 9, mi)) : h("", !0)
|
|
3676
|
-
])) : h("", !0)
|
|
3677
|
-
], 64))), 128)),
|
|
3678
|
-
f.value.useIndividualScale && !f.value.isStacked ? (i(), r(d, { key: 13 }, [
|
|
3679
|
-
y("defs", null, [
|
|
3680
|
-
(i(!0), r(d, null, k(At.value, (e, s) => (i(), r("linearGradient", {
|
|
3681
|
-
id: `individual_scale_gradient_${z.value}_${s}`,
|
|
3682
|
-
x1: "0%",
|
|
3683
|
-
x2: "100%",
|
|
3684
|
-
y1: "0%",
|
|
3685
|
-
y2: "0%"
|
|
3686
|
-
}, [
|
|
3687
|
-
y("stop", {
|
|
3688
|
-
offset: "0%",
|
|
3689
|
-
"stop-color": t.value.chart.backgroundColor,
|
|
3690
|
-
"stop-opacity": "0"
|
|
3691
|
-
}, null, 8, bi),
|
|
3692
|
-
y("stop", {
|
|
3693
|
-
offset: "100%",
|
|
3694
|
-
"stop-color": e.color,
|
|
3695
|
-
"stop-opacity": "0.2"
|
|
3696
|
-
}, null, 8, pi)
|
|
3697
|
-
], 8, gi))), 256))
|
|
3698
|
-
]),
|
|
3699
|
-
(i(!0), r(d, null, k(At.value, (e, s) => (i(), r("rect", {
|
|
3700
|
-
x: e.x - t.value.chart.grid.labels.yAxis.labelWidth + q.value - c.value.individualOffsetX,
|
|
3701
|
-
y: c.value?.top,
|
|
3702
|
-
width: t.value.chart.grid.labels.yAxis.labelWidth + c.value.individualOffsetX,
|
|
3703
|
-
height: c.value.height < 0 ? 10 : c.value.height,
|
|
3704
|
-
fill: C.value === e.groupId ? `url(#individual_scale_gradient_${z.value}_${s})` : "transparent",
|
|
3705
|
-
onMouseenter: (a) => C.value = e.groupId,
|
|
3706
|
-
onMouseleave: o[0] || (o[0] = (a) => C.value = null)
|
|
3707
|
-
}, null, 40, yi))), 256))
|
|
3708
|
-
], 64)) : h("", !0),
|
|
3709
|
-
y("g", null, [
|
|
3710
|
-
t.value.chart.grid.labels.axis.yLabel && !f.value.useIndividualScale ? (i(), r("text", {
|
|
3711
|
-
key: 0,
|
|
3712
|
-
ref_key: "yAxisLabel",
|
|
3713
|
-
ref: dl,
|
|
3714
|
-
"font-size": x.value.yAxis,
|
|
3715
|
-
fill: t.value.chart.grid.labels.color,
|
|
3716
|
-
transform: `translate(${t.value.chart.grid.labels.axis.fontSize}, ${c.value?.top + c.value.height / 2}) rotate(-90)`,
|
|
3717
|
-
"text-anchor": "middle",
|
|
3718
|
-
style: { transition: "none" }
|
|
3719
|
-
}, se(t.value.chart.grid.labels.axis.yLabel), 9, xi)) : h("", !0),
|
|
3720
|
-
t.value.chart.grid.labels.axis.xLabel ? (i(), r("text", {
|
|
3721
|
-
key: 1,
|
|
3722
|
-
ref_key: "xAxisLabel",
|
|
3723
|
-
ref: vl,
|
|
3724
|
-
"text-anchor": "middle",
|
|
3725
|
-
x: ee.value / 2,
|
|
3726
|
-
y: fe.value - 3,
|
|
3727
|
-
"font-size": x.value.yAxis,
|
|
3728
|
-
fill: t.value.chart.grid.labels.color
|
|
3729
|
-
}, se(t.value.chart.grid.labels.axis.xLabel), 9, ki)) : h("", !0)
|
|
3730
|
-
]),
|
|
3731
|
-
t.value.chart.grid.labels.xAxisLabels.show ? (i(), r("g", {
|
|
3732
|
-
key: 14,
|
|
3733
|
-
ref_key: "timeLabelsEls",
|
|
3734
|
-
ref: Ft
|
|
3735
|
-
}, [
|
|
3736
|
-
l.$slots["time-label"] ? (i(!0), r(d, { key: 0 }, k(Kt.value, (e, s) => O(l.$slots, "time-label", Qe({
|
|
3737
|
-
key: `time_label_${e.id}`,
|
|
3738
|
-
ref_for: !0
|
|
3739
|
-
}, {
|
|
3740
|
-
x: c.value?.left + c.value.width / $.value * s + c.value.width / $.value / 2,
|
|
3741
|
-
y: c.value?.bottom,
|
|
3742
|
-
fontSize: x.value.xAxis,
|
|
3743
|
-
fill: t.value.chart.grid.labels.xAxisLabels.color,
|
|
3744
|
-
transform: `translate(${c.value?.left + c.value.width / $.value * s + c.value.width / $.value / 2}, ${c.value?.bottom + x.value.xAxis * 1.3 + t.value.chart.grid.labels.xAxisLabels.yOffset}), rotate(${t.value.chart.grid.labels.xAxisLabels.rotation})`,
|
|
3745
|
-
absoluteIndex: e.absoluteIndex,
|
|
3746
|
-
content: e.text,
|
|
3747
|
-
textAnchor: t.value.chart.grid.labels.xAxisLabels.rotation > 0 ? "start" : t.value.chart.grid.labels.xAxisLabels.rotation < 0 ? "end" : "middle",
|
|
3748
|
-
show: e && e.text
|
|
3749
|
-
}), void 0, !0)), 128)) : (i(!0), r(d, { key: 1 }, k(Kt.value, (e, s) => (i(), r("g", {
|
|
3750
|
-
key: `time_label_${s}`
|
|
3751
|
-
}, [
|
|
3752
|
-
e && e.text ? (i(), r(d, { key: 0 }, [
|
|
3753
|
-
String(e.text).includes(
|
|
3754
|
-
`
|
|
3755
|
-
`
|
|
3756
|
-
) ? (i(), r("text", {
|
|
3757
|
-
key: 1,
|
|
3758
|
-
class: "vue-data-ui-time-label",
|
|
3759
|
-
"text-anchor": t.value.chart.grid.labels.xAxisLabels.rotation > 0 ? "start" : t.value.chart.grid.labels.xAxisLabels.rotation < 0 ? "end" : "middle",
|
|
3760
|
-
"font-size": x.value.xAxis,
|
|
3761
|
-
fill: t.value.chart.grid.labels.xAxisLabels.color,
|
|
3762
|
-
transform: `translate(${c.value?.left + c.value.width / $.value * s + c.value.width / $.value / 2}, ${c.value?.bottom + x.value.xAxis * 1.5}), rotate(${t.value.chart.grid.labels.xAxisLabels.rotation})`,
|
|
3763
|
-
style: w({
|
|
3764
|
-
cursor: ha() && Xe.value ? "pointer" : "default"
|
|
3765
|
-
}),
|
|
3766
|
-
innerHTML: v(ju)({
|
|
3767
|
-
content: String(e.text),
|
|
3768
|
-
fontSize: x.value.xAxis,
|
|
3769
|
-
fill: t.value.chart.grid.labels.xAxisLabels.color,
|
|
3770
|
-
x: 0,
|
|
3771
|
-
y: 0
|
|
3772
|
-
}),
|
|
3773
|
-
onClick: () => pa(e, s)
|
|
3774
|
-
}, null, 12, wi)) : (i(), r("text", {
|
|
3775
|
-
key: 0,
|
|
3776
|
-
class: "vue-data-ui-time-label",
|
|
3777
|
-
"text-anchor": t.value.chart.grid.labels.xAxisLabels.rotation > 0 ? "start" : t.value.chart.grid.labels.xAxisLabels.rotation < 0 ? "end" : "middle",
|
|
3778
|
-
"font-size": x.value.xAxis,
|
|
3779
|
-
fill: t.value.chart.grid.labels.xAxisLabels.color,
|
|
3780
|
-
transform: `translate(${c.value?.left + c.value.width / $.value * s + c.value.width / $.value / 2}, ${c.value?.bottom + x.value.xAxis * 1.5}), rotate(${t.value.chart.grid.labels.xAxisLabels.rotation})`,
|
|
3781
|
-
style: w({
|
|
3782
|
-
cursor: ha() && Xe.value ? "pointer" : "default"
|
|
3783
|
-
}),
|
|
3784
|
-
onClick: () => pa(e, s)
|
|
3785
|
-
}, se(e.text || ""), 13, _i))
|
|
3786
|
-
], 64)) : h("", !0)
|
|
3787
|
-
]))), 128))
|
|
3788
|
-
], 512)) : h("", !0),
|
|
3789
|
-
Va.value.length && !f.value.isStacked ? (i(), r("g", Si, [
|
|
3790
|
-
(i(!0), r(d, null, k(Va.value, (e) => (i(), r("g", {
|
|
3791
|
-
key: e.uid
|
|
3792
|
-
}, [
|
|
3793
|
-
e.yTop && e.show && isFinite(e.yTop) ? (i(), r("line", {
|
|
3794
|
-
key: 0,
|
|
3795
|
-
x1: e.x1,
|
|
3796
|
-
y1: e.yTop,
|
|
3797
|
-
x2: e.x2,
|
|
3798
|
-
y2: e.yTop,
|
|
3799
|
-
stroke: e.config.line.stroke,
|
|
3800
|
-
"stroke-width": e.config.line.strokeWidth,
|
|
3801
|
-
"stroke-dasharray": e.config.line.strokeDasharray,
|
|
3802
|
-
"stroke-linecap": "round",
|
|
3803
|
-
style: { animation: "none !important" }
|
|
3804
|
-
}, null, 8, $i)) : h("", !0),
|
|
3805
|
-
e.yBottom && e.show && isFinite(e.yBottom) ? (i(), r("line", {
|
|
3806
|
-
key: 1,
|
|
3807
|
-
x1: e.x1,
|
|
3808
|
-
y1: e.yBottom,
|
|
3809
|
-
x2: e.x2,
|
|
3810
|
-
y2: e.yBottom,
|
|
3811
|
-
stroke: e.config.line.stroke,
|
|
3812
|
-
"stroke-width": e.config.line.strokeWidth,
|
|
3813
|
-
"stroke-dasharray": e.config.line.strokeDasharray,
|
|
3814
|
-
"stroke-linecap": "round",
|
|
3815
|
-
style: { animation: "none !important" }
|
|
3816
|
-
}, null, 8, Li)) : h("", !0),
|
|
3817
|
-
e.hasArea && e.show && isFinite(e.yTop) && isFinite(e.yBottom) ? (i(), r("rect", {
|
|
3818
|
-
key: 2,
|
|
3819
|
-
y: Math.min(
|
|
3820
|
-
e.yTop,
|
|
3821
|
-
e.yBottom
|
|
3822
|
-
),
|
|
3823
|
-
x: e.x1,
|
|
3824
|
-
width: c.value.width,
|
|
3825
|
-
height: v(N)(e.areaHeight, 0),
|
|
3826
|
-
fill: v(Ce)(
|
|
3827
|
-
e.config.area.fill,
|
|
3828
|
-
e.config.area.opacity
|
|
3829
|
-
),
|
|
3830
|
-
style: { animation: "none !important" }
|
|
3831
|
-
}, null, 8, Mi)) : h("", !0),
|
|
3832
|
-
e.config.label.text && e.show && isFinite(e._box.y) ? (i(), r("rect", Qe({
|
|
3833
|
-
key: 3,
|
|
3834
|
-
class: "vue-ui-xy-annotation-label-box"
|
|
3835
|
-
}, { ref_for: !0 }, e._box, { style: {
|
|
3836
|
-
animation: "none !important",
|
|
3837
|
-
transition: "none !important"
|
|
3838
|
-
} }), null, 16)) : h("", !0),
|
|
3839
|
-
e.config.label.text && e.show && isFinite(e._text.y) ? (i(), r("text", {
|
|
3840
|
-
key: 4,
|
|
3841
|
-
id: e.id,
|
|
3842
|
-
class: "vue-ui-xy-annotation-label",
|
|
3843
|
-
x: e._text.x,
|
|
3844
|
-
y: e._text.y,
|
|
3845
|
-
"font-size": e.config.label.fontSize,
|
|
3846
|
-
fill: e.config.label.color,
|
|
3847
|
-
"text-anchor": e.config.label.textAnchor
|
|
3848
|
-
}, se(e.config.label.text), 9, Ai)) : h("", !0)
|
|
3849
|
-
]))), 128))
|
|
3850
|
-
])) : h("", !0),
|
|
3851
|
-
t.value.chart.timeTag.show && (![null, void 0].includes(
|
|
3852
|
-
_.value
|
|
3853
|
-
) || ![null, void 0].includes(
|
|
3854
|
-
P.value
|
|
3855
|
-
)) ? (i(), r("g", Ci, [
|
|
3856
|
-
(i(), r("foreignObject", {
|
|
3857
|
-
x: xu(),
|
|
3858
|
-
y: c.value?.bottom,
|
|
3859
|
-
width: "200",
|
|
3860
|
-
height: "40",
|
|
3861
|
-
style: { overflow: "visible !important" }
|
|
3862
|
-
}, [
|
|
3863
|
-
y("div", {
|
|
3864
|
-
ref_key: "timeTagEl",
|
|
3865
|
-
ref: Ka,
|
|
3866
|
-
class: "vue-ui-xy-time-tag",
|
|
3867
|
-
style: w(`width: fit-content;margin: 0 auto;text-align:center;padding:3px 12px;background:${t.value.chart.timeTag.backgroundColor};color:${t.value.chart.timeTag.color};font-size:${t.value.chart.timeTag.fontSize}px`),
|
|
3868
|
-
innerHTML: ku.value
|
|
3869
|
-
}, null, 12, zi)
|
|
3870
|
-
], 8, Ti)),
|
|
3871
|
-
y("circle", {
|
|
3872
|
-
cx: c.value?.left + c.value.width / $.value * ((_.value !== null ? _.value : 0) || (P.value !== null ? P.value : 0)) + c.value.width / $.value / 2,
|
|
3873
|
-
cy: c.value?.bottom,
|
|
3874
|
-
r: t.value.chart.timeTag.circleMarker.radius,
|
|
3875
|
-
fill: t.value.chart.timeTag.circleMarker.color
|
|
3876
|
-
}, null, 8, Ii)
|
|
3877
|
-
])) : h("", !0)
|
|
3878
|
-
])) : h("", !0),
|
|
3879
|
-
oa.value ? (i(), r("rect", Qe({ key: 2 }, Ro.value, {
|
|
3880
|
-
"data-start": m.value.start,
|
|
3881
|
-
"data-end": m.value.end
|
|
3882
|
-
}), null, 16, Pi)) : h("", !0),
|
|
3883
|
-
O(l.$slots, "svg", {
|
|
3884
|
-
svg: {
|
|
3885
|
-
...Oo.value,
|
|
3886
|
-
isPrintingImg: v(Et) | v(_l) | Ht.value,
|
|
3887
|
-
isPrintingSvg: Dt.value,
|
|
3888
|
-
data: [...ue.value, ...ke.value, ...ge.value],
|
|
3889
|
-
drawingArea: c.value
|
|
3890
|
-
}
|
|
3891
|
-
}, void 0, !0)
|
|
3892
|
-
], 512)
|
|
3893
|
-
], 46, $s)),
|
|
3894
|
-
l.$slots.hint ? (i(), r("div", Oi, [
|
|
3895
|
-
O(l.$slots, "hint", ve(de({
|
|
3896
|
-
hint: t.value.a11y.translations.keyboardNavigation,
|
|
3897
|
-
isVisible: zl.value
|
|
3898
|
-
})), void 0, !0)
|
|
3899
|
-
])) : h("", !0)
|
|
3900
|
-
]),
|
|
3901
|
-
l.$slots.watermark ? (i(), r("div", Ni, [
|
|
3902
|
-
O(l.$slots, "watermark", ve(de({
|
|
3903
|
-
isPrinting: v(Et) || v(_l) || Ht.value || Dt.value
|
|
3904
|
-
})), void 0, !0)
|
|
3905
|
-
])) : h("", !0),
|
|
3906
|
-
(i(!0), r(d, null, k(ue.value, (e, s) => (i(), r(d, {
|
|
3907
|
-
key: `tag_line_${e.id}`
|
|
3908
|
-
}, [
|
|
3909
|
-
(i(!0), r(d, null, k(e.plots, (a, n) => (i(), r(d, {
|
|
3910
|
-
key: `tag_line_${s}_${n}`
|
|
3911
|
-
}, [
|
|
3912
|
-
[
|
|
3913
|
-
P.value,
|
|
3914
|
-
_.value,
|
|
3915
|
-
Ye.value
|
|
3916
|
-
].includes(n) && e.useTag && e.useTag === "end" && t.value.line.tag.followValue ? (i(), r("div", {
|
|
3917
|
-
key: 0,
|
|
3918
|
-
ref_for: !0,
|
|
3919
|
-
ref: (u) => qt(s, n, u, "right", "line"),
|
|
3920
|
-
class: "vue-ui-xy-tag",
|
|
3921
|
-
"data-tag": "right",
|
|
3922
|
-
style: w({
|
|
3923
|
-
position: "fixed",
|
|
3924
|
-
top: v(De)({
|
|
3925
|
-
svgElement: ae.value,
|
|
3926
|
-
x: c.value?.right + t.value.line.tag.fontSize / 1.5,
|
|
3927
|
-
y: a.y,
|
|
3928
|
-
element: Oe.value[`${s}_${n}_right_line`],
|
|
3929
|
-
position: "right"
|
|
3930
|
-
})?.top + "px",
|
|
3931
|
-
left: v(De)({
|
|
3932
|
-
svgElement: ae.value,
|
|
3933
|
-
x: c.value?.right + t.value.line.tag.fontSize / 1.5,
|
|
3934
|
-
y: a.y,
|
|
3935
|
-
element: Oe.value[`${s}_${n}_right_line`],
|
|
3936
|
-
position: "right"
|
|
3937
|
-
})?.left + "px",
|
|
3938
|
-
height: "fit-content",
|
|
3939
|
-
width: "fit-content",
|
|
3940
|
-
background: e.color,
|
|
3941
|
-
color: v(He)(e.color),
|
|
3942
|
-
padding: "0 6px",
|
|
3943
|
-
fontSize: t.value.line.tag.fontSize + "px",
|
|
3944
|
-
opacity: 1
|
|
3945
|
-
})
|
|
3946
|
-
}, [
|
|
3947
|
-
(i(), r("svg", Fi, [
|
|
3948
|
-
y("path", {
|
|
3949
|
-
d: "M 0,10 10,0 10,20 Z",
|
|
3950
|
-
fill: e.color,
|
|
3951
|
-
stroke: "none"
|
|
3952
|
-
}, null, 8, Vi)
|
|
3953
|
-
])),
|
|
3954
|
-
y("div", {
|
|
3955
|
-
class: "vue-ui-xy-tag-content",
|
|
3956
|
-
innerHTML: v(he)(
|
|
3957
|
-
t.value.line.tag.formatter,
|
|
3958
|
-
a.value,
|
|
3959
|
-
e.name,
|
|
3960
|
-
{
|
|
3961
|
-
datapoint: a,
|
|
3962
|
-
seriesIndex: n,
|
|
3963
|
-
serieName: e.name
|
|
3964
|
-
}
|
|
3965
|
-
)
|
|
3966
|
-
}, null, 8, Bi)
|
|
3967
|
-
], 4)) : h("", !0),
|
|
3968
|
-
[
|
|
3969
|
-
P.value,
|
|
3970
|
-
_.value,
|
|
3971
|
-
Ye.value
|
|
3972
|
-
].includes(n) && e.useTag && e.useTag === "start" && t.value.line.tag.followValue ? (i(), r("div", {
|
|
3973
|
-
key: 1,
|
|
3974
|
-
ref_for: !0,
|
|
3975
|
-
ref: (u) => qt(s, n, u, "left", "line"),
|
|
3976
|
-
class: "vue-ui-xy-tag",
|
|
3977
|
-
"data-tag": "left",
|
|
3978
|
-
style: w({
|
|
3979
|
-
position: "fixed",
|
|
3980
|
-
top: v(De)({
|
|
3981
|
-
svgElement: ae.value,
|
|
3982
|
-
x: c.value?.left - t.value.line.tag.fontSize / 1.5,
|
|
3983
|
-
y: a.y,
|
|
3984
|
-
element: Oe.value[`${s}_${n}_left_line`],
|
|
3985
|
-
position: "left"
|
|
3986
|
-
})?.top + "px",
|
|
3987
|
-
left: v(De)({
|
|
3988
|
-
svgElement: ae.value,
|
|
3989
|
-
x: c.value?.left - t.value.line.tag.fontSize / 1.5,
|
|
3990
|
-
y: a.y,
|
|
3991
|
-
element: Oe.value[`${s}_${n}_left_line`],
|
|
3992
|
-
position: "left"
|
|
3993
|
-
})?.left + "px",
|
|
3994
|
-
height: "fit-content",
|
|
3995
|
-
width: "fit-content",
|
|
3996
|
-
background: e.color,
|
|
3997
|
-
color: v(He)(e.color),
|
|
3998
|
-
padding: "0 6px",
|
|
3999
|
-
fontSize: t.value.line.tag.fontSize + "px",
|
|
4000
|
-
opacity: 1
|
|
4001
|
-
})
|
|
4002
|
-
}, [
|
|
4003
|
-
(i(), r("svg", Ri, [
|
|
4004
|
-
y("path", {
|
|
4005
|
-
d: "M 0,0 10,10 0,20 Z",
|
|
4006
|
-
fill: e.color,
|
|
4007
|
-
stroke: "none"
|
|
4008
|
-
}, null, 8, Hi)
|
|
4009
|
-
])),
|
|
4010
|
-
y("div", {
|
|
4011
|
-
class: "vue-ui-xy-tag-content",
|
|
4012
|
-
innerHTML: v(he)(
|
|
4013
|
-
t.value.line.tag.formatter,
|
|
4014
|
-
a.value,
|
|
4015
|
-
e.name,
|
|
4016
|
-
{
|
|
4017
|
-
datapoint: a,
|
|
4018
|
-
seriesIndex: n,
|
|
4019
|
-
serieName: e.name
|
|
4020
|
-
}
|
|
4021
|
-
)
|
|
4022
|
-
}, null, 8, Di)
|
|
4023
|
-
], 4)) : h("", !0)
|
|
4024
|
-
], 64))), 128))
|
|
4025
|
-
], 64))), 128)),
|
|
4026
|
-
(i(!0), r(d, null, k(ge.value, (e, s) => (i(), r(d, {
|
|
4027
|
-
key: `tag_plot_${e.id}`
|
|
4028
|
-
}, [
|
|
4029
|
-
(i(!0), r(d, null, k(e.plots, (a, n) => (i(), r(d, {
|
|
4030
|
-
key: `tag_plot_${s}_${n}`
|
|
4031
|
-
}, [
|
|
4032
|
-
[
|
|
4033
|
-
P.value,
|
|
4034
|
-
_.value,
|
|
4035
|
-
Ye.value
|
|
4036
|
-
].includes(n) && e.useTag && e.useTag === "end" && t.value.plot.tag.followValue ? (i(), r("div", {
|
|
4037
|
-
key: 0,
|
|
4038
|
-
ref_for: !0,
|
|
4039
|
-
ref: (u) => qt(s, n, u, "right", "plot"),
|
|
4040
|
-
class: "vue-ui-xy-tag",
|
|
4041
|
-
"data-tag": "right",
|
|
4042
|
-
style: w({
|
|
4043
|
-
position: "fixed",
|
|
4044
|
-
top: v(De)({
|
|
4045
|
-
svgElement: ae.value,
|
|
4046
|
-
x: c.value?.right + t.value.plot.tag.fontSize / 1.5,
|
|
4047
|
-
y: a.y,
|
|
4048
|
-
element: Oe.value[`${s}_${n}_right_plot`],
|
|
4049
|
-
position: "right"
|
|
4050
|
-
})?.top + "px",
|
|
4051
|
-
left: v(De)({
|
|
4052
|
-
svgElement: ae.value,
|
|
4053
|
-
x: c.value?.right + t.value.plot.tag.fontSize / 1.5,
|
|
4054
|
-
y: a.y,
|
|
4055
|
-
element: Oe.value[`${s}_${n}_right_plot`],
|
|
4056
|
-
position: "right"
|
|
4057
|
-
})?.left + "px",
|
|
4058
|
-
height: "fit-content",
|
|
4059
|
-
width: "fit-content",
|
|
4060
|
-
background: e.color,
|
|
4061
|
-
color: v(He)(e.color),
|
|
4062
|
-
padding: "0 6px",
|
|
4063
|
-
fontSize: t.value.plot.tag.fontSize + "px",
|
|
4064
|
-
opacity: 1
|
|
4065
|
-
})
|
|
4066
|
-
}, [
|
|
4067
|
-
(i(), r("svg", Wi, [
|
|
4068
|
-
y("path", {
|
|
4069
|
-
d: "M 0,10 10,0 10,20 Z",
|
|
4070
|
-
fill: e.color,
|
|
4071
|
-
stroke: "none"
|
|
4072
|
-
}, null, 8, Ei)
|
|
4073
|
-
])),
|
|
4074
|
-
y("div", {
|
|
4075
|
-
class: "vue-ui-xy-tag-content",
|
|
4076
|
-
innerHTML: v(he)(
|
|
4077
|
-
t.value.plot.tag.formatter,
|
|
4078
|
-
a.value,
|
|
4079
|
-
e.name,
|
|
4080
|
-
{
|
|
4081
|
-
datapoint: a,
|
|
4082
|
-
seriesIndex: n,
|
|
4083
|
-
serieName: e.name
|
|
4084
|
-
}
|
|
4085
|
-
)
|
|
4086
|
-
}, null, 8, Yi)
|
|
4087
|
-
], 4)) : h("", !0),
|
|
4088
|
-
[
|
|
4089
|
-
P.value,
|
|
4090
|
-
_.value,
|
|
4091
|
-
Ye.value
|
|
4092
|
-
].includes(n) && e.useTag && e.useTag === "start" && t.value.plot.tag.followValue ? (i(), r("div", {
|
|
4093
|
-
key: 1,
|
|
4094
|
-
ref_for: !0,
|
|
4095
|
-
ref: (u) => qt(s, n, u, "left", "plot"),
|
|
4096
|
-
class: "vue-ui-xy-tag",
|
|
4097
|
-
"data-tag": "left",
|
|
4098
|
-
style: w({
|
|
4099
|
-
position: "fixed",
|
|
4100
|
-
top: v(De)({
|
|
4101
|
-
svgElement: ae.value,
|
|
4102
|
-
x: c.value?.left - t.value.plot.tag.fontSize / 1.5,
|
|
4103
|
-
y: a.y,
|
|
4104
|
-
element: Oe.value[`${s}_${n}_left_plot`],
|
|
4105
|
-
position: "left"
|
|
4106
|
-
})?.top + "px",
|
|
4107
|
-
left: v(De)({
|
|
4108
|
-
svgElement: ae.value,
|
|
4109
|
-
x: c.value?.left - t.value.plot.tag.fontSize / 1.5,
|
|
4110
|
-
y: a.y,
|
|
4111
|
-
element: Oe.value[`${s}_${n}_left_plot`],
|
|
4112
|
-
position: "left"
|
|
4113
|
-
})?.left + "px",
|
|
4114
|
-
height: "fit-content",
|
|
4115
|
-
width: "fit-content",
|
|
4116
|
-
background: e.color,
|
|
4117
|
-
color: v(He)(e.color),
|
|
4118
|
-
padding: "0 6px",
|
|
4119
|
-
fontSize: t.value.plot.tag.fontSize + "px",
|
|
4120
|
-
opacity: 1
|
|
4121
|
-
})
|
|
4122
|
-
}, [
|
|
4123
|
-
(i(), r("svg", Xi, [
|
|
4124
|
-
y("path", {
|
|
4125
|
-
d: "M 0,0 10,10 0,20 Z",
|
|
4126
|
-
fill: e.color,
|
|
4127
|
-
stroke: "none"
|
|
4128
|
-
}, null, 8, Gi)
|
|
4129
|
-
])),
|
|
4130
|
-
y("div", {
|
|
4131
|
-
class: "vue-ui-xy-tag-content",
|
|
4132
|
-
innerHTML: v(he)(
|
|
4133
|
-
t.value.plot.tag.formatter,
|
|
4134
|
-
a.value,
|
|
4135
|
-
e.name,
|
|
4136
|
-
{
|
|
4137
|
-
datapoint: a,
|
|
4138
|
-
seriesIndex: n,
|
|
4139
|
-
serieName: e.name
|
|
4140
|
-
}
|
|
4141
|
-
)
|
|
4142
|
-
}, null, 8, qi)
|
|
4143
|
-
], 4)) : h("", !0)
|
|
4144
|
-
], 64))), 128))
|
|
4145
|
-
], 64))), 128)),
|
|
4146
|
-
t.value.chart.zoom.show && ze.value > 6 && xl.value && ka.value ? (i(), _e(gs, {
|
|
4147
|
-
key: 6,
|
|
4148
|
-
ref_key: "chartSlicer",
|
|
4149
|
-
ref: Te,
|
|
4150
|
-
uuid: z.value,
|
|
4151
|
-
allMinimaps: gu.value,
|
|
4152
|
-
background: t.value.chart.zoom.color,
|
|
4153
|
-
borderColor: t.value.chart.backgroundColor,
|
|
4154
|
-
customFormat: t.value.chart.zoom.customFormat,
|
|
4155
|
-
cutNullValues: t.value.line.cutNullValues,
|
|
4156
|
-
enableRangeHandles: t.value.chart.zoom.enableRangeHandles,
|
|
4157
|
-
enableSelectionDrag: t.value.chart.zoom.enableSelectionDrag,
|
|
4158
|
-
end: m.value.end,
|
|
4159
|
-
focusOnDrag: t.value.chart.zoom.focusOnDrag,
|
|
4160
|
-
focusRangeRatio: t.value.chart.zoom.focusRangeRatio,
|
|
4161
|
-
fontSize: t.value.chart.zoom.fontSize,
|
|
4162
|
-
useResetSlot: t.value.chart.zoom.useResetSlot,
|
|
4163
|
-
immediate: !t.value.chart.zoom.preview.enable,
|
|
4164
|
-
inputColor: t.value.chart.zoom.color,
|
|
4165
|
-
isPreview: oa.value,
|
|
4166
|
-
labelLeft: oe.value[0] ? oe.value[0].text : "",
|
|
4167
|
-
labelRight: oe.value.at(-1) ? oe.value.at(-1).text : "",
|
|
4168
|
-
max: ze.value,
|
|
4169
|
-
min: 0,
|
|
4170
|
-
minimap: mu.value,
|
|
4171
|
-
minimapCompact: t.value.chart.zoom.minimap.compact,
|
|
4172
|
-
minimapFrameColor: t.value.chart.zoom.minimap.frameColor,
|
|
4173
|
-
minimapIndicatorColor: t.value.chart.zoom.minimap.indicatorColor,
|
|
4174
|
-
minimapLineColor: t.value.chart.zoom.minimap.lineColor,
|
|
4175
|
-
minimapMerged: t.value.chart.zoom.minimap.merged,
|
|
4176
|
-
minimapSelectedColor: t.value.chart.zoom.minimap.selectedColor,
|
|
4177
|
-
minimapSelectedColorOpacity: t.value.chart.zoom.minimap.selectedColorOpacity,
|
|
4178
|
-
minimapSelectedIndex: _.value,
|
|
4179
|
-
minimapSelectionRadius: t.value.chart.zoom.minimap.selectionRadius,
|
|
4180
|
-
preciseLabels: Wa.value.length ? Wa.value : Zt.value,
|
|
4181
|
-
refreshEndPoint: t.value.chart.zoom.endIndex !== null ? t.value.chart.zoom.endIndex + 1 : Math.max(
|
|
4182
|
-
...cl.dataset.map(
|
|
4183
|
-
(e) => Fe(e.series).length
|
|
4184
|
-
)
|
|
4185
|
-
),
|
|
4186
|
-
refreshStartPoint: t.value.chart.zoom.startIndex !== null ? t.value.chart.zoom.startIndex : 0,
|
|
4187
|
-
selectColor: t.value.chart.zoom.highlightColor,
|
|
4188
|
-
selectedSeries: Ze.value,
|
|
4189
|
-
smoothMinimap: t.value.chart.zoom.minimap.smooth,
|
|
4190
|
-
start: m.value.start,
|
|
4191
|
-
textColor: t.value.chart.color,
|
|
4192
|
-
timeLabels: Zt.value,
|
|
4193
|
-
usePreciseLabels: t.value.chart.grid.labels.xAxisLabels.datetimeFormatter.enable && !t.value.chart.zoom.useDefaultFormat,
|
|
4194
|
-
valueEnd: m.value.end,
|
|
4195
|
-
valueStart: m.value.start,
|
|
4196
|
-
verticalHandles: t.value.chart.zoom.minimap.verticalHandles,
|
|
4197
|
-
minScale: t.value.chart.grid.labels.yAxis.scaleMin,
|
|
4198
|
-
maxScale: t.value.chart.grid.labels.yAxis.scaleMax,
|
|
4199
|
-
maxWidth: t.value.chart.zoom.maxWidth,
|
|
4200
|
-
additionalMinimapHeight: t.value.chart.zoom.minimap.additionalHeight,
|
|
4201
|
-
handleType: t.value.chart.zoom.minimap.handleType,
|
|
4202
|
-
handleIconColor: t.value.chart.zoom.minimap.handleIconColor,
|
|
4203
|
-
handleBorderWidth: t.value.chart.zoom.minimap.handleBorderWidth,
|
|
4204
|
-
handleBorderColor: t.value.chart.zoom.minimap.handleBorderColor,
|
|
4205
|
-
handleFill: t.value.chart.zoom.minimap.handleFill,
|
|
4206
|
-
handleWidth: t.value.chart.zoom.minimap.handleWidth,
|
|
4207
|
-
isCursorPointer: Xe.value,
|
|
4208
|
-
onFutureEnd: o[1] || (o[1] = (e) => ua("end", e)),
|
|
4209
|
-
onFutureStart: o[2] || (o[2] = (e) => ua("start", e)),
|
|
4210
|
-
onReset: eu,
|
|
4211
|
-
onTrapMouse: Ko,
|
|
4212
|
-
"onUpdate:end": jo,
|
|
4213
|
-
"onUpdate:start": Qo
|
|
4214
|
-
}, {
|
|
4215
|
-
"reset-action": Y(({ reset: e }) => [
|
|
4216
|
-
O(l.$slots, "reset-action", ve(de({ reset: e })), void 0, !0)
|
|
4217
|
-
]),
|
|
4218
|
-
_: 3
|
|
4219
|
-
}, 8, ["uuid", "allMinimaps", "background", "borderColor", "customFormat", "cutNullValues", "enableRangeHandles", "enableSelectionDrag", "end", "focusOnDrag", "focusRangeRatio", "fontSize", "useResetSlot", "immediate", "inputColor", "isPreview", "labelLeft", "labelRight", "max", "minimap", "minimapCompact", "minimapFrameColor", "minimapIndicatorColor", "minimapLineColor", "minimapMerged", "minimapSelectedColor", "minimapSelectedColorOpacity", "minimapSelectedIndex", "minimapSelectionRadius", "preciseLabels", "refreshEndPoint", "refreshStartPoint", "selectColor", "selectedSeries", "smoothMinimap", "start", "textColor", "timeLabels", "usePreciseLabels", "valueEnd", "valueStart", "verticalHandles", "minScale", "maxScale", "maxWidth", "additionalMinimapHeight", "handleType", "handleIconColor", "handleBorderWidth", "handleBorderColor", "handleFill", "handleWidth", "isCursorPointer"])) : h("", !0),
|
|
4220
|
-
y("div", {
|
|
4221
|
-
id: `legend-bottom-${z.value}`
|
|
4222
|
-
}, null, 8, Ui),
|
|
4223
|
-
ql.value && (t.value.chart.legend.show || l.$slots.legend) ? (i(), _e(Ru, {
|
|
4224
|
-
key: 7,
|
|
4225
|
-
to: t.value.chart.legend.position === "top" ? `#legend-top-${z.value}` : `#legend-bottom-${z.value}`
|
|
4226
|
-
}, [
|
|
4227
|
-
y("div", {
|
|
4228
|
-
ref_key: "chartLegend",
|
|
4229
|
-
ref: mt
|
|
4230
|
-
}, [
|
|
4231
|
-
O(l.$slots, "legend", { legend: ie.value }, () => [
|
|
4232
|
-
t.value.chart.legend.show ? (i(), r("div", {
|
|
4233
|
-
key: 0,
|
|
4234
|
-
class: "vue-ui-xy-legend",
|
|
4235
|
-
style: w({
|
|
4236
|
-
fontSize: `var(--legend-font-size, ${t.value.chart.legend.fontSize ?? 14}px)`
|
|
4237
|
-
})
|
|
4238
|
-
}, [
|
|
4239
|
-
t.value.chart.legend.selectAllToggle.show && ie.value.length > 2 && !v(ne) ? (i(), _e(ps, {
|
|
4240
|
-
key: 0,
|
|
4241
|
-
backgroundColor: t.value.chart.legend.selectAllToggle.backgroundColor,
|
|
4242
|
-
color: t.value.chart.legend.selectAllToggle.color,
|
|
4243
|
-
fontSize: t.value.chart.legend.fontSize,
|
|
4244
|
-
checked: G.value.length > 0,
|
|
4245
|
-
onToggle: ou
|
|
4246
|
-
}, null, 8, ["backgroundColor", "color", "fontSize", "checked"])) : h("", !0),
|
|
4247
|
-
(i(!0), r(d, null, k(ie.value, (e, s) => (i(), r("div", {
|
|
4248
|
-
key: `div_legend_item_${s}`,
|
|
4249
|
-
onClick: (a) => Mt(e),
|
|
4250
|
-
onKeydown: (a) => uu(a, e),
|
|
4251
|
-
role: "button",
|
|
4252
|
-
tabindex: "0",
|
|
4253
|
-
class: Je({
|
|
4254
|
-
"vue-ui-xy-legend-item-alone": ie.value.length === 1,
|
|
4255
|
-
"vue-ui-xy-legend-item": !0,
|
|
4256
|
-
"vue-ui-xy-legend-item-segregated": G.value.includes(e.id)
|
|
4257
|
-
}),
|
|
4258
|
-
style: w({
|
|
4259
|
-
cursor: Xe.value ? "pointer" : "default"
|
|
4260
|
-
})
|
|
4261
|
-
}, [
|
|
4262
|
-
pt.value[e.type] === "line" ? (i(), r("svg", Ki, [
|
|
4263
|
-
y("rect", {
|
|
4264
|
-
x: "0",
|
|
4265
|
-
y: "7.5",
|
|
4266
|
-
rx: "1.5",
|
|
4267
|
-
stroke: t.value.chart.backgroundColor,
|
|
4268
|
-
"stroke-width": 0.5,
|
|
4269
|
-
height: "3",
|
|
4270
|
-
width: "20",
|
|
4271
|
-
fill: e.color
|
|
4272
|
-
}, null, 8, Ji),
|
|
4273
|
-
vt(rl, {
|
|
4274
|
-
plot: { x: 10, y: 9 },
|
|
4275
|
-
radius: 4,
|
|
4276
|
-
color: e.color,
|
|
4277
|
-
shape: [
|
|
4278
|
-
"triangle",
|
|
4279
|
-
"square",
|
|
4280
|
-
"diamond",
|
|
4281
|
-
"pentagon",
|
|
4282
|
-
"hexagon",
|
|
4283
|
-
"star"
|
|
4284
|
-
].includes(e.shape) ? e.shape : "circle",
|
|
4285
|
-
stroke: t.value.chart.backgroundColor,
|
|
4286
|
-
strokeWidth: 0.5
|
|
4287
|
-
}, null, 8, ["color", "shape", "stroke"])
|
|
4288
|
-
])) : pt.value[e.type] === "bar" ? (i(), r("svg", Qi, [
|
|
4289
|
-
pt.value[e.type] === "bar" && l.$slots.pattern ? (i(), r("rect", {
|
|
4290
|
-
key: 0,
|
|
4291
|
-
x: "4",
|
|
4292
|
-
y: "4",
|
|
4293
|
-
rx: "1",
|
|
4294
|
-
height: "32",
|
|
4295
|
-
width: "32",
|
|
4296
|
-
stroke: "none",
|
|
4297
|
-
fill: e.color
|
|
4298
|
-
}, null, 8, ji)) : h("", !0),
|
|
4299
|
-
pt.value[e.type] === "bar" ? (i(), r("rect", {
|
|
4300
|
-
key: 1,
|
|
4301
|
-
x: "4",
|
|
4302
|
-
y: "4",
|
|
4303
|
-
rx: "1",
|
|
4304
|
-
height: "32",
|
|
4305
|
-
width: "32",
|
|
4306
|
-
stroke: "none",
|
|
4307
|
-
fill: l.$slots.pattern ? `url(#pattern_${z.value}_${e.slotAbsoluteIndex})` : e.color
|
|
4308
|
-
}, null, 8, er)) : h("", !0)
|
|
4309
|
-
])) : (i(), r("svg", tr, [
|
|
4310
|
-
vt(rl, {
|
|
4311
|
-
plot: { x: 6, y: 6 },
|
|
4312
|
-
radius: 5,
|
|
4313
|
-
color: e.color,
|
|
4314
|
-
shape: [
|
|
4315
|
-
"triangle",
|
|
4316
|
-
"square",
|
|
4317
|
-
"diamond",
|
|
4318
|
-
"pentagon",
|
|
4319
|
-
"hexagon",
|
|
4320
|
-
"star"
|
|
4321
|
-
].includes(e.shape) ? e.shape : "circle"
|
|
4322
|
-
}, null, 8, ["color", "shape"])
|
|
4323
|
-
])),
|
|
4324
|
-
y("span", {
|
|
4325
|
-
style: w(`color:${t.value.chart.legend.color}`)
|
|
4326
|
-
}, se(e.name), 5)
|
|
4327
|
-
], 46, Zi))), 128))
|
|
4328
|
-
], 4)) : h("", !0)
|
|
4329
|
-
], !0)
|
|
4330
|
-
], 512)
|
|
4331
|
-
], 8, ["to"])) : h("", !0),
|
|
4332
|
-
l.$slots.source ? (i(), r("div", {
|
|
4333
|
-
key: 8,
|
|
4334
|
-
ref_key: "source",
|
|
4335
|
-
ref: gt,
|
|
4336
|
-
dir: "auto"
|
|
4337
|
-
}, [
|
|
4338
|
-
O(l.$slots, "source", {}, void 0, !0)
|
|
4339
|
-
], 512)) : h("", !0),
|
|
4340
|
-
vt(v(_o), {
|
|
4341
|
-
teleportTo: t.value.chart.tooltip.teleportTo,
|
|
4342
|
-
show: f.value.showTooltip && Wl.value,
|
|
4343
|
-
backgroundColor: t.value.chart.tooltip.backgroundColor,
|
|
4344
|
-
color: t.value.chart.tooltip.color,
|
|
4345
|
-
fontSize: t.value.chart.tooltip.fontSize,
|
|
4346
|
-
borderRadius: t.value.chart.tooltip.borderRadius,
|
|
4347
|
-
borderColor: t.value.chart.tooltip.borderColor,
|
|
4348
|
-
borderWidth: t.value.chart.tooltip.borderWidth,
|
|
4349
|
-
backgroundOpacity: t.value.chart.tooltip.backgroundOpacity,
|
|
4350
|
-
position: t.value.chart.tooltip.position,
|
|
4351
|
-
offsetY: t.value.chart.tooltip.offsetY,
|
|
4352
|
-
parent: l.$refs.chart,
|
|
4353
|
-
content: bu.value,
|
|
4354
|
-
isFullscreen: Ee.value,
|
|
4355
|
-
isCustom: t.value.chart.tooltip.customFormat && typeof t.value.chart.tooltip.customFormat == "function",
|
|
4356
|
-
smooth: t.value.chart.tooltip.smooth,
|
|
4357
|
-
backdropFilter: t.value.chart.tooltip.backdropFilter,
|
|
4358
|
-
smoothForce: t.value.chart.tooltip.smoothForce,
|
|
4359
|
-
smoothSnapThreshold: t.value.chart.tooltip.smoothSnapThreshold,
|
|
4360
|
-
isA11yMode: lt.value != null,
|
|
4361
|
-
a11yPosition: Ul.value
|
|
4362
|
-
}, {
|
|
4363
|
-
"tooltip-before": Y(() => [
|
|
4364
|
-
O(l.$slots, "tooltip-before", ve(de({ ...Ll.value })), void 0, !0)
|
|
4365
|
-
]),
|
|
4366
|
-
tooltip: Y(() => [
|
|
4367
|
-
O(l.$slots, "tooltip", ve(de({ ...Ll.value })), void 0, !0)
|
|
4368
|
-
]),
|
|
4369
|
-
"tooltip-after": Y(() => [
|
|
4370
|
-
O(l.$slots, "tooltip-after", ve(de({ ...Ll.value })), void 0, !0)
|
|
4371
|
-
]),
|
|
4372
|
-
_: 3
|
|
4373
|
-
}, 8, ["teleportTo", "show", "backgroundColor", "color", "fontSize", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom", "smooth", "backdropFilter", "smoothForce", "smoothSnapThreshold", "isA11yMode", "a11yPosition"]),
|
|
4374
|
-
xl.value && t.value.chart.userOptions.buttons.table ? (i(), _e(Hu(Ct.value.component), Qe({ key: 9 }, Ct.value.props, {
|
|
4375
|
-
ref_key: "tableUnit",
|
|
4376
|
-
ref: tt,
|
|
4377
|
-
onClose: ja
|
|
4378
|
-
}), lo({
|
|
4379
|
-
content: Y(() => [
|
|
4380
|
-
y("div", {
|
|
4381
|
-
style: w(`${v(Et) || t.value.table.useDialog ? "" : "max-height:400px"};${t.value.table.useDialog ? "height: fit-content; " : ""};overflow:auto;width:100%;${t.value.table.useDialog ? "" : "margin-top:48px"}`)
|
|
4382
|
-
}, [
|
|
4383
|
-
y("div", lr, [
|
|
4384
|
-
Du(y("input", {
|
|
4385
|
-
type: "checkbox",
|
|
4386
|
-
"onUpdate:modelValue": o[4] || (o[4] = (e) => yt.value = e)
|
|
4387
|
-
}, null, 512), [
|
|
4388
|
-
[Wu, yt.value]
|
|
4389
|
-
]),
|
|
4390
|
-
y("div", {
|
|
4391
|
-
onClick: o[5] || (o[5] = (e) => yt.value = !yt.value),
|
|
4392
|
-
style: w({
|
|
4393
|
-
cursor: Xe.value ? "pointer" : "default"
|
|
4394
|
-
})
|
|
4395
|
-
}, [
|
|
4396
|
-
vt(v(Rl), {
|
|
4397
|
-
name: "chartLine",
|
|
4398
|
-
size: 20,
|
|
4399
|
-
stroke: t.value.chart.color
|
|
4400
|
-
}, null, 8, ["stroke"])
|
|
4401
|
-
], 4)
|
|
4402
|
-
]),
|
|
4403
|
-
yt.value ? (i(), _e(v(So), {
|
|
4404
|
-
key: `sparkline_${gl.value}`,
|
|
4405
|
-
dataset: vu.value,
|
|
4406
|
-
config: du.value
|
|
4407
|
-
}, null, 8, ["dataset", "config"])) : (i(), _e(v(ko), {
|
|
4408
|
-
key: `table_${Yl.value}`,
|
|
4409
|
-
colNames: rt.value.colNames,
|
|
4410
|
-
head: rt.value.head,
|
|
4411
|
-
body: rt.value.body,
|
|
4412
|
-
config: rt.value.config,
|
|
4413
|
-
title: t.value.table.useDialog ? "" : Ct.value.title,
|
|
4414
|
-
withCloseButton: !t.value.table.useDialog,
|
|
4415
|
-
onClose: ja
|
|
4416
|
-
}, {
|
|
4417
|
-
th: Y(({ th: e }) => [
|
|
4418
|
-
y("div", { innerHTML: e }, null, 8, ar)
|
|
4419
|
-
]),
|
|
4420
|
-
td: Y(({ td: e }) => [
|
|
4421
|
-
ao(se(isNaN(Number(e)) ? e : v(Pe)({
|
|
4422
|
-
p: t.value.chart.labels.prefix,
|
|
4423
|
-
v: e,
|
|
4424
|
-
s: t.value.chart.labels.suffix,
|
|
4425
|
-
r: t.value.table.rounding
|
|
4426
|
-
})), 1)
|
|
4427
|
-
]),
|
|
4428
|
-
_: 1
|
|
4429
|
-
}, 8, ["colNames", "head", "body", "config", "title", "withCloseButton"]))
|
|
4430
|
-
], 4)
|
|
4431
|
-
]),
|
|
4432
|
-
_: 2
|
|
4433
|
-
}, [
|
|
4434
|
-
t.value.table.useDialog ? {
|
|
4435
|
-
name: "title",
|
|
4436
|
-
fn: Y(() => [
|
|
4437
|
-
ao(se(Ct.value.title), 1)
|
|
4438
|
-
]),
|
|
4439
|
-
key: "0"
|
|
4440
|
-
} : void 0,
|
|
4441
|
-
t.value.table.useDialog ? {
|
|
4442
|
-
name: "actions",
|
|
4443
|
-
fn: Y(() => [
|
|
4444
|
-
y("button", {
|
|
4445
|
-
tabindex: "0",
|
|
4446
|
-
class: "vue-ui-user-options-button",
|
|
4447
|
-
onClick: o[3] || (o[3] = (e) => Ml(
|
|
4448
|
-
t.value.chart.userOptions.callbacks.csv
|
|
4449
|
-
))
|
|
4450
|
-
}, [
|
|
4451
|
-
vt(v(Rl), {
|
|
4452
|
-
name: "fileCsv",
|
|
4453
|
-
stroke: Ct.value.props.color
|
|
4454
|
-
}, null, 8, ["stroke"])
|
|
4455
|
-
])
|
|
4456
|
-
]),
|
|
4457
|
-
key: "1"
|
|
4458
|
-
} : void 0
|
|
4459
|
-
]), 1040)) : h("", !0),
|
|
4460
|
-
O(l.$slots, "skeleton", {}, () => [
|
|
4461
|
-
v(ne) ? (i(), _e(is, { key: 0 })) : h("", !0)
|
|
4462
|
-
], !0)
|
|
4463
|
-
], 46, ks));
|
|
4464
|
-
}
|
|
4465
|
-
}, $r = /* @__PURE__ */ xs(or, [["__scopeId", "data-v-8ec65780"]]);
|
|
4466
|
-
export {
|
|
4467
|
-
$r as default
|
|
4468
|
-
};
|