@primeui/vue-chart 1.0.0-rc.1 → 1.0.0-rc.3

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.
Files changed (140) hide show
  1. package/dist/ChartCanvas.mjs +10 -10
  2. package/dist/ChartSvg.mjs +10 -10
  3. package/dist/RadarReference.spec.d.ts +1 -0
  4. package/dist/chunks/{chunk-QONZ3SCZ.mjs → chunk-2FGCWBQK.mjs} +1 -1
  5. package/dist/chunks/{chunk-4SLSYRNY.mjs → chunk-2VCCASMY.mjs} +5 -17
  6. package/dist/chunks/{chunk-IRGQNA5W.mjs → chunk-3ZXBNXFA.mjs} +10 -5
  7. package/dist/chunks/{chunk-CMJXLIEY.mjs → chunk-4B5OD4TC.mjs} +4 -13
  8. package/dist/chunks/{chunk-F7EK5D6J.mjs → chunk-4UH6LJNN.mjs} +4 -4
  9. package/dist/chunks/{chunk-YI3GLQYF.mjs → chunk-5CL32KCS.mjs} +6 -7
  10. package/dist/chunks/{chunk-GE2Y2FHS.mjs → chunk-6MD43V6R.mjs} +4 -4
  11. package/dist/chunks/{chunk-5ZLVNQ2L.mjs → chunk-7SY52FXI.mjs} +10 -6
  12. package/dist/chunks/{chunk-R4AZOPXC.mjs → chunk-AQK6S4DO.mjs} +1 -1
  13. package/dist/chunks/{chunk-EWDMF46D.mjs → chunk-B3QR3CVR.mjs} +1 -1
  14. package/dist/chunks/{chunk-UOMQNZMT.mjs → chunk-B7XC2DVN.mjs} +1 -1
  15. package/dist/chunks/{chunk-CRIB3I3L.mjs → chunk-BC6G3ODW.mjs} +1 -1
  16. package/dist/chunks/{chunk-YZQS2YBK.mjs → chunk-BVB7G6Y5.mjs} +12 -11
  17. package/dist/chunks/{chunk-GIDIMIWE.mjs → chunk-D2SPDSXY.mjs} +4 -4
  18. package/dist/chunks/{chunk-JVH4MDKX.mjs → chunk-D65PFBA5.mjs} +1 -1
  19. package/dist/chunks/{chunk-MGUGO3RV.mjs → chunk-DKLWPPME.mjs} +10 -0
  20. package/dist/chunks/{chunk-CGFPDWB4.mjs → chunk-DLRPM3GK.mjs} +1 -1
  21. package/dist/chunks/{chunk-3DINEX6C.mjs → chunk-DZIZEFTD.mjs} +1 -1
  22. package/dist/chunks/{chunk-LJZCE7LQ.mjs → chunk-EAHLFHB7.mjs} +58 -19
  23. package/dist/chunks/{chunk-IFZSHQDZ.mjs → chunk-EDDORION.mjs} +1 -1
  24. package/dist/chunks/{chunk-QOWKMWNO.mjs → chunk-F72RBTHC.mjs} +27 -5
  25. package/dist/chunks/{chunk-4Q3QUNX6.mjs → chunk-FGBZ3VPE.mjs} +2 -1
  26. package/dist/chunks/{chunk-L74BEYTD.mjs → chunk-FZ4TKLHE.mjs} +5 -5
  27. package/dist/chunks/{chunk-3XOLEGDL.mjs → chunk-G4V4FUNK.mjs} +5 -5
  28. package/dist/chunks/{chunk-DXKAPWMO.mjs → chunk-G5YSM76C.mjs} +1 -1
  29. package/dist/chunks/{chunk-3JA5JAHF.mjs → chunk-GRPL343U.mjs} +1 -1
  30. package/dist/chunks/{chunk-36DHPBYP.mjs → chunk-GV4YAVUN.mjs} +34 -9
  31. package/dist/chunks/{chunk-GV3CY6CQ.mjs → chunk-HXMG2ZBK.mjs} +1 -1
  32. package/dist/chunks/{chunk-3PJULFR5.mjs → chunk-IASQF4GU.mjs} +1 -3
  33. package/dist/chunks/{chunk-WVNDZNMV.mjs → chunk-ISDQNEMO.mjs} +1 -1
  34. package/dist/chunks/{chunk-TRGN3ZMM.mjs → chunk-JEC4JJ5P.mjs} +4 -30
  35. package/dist/chunks/{chunk-BSROML7P.mjs → chunk-KCLMHDWJ.mjs} +2 -2
  36. package/dist/chunks/{chunk-I2BWSDNR.mjs → chunk-KX5GTFS3.mjs} +19 -6
  37. package/dist/chunks/{chunk-3X27K5XC.mjs → chunk-L7XUBIMC.mjs} +24 -51
  38. package/dist/chunks/{chunk-2NZ3PUWW.mjs → chunk-LLYJBFOE.mjs} +2 -2
  39. package/dist/chunks/{chunk-DDRSIMLE.mjs → chunk-LNS6I3ZJ.mjs} +4 -4
  40. package/dist/chunks/{chunk-PR6MTWPJ.mjs → chunk-LWHQ3RXO.mjs} +1 -1
  41. package/dist/chunks/{chunk-CW2KYVYO.mjs → chunk-MCIY5P7K.mjs} +4 -4
  42. package/dist/chunks/{chunk-GLFXRR7N.mjs → chunk-MGNVYHQF.mjs} +53 -8
  43. package/dist/chunks/{chunk-2TOEQNJ6.mjs → chunk-MX74LV4I.mjs} +1 -1
  44. package/dist/chunks/{chunk-L73MEG22.mjs → chunk-NFVH44YP.mjs} +1 -3
  45. package/dist/chunks/{chunk-JPKNWLLP.mjs → chunk-NTTI64AJ.mjs} +8 -4
  46. package/dist/chunks/{chunk-LP2YESP6.mjs → chunk-OROBUJMJ.mjs} +1 -1
  47. package/dist/chunks/chunk-P3CYBDPQ.mjs +86 -0
  48. package/dist/chunks/{chunk-6Z4MZIJI.mjs → chunk-P43UWADF.mjs} +6 -4
  49. package/dist/chunks/chunk-Q3I4EL3N.mjs +23 -0
  50. package/dist/chunks/{chunk-HVLFOABV.mjs → chunk-QDCXS7WS.mjs} +3 -8
  51. package/dist/chunks/{chunk-4EU72IBK.mjs → chunk-QPX2OCOM.mjs} +20 -12
  52. package/dist/chunks/{chunk-ZLD5VNMP.mjs → chunk-QQGC223F.mjs} +2 -2
  53. package/dist/chunks/{chunk-ADAGGXFG.mjs → chunk-QWUGZTCV.mjs} +5 -6
  54. package/dist/chunks/{chunk-OJHEN5FG.mjs → chunk-TAFKOHFX.mjs} +5 -6
  55. package/dist/chunks/{chunk-HH5FUUXX.mjs → chunk-TLB6ZOL3.mjs} +3 -1
  56. package/dist/chunks/{chunk-SGLTVJUA.mjs → chunk-UA2J3TWE.mjs} +4 -4
  57. package/dist/chunks/{chunk-AKMQHU5T.mjs → chunk-V4KRWSEE.mjs} +2 -2
  58. package/dist/chunks/{chunk-U6X3GVJ3.mjs → chunk-VADMTZLH.mjs} +1 -1
  59. package/dist/chunks/{chunk-PCBF6FSQ.mjs → chunk-WCUZUBQ5.mjs} +21 -20
  60. package/dist/chunks/{chunk-ON2FAZTD.mjs → chunk-WHAJ2YDA.mjs} +1 -1
  61. package/dist/chunks/{chunk-X4NWFK7L.mjs → chunk-WNIMDHP5.mjs} +2 -2
  62. package/dist/chunks/{chunk-TZ23VBFU.mjs → chunk-XSKNTD24.mjs} +1 -1
  63. package/dist/chunks/{chunk-HHZFGQN2.mjs → chunk-YPRGZNY6.mjs} +1 -1
  64. package/dist/chunks/{chunk-UOZFNTVQ.mjs → chunk-YUQRDFQI.mjs} +2 -2
  65. package/dist/components/charts/ChartBar.mjs +10 -9
  66. package/dist/components/charts/ChartCandlestick.mjs +8 -7
  67. package/dist/components/charts/ChartHeatmap.mjs +8 -7
  68. package/dist/components/charts/ChartLine.mjs +8 -7
  69. package/dist/components/charts/ChartPie.mjs +8 -7
  70. package/dist/components/charts/ChartPolar.mjs +8 -8
  71. package/dist/components/charts/ChartRadar.mjs +8 -8
  72. package/dist/components/charts/ChartScatter.mjs +8 -7
  73. package/dist/components/charts/ChartTreemap.mjs +7 -6
  74. package/dist/components/containers/ChartDecimation.mjs +3 -3
  75. package/dist/components/containers/ChartGroup.mjs +2 -2
  76. package/dist/components/containers/ChartOverlap.mjs +3 -3
  77. package/dist/components/containers/ChartRange.mjs +3 -3
  78. package/dist/components/containers/ChartStacked.mjs +3 -3
  79. package/dist/components/containers/ChartWaterfall.mjs +3 -3
  80. package/dist/components/customizations/ChartAccessibility.mjs +5 -5
  81. package/dist/components/customizations/ChartAccessibility.vue.d.ts +3 -0
  82. package/dist/components/customizations/ChartAnnotation.mjs +3 -3
  83. package/dist/components/customizations/ChartAxisGroup.mjs +1 -1
  84. package/dist/components/customizations/ChartBreadcrumb.mjs +4 -4
  85. package/dist/components/customizations/ChartCaption.mjs +5 -5
  86. package/dist/components/customizations/ChartColorLegend.mjs +5 -5
  87. package/dist/components/customizations/ChartColorLegend.vue.d.ts +2 -2
  88. package/dist/components/customizations/ChartDataLabels.mjs +5 -5
  89. package/dist/components/customizations/ChartDataLabels.vue.d.ts +2 -0
  90. package/dist/components/customizations/ChartExportMenu.mjs +5 -5
  91. package/dist/components/customizations/ChartHover.mjs +5 -5
  92. package/dist/components/customizations/ChartLegend.mjs +5 -5
  93. package/dist/components/customizations/ChartNavigator.mjs +6 -6
  94. package/dist/components/customizations/ChartReferenceBand.mjs +3 -3
  95. package/dist/components/customizations/ChartReferenceLine.mjs +3 -3
  96. package/dist/components/customizations/ChartResponsive.mjs +5 -5
  97. package/dist/components/customizations/ChartTitle.mjs +5 -5
  98. package/dist/components/customizations/ChartTooltip.mjs +5 -5
  99. package/dist/components/customizations/ChartXAxis.mjs +5 -5
  100. package/dist/components/customizations/ChartYAxis.mjs +5 -5
  101. package/dist/components/customizations/ChartZoom.mjs +5 -5
  102. package/dist/components/items/ChartItem.mjs +2 -2
  103. package/dist/components/items/ChartTreemapGroup.mjs +3 -3
  104. package/dist/components/renderers/CartesianRenderer.mjs +6 -5
  105. package/dist/components/renderers/LegendRenderer.mjs +2 -2
  106. package/dist/components/renderers/NavigatorRenderer.mjs +3 -3
  107. package/dist/components/renderers/RadialRenderer.mjs +5 -5
  108. package/dist/components/renderers/RectRenderer.mjs +6 -5
  109. package/dist/components/renderers/TooltipRenderer.mjs +3 -3
  110. package/dist/components/renderers/layers/BarLayerCanvas.mjs +6 -6
  111. package/dist/components/renderers/layers/BarLayerSvg.mjs +6 -6
  112. package/dist/components/renderers/layers/CandlestickLayer.mjs +6 -5
  113. package/dist/components/renderers/layers/HeatmapLayer.mjs +6 -5
  114. package/dist/components/renderers/layers/LineLayer.mjs +5 -5
  115. package/dist/components/renderers/layers/PieLayer.mjs +4 -3
  116. package/dist/components/renderers/layers/PolarLayer.mjs +4 -4
  117. package/dist/components/renderers/layers/RadarLayer.mjs +4 -4
  118. package/dist/components/renderers/layers/ScatterLayer.mjs +5 -5
  119. package/dist/composables/useCartesianFrame.d.ts +3 -0
  120. package/dist/composables/useResponsiveConfig.d.ts +1 -0
  121. package/dist/composables/useResponsiveConfig.spec.d.ts +1 -0
  122. package/dist/context/ChartContext.d.ts +2 -0
  123. package/dist/context/index.d.ts +2 -2
  124. package/dist/context/keys.d.ts +6 -0
  125. package/dist/index.d.ts +1 -1
  126. package/dist/index.mjs +61 -61
  127. package/dist/namespace.mjs +61 -61
  128. package/dist/release-date.d.ts +1 -1
  129. package/dist/types/axes.types.d.ts +1 -1
  130. package/dist/types/heatmap.types.d.ts +3 -8
  131. package/dist/types/index.d.ts +1 -1
  132. package/dist/types/line.types.d.ts +2 -2
  133. package/dist/types/scatter.types.d.ts +2 -0
  134. package/dist/types/treemap.types.d.ts +2 -0
  135. package/dist/utils/index.d.ts +1 -0
  136. package/dist/utils/ruleOverrides.d.ts +13 -0
  137. package/dist/utils/ruleOverrides.spec.d.ts +1 -0
  138. package/package.json +5 -4
  139. package/dist/chunks/chunk-JBWL3G7O.mjs +0 -86
  140. package/dist/chunks/chunk-ZH4A4L6W.mjs +0 -10
@@ -1,15 +1,15 @@
1
- export { ChartCanvas_default as default } from './chunks/chunk-PR6MTWPJ.mjs';
2
- import './chunks/chunk-4EU72IBK.mjs';
3
- import './chunks/chunk-TRGN3ZMM.mjs';
1
+ export { ChartCanvas_default as default } from './chunks/chunk-LWHQ3RXO.mjs';
2
+ import './chunks/chunk-QPX2OCOM.mjs';
3
+ import './chunks/chunk-JEC4JJ5P.mjs';
4
4
  import './chunks/chunk-S4YR4YK7.mjs';
5
- import './chunks/chunk-36DHPBYP.mjs';
6
- import './chunks/chunk-ZH4A4L6W.mjs';
7
- import './chunks/chunk-I2BWSDNR.mjs';
5
+ import './chunks/chunk-GV4YAVUN.mjs';
6
+ import './chunks/chunk-Q3I4EL3N.mjs';
7
+ import './chunks/chunk-KX5GTFS3.mjs';
8
8
  import './chunks/chunk-L6N5IYAJ.mjs';
9
- import './chunks/chunk-ZLD5VNMP.mjs';
9
+ import './chunks/chunk-QQGC223F.mjs';
10
10
  import './chunks/chunk-7EZEZMGG.mjs';
11
- import './chunks/chunk-GLFXRR7N.mjs';
12
- import './chunks/chunk-QOWKMWNO.mjs';
11
+ import './chunks/chunk-MGNVYHQF.mjs';
12
+ import './chunks/chunk-F72RBTHC.mjs';
13
13
  import './chunks/chunk-H4HLHGUW.mjs';
14
- import './chunks/chunk-4Q3QUNX6.mjs';
14
+ import './chunks/chunk-FGBZ3VPE.mjs';
15
15
  import './chunks/chunk-VIHIR2BE.mjs';
package/dist/ChartSvg.mjs CHANGED
@@ -1,15 +1,15 @@
1
- export { ChartSvg_default as default } from './chunks/chunk-EWDMF46D.mjs';
2
- import './chunks/chunk-4EU72IBK.mjs';
3
- import './chunks/chunk-TRGN3ZMM.mjs';
1
+ export { ChartSvg_default as default } from './chunks/chunk-B3QR3CVR.mjs';
2
+ import './chunks/chunk-QPX2OCOM.mjs';
3
+ import './chunks/chunk-JEC4JJ5P.mjs';
4
4
  import './chunks/chunk-S4YR4YK7.mjs';
5
- import './chunks/chunk-36DHPBYP.mjs';
6
- import './chunks/chunk-ZH4A4L6W.mjs';
7
- import './chunks/chunk-I2BWSDNR.mjs';
5
+ import './chunks/chunk-GV4YAVUN.mjs';
6
+ import './chunks/chunk-Q3I4EL3N.mjs';
7
+ import './chunks/chunk-KX5GTFS3.mjs';
8
8
  import './chunks/chunk-L6N5IYAJ.mjs';
9
- import './chunks/chunk-ZLD5VNMP.mjs';
9
+ import './chunks/chunk-QQGC223F.mjs';
10
10
  import './chunks/chunk-7EZEZMGG.mjs';
11
- import './chunks/chunk-GLFXRR7N.mjs';
12
- import './chunks/chunk-QOWKMWNO.mjs';
11
+ import './chunks/chunk-MGNVYHQF.mjs';
12
+ import './chunks/chunk-F72RBTHC.mjs';
13
13
  import './chunks/chunk-H4HLHGUW.mjs';
14
- import './chunks/chunk-4Q3QUNX6.mjs';
14
+ import './chunks/chunk-FGBZ3VPE.mjs';
15
15
  import './chunks/chunk-VIHIR2BE.mjs';
@@ -0,0 +1 @@
1
+ export {};
@@ -1,4 +1,4 @@
1
- import { useCustomizationRegistration } from './chunk-ZLD5VNMP.mjs';
1
+ import { useCustomizationRegistration } from './chunk-QQGC223F.mjs';
2
2
  import { defineComponent, computed } from 'vue';
3
3
 
4
4
  var _sfc_main = /* @__PURE__ */ defineComponent({
@@ -1,8 +1,8 @@
1
- import { useCustomizationRegistration } from './chunk-ZLD5VNMP.mjs';
1
+ import { useCustomizationRegistration } from './chunk-QQGC223F.mjs';
2
2
  import { SYNC_BUS_KEY } from './chunk-H4HLHGUW.mjs';
3
- import { CHART_METHODS_KEY } from './chunk-4Q3QUNX6.mjs';
3
+ import { CHART_METHODS_KEY } from './chunk-FGBZ3VPE.mjs';
4
4
  import { defineComponent, inject, computed, ref, onMounted, onBeforeUnmount, openBlock, createElementBlock, Fragment, unref, normalizeStyle, normalizeClass, renderList, createBlock, resolveDynamicComponent, createElementVNode, toDisplayString, createCommentVNode } from 'vue';
5
- import { safeRenderProp, gradientToCssBackground, buildSharedLegendItems } from '@primeui/chart-core';
5
+ import { safeRenderProp, legendSwatchStyle, buildSharedLegendItems } from '@primeui/chart-core';
6
6
 
7
7
  var _hoisted_1 = ["onClick", "onMouseenter"];
8
8
  var _hoisted_2 = ["data-chart-gradient"];
@@ -152,12 +152,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
152
152
  style: normalizeStyle([containerStyle.value, props.style])
153
153
  }, [(openBlock(true), createElementBlock(Fragment, null, renderList(sharedItems.value, (item) => {
154
154
  return openBlock(), createElementBlock(Fragment, { key: getItemKey(item) }, [__props.render ? (openBlock(), createBlock(resolveDynamicComponent(() => unref(safeRenderProp)(() => __props.render({
155
- type: item.type,
156
- datasetId: item.datasetId,
157
- label: item.label,
158
- color: item.color,
159
- colorGradient: item.colorGradient,
160
- visible: item.visible,
155
+ ...item,
161
156
  isHovered: hoveredId.value === getItemKey(item),
162
157
  onClick: () => handleSharedClick(item),
163
158
  onMouseEnter: () => {
@@ -192,14 +187,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
192
187
  onMouseleave: _cache[0] || (_cache[0] = ($event) => hoveredId.value = null)
193
188
  }, [createElementVNode("span", {
194
189
  "data-chart-gradient": item.colorGradient ? JSON.stringify(item.colorGradient) : void 0,
195
- style: normalizeStyle({
196
- width: `${__props.iconSize ?? 12}px`,
197
- height: __props.iconShape === "line" ? "2px" : `${__props.iconSize ?? 12}px`,
198
- borderRadius: __props.iconShape === "circle" ? "50%" : __props.iconShape === "line" ? "1px" : "2px",
199
- backgroundColor: item.color,
200
- ...item.colorGradient ? { backgroundImage: unref(gradientToCssBackground)(item.colorGradient) } : {},
201
- flexShrink: 0
202
- })
190
+ style: normalizeStyle(unref(legendSwatchStyle)(item, __props.iconSize ?? 12, __props.iconShape))
203
191
  }, null, 12, _hoisted_2), createElementVNode("span", null, toDisplayString(item.label), 1)], 44, _hoisted_1))], 64);
204
192
  }), 128))], 6)) : createCommentVNode("", true);
205
193
  };
@@ -1,12 +1,13 @@
1
- import { usePropertyAnimations } from './chunk-I2BWSDNR.mjs';
2
- import { useChartMethods, useChartState, useChartHover } from './chunk-QOWKMWNO.mjs';
1
+ import { applyDataLabelRuleOverrides } from './chunk-Q3I4EL3N.mjs';
2
+ import { usePropertyAnimations } from './chunk-KX5GTFS3.mjs';
3
+ import { useChartMethods, useChartState, useChartHover, useRuleOverrides } from './chunk-F72RBTHC.mjs';
3
4
  import { defineComponent, computed, toRef, shallowRef, onUnmounted, unref, openBlock, createElementBlock, createElementVNode, Fragment, renderList, createBlock, createCommentVNode, ref, watch, createVNode } from 'vue';
4
5
  import { AnimatedPropertyStore, AnimationRegistry, renderTreemapGroupHoverOverlay } from '@primeui/chart-core';
5
6
  import { createTreemapRendererCanvas } from '@primeui/chart-core/series/treemap/controller-canvas';
6
7
  import { createTreemapRendererSvg } from '@primeui/chart-core/series/treemap/controller-svg';
7
8
 
8
9
  function useTreemapRenderer(options) {
9
- const { chartArea, renderer, canvasEl, datasets, features, datasetVisibility, width, height, chartId, drilldownState, globalFont, hover, theme } = options;
10
+ const { chartArea, renderer, canvasEl, datasets, features, datasetVisibility, hiddenItems, width, height, chartId, drilldownState, globalFont, hover, theme } = options;
10
11
  const wrapperRef = ref(null);
11
12
  const groupRef = ref(null);
12
13
  const overlayRef = ref(null);
@@ -20,6 +21,7 @@ function useTreemapRenderer(options) {
20
21
  controller.update({
21
22
  datasets: datasets.value,
22
23
  datasetVisibility: datasetVisibility.value,
24
+ hiddenItems: hiddenItems.value,
23
25
  chartArea: chartArea.value,
24
26
  renderer,
25
27
  width: width.value,
@@ -37,11 +39,12 @@ function useTreemapRenderer(options) {
37
39
  });
38
40
  };
39
41
  watch(
40
- [datasets, datasetVisibility, chartArea, features, width, height, groupRef, () => drilldownState.currentParentId.value, () => drilldownState.enabled.value, theme],
42
+ [datasets, datasetVisibility, hiddenItems, chartArea, features, width, height, groupRef, () => drilldownState.currentParentId.value, () => drilldownState.enabled.value, theme],
41
43
  () => {
42
44
  controller.update({
43
45
  datasets: datasets.value,
44
46
  datasetVisibility: datasetVisibility.value,
47
+ hiddenItems: hiddenItems.value,
45
48
  chartArea: chartArea.value,
46
49
  renderer,
47
50
  width: width.value,
@@ -172,13 +175,15 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
172
175
  const methods = useChartMethods();
173
176
  const state = useChartState();
174
177
  const hoverCtx = useChartHover();
178
+ const ruleOverrides = useRuleOverrides();
175
179
  const treemap = useTreemapRenderer({
176
180
  chartArea: computed(() => props.chartArea),
177
181
  renderer: methods.renderer,
178
182
  canvasEl: toRef(props, "canvasEl"),
179
183
  datasets: computed(() => state.value.datasets),
180
- features: computed(() => state.value.features),
184
+ features: computed(() => applyDataLabelRuleOverrides(state.value.features, ruleOverrides.value)),
181
185
  datasetVisibility: computed(() => state.value.datasetVisibility),
186
+ hiddenItems: computed(() => state.value.hiddenItems),
182
187
  hover: computed(() => hoverCtx.value.hover),
183
188
  width: computed(() => props.width),
184
189
  height: computed(() => props.height),
@@ -1,6 +1,6 @@
1
1
  import { useControllerLifecycle } from './chunk-KNNYJD4D.mjs';
2
- import { useCartesianFrame, useCartesianFrameRegistration } from './chunk-I2BWSDNR.mjs';
3
- import { useChartMethods, useChartState, useChartHover } from './chunk-QOWKMWNO.mjs';
2
+ import { useCartesianFrame, useCartesianFrameRegistration } from './chunk-KX5GTFS3.mjs';
3
+ import { useChartMethods, useChartState, useChartHover } from './chunk-F72RBTHC.mjs';
4
4
  import { defineComponent, computed, h, unref, openBlock, createElementBlock, createCommentVNode, ref, shallowRef, watch } from 'vue';
5
5
  import { resolvePointLabels, safeRenderProp } from '@primeui/chart-core';
6
6
  import { createLineRendererCanvas } from '@primeui/chart-core/series/line/controller-canvas';
@@ -201,20 +201,11 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
201
201
  }
202
202
  }
203
203
  return {
204
- datasetId: lnHit.datasetId,
205
- index: lnHit.index,
206
- label: lnHit.label,
207
- value: lnHit.value,
208
- color: lnHit.color,
204
+ ...lnHit,
209
205
  snapX: lnHit.x,
210
206
  snapY: lnHit.y,
211
207
  formattedValue: fmtVal,
212
- cursorFormattedValue: "",
213
- independentIsCategory: lnHit.independentIsCategory,
214
- xValue: lnHit.xValue,
215
- yValue: lnHit.yValue,
216
- xAxisTitle: lnHit.xAxisTitle,
217
- yAxisTitle: lnHit.yAxisTitle
208
+ cursorFormattedValue: ""
218
209
  };
219
210
  },
220
211
  findAllNearest: (x, y) => line.findAllNearest(x, y),
@@ -1,8 +1,8 @@
1
- import { RadarLayer_default } from './chunk-OJHEN5FG.mjs';
2
- import { RadialRenderer_default } from './chunk-5ZLVNQ2L.mjs';
3
- import { registerFamilyRenderer, registerChartLayer, useDatasetAnimationRegistration, useDatasetRegistration, useItemCollector } from './chunk-I2BWSDNR.mjs';
1
+ import { RadarLayer_default } from './chunk-TAFKOHFX.mjs';
2
+ import { RadialRenderer_default } from './chunk-7SY52FXI.mjs';
3
+ import { registerFamilyRenderer, registerChartLayer, useDatasetAnimationRegistration, useDatasetRegistration, useItemCollector } from './chunk-KX5GTFS3.mjs';
4
4
  import { STACKED_CONTEXT_KEY } from './chunk-L6N5IYAJ.mjs';
5
- import { useRendererHint, useChartMethods } from './chunk-QOWKMWNO.mjs';
5
+ import { useRendererHint, useChartMethods } from './chunk-F72RBTHC.mjs';
6
6
  import { defineComponent, useSlots, computed, inject, onMounted, watch, onUnmounted, renderSlot, createCommentVNode } from 'vue';
7
7
 
8
8
  var radarIdCounter = 0;
@@ -1,5 +1,6 @@
1
- import { useCartesianFrame, useCartesianFrameRegistration } from './chunk-I2BWSDNR.mjs';
2
- import { useChartMethods, useChartState, useChartHover } from './chunk-QOWKMWNO.mjs';
1
+ import { applyDataLabelRuleOverrides } from './chunk-Q3I4EL3N.mjs';
2
+ import { useCartesianFrame, useCartesianFrameRegistration } from './chunk-KX5GTFS3.mjs';
3
+ import { useChartMethods, useChartState, useChartHover, useRuleOverrides } from './chunk-F72RBTHC.mjs';
3
4
  import { defineComponent, computed, unref, openBlock, createElementBlock, createCommentVNode, ref, watch, onUnmounted } from 'vue';
4
5
  import { createCandlestickRendererCanvas } from '@primeui/chart-core/series/candlestick/controller-canvas';
5
6
  import { createCandlestickRendererSvg } from '@primeui/chart-core/series/candlestick/controller-svg';
@@ -73,7 +74,8 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
73
74
  const methods = useChartMethods();
74
75
  const state = useChartState();
75
76
  const hoverCtx = useChartHover();
76
- const features = computed(() => state.value.features);
77
+ const ruleOverrides = useRuleOverrides();
78
+ const features = computed(() => applyDataLabelRuleOverrides(state.value.features, ruleOverrides.value));
77
79
  const candlestick = useCandlestickRenderer({
78
80
  chartArea: frame.cartesianArea,
79
81
  renderer: methods.renderer,
@@ -102,11 +104,8 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
102
104
  const csHit = candlestick.hitTest(x, y);
103
105
  if (!csHit) return null;
104
106
  return {
105
- datasetId: csHit.datasetId,
106
- index: csHit.index,
107
- label: csHit.label,
107
+ ...csHit,
108
108
  value: csHit.close,
109
- color: csHit.color,
110
109
  snapX: csHit.x,
111
110
  snapY: csHit.y,
112
111
  formattedValue: `O:${csHit.open} H:${csHit.high} L:${csHit.low} C:${csHit.close}`,
@@ -1,8 +1,8 @@
1
- import { PieLayer_default } from './chunk-3XOLEGDL.mjs';
2
- import { RadialRenderer_default } from './chunk-5ZLVNQ2L.mjs';
3
- import { registerFamilyRenderer, registerChartLayer, useDatasetAnimationRegistration, useDatasetRegistration, useItemCollector } from './chunk-I2BWSDNR.mjs';
1
+ import { PieLayer_default } from './chunk-G4V4FUNK.mjs';
2
+ import { RadialRenderer_default } from './chunk-7SY52FXI.mjs';
3
+ import { registerFamilyRenderer, registerChartLayer, useDatasetAnimationRegistration, useDatasetRegistration, useItemCollector } from './chunk-KX5GTFS3.mjs';
4
4
  import { STACKED_CONTEXT_KEY } from './chunk-L6N5IYAJ.mjs';
5
- import { useRendererHint, useChartMethods } from './chunk-QOWKMWNO.mjs';
5
+ import { useRendererHint, useChartMethods } from './chunk-F72RBTHC.mjs';
6
6
  import { defineComponent, useSlots, computed, useId, inject, onMounted, watch, onUnmounted, renderSlot, createCommentVNode } from 'vue';
7
7
  import { resolveAccessor } from '@primeui/chart-core';
8
8
 
@@ -1,8 +1,8 @@
1
- import { useChartLayers, usePropertyAnimations } from './chunk-I2BWSDNR.mjs';
1
+ import { useChartLayers, usePropertyAnimations } from './chunk-KX5GTFS3.mjs';
2
2
  import { provideRadialFrame } from './chunk-7EZEZMGG.mjs';
3
- import { useChartMethods, useChartState } from './chunk-QOWKMWNO.mjs';
3
+ import { useChartMethods, useChartState, useRuleOverrides } from './chunk-F72RBTHC.mjs';
4
4
  import { defineComponent, computed, ref, watch, shallowRef, onUnmounted, openBlock, createElementBlock, Fragment, unref, createCommentVNode, renderList, createBlock, resolveDynamicComponent } from 'vue';
5
- import { collectItems, computeRadialComboContext, materializeSvgGroup, renderRadialGridSvg, AnimatedPropertyStore, AnimationRegistry, buildRadialGridLayout, withReferenceFeatures, redrawRadialCanvas } from '@primeui/chart-core';
5
+ import { collectItems, computeRadialComboContext, materializeSvgGroup, renderRadialGridSvg, AnimatedPropertyStore, AnimationRegistry, applyAxisOverrides, buildRadialGridLayout, withReferenceFeatures, redrawRadialCanvas } from '@primeui/chart-core';
6
6
 
7
7
  var _sfc_main = /* @__PURE__ */ defineComponent({
8
8
  __name: "RadialRenderer",
@@ -18,6 +18,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
18
18
  const props = __props;
19
19
  const methods = useChartMethods();
20
20
  const state = useChartState();
21
+ const ruleOverrides = useRuleOverrides();
21
22
  const frame = provideRadialFrame();
22
23
  const chartLayers = useChartLayers();
23
24
  const gridLayers = computed(() => collectRadialLayers("grid"));
@@ -57,10 +58,12 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
57
58
  innerRadius: polarRaw.innerRadiusRatio * polarRaw.maxRadius
58
59
  } : null;
59
60
  if (!src) return _stickyGridLayout ? withReferenceFeatures(_stickyGridLayout, state.value.features) : null;
60
- const xAxisProps = [...state.value.axes.x.values()][0]?.props;
61
+ const xAxes = applyAxisOverrides(state.value.axes.x, ruleOverrides.value.xAxis);
62
+ const yAxes = applyAxisOverrides(state.value.axes.y, ruleOverrides.value.yAxis);
63
+ const xAxisProps = [...xAxes.values()][0]?.props;
61
64
  let defaultYAxisProps;
62
65
  const yAxesByCategory = /* @__PURE__ */ new Map();
63
- for (const axis of state.value.axes.y.values()) {
66
+ for (const axis of yAxes.values()) {
64
67
  const yProps = axis.props;
65
68
  const cat = yProps.category;
66
69
  if (cat) yAxesByCategory.set(cat, yProps);
@@ -88,7 +91,8 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
88
91
  gridLayerLayouts,
89
92
  sharedGridGroupRef,
90
93
  () => state.value.features,
91
- radialAxes
94
+ radialAxes,
95
+ () => ruleOverrides.value
92
96
  ], () => {
93
97
  const group = sharedGridGroupRef.value;
94
98
  if (!group) return;
@@ -1,4 +1,4 @@
1
- import { useChartMethods } from './chunk-QOWKMWNO.mjs';
1
+ import { useChartMethods } from './chunk-F72RBTHC.mjs';
2
2
  import { defineComponent, onMounted, onUnmounted, renderSlot } from 'vue';
3
3
 
4
4
  var _sfc_main = /* @__PURE__ */ defineComponent({
@@ -1,4 +1,4 @@
1
- import { Chart_default } from './chunk-4EU72IBK.mjs';
1
+ import { Chart_default } from './chunk-QPX2OCOM.mjs';
2
2
  import { defineComponent, ref, openBlock, createBlock, mergeProps, withCtx, renderSlot } from 'vue';
3
3
 
4
4
  var _sfc_main = /* @__PURE__ */ defineComponent({
@@ -1,4 +1,4 @@
1
- import { useCustomizationRegistration } from './chunk-ZLD5VNMP.mjs';
1
+ import { useCustomizationRegistration } from './chunk-QQGC223F.mjs';
2
2
  import { defineComponent, computed } from 'vue';
3
3
 
4
4
  var _sfc_main = /* @__PURE__ */ defineComponent({
@@ -1,4 +1,4 @@
1
- import { useChartMethods } from './chunk-QOWKMWNO.mjs';
1
+ import { useChartMethods } from './chunk-F72RBTHC.mjs';
2
2
  import { defineComponent, computed, onMounted, watch, onUnmounted } from 'vue';
3
3
 
4
4
  var referenceLineIdCounter = 0;
@@ -1,5 +1,6 @@
1
- import { useChartLayers, useCartesianLayout, provideCartesianFrame, useCartesianAnimation } from './chunk-I2BWSDNR.mjs';
2
- import { useChartMethods, useChartState, useChartHover } from './chunk-QOWKMWNO.mjs';
1
+ import { applyDataLabelRuleOverrides } from './chunk-Q3I4EL3N.mjs';
2
+ import { useChartLayers, useCartesianLayout, provideCartesianFrame, useCartesianAnimation } from './chunk-KX5GTFS3.mjs';
3
+ import { useChartMethods, useChartState, useChartHover } from './chunk-F72RBTHC.mjs';
3
4
  import { SYNC_BUS_KEY } from './chunk-H4HLHGUW.mjs';
4
5
  import { defineComponent, computed, inject, ref, onUnmounted, watch, shallowRef, toRef, h, openBlock, createElementBlock, Fragment, unref, createElementVNode, createCommentVNode, renderList, createBlock, resolveDynamicComponent } from 'vue';
5
6
  import { applyAxisOverrides, calculateCartesianArea, computeNaturalAxisWidths, needsAxisPadding, buildMarkerRenderItems, computeReferenceLines, computeReferenceBands, CanvasCompositor, normalizeDataLabelConfig, shallowEqual, AnimatedPropertyStore, renderCartesianFrame, safeRenderProp, resolveNearestHit, mergeAllNearestResults, buildZoomScales } from '@primeui/chart-core';
@@ -65,6 +66,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
65
66
  const hoverCtx = useChartHover();
66
67
  const features = computed(() => state.value.features);
67
68
  const hoverConfig = computed(() => features.value.get("hover")?.props);
69
+ const crosshairSnap = computed(() => features.value.get("tooltip")?.props?.snap);
68
70
  const effectiveAxes = computed(() => ({
69
71
  x: applyAxisOverrides(state.value.axes.x, props.ruleOverrides?.xAxis),
70
72
  y: applyAxisOverrides(state.value.axes.y, props.ruleOverrides?.yAxis)
@@ -182,11 +184,8 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
182
184
  }));
183
185
  });
184
186
  const sharedCompositor = new CanvasCompositor();
185
- const labelConfig = computed(() => {
186
- if (props.ruleOverrides?.dataLabels?.enabled === false) return null;
187
- const dlProps = features.value.get("dataLabels")?.props;
188
- return normalizeDataLabelConfig(dlProps, props.adaptiveDataLabelFontSize, props.adaptiveDataLabelRotation, methods.font) ?? null;
189
- });
187
+ const dataLabelProps = computed(() => applyDataLabelRuleOverrides(features.value, props.ruleOverrides).get("dataLabels")?.props);
188
+ const labelConfig = computed(() => normalizeDataLabelConfig(dataLabelProps.value, props.adaptiveDataLabelFontSize, props.adaptiveDataLabelRotation, methods.font) ?? null);
190
189
  let _prevMergedPA;
191
190
  const mergedPropertyAnimations = computed(() => {
192
191
  const f = state.value.features;
@@ -218,6 +217,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
218
217
  layoutData,
219
218
  labelConfig,
220
219
  hoverConfig,
220
+ crosshairSnap,
221
221
  zoomState: computed(() => props.zoomState ?? null),
222
222
  adaptiveDataLabelFontSize: computed(() => props.adaptiveDataLabelFontSize),
223
223
  adaptiveDataLabelRotation: computed(() => props.adaptiveDataLabelRotation),
@@ -243,8 +243,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
243
243
  const allMarkerOverlays = computed(() => Array.from(frame.handles.values()).flatMap((handle) => handle.markerOverlays?.value ?? []));
244
244
  const customDataLabelVNodes = computed(() => {
245
245
  if (methods.renderer !== "svg" || !layoutData.value) return [];
246
- const dlProps = features.value.get("dataLabels")?.props;
247
- const lc = normalizeDataLabelConfig(dlProps, props.adaptiveDataLabelFontSize, props.adaptiveDataLabelRotation, methods.font);
246
+ const lc = normalizeDataLabelConfig(dataLabelProps.value, props.adaptiveDataLabelFontSize, props.adaptiveDataLabelRotation, methods.font);
248
247
  if (!lc?.render) return [];
249
248
  const nodes = [];
250
249
  for (const handle of frame.handles.values()) {
@@ -395,10 +394,12 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
395
394
  const barResult = frame.handles.get("bar")?.findAllNearest?.(x, y) ?? null;
396
395
  const lineResult = frame.handles.get("line")?.findAllNearest?.(x, y) ?? null;
397
396
  const csResult = frame.handles.get("candlestick")?.findAllNearest?.(x, y) ?? null;
397
+ const scResult = frame.handles.get("scatter")?.findAllNearest?.(x, y) ?? null;
398
398
  return mergeAllNearestResults([
399
399
  barResult,
400
400
  lineResult,
401
- csResult
401
+ csResult,
402
+ scResult
402
403
  ], x, y);
403
404
  }
404
405
  function getPlotArea() {
@@ -419,7 +420,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
419
420
  }
420
421
  function getCrosshairContext() {
421
422
  const ld = layoutData.value;
422
- if (!ld) return null;
423
+ if (!ld || ld.sharedCategoryYScale) return null;
423
424
  const isHorizontal = ld.orientation === "horizontal";
424
425
  return {
425
426
  orientation: ld.orientation,
@@ -1,8 +1,8 @@
1
- import { PolarLayer_default } from './chunk-ADAGGXFG.mjs';
2
- import { RadialRenderer_default } from './chunk-5ZLVNQ2L.mjs';
3
- import { registerFamilyRenderer, registerChartLayer, useDatasetAnimationRegistration, useDatasetRegistration, useItemCollector } from './chunk-I2BWSDNR.mjs';
1
+ import { PolarLayer_default } from './chunk-QWUGZTCV.mjs';
2
+ import { RadialRenderer_default } from './chunk-7SY52FXI.mjs';
3
+ import { registerFamilyRenderer, registerChartLayer, useDatasetAnimationRegistration, useDatasetRegistration, useItemCollector } from './chunk-KX5GTFS3.mjs';
4
4
  import { STACKED_CONTEXT_KEY } from './chunk-L6N5IYAJ.mjs';
5
- import { useRendererHint, useChartMethods } from './chunk-QOWKMWNO.mjs';
5
+ import { useRendererHint, useChartMethods } from './chunk-F72RBTHC.mjs';
6
6
  import { defineComponent, useSlots, computed, inject, onMounted, watch, onUnmounted, renderSlot, createCommentVNode } from 'vue';
7
7
  import { resolveAccessor } from '@primeui/chart-core';
8
8
 
@@ -1,5 +1,5 @@
1
1
  import { AXIS_GROUP_REGISTRY_KEY } from './chunk-EHSDNH7K.mjs';
2
- import { useAxisComponentBase } from './chunk-I2BWSDNR.mjs';
2
+ import { useAxisComponentBase } from './chunk-KX5GTFS3.mjs';
3
3
  import { defineComponent, useSlots, computed, provide, renderSlot } from 'vue';
4
4
 
5
5
  var __default__ = { inheritAttrs: false };
@@ -6,6 +6,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
6
6
  props: {
7
7
  render: { type: Function },
8
8
  label: {},
9
+ categories: {},
9
10
  range: {},
10
11
  labelStyle: {},
11
12
  bracket: { type: [Boolean, Object] },
@@ -47,6 +48,10 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
47
48
  def.range = props.range;
48
49
  return def;
49
50
  }
51
+ if (props.categories && props.categories.length > 0) {
52
+ def.categories = props.categories;
53
+ return def;
54
+ }
50
55
  const vals = categoryValues.value;
51
56
  const allNumeric = vals.length > 0 && vals.every((v) => typeof v === "number");
52
57
  if (allNumeric && vals.length >= 2) {
@@ -73,6 +78,11 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
73
78
  axisRegistry.addGroup(buildDefinition());
74
79
  }
75
80
  });
81
+ watch(() => [props.range, props.categories], () => {
82
+ if (mounted && axisRegistry) {
83
+ axisRegistry.addGroup(buildDefinition());
84
+ }
85
+ }, { deep: true });
76
86
  let mountTimerId;
77
87
  onMounted(() => {
78
88
  mountTimerId = setTimeout(() => {
@@ -1,4 +1,4 @@
1
- import { useCustomizationRegistration } from './chunk-ZLD5VNMP.mjs';
1
+ import { useCustomizationRegistration } from './chunk-QQGC223F.mjs';
2
2
  import { defineComponent, computed, renderSlot } from 'vue';
3
3
 
4
4
  var _sfc_main = /* @__PURE__ */ defineComponent({
@@ -1,4 +1,4 @@
1
- import { useCustomizationRegistration } from './chunk-ZLD5VNMP.mjs';
1
+ import { useCustomizationRegistration } from './chunk-QQGC223F.mjs';
2
2
  import { defineComponent, computed } from 'vue';
3
3
 
4
4
  var _sfc_main = /* @__PURE__ */ defineComponent({
@@ -1,9 +1,10 @@
1
1
  import { useControllerLifecycle } from './chunk-KNNYJD4D.mjs';
2
- import { useCartesianFrame, useCartesianFrameRegistration } from './chunk-I2BWSDNR.mjs';
3
- import { useChartMethods, useChartState, useChartHover } from './chunk-QOWKMWNO.mjs';
2
+ import { useCartesianFrame, useCartesianFrameRegistration } from './chunk-KX5GTFS3.mjs';
3
+ import { useChartMethods, useChartState, useChartHover } from './chunk-F72RBTHC.mjs';
4
4
  import { defineComponent, computed, unref, openBlock, createElementBlock, createCommentVNode, ref, watch } from 'vue';
5
5
  import { createScatterRendererCanvas } from '@primeui/chart-core/series/scatter/controller-canvas';
6
6
  import { createScatterRendererSvg } from '@primeui/chart-core/series/scatter/controller-svg';
7
+ import { formatTooltipValue } from '@primeui/chart-core';
7
8
 
8
9
  function useScatterRenderer(options) {
9
10
  const {
@@ -76,9 +77,13 @@ function useScatterRenderer(options) {
76
77
  function hitTest(x, y) {
77
78
  return controller.hitTest(x, y);
78
79
  }
80
+ function findNearest(x, y) {
81
+ return controller.findNearest(x, y);
82
+ }
79
83
  return {
80
84
  groupRef,
81
85
  hitTest,
86
+ findNearest,
82
87
  boostActive: computed(() => controller.boostActive),
83
88
  markerOverlays: markerOverlaysRef,
84
89
  applyPropertyAnimations,
@@ -92,12 +97,24 @@ function useScatterRenderer(options) {
92
97
  }
93
98
  };
94
99
  }
95
-
96
- // src/components/renderers/layers/ScatterLayer.vue
97
100
  var _hoisted_1 = ["clip-path"];
98
101
  var _sfc_main = /* @__PURE__ */ defineComponent({
99
102
  __name: "ScatterLayer",
100
103
  setup(__props) {
104
+ function fmtAxis(ld, axisKey, v) {
105
+ const tf = ld?.axisLayouts?.get(axisKey)?.props?.tickFormat;
106
+ return typeof tf === "function" ? tf(v) : formatTooltipValue(v);
107
+ }
108
+ function toCartesianScatterHit(scHit) {
109
+ return {
110
+ ...scHit,
111
+ value: scHit.yValue,
112
+ snapX: scHit.x,
113
+ snapY: scHit.y,
114
+ formattedValue: "",
115
+ cursorFormattedValue: ""
116
+ };
117
+ }
101
118
  const frame = useCartesianFrame();
102
119
  const methods = useChartMethods();
103
120
  const state = useChartState();
@@ -139,23 +156,45 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
139
156
  syncWithAnimatedScale: (categoryScale, valueScales, valueXScales) => scatter.syncWithAnimatedScale(categoryScale, valueScales, valueXScales),
140
157
  hitTest: (x, y) => {
141
158
  const scHit = scatter.hitTest(x, y);
159
+ return scHit ? toCartesianScatterHit(scHit) : null;
160
+ },
161
+ // Scatter is a 2D point cloud, so the crosshair snaps to the single nearest point
162
+ // anywhere in the plot area (unbounded findNearest, not the hit-radius hitTest) — that
163
+ // is what lets the crosshair follow the cursor everywhere, like line/bar.
164
+ findAllNearest: (x, y) => {
165
+ const scHit = scatter.findNearest(x, y);
142
166
  if (!scHit) return null;
167
+ const ld = frame.layoutData.value ?? null;
168
+ const primary = toCartesianScatterHit(scHit);
169
+ const snap = frame.crosshairSnap.value;
170
+ const lockX = snap === "xy" || snap === "x";
171
+ const lockY = snap === "xy" || snap === "y";
172
+ const horizontal = (ld?.orientation ?? "vertical") === "horizontal";
173
+ const vId = ld?.valueScales?.keys().next().value ?? "default";
174
+ const vKey = `${horizontal ? "x" : "y"}:${vId}`;
175
+ const vScale = ld?.valueScales?.get(vId);
176
+ const vText = fmtAxis(ld, vKey, scHit.yValue);
177
+ const lockValue = horizontal ? lockX : lockY;
178
+ primary.cursorFormattedValue = lockValue || !vScale ? vText : fmtAxis(ld, vKey, Math.round(vScale.invert(horizontal ? x : y)));
179
+ if (scHit.independentIsCategory) {
180
+ primary.label = scHit.category ?? scHit.label;
181
+ primary.formattedValue = vText;
182
+ } else {
183
+ const xId = ld?.valueXScales?.keys().next().value ?? "default";
184
+ const xKey = `x:${xId}`;
185
+ const xScale = ld?.valueXScales?.get(xId);
186
+ const xPointText = fmtAxis(ld, xKey, scHit.xValue);
187
+ primary.label = lockX || !xScale ? xPointText : fmtAxis(ld, xKey, Math.round(xScale.invert(x)));
188
+ primary.formattedValue = `${xPointText}, ${vText}`;
189
+ }
190
+ const allSeries = scHit.independentIsCategory ? [{
191
+ ...primary,
192
+ value: primary.value ?? 0,
193
+ snapPixel: primary.snapY
194
+ }] : [];
143
195
  return {
144
- datasetId: scHit.datasetId,
145
- index: scHit.index,
146
- label: scHit.label,
147
- value: scHit.yValue,
148
- xValue: scHit.xValue,
149
- yValue: scHit.yValue,
150
- independentIsCategory: scHit.independentIsCategory,
151
- xAxisTitle: scHit.xAxisTitle,
152
- yAxisTitle: scHit.yAxisTitle,
153
- ...scHit.bubbleValue != null ? { bubbleValue: scHit.bubbleValue } : {},
154
- color: scHit.color,
155
- snapX: scHit.x,
156
- snapY: scHit.y,
157
- formattedValue: "",
158
- cursorFormattedValue: ""
196
+ primary,
197
+ allSeries
159
198
  };
160
199
  },
161
200
  getPointPosition: (datasetId, index) => {
@@ -1,4 +1,4 @@
1
- import { useBarLayer, useBarRendererBase } from './chunk-AKMQHU5T.mjs';
1
+ import { useBarLayer, useBarRendererBase } from './chunk-V4KRWSEE.mjs';
2
2
  import { defineComponent, unref, openBlock, createElementBlock, createCommentVNode } from 'vue';
3
3
  import { createBarRendererCanvas } from '@primeui/chart-core/series/bar/controller-canvas';
4
4