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

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 (139) 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-44BMQ7N2.mjs +86 -0
  8. package/dist/chunks/{chunk-CMJXLIEY.mjs → chunk-4B5OD4TC.mjs} +4 -13
  9. package/dist/chunks/{chunk-F7EK5D6J.mjs → chunk-4UH6LJNN.mjs} +4 -4
  10. package/dist/chunks/{chunk-YI3GLQYF.mjs → chunk-5CL32KCS.mjs} +6 -7
  11. package/dist/chunks/{chunk-GE2Y2FHS.mjs → chunk-6MD43V6R.mjs} +4 -4
  12. package/dist/chunks/{chunk-4EU72IBK.mjs → chunk-7OLUXDMR.mjs} +19 -11
  13. package/dist/chunks/{chunk-5ZLVNQ2L.mjs → chunk-7SY52FXI.mjs} +10 -6
  14. package/dist/chunks/{chunk-R4AZOPXC.mjs → chunk-AQK6S4DO.mjs} +1 -1
  15. package/dist/chunks/{chunk-UOMQNZMT.mjs → chunk-B7XC2DVN.mjs} +1 -1
  16. package/dist/chunks/{chunk-CRIB3I3L.mjs → chunk-BC6G3ODW.mjs} +1 -1
  17. package/dist/chunks/{chunk-YZQS2YBK.mjs → chunk-BVB7G6Y5.mjs} +12 -11
  18. package/dist/chunks/{chunk-GIDIMIWE.mjs → chunk-D2SPDSXY.mjs} +4 -4
  19. package/dist/chunks/{chunk-JVH4MDKX.mjs → chunk-D65PFBA5.mjs} +1 -1
  20. package/dist/chunks/{chunk-MGUGO3RV.mjs → chunk-DKLWPPME.mjs} +10 -0
  21. package/dist/chunks/{chunk-CGFPDWB4.mjs → chunk-DLRPM3GK.mjs} +1 -1
  22. package/dist/chunks/{chunk-3DINEX6C.mjs → chunk-DZIZEFTD.mjs} +1 -1
  23. package/dist/chunks/{chunk-LJZCE7LQ.mjs → chunk-EAHLFHB7.mjs} +58 -19
  24. package/dist/chunks/{chunk-IFZSHQDZ.mjs → chunk-EDDORION.mjs} +1 -1
  25. package/dist/chunks/{chunk-QOWKMWNO.mjs → chunk-F72RBTHC.mjs} +27 -5
  26. package/dist/chunks/{chunk-4Q3QUNX6.mjs → chunk-FGBZ3VPE.mjs} +2 -1
  27. package/dist/chunks/{chunk-L74BEYTD.mjs → chunk-FZ4TKLHE.mjs} +5 -5
  28. package/dist/chunks/{chunk-3XOLEGDL.mjs → chunk-G4V4FUNK.mjs} +5 -5
  29. package/dist/chunks/{chunk-DXKAPWMO.mjs → chunk-G5YSM76C.mjs} +1 -1
  30. package/dist/chunks/{chunk-3JA5JAHF.mjs → chunk-GRPL343U.mjs} +1 -1
  31. package/dist/chunks/{chunk-36DHPBYP.mjs → chunk-GV4YAVUN.mjs} +34 -9
  32. package/dist/chunks/{chunk-GV3CY6CQ.mjs → chunk-HXMG2ZBK.mjs} +1 -1
  33. package/dist/chunks/{chunk-3PJULFR5.mjs → chunk-IASQF4GU.mjs} +1 -3
  34. package/dist/chunks/{chunk-PR6MTWPJ.mjs → chunk-IPEI6IAE.mjs} +1 -1
  35. package/dist/chunks/{chunk-WVNDZNMV.mjs → chunk-ISDQNEMO.mjs} +1 -1
  36. package/dist/chunks/{chunk-TRGN3ZMM.mjs → chunk-JEC4JJ5P.mjs} +4 -30
  37. package/dist/chunks/{chunk-BSROML7P.mjs → chunk-KCLMHDWJ.mjs} +2 -2
  38. package/dist/chunks/{chunk-I2BWSDNR.mjs → chunk-KX5GTFS3.mjs} +19 -6
  39. package/dist/chunks/{chunk-3X27K5XC.mjs → chunk-L7XUBIMC.mjs} +24 -51
  40. package/dist/chunks/{chunk-2NZ3PUWW.mjs → chunk-LLYJBFOE.mjs} +2 -2
  41. package/dist/chunks/{chunk-DDRSIMLE.mjs → chunk-LNS6I3ZJ.mjs} +4 -4
  42. package/dist/chunks/{chunk-CW2KYVYO.mjs → chunk-MCIY5P7K.mjs} +4 -4
  43. package/dist/chunks/{chunk-GLFXRR7N.mjs → chunk-MGNVYHQF.mjs} +53 -8
  44. package/dist/chunks/{chunk-2TOEQNJ6.mjs → chunk-MX74LV4I.mjs} +1 -1
  45. package/dist/chunks/{chunk-L73MEG22.mjs → chunk-NFVH44YP.mjs} +1 -3
  46. package/dist/chunks/{chunk-JPKNWLLP.mjs → chunk-NTTI64AJ.mjs} +8 -4
  47. package/dist/chunks/{chunk-EWDMF46D.mjs → chunk-OHHN7X72.mjs} +1 -1
  48. package/dist/chunks/{chunk-LP2YESP6.mjs → chunk-OROBUJMJ.mjs} +1 -1
  49. package/dist/chunks/{chunk-6Z4MZIJI.mjs → chunk-P43UWADF.mjs} +6 -4
  50. package/dist/chunks/chunk-Q3I4EL3N.mjs +23 -0
  51. package/dist/chunks/{chunk-HVLFOABV.mjs → chunk-QDCXS7WS.mjs} +3 -8
  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/types/axes.types.d.ts +1 -1
  129. package/dist/types/heatmap.types.d.ts +3 -8
  130. package/dist/types/index.d.ts +1 -1
  131. package/dist/types/line.types.d.ts +2 -2
  132. package/dist/types/scatter.types.d.ts +2 -0
  133. package/dist/types/treemap.types.d.ts +2 -0
  134. package/dist/utils/index.d.ts +1 -0
  135. package/dist/utils/ruleOverrides.d.ts +13 -0
  136. package/dist/utils/ruleOverrides.spec.d.ts +1 -0
  137. package/package.json +5 -4
  138. package/dist/chunks/chunk-JBWL3G7O.mjs +0 -86
  139. 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-IPEI6IAE.mjs';
2
+ import './chunks/chunk-7OLUXDMR.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-OHHN7X72.mjs';
2
+ import './chunks/chunk-7OLUXDMR.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),
@@ -0,0 +1,86 @@
1
+ import { ChartBar_default } from './chunk-FZ4TKLHE.mjs';
2
+ import { ChartTreemap_default } from './chunk-QDCXS7WS.mjs';
3
+ import { ChartScatter_default } from './chunk-UA2J3TWE.mjs';
4
+ import { ChartRadar_default } from './chunk-4UH6LJNN.mjs';
5
+ import { ChartPolar_default } from './chunk-D2SPDSXY.mjs';
6
+ import { ChartPie_default } from './chunk-6MD43V6R.mjs';
7
+ import { ChartLine_default } from './chunk-LNS6I3ZJ.mjs';
8
+ import { ChartHeatmap_default } from './chunk-WCUZUBQ5.mjs';
9
+ import { ChartCandlestick_default } from './chunk-MCIY5P7K.mjs';
10
+ import { ChartAnnotation_default } from './chunk-WHAJ2YDA.mjs';
11
+ import { ChartAccessibility_default } from './chunk-P43UWADF.mjs';
12
+ import { ChartWaterfall_default } from './chunk-HXMG2ZBK.mjs';
13
+ import { ChartStacked_default } from './chunk-ISDQNEMO.mjs';
14
+ import { ChartRange_default } from './chunk-YPRGZNY6.mjs';
15
+ import { ChartOverlap_default } from './chunk-AQK6S4DO.mjs';
16
+ import { ChartGroup_default } from './chunk-GRPL343U.mjs';
17
+ import { ChartDecimation_default } from './chunk-XSKNTD24.mjs';
18
+ import { ChartHover_default } from './chunk-DZIZEFTD.mjs';
19
+ import { ChartExportMenu_default } from './chunk-WNIMDHP5.mjs';
20
+ import { ChartDataLabels_default } from './chunk-TLB6ZOL3.mjs';
21
+ import { ChartColorLegend_default } from './chunk-DLRPM3GK.mjs';
22
+ import { ChartCaption_default } from './chunk-YUQRDFQI.mjs';
23
+ import { ChartBreadcrumb_default } from './chunk-2FGCWBQK.mjs';
24
+ import { ChartAxisGroup_default } from './chunk-DKLWPPME.mjs';
25
+ import { ChartAxisCategory_default } from './chunk-QJCMFAHB.mjs';
26
+ import { ChartXAxis_default } from './chunk-G5YSM76C.mjs';
27
+ import { ChartTooltip_default } from './chunk-OROBUJMJ.mjs';
28
+ import { ChartTitle_default } from './chunk-LLYJBFOE.mjs';
29
+ import { ChartResponsive_default } from './chunk-B7XC2DVN.mjs';
30
+ import { ChartReferenceLine_default } from './chunk-BC6G3ODW.mjs';
31
+ import { ChartReferenceBand_default } from './chunk-VADMTZLH.mjs';
32
+ import { ChartNavigator_default } from './chunk-NTTI64AJ.mjs';
33
+ import { ChartLegend_default } from './chunk-2VCCASMY.mjs';
34
+ import { ChartTreemapGroup_default } from './chunk-NFVH44YP.mjs';
35
+ import { ChartItem_default } from './chunk-IASQF4GU.mjs';
36
+ import { ChartZoom_default } from './chunk-KCLMHDWJ.mjs';
37
+ import { ChartYAxis_default } from './chunk-D65PFBA5.mjs';
38
+ import { ChartSvg_default } from './chunk-OHHN7X72.mjs';
39
+ import { ChartCanvas_default } from './chunk-IPEI6IAE.mjs';
40
+ import { __export } from './chunk-VIHIR2BE.mjs';
41
+
42
+ // src/Chart.parts.ts
43
+ var Chart_parts_exports = {};
44
+ __export(Chart_parts_exports, {
45
+ Accessibility: () => ChartAccessibility_default,
46
+ Annotation: () => ChartAnnotation_default,
47
+ AxisCategory: () => ChartAxisCategory_default,
48
+ AxisGroup: () => ChartAxisGroup_default,
49
+ Bar: () => ChartBar_default,
50
+ Breadcrumb: () => ChartBreadcrumb_default,
51
+ Candlestick: () => ChartCandlestick_default,
52
+ Canvas: () => ChartCanvas_default,
53
+ Caption: () => ChartCaption_default,
54
+ ColorLegend: () => ChartColorLegend_default,
55
+ DataLabels: () => ChartDataLabels_default,
56
+ Decimation: () => ChartDecimation_default,
57
+ ExportMenu: () => ChartExportMenu_default,
58
+ Group: () => ChartGroup_default,
59
+ Heatmap: () => ChartHeatmap_default,
60
+ Hover: () => ChartHover_default,
61
+ Item: () => ChartItem_default,
62
+ Legend: () => ChartLegend_default,
63
+ Line: () => ChartLine_default,
64
+ Navigator: () => ChartNavigator_default,
65
+ Overlap: () => ChartOverlap_default,
66
+ Pie: () => ChartPie_default,
67
+ Polar: () => ChartPolar_default,
68
+ Radar: () => ChartRadar_default,
69
+ Range: () => ChartRange_default,
70
+ ReferenceBand: () => ChartReferenceBand_default,
71
+ ReferenceLine: () => ChartReferenceLine_default,
72
+ Responsive: () => ChartResponsive_default,
73
+ Scatter: () => ChartScatter_default,
74
+ Stacked: () => ChartStacked_default,
75
+ Svg: () => ChartSvg_default,
76
+ Title: () => ChartTitle_default,
77
+ Tooltip: () => ChartTooltip_default,
78
+ Treemap: () => ChartTreemap_default,
79
+ TreemapGroup: () => ChartTreemapGroup_default,
80
+ Waterfall: () => ChartWaterfall_default,
81
+ XAxis: () => ChartXAxis_default,
82
+ YAxis: () => ChartYAxis_default,
83
+ Zoom: () => ChartZoom_default
84
+ });
85
+
86
+ export { Chart_parts_exports };
@@ -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,12 +1,12 @@
1
- import { LegendRenderer_default } from './chunk-TRGN3ZMM.mjs';
1
+ import { LegendRenderer_default } from './chunk-JEC4JJ5P.mjs';
2
2
  import { ColorLegendRenderer_default } from './chunk-S4YR4YK7.mjs';
3
- import { TooltipRenderer_default } from './chunk-36DHPBYP.mjs';
4
- import { useResponsiveDimensions, useAnimationProps, useDrilldownState, useResponsiveConfig, provideFamilyRenderers, provideChartLayers, useZoomPan, useKeyboardNavigation, useChartSync, useChartContext, useChartSyncCoordinator } from './chunk-I2BWSDNR.mjs';
5
- import { NavigatorRenderer_default } from './chunk-GLFXRR7N.mjs';
6
- import { provideChartContext } from './chunk-QOWKMWNO.mjs';
3
+ import { TooltipRenderer_default } from './chunk-GV4YAVUN.mjs';
4
+ import { useResponsiveDimensions, useAnimationProps, useDrilldownState, useResponsiveConfig, provideFamilyRenderers, provideChartLayers, useZoomPan, useKeyboardNavigation, useChartSync, useChartContext, useChartSyncCoordinator } from './chunk-KX5GTFS3.mjs';
5
+ import { NavigatorRenderer_default } from './chunk-MGNVYHQF.mjs';
6
+ import { provideChartContext } from './chunk-F72RBTHC.mjs';
7
7
  import { CHART_SYNC_INFO_KEY } from './chunk-H4HLHGUW.mjs';
8
- import { TOOLTIP_CONTEXT_KEY } from './chunk-4Q3QUNX6.mjs';
9
- import { defineComponent, computed, ref, onMounted, watch, onBeforeUnmount, toRef, shallowRef, nextTick, provide, openBlock, createElementBlock, normalizeStyle, normalizeClass, createElementVNode, toDisplayString, createCommentVNode, renderSlot, unref, createBlock, resolveDynamicComponent, withCtx, createTextVNode, Fragment, renderList, withModifiers } from 'vue';
8
+ import { CHART_RULE_OVERRIDES_KEY, TOOLTIP_CONTEXT_KEY } from './chunk-FGBZ3VPE.mjs';
9
+ import { defineComponent, computed, ref, onMounted, watch, onBeforeUnmount, toRef, provide, shallowRef, nextTick, openBlock, createElementBlock, normalizeStyle, normalizeClass, createElementVNode, toDisplayString, createCommentVNode, renderSlot, unref, createBlock, resolveDynamicComponent, withCtx, createTextVNode, Fragment, renderList, withModifiers } from 'vue';
10
10
  import { resolveTheme, ChartStateController, buildChartDataTable, themeToCssVars, configureCanvasHiDPI, computeCrosshairLayout, buildAnnotationContext, DEFAULT_FONT_FAMILY, renderAnnotationsCanvas, resolveDirFromElement, observeDocumentDir } from '@primeui/chart-core';
11
11
  import { verifyLicense } from '@primeui/license-manager';
12
12
 
@@ -337,7 +337,8 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
337
337
  const measuredCaptionHeight = ref(0);
338
338
  const drilldownState = useDrilldownState(computed(() => state.value.datasets));
339
339
  const responsiveFeature = computed(() => state.value.features.get("responsive")?.props);
340
- const { defaults: adaptive, ruleOverrides } = useResponsiveConfig(width, height, responsiveFeature, { size: props.fontSize });
340
+ const { tier, defaults: adaptive, ruleOverrides } = useResponsiveConfig(width, height, responsiveFeature, { size: props.fontSize });
341
+ provide(CHART_RULE_OVERRIDES_KEY, ruleOverrides);
341
342
  const chartStateController = new ChartStateController();
342
343
  onBeforeUnmount(() => chartStateController.destroy());
343
344
  const coreState = computed(() => chartStateController.compute({
@@ -696,12 +697,16 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
696
697
  cursorValueText: tooltip.value.cursorFormattedValue ?? "",
697
698
  barValueText: tooltip.value.formattedValue ?? String(tooltip.value.value),
698
699
  barColor: tooltip.value.color,
699
- allSeriesHits: isSharedMode.value ? tooltip.value.allSeriesHits : void 0
700
+ allSeriesHits: isSharedMode.value ? tooltip.value.allSeriesHits : void 0,
701
+ // Value→value domain (bar/line/scatter): the independent-axis badge follows the
702
+ // cursor instead of snapping to the datum, matching the value-axis badge.
703
+ independentAxisIsValue: tooltip.value.independentIsCategory === false
700
704
  });
701
705
  });
702
706
  const annotations = computed(() => state.value.annotations);
703
707
  const annotationContext = computed(() => {
704
708
  if (!annotations.value?.size || !chartArea.value) return null;
709
+ if (ruleOverrides.value.annotations?.enabled === false) return null;
705
710
  const outerArea = chartArea.value;
706
711
  let xScale = null;
707
712
  let yScale = null;
@@ -745,7 +750,10 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
745
750
  datasetId: hover.datasetId,
746
751
  index: hover.index
747
752
  } : null,
748
- theme: methods.theme
753
+ theme: methods.theme,
754
+ tier: tier.value,
755
+ defaults: adaptive.value,
756
+ ruleOverrides: ruleOverrides.value
749
757
  });
750
758
  });
751
759
  const annotationClipRect = computed(() => {
@@ -1392,7 +1400,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
1392
1400
  }, toDisplayString(label.text), 9, _hoisted_31)]);
1393
1401
  }), 128))
1394
1402
  ], 8, _hoisted_18)) : createCommentVNode("", true),
1395
- tooltipConfig.value && !hasCrosshair.value && !unref(zoomIsDragging) && unref(ruleOverrides).tooltip?.enabled !== false ? (openBlock(), createBlock(TooltipRenderer_default, {
1403
+ tooltipConfig.value && !crosshairData.value && !unref(zoomIsDragging) && unref(ruleOverrides).tooltip?.enabled !== false ? (openBlock(), createBlock(TooltipRenderer_default, {
1396
1404
  key: 12,
1397
1405
  "tooltip-config": tooltipConfig.value,
1398
1406
  rtl: resolvedDir.value === "rtl",
@@ -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 { 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({